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

:root {
    --primary: #e23744;
    --primary-dark: #c62828;
    --secondary: #2d3436;
    --accent: #fdcb6e;
    --light: #f8f9fa;
    --dark: #2d3436;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: var(--dark);
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
 
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(226, 55, 68, 0.08), rgba(253, 203, 110, 0.16));
}
 
.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 2.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
 
.auth-card__header {
    text-align: center;
    margin-bottom: 1.5rem;
}
 
.auth-card__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-size: 1.75rem;
}
 
.auth-card__title {
    margin-bottom: 0.4rem;
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 700;
}
 
.auth-card__subtitle {
    color: var(--gray);
    font-size: 0.95rem;
}
 
.auth-card__lang {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 1px solid var(--border);
    background: var(--light);
    color: var(--dark);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
 
.auth-card__lang:hover {
    color: var(--primary);
    border-color: rgba(226, 55, 68, 0.25);
}
 
.auth-card__message {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
}
 
.auth-card__message--error {
    background: rgba(226, 55, 68, 0.08);
    color: var(--primary-dark);
}
 
.auth-card__message--success {
    background: rgba(40, 167, 69, 0.12);
    color: #1f7a3d;
}
 
.auth-card__form .form-group {
    margin-bottom: 1rem;
}
 
.auth-card__label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 600;
}
 
.auth-card__label .required {
    color: var(--primary);
}
 
.auth-card__input-wrap {
    position: relative;
}
 
.auth-card__icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--gray);
}
 
.auth-card__input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--light);
    color: var(--dark);
    font-size: 0.95rem;
    transition: var(--transition);
}
 
.auth-card__input:focus {
    outline: none;
    border-color: rgba(226, 55, 68, 0.35);
    box-shadow: 0 0 0 3px rgba(226, 55, 68, 0.12);
}
 
.auth-card__toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
}
 
.auth-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0 1.4rem;
    font-size: 0.9rem;
}
 
.auth-card__checkbox {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--gray);
    cursor: pointer;
}
 
.auth-card__checkbox input {
    width: 0.95rem;
    height: 0.95rem;
    accent-color: var(--primary);
}
 
.auth-card__link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
 
.auth-card__link:hover {
    text-decoration: underline;
}
 
.auth-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.95rem 1.2rem;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
 
.auth-card__button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
 
.auth-card__button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}
 
.auth-card__footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
}
 
.auth-card__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    color: var(--gray);
    font-size: 0.8rem;
}
 
.auth-card__badge i {
    color: #28a745;
}
 
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
 
    .auth-card__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
 
/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: var(--primary);
}

.logo i {
    font-size: 1.8rem;
}

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

.cart-toggle, .menu-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    color: var(--dark);
    transition: var(--transition);
}

.cart-toggle:hover, .menu-toggle:hover {
    color: var(--primary);
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    padding: 2rem;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 200;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.menu-close {
    font-size: 2rem;
    cursor: pointer;
    text-align: right;
    margin-bottom: 2rem;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu ul li a {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 200;
    display: flex;
    flex-direction: column;
}

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

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

.cart-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-close {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

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

.empty-cart {
    text-align: center;
    padding: 3rem 0;
}

.empty-cart i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: var(--gray);
}

.empty-sub {
    font-size: 0.9rem;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light);
}

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

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

.cart-item-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--gray);
    font-size: 0.9rem;
}

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

.cart-item-quantity button {
    background: var(--light);
    border: 1px solid var(--border);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.cart-item-quantity button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cart-item-quantity button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--light);
    color: var(--gray);
    border-color: var(--border);
}

