/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3CA1A0;
    --secondary: #5A6C68;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --gray-dark: #6B6B6B;
    --success: #4CAF50;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8fafa 0%, #ffffff 100%);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   LOCK SCREEN
   ========================================== */
.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.lock-screen.hidden {
    display: none;
}

.lock-content {
    background: var(--white);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lock-logo {
    margin-bottom: 25px;
}

.lock-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.lock-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.lock-subtitle {
    font-size: 16px;
    color: var(--gray-dark);
    margin-bottom: 30px;
    font-weight: 500;
}

.lock-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lock-input {
    padding: 16px 20px;
    border: 2px solid var(--gray-medium);
    border-radius: 50px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    letter-spacing: 4px;
    font-weight: 600;
    transition: var(--transition);
    outline: none;
}

.lock-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(60, 161, 160, 0.1);
    transform: translateY(-2px);
}

.lock-btn {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.lock-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.lock-btn:active {
    transform: translateY(-1px);
}

.lock-error {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
    animation: shake 0.5s ease-in-out;
}

@media (max-width: 480px) {
    .lock-content {
        padding: 40px 30px;
    }

    .lock-logo img {
        width: 80px;
        height: 80px;
    }

    .lock-title {
        font-size: 28px;
    }

    .lock-subtitle {
        font-size: 14px;
    }

    .lock-input {
        padding: 14px 18px;
        font-size: 14px;
    }

    .lock-btn {
        padding: 14px 18px;
        font-size: 15px;
    }
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.logo-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.tagline {
    font-size: 10px;
    color: var(--secondary);
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
    transition: var(--transition);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 0;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.2);
    z-index: 3001;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.mobile-nav-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.close-mobile-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.close-mobile-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Navigation Buttons */
.nav-btn {
    background: transparent;
    border: 2px solid var(--gray-medium);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: left;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.nav-btn:hover::before,
.nav-btn.active::before {
    width: 400px;
    height: 400px;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.desktop-nav .nav-btn {
    width: auto;
    text-align: center;
}

.cart-btn {
    background: var(--primary);
    border: none;
    padding: 10px 16px;
    border-radius: 50px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
}

.cart-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.cart-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.cart-count {
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 18px 55px 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-dark);
}

/* ==========================================
   PRODUCTS SECTION
   ========================================== */
.main-content {
    padding: 60px 20px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.sort-select {
    padding: 12px 40px 12px 20px;
    border: 2px solid var(--gray-medium);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url('data:image/svg+xml,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%235A6C68" stroke-width="2" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   PRODUCT CARDS
   ========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    animation: scaleIn 0.4s ease-out backwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #f8fafa 0%, #ffffff 100%);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.1) rotate(3deg);
}

.product-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-presentation {
    font-size: 13px;
    color: var(--gray-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

.product-description {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.benefit-tag {
    background: var(--gray-light);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-medium);
}

.product-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
}

.add-to-cart {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart:hover {
    background: var(--secondary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.add-to-cart:active {
    transform: scale(0.98);
}

/* ==========================================
   NO RESULTS
   ========================================== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-dark);
}

.no-results svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results p {
    font-size: 18px;
    font-weight: 500;
}

/* ==========================================
   CART SIDEBAR
   ========================================== */
.cart-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

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

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid var(--gray-medium);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.cart-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.close-cart {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

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

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-dark);
}

.empty-cart svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-cart p {
    font-size: 16px;
    font-weight: 500;
}

.cart-item {
    background: var(--gray-light);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--white);
    border-radius: 10px;
    padding: 8px;
}

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

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: var(--white);
    border: 2px solid var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

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

.remove-item {
    background: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    transition: var(--transition);
}

.remove-item:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 25px;
    border-top: 2px solid var(--gray-medium);
    background: var(--gray-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.total-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.whatsapp-btn {
    width: 100%;
    background: #25D366;
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.whatsapp-btn:hover {
    background: #1ebe57;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.whatsapp-btn:active {
    transform: translateY(-1px);
}

.whatsapp-btn:disabled {
    background: var(--gray-medium);
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   MODAL
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 25px;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1;
    transition: var(--transition);
}

.modal-close:hover {
    background: #e74c3c;
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-product-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 30px;
    background: var(--gray-light);
    border-radius: 15px;
    padding: 30px;
}

.modal-product-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.modal-product-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-product-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary);
    margin-bottom: 25px;
}

.modal-benefits {
    margin-bottom: 30px;
}

.modal-benefits h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--black);
}

.modal-benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.modal-benefit-tag {
    background: var(--gray-light);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-benefit-tag::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 2px solid var(--gray-medium);
}

.modal-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.modal-add-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.modal-add-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--black) 100%);
    color: var(--white);
    padding: 50px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .desktop-nav {
        gap: 8px;
    }

    .desktop-nav .nav-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile Styles */
    .header-content {
        padding: 10px 0;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 22px;
    }

    .tagline {
        font-size: 9px;
    }

    /* Show hamburger menu, hide desktop nav */
    .menu-toggle {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    /* Hero adjustments */
    .hero {
        padding: 50px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    /* Cart sidebar - full width on mobile */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-header {
        padding: 18px 20px;
    }

    .cart-header h3 {
        font-size: 20px;
    }

    .cart-items {
        padding: 15px;
    }

    .cart-footer {
        padding: 20px;
    }

    .cart-total {
        font-size: 16px;
    }

    .total-amount {
        font-size: 24px;
    }

    /* Modal adjustments */
    .modal-body {
        padding: 30px 20px;
    }

    .modal-product-name {
        font-size: 24px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .modal-add-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Compact header for small screens */
    .header-content {
        padding: 8px 0;
    }

    .logo {
        gap: 8px;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo-text h1 {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .tagline {
        display: none;
    }

    .cart-btn {
        padding: 8px 12px;
    }

    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    /* Mobile nav narrower on very small screens */
    .mobile-nav {
        width: 85%;
        max-width: 300px;
    }

    /* Hero */
    .hero {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .search-input {
        padding: 14px 50px 14px 20px;
        font-size: 14px;
    }

    /* Products */
    .section-title {
        font-size: 22px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .add-to-cart {
        width: 100%;
        justify-content: center;
    }

    /* Cart items */
    .cart-item {
        padding: 12px;
        gap: 12px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 15px;
    }

    .quantity-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    /* WhatsApp button */
    .whatsapp-btn {
        padding: 16px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    /* Extra small screens */
    .logo-text h1 {
        font-size: 16px;
    }

    .hero-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 20px;
    }
}

/* ==========================================
   UTILITY ANIMATIONS
   ========================================== */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 0.6s ease-in-out;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}
