/*
Theme Name: Glow Chocoloom
Description: Luxury Gifting & Premium Confectionery Theme
Author: Crafts Chocoloom
Version: 1.2
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


:root {
    /* Color Palette */
    --black: #1a1a1a;
    --dark-brown: #3E2723;
    --brown: #6B4F3D;
    --biscuit: #E8D8C8;
    --light-biscuit: #F5EFEB;
    --white: #ffffff;
    --gray: #f9f9f9;
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing & Transitions */
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-primary);
    background-color: var(--light-biscuit);
    color: var(--black);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--dark-brown);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.loader.fadeOut {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    color: var(--biscuit);
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    opacity: 0;
    animation: fadeInOut 2s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    30% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; }
}

/* Header */
header {
    background-color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    z-index: 101;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.logo span {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-brown);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.cart-btn-header {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-brown);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 101;
}

.cart-badge {
    background-color: var(--brown);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50px;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
}

@keyframes logoPulse {
    from { text-shadow: 0 0 10px rgba(107, 79, 61, 0.2); }
    to { text-shadow: 0 0 25px rgba(107, 79, 61, 0.6); }
}

@keyframes imageGlow {
    from { filter: drop-shadow(0 0 5px rgba(107, 79, 61, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(107, 79, 61, 0.8)); }
}

.logo:hover {
    color: var(--brown);
    text-shadow: 0 0 20px rgba(107, 79, 61, 0.5);
    transform: scale(1.02);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brown);
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 100;
}

.mobile-nav.active {
    height: auto;
    padding-bottom: 2rem;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-nav-content a {
    text-decoration: none;
    color: var(--dark-brown);
    font-weight: 600;
    padding: 1rem 2rem;
    transition: background var(--transition);
}

.mobile-nav-content a:hover {
    background-color: var(--light-biscuit);
    color: var(--brown);
}

.mobile-nav-content a.active {
    background-color: var(--light-biscuit);
    color: var(--brown);
    border-left: 4px solid var(--brown);
}

.header-icons {
    display: flex;
    gap: 1.5rem;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--dark-brown);
    transition: transform var(--transition);
}

.icon-btn:hover {
    transform: scale(1.1);
    color: var(--brown);
}



/* Instructions Section */
.instructions-section {
    padding: 6rem 2rem;
    background-color: var(--white);
    border-radius: 40px;
    margin: 4rem 0;
    box-shadow: 0 15px 50px rgba(0,0,0,0.02);
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.instruction-step {
    text-align: center;
    position: relative;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.instruction-step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--dark-brown);
    color: var(--biscuit);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(62, 39, 35, 0.2);
}

.instruction-step h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.instruction-step p {
    color: var(--brown);
    line-height: 1.6;
    font-size: 1rem;
}

/* Reviews Section */
.reviews-section {
    margin-top: 4rem;
    padding: 4rem 0;
    background: var(--light-biscuit);
    border-radius: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.review-card {
    padding: 2rem;
    border-radius: 20px;
    background: var(--light-biscuit);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--brown);
    opacity: 0.1;
    font-family: serif;
}

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

.review-name {
    font-weight: 700;
    color: var(--dark-brown);
}

.review-date {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Contact Page */
.contact-container {
    max-width: 900px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-brown);
}

.contact-details {
    margin-top: 2rem;
}

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

.contact-item span {
    font-size: 1.5rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 2rem;
    transition: transform var(--transition);
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--biscuit);
    border-radius: 10px;
    background: var(--light-biscuit);
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: var(--dark-brown);
    color: var(--biscuit);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

/* Main Content Area */
main {
    max-width: 1300px; /* Slightly wider for better space usage */
    margin: 1rem auto;
    padding: 0 1.5rem;
    min-height: 70vh;
}


/* Home view specific styles */
.hero-section {
    text-align: center;
    padding: 2rem 1rem 1rem;
    margin-bottom: 1rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



/* Removed hero-section::before */



.hero-section h2, .hero-section p {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--dark-brown);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-section p {
    color: var(--brown);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}


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

/* Trending Section */
.trending-section {
    margin-top: 5rem;
    animation: fadeUp 1s ease-out 0.4s backwards;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brown);
    margin: 1rem auto;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
}


.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fadeUp 0.8s ease-out backwards;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(107, 79, 61, 0.2);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(62, 39, 35, 0.8) 0%, rgba(62, 39, 35, 0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.category-title {
    color: var(--biscuit);
    font-family: var(--font-serif);
    font-size: 1.8rem;
}

/* Product View */
.back-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    color: var(--brown);
    cursor: pointer;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.back-btn:hover {
    text-decoration: underline;
}

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

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
}


.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform var(--transition);
    animation: fadeUp 0.6s ease-out backwards;
    position: relative;
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bestseller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(212, 175, 55, 0.9); /* Gold */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.out-of-stock-btn {
    background: #a3a3a3 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.7;
}