.cart-item-total {
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.remove-item {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.9rem;
}

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

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

/* Hero Section */
/* Hero Section - Updated with Background Image */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Optional: Add a subtle overlay pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* Update delivery check styling to work on dark background */
.delivery-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.delivery-input-wrapper i {
    padding: 0.75rem 0 0.75rem 1.25rem;
    color: var(--gray);
}

.delivery-input-wrapper input {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.delivery-input-wrapper input::placeholder {
    color: #6c757d;
}

.delivery-input-wrapper button {
    padding: 0.75rem 1.75rem;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.delivery-input-wrapper button:hover {
    background: var(--primary-dark);
}

#deliveryResult {
    margin-top: 0.75rem;
}

.delivery-success {
    color: #28a745;
    padding: 0.5rem 1rem;
    background: rgba(212, 237, 218, 0.95);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.delivery-error {
    color: #dc3545;
    padding: 0.5rem 1rem;
    background: rgba(248, 215, 218, 0.95);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* Hero decorative elements - optional Vietnam/Hanoi touches */
.hero .hero-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1));
    z-index: 1;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3.5rem;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .delivery-input-wrapper {
        flex-wrap: wrap;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.98);
    }

    .delivery-input-wrapper input {
        flex-basis: 100%;
        padding: 0.75rem 1rem;
        text-align: center;
        border-bottom: 1px solid #e9ecef;
    }

    .delivery-input-wrapper button {
        flex: 1;
        padding: 0.75rem;
        border-radius: 0 0 12px 12px;
    }

    .delivery-input-wrapper i {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0 2.5rem;
        min-height: 350px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

/* Flash Messages */
.flash-message {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    position: relative;
    transition: opacity 0.3s;
}

.flash-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.flash-message i {
    margin-right: 0.5rem;
}

.flash-container {
    position: fixed;
    top: 5.5rem;
    right: 1rem;
    width: min(420px, calc(100vw - 2rem));
    display: grid;
    gap: 0.75rem;
    z-index: 500;
}

.toast-message {
    margin: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    animation: toast-slide-in 0.22s ease-out;
}

.toast-message.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Section */
.category-section {
    padding: 2rem 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-header h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-count {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.product-card:focus-visible {
    outline: 3px solid rgba(226, 55, 68, 0.2);
    outline-offset: 3px;
}

.badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    z-index: 2;
}

.product-card-badges .badge {
    position: static;
}

.badge.best-seller {
    background: #ff6b6b;
    color: white;
}

.badge.combo {
    background: var(--accent);
    color: var(--dark);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.placeholder-image {
    font-size: 3rem;
    color: #adb5bd;
}

.product-info {
    padding: 1rem 1.25rem 1.25rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

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

.in-stock {
    color: #28a745;
    font-size: 0.85rem;
}

.in-stock i {
    margin-right: 0.25rem;
}

.out-of-stock {
    color: #dc3545;
    font-size: 0.85rem;
}

.out-of-stock i {
    margin-right: 0.25rem;
}

.add-to-cart-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.add-to-cart-form.is-submitting {
    opacity: 0.9;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--light);
    border: none;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.qty-input {
    width: 44px;
    height: 34px;
    text-align: center;
    border: none;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    background: white;
}

.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

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

.add-to-cart:hover:not(:disabled) {
    background: var(--primary-dark);
}

.add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(45, 52, 54, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 300;
}

.product-modal.active {
    display: flex;
}

.product-modal-dialog {
    position: relative;
    width: min(900px, 100%);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(45, 52, 54, 0.08);
    color: var(--dark);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.2fr);
}

.product-modal-image {
    min-height: 320px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-carousel-viewport {
    width: 100%;
    height: 100%;
}

.product-modal-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.product-modal-carousel-slide {
    min-width: 100%;
    height: 100%;
}

.product-modal-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(45, 52, 54, 0.55);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.product-modal-carousel-control.prev {
    left: 0.75rem;
}

.product-modal-carousel-control.next {
    right: 0.75rem;
}

.product-modal-carousel-control:hover {
    background: rgba(45, 52, 54, 0.78);
}

.product-modal-carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 0.9rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 2;
}

.product-modal-carousel-indicator {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.product-modal-carousel-indicator.active {
    background: #fff;
}

.product-modal-content {
    padding: 2rem;
}

.product-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-modal-badges .badge {
    position: static;
}

.product-modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.product-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-modal-short-description,
.product-modal-description {
    color: var(--gray);
}

.product-modal-short-description {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.product-modal-description {
    margin-bottom: 1.25rem;
}

.product-modal-groups {
    display: grid;
    gap: 1rem;
}

.product-modal-actions {
    margin-top: 1.5rem;
    align-items: stretch;
}

.product-modal-actions .quantity-selector {
    flex-shrink: 0;
}

.product-modal-actions .qty-input {
    width: 56px;
}

.product-modal-actions .add-to-cart {
    min-width: 180px;
}

.product-modal-group {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fffaf7;
}

.product-modal-group h4 {
    font-size: 1rem;
    margin-bottom: 0.65rem;
}

.product-modal-group ul {
    padding-left: 1.2rem;
    color: var(--gray);
}

.product-modal-group li + li {
    margin-top: 0.35rem;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #f8f9fa;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin: 0.25rem 0;
    color: #adb5bd;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .category-header h2 {
        font-size: 1.4rem;
    }

    .cart-sidebar {
        max-width: 100%;
    }

    .product-modal {
        padding: 1rem;
    }

    .product-modal-grid {
        grid-template-columns: 1fr;
        height: 100%;
    }

    .product-modal-image {
        min-height: 240px;
    }

    .product-modal-content {
        padding: 1.25rem;
    }

    .product-modal-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.65rem;
    }

    .product-modal-content h3 {
        font-size: 1.32rem;
        margin-bottom: 0.4rem;
        line-height: 1.25;
    }

    .product-modal-short-description {
        font-size: 0.96rem;
        line-height: 1.35;
        margin-bottom: 0.4rem;
    }

    .product-modal-description {
        font-size: 0.92rem;
        line-height: 1.35;
        margin-bottom: 0.65rem;
    }

    .product-modal-groups {
        gap: 0.55rem;
    }

    .product-modal-group {
        padding: 0.68rem 0.75rem;
    }

    .product-modal-group h4 {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
    }

    .product-modal-group ul {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .product-modal-actions {
        margin-top: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-info h3 {
        font-size: 0.95rem;
    }

    .add-to-cart-form:not(.product-modal-actions) {
        flex-direction: column;
    }

    .add-to-cart-form:not(.product-modal-actions) .add-to-cart {
        width: 100%;
    }

    .product-modal-actions {
        gap: 0.45rem;
    }

    .product-modal-actions .quantity-selector {
        width: auto;
    }

    .product-modal-image {
        aspect-ratio: 5 / 4;
    }

    .product-modal-meta {
        gap: 0.55rem;
    }

    .product-modal-content h3 {
        font-size: 1.22rem;
    }

    .product-modal-short-description {
        font-size: 0.92rem;
    }

    .product-modal-description {
        font-size: 0.9rem;
    }

    .product-modal-actions .qty-btn,
    .product-modal-actions .qty-input {
        height: 32px;
    }

    .product-modal-actions .qty-btn {
        width: 32px;
    }

    .product-modal-actions .qty-input {
        width: 40px;
        font-size: 0.9rem;
    }

    .product-modal-actions .add-to-cart {
        min-width: 0;
        width: 100%;
        padding: 0.5rem 0.65rem;
        font-size: 0.92rem;
        gap: 0.35rem;
    }

    .product-modal-carousel-control {
        width: 32px;
        height: 32px;
    }

    .product-modal-carousel-control.prev {
        left: 0.5rem;
    }

    .product-modal-carousel-control.next {
        right: 0.5rem;
    }
}

/* Language Toggle */
.language-toggle {
    margin-right: 0.5rem;
}

.lang-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    color: #333;
    min-width: 60px;
}

.lang-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* Hero Section Updates */
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .lang-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .lang-btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        min-width: 45px;
    }
}

/* Checkout Contact Details */
.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.checkout-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.checkout-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.checkout-form .form-group {
    margin-bottom: 1rem;
}

.checkout-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(226, 55, 68, 0.12);
}

.checkout-form textarea {
    min-height: 110px;
    resize: vertical;
}

@media (max-width: 768px) {
    .checkout-form {
        padding: 1.25rem;
    }

    .checkout-form .form-row {
        grid-template-columns: 1fr;
    }
}