/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* CSS Variables for Purple Theme */
:root {
    --primary-purple: #6B46C1;
    --secondary-purple: #8B5CF6;
    --light-purple: #A78BFA;
    --dark-purple: #553C9A;
    --purple-gradient: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --light-gray: #F9FAFB;
    --border-color: #E5E7EB;
}

/* Sticky Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(107, 70, 193, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--purple-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.navbar-menu {
    display: none;
    list-style: none;
    gap: 2rem;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--primary-purple);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-purple);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: var(--purple-gradient);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 70px;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-purple);
}

.btn-primary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.btn-order {
    background: #25D366;
    color: var(--white);
    width: 100%;
    margin-top: 1rem;
}

.btn-order:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    background: var(--light-gray);
}

.discount-banner {
    background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

.discount-banner i {
    font-size: 2.5rem;
    margin-right: 1.5rem;
}

.discount-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.discount-info ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.discount-info li {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(107, 70, 193, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

/* Video Section */
.video-section {
    background: var(--white);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(107, 70, 193, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact Section */
.contact-section {
    background: var(--light-gray);
}

.contact-info {
    padding: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-purple);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 300px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--purple-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--light-purple);
}

/* Responsive Design - Mobile First */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .hero {
        padding: 10rem 0 6rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        max-width: 1200px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.navbar-menu a:focus,
.social-links a:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-purple: #4C1D95;
        --text-light: #374151;
    }
}

/* Loading animation for images */
.product-image img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image img.loaded {
    opacity: 1;
}

/* Product Badge Styles */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.new {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    }
}

/* Smooth scrolling for older browsers */
html {
    scroll-behavior: smooth;
}

/* Cart Styles */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.cart-link:hover {
    color: var(--secondary-purple);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-purple);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
}

.cart-count.hidden {
    display: none;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-cart {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cart:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
}

.btn-cart:active {
    transform: translateY(0);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-gray);
}

.cart-header h3 {
    color: var(--primary-purple);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-close:hover {
    color: var(--primary-purple);
}

.cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.empty-cart p {
    margin-bottom: 0.5rem;
}

.empty-cart-subtitle {
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-purple);
    font-weight: 500;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #dc2626;
}

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    background: var(--light-gray);
}

.cart-total {
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.discount-row {
    display: none; /* Hidden by default, shown when there's a discount */
    color: #e53e3e; /* Red color for discount */
    font-weight: 500;
    background-color: rgba(254, 226, 226, 0.5); /* Light red background */
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.total-final {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-purple);
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.cart-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    flex: 1;
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
    border: none;
    flex: 2;
}

.btn-primary:hover {
    background: var(--dark-purple);
}

/* Mobile Responsive Cart */
@media (max-width: 767px) {
    /* Show cart icon on mobile */
    .navbar-menu {
        /*display: flex !important;*/
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        gap: 0;
        background: none;
        box-shadow: none;
        padding: 0;
    }
    
    .navbar-menu li:not(:last-child) {
        display: none;
    }
    
    .navbar-menu li:last-child {
        display: block;
    }
    
    .cart-link {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .discount-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .discount-banner i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cart-header {
        padding: 1.5rem 1rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .cart-content {
        padding: 1rem;
        max-height: calc(100vh - 200px);
    }
    
    .cart-footer {
        padding: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .product-actions {
        flex-direction: row;
    }
    
    .btn-cart,
    .btn-order {
        flex: 1;
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-secondary,
    .btn-primary {
        flex: none;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .cart-item {
        padding: 1rem 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .cart-item:last-child {
        border-bottom: none;
    }
    
    .item-image {
        width: 60px;
        height: 60px;
    }
    
    .item-details h4 {
        font-size: 1rem;
    }
    
    .item-price {
        font-size: 0.9rem;
    }
    
    .quantity-controls {
        gap: 0.5rem;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .quantity-display {
        min-width: 32px;
        font-size: 0.95rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn-order,
    .btn-cart,
    .cart-sidebar,
    .cart-overlay {
        display: none;
    }
    
    .hero {
        background: none;
        color: var(--text-dark);
    }
    
    .product-card {
        break-inside: avoid;
    }
}