.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-info {
    padding: 1.2rem;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    color: var(--brown);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-rating {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.8rem;
}

.add-to-cart {
    flex: 1;
    padding: 0.8rem;
    background-color: var(--dark-brown);
    color: var(--biscuit);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition);
}

.whatsapp-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform var(--transition);
}

.whatsapp-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.add-review-container {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--light-biscuit);
    border-radius: 20px;
    text-align: center;
}

.review-form-inline {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.review-form-inline input, .review-form-inline select {
    padding: 0.8rem;
    border: 1px solid var(--biscuit);
    border-radius: 8px;
    outline: none;
}

.review-form-inline input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.review-form-inline button {
    padding: 0.8rem 2rem;
    background: var(--dark-brown);
    color: var(--biscuit);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.add-to-cart:hover {
    background-color: var(--brown);
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--light-biscuit);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--biscuit);
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--light-biscuit);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
}

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    color: white;
    border-radius: 5px 0 0 5px;
    outline: none;
    flex: 1;
}

.newsletter-form button {
    background-color: var(--brown);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 0.8rem;
    }

    .header-content {
        height: 60px;
        gap: 0.2rem;
    }

    .logo span {
        display: none;
    }

    .logo-img {
        height: 32px;
    }

    .mobile-nav {
        top: 60px;
    }

    .hero-section h2 {
        font-size: clamp(1.2rem, 7vw, 1.8rem);
    }

    .hero-section p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    /* Side-by-side view for mobile */
    .categories-grid, .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem; /* Tighter gap */
        padding: 0; /* Remove extra grid padding to use main container padding */
    }


    .category-card {
        aspect-ratio: 1; /* Square cards look better side-by-side */
    }

    .category-title {
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }

    .category-overlay {
        padding: 0.5rem;
        justify-content: center;
    }

    .product-card .product-title {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        height: 2.4rem; /* Ensure consistent height for titles */
        overflow: hidden;
    }

    .product-info {
        padding: 0.8rem;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .product-rating {
        font-size: 0.75rem;
    }

    .add-to-cart {
        padding: 0.6rem;
        font-size: 0.75rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .whatsapp-icon-btn {
        width: 100%;
        height: 35px;
    }


    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .newsletter-form input, .newsletter-form button {
        border-radius: 5px;
        width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        margin: 1rem 0;
        gap: 1.5rem;
    }
    
    main {
        padding: 0 0.8rem; /* Tighter side padding on mobile */
    }

}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-header {
    padding: 1.5rem;
    background-color: var(--dark-brown);
    color: var(--biscuit);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: var(--biscuit);
    font-size: 2rem;
    cursor: pointer;
}

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

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

.cart-instructions label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 0.5rem;
}

.cart-instructions textarea {
    width: 100%;
    height: 80px;
    padding: 0.8rem;
    border: 1px solid var(--biscuit);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
}

.cart-instructions textarea:focus {
    border-color: var(--brown);
    box-shadow: 0 0 0 3px rgba(107, 79, 61, 0.1);
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-biscuit);
    animation: fadeIn 0.3s ease-out;
}

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

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--brown);
    font-weight: 700;
}

.empty-cart-msg {
    text-align: center;
    color: var(--brown);
    margin-top: 3rem;
    opacity: 0.6;
}

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

.cart-location-select {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-location-select label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brown);
}

.cart-location-select select {
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--biscuit);
    background: white;
    font-family: var(--font-primary);
    cursor: pointer;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px dashed var(--biscuit);
    color: var(--dark-brown);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--dark-brown);
    color: var(--biscuit);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--biscuit);
    background: var(--white);
    color: var(--dark-brown);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.2s ease;
}

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

.qty-val {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-total {
    font-weight: 700;
    color: var(--dark-brown);
    font-size: 0.95rem;
    align-self: center;
}

.add-to-cart.added {
    background-color: #2e7d32 !important;
    color: white !important;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-biscuit);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--dark-brown);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--brown);
}

.checkout-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dark-brown);
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--light-biscuit);
    padding-bottom: 0.6rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.checkout-form input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: var(--white);
    color: var(--dark-brown);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.checkout-form input:focus {
    border-color: var(--brown);
    box-shadow: 0 0 0 4px rgba(107, 79, 61, 0.1), 0 4px 10px rgba(0,0,0,0.05);
    background-color: #fff;
}

.checkout-form input::placeholder {
    color: #9e9e9e;
    font-size: 0.9rem;
}

.checkout-summary-mini {
    background-color: var(--light-biscuit);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-brown);
}

.place-order-btn {
    width: 100%;
    padding: 1.2rem;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.place-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-sidebar.active {
        right: 0;
    }

    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding-bottom: 2rem;
    }

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

    .modal-header h2 {
        font-size: 1.2rem;
    }
}
