:root {
            --primary: #1B7F5F;
            --primary-gradient: linear-gradient(135deg, #1B7F5F 0%, #2AA77F 100%);
            --primary-dark: #156047;
            --accent: #FFD76A;
            --accent-gradient: linear-gradient(135deg, #FFD76A 0%, #FFCB4D 100%);
            --danger: #E53935;
            --success: #10B981;
            --text: #07221A;
            --text-light: #374151;
            --muted: #6B7280;
            --card-bg: #ffffff;
            --bg-light: #F5FBF9;
            --glow-primary: 0 0 30px rgba(27, 127, 95, 0.4);
            --glow-accent: 0 0 25px rgba(255, 215, 106, 0.5);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * { box-sizing: border-box; }

        html, body {
            scroll-behavior: smooth;
            font-family: 'Poppins', sans-serif;
            color: var(--text);
            background: linear-gradient(135deg, #F5FBF9 0%, #E6F6F0 100%);
            overflow-x: hidden;
        }

        /* ✨ HEADER */
        .header {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(30px);
            border-bottom: 1px solid rgba(27,127,95,0.1);
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            padding: 1.2rem 0;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 900;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.02em;
        }

        .search-box {
            position: relative;
            flex: 1;
            max-width: 500px;
            margin: 0 1.5rem;
        }

        .search-box input {
            border-radius: 50px;
            border: 2px solid transparent;
            padding: 0.8rem 1.5rem 0.8rem 3rem;
            background: rgba(245,251,249,0.8);
            backdrop-filter: blur(10px);
            transition: var(--transition);
            width: 100%;
        }

        .search-box input:focus {
            border-color: var(--primary);
            background: white;
            box-shadow: var(--glow-primary);
        }

        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--muted);
        }

        .cart-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--danger);
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 800;
        }
        /* mobile tweak: closer to the corner of smaller icon */
@media (max-width: 768px) {
    .cart-badge {
        top: -4px;
        right: -4px;
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

/* ✅ FORCE 2 PRODUCTS PER ROW */
@media(max-width: 992px){
    #productsGrid{
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .product-card{
        border-radius: 14px !important;
    }

    .product-image{
        height: 160px !important;
    }

    .product-info h3{
        font-size: 14px !important;
        -webkit-line-clamp: 2;
    }

    .current-price{
        font-size: 18px !important;
    }

    .add-to-cart{
        padding: 10px 12px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }
}



        .header-btn {
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            border: none;
            background: var(--primary-gradient);
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            margin-left: 0.5rem;
        }

        .header-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--glow-primary);
        }

        /* 🎠 HERO CAROUSEL */
        .carousel-section {
            margin-top: 2rem;
            margin-bottom: 3rem;
        }

        .carousel-item {
            border-radius: 32px;
            overflow: hidden;
            box-shadow: 0 40px 100px rgba(0,0,0,0.15);
        }

        .carousel-slide {
            min-height: 400px;
            background: linear-gradient(135deg, rgba(230, 246, 240, 0.95) 0%, rgba(253, 251, 244, 0.9) 50%, rgba(232, 245, 255, 0.85) 100%);
            display: flex;
            align-items: center;
            padding: 3rem;
            position: relative;
            overflow: hidden;
        }

        .carousel-slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 80%, rgba(27,127,95,0.08) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(255,215,106,0.12) 0%, transparent 50%);
            pointer-events: none;
        }

        .carousel-content {
            flex: 1;
            z-index: 2;
            animation: slideInLeft 0.8s ease-out;
        }

        .carousel-image {
            flex: 1;
            text-align: center;
            z-index: 2;
            animation: slideInRight 0.8s ease-out;
        }

        .carousel-image img {
            max-height: 350px;
            border-radius: 24px;
            box-shadow: 0 32px 80px rgba(0,0,0,0.2);
        }

        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-50px); }
            to { opacity: 1; transform: translateX(0); }
        }

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

        .carousel-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255,255,255,0.98);
            padding: 0.6rem 1.5rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 700;
            margin-bottom: 1.2rem;
            box-shadow: 0 8px 30px rgba(255,215,106,0.4);
            animation: slideInUp 0.8s ease-out 0.2s both;
        }

        .carousel-badge span {
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

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

        .carousel-title {
            font-size: clamp(2rem, 5vw, 3.2rem);
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 1.2rem;
            background: linear-gradient(135deg, var(--text) 0%, var(--primary) 60%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .carousel-subtitle {
            font-size: 1.1rem;
            color: var(--text-light);
            line-height: 1.8;
            margin-bottom: 1.5rem;
            max-width: 500px;
        }

       .carousel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 16px 40px rgba(27,127,95,0.4);
    margin-right: 1rem;
    text-decoration: none;          /* remove underline */
}

.carousel-btn:hover,
.carousel-btn:focus {
    text-decoration: none;          /* keep it removed on hover/focus */
}


        .carousel-btn:hover {
            transform: translateY(-4px);
            box-shadow: 0 28px 70px rgba(27,127,95,0.6);
        }

        .carousel-btn-outline {
            background: rgba(255,255,255,0.9);
            color: var(--primary);
            border: 2px solid rgba(27,127,95,0.3);
            backdrop-filter: blur(20px);
        }

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

        /* 🌟 FEATURED BENEFITS */
        .featured-section {
            margin: 4rem 0;
            padding: 3rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 32px;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .featured-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            border-radius: 50%;
        }

        .featured-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            position: relative;
            z-index: 2;
        }

        .featured-card {
            background: rgba(255,255,255,0.15);
            backdrop-filter: blur(20px);
            padding: 2rem;
            border-radius: 24px;
            border: 1px solid rgba(255,255,255,0.3);
            text-align: center;
            transition: var(--transition);
        }

        .featured-card:hover {
            background: rgba(255,255,255,0.25);
            transform: translateY(-10px);
        }

        .featured-icon {
            font-size: 3.5rem;
            margin-bottom: 1rem;
        }

        .featured-title {
            font-size: 1.3rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
        }

        .featured-subtitle {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        /* 🏷️ CATEGORY SECTION */
        .category-section {
            margin-bottom: 3rem;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 2rem;
        }

        .section-title {
            font-size: 2rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--text) 0%, var(--primary) 60%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .section-subtitle {
            font-size: 1rem;
            color: var(--muted);
            font-weight: 500;
        }

        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .category-card {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 1.5rem;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid rgba(255,255,255,0.5);
            box-shadow: 0 12px 40px rgba(0,0,0,0.08);
            position: relative;
            overflow: hidden;
        }

        .category-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--accent-gradient);
        }

        .category-card:hover {
            transform: translateY(-10px) scale(1.03);
            box-shadow: 0 40px 100px rgba(255,215,106,0.3);
            border-color: rgba(255,215,106,0.5);
        }

        .category-icon {
            font-size: 2.5rem;
            margin-bottom: 0.8rem;
        }

        .category-name {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 0.3rem;
        }

        .category-count {
            font-size: 0.8rem;
            color: var(--muted);
        }

        /* 📱 GLOBAL MOBILE ADJUSTMENTS */
@media (max-width: 768px) {

    html, body {
        font-size: 15px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* ✨ HEADER */
    .header {
        padding: 0.75rem 0;
    }

    .header .d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.4rem;
        text-align: center;
    }

    .search-box {
        margin: 0;
        max-width: 100%;
        order: 2;
    }


    /* 🎠 HERO CAROUSEL */
    .carousel-slide {
        min-height: auto;
        flex-direction: column;
        padding: 1.8rem 1.4rem;
        text-align: center;
        gap: 1.5rem;
    }

    .carousel-content,
    .carousel-image {
        width: 100%;
    }

    .carousel-badge {
        margin-bottom: 0.9rem;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }

    .carousel-title {
        font-size: 1.8rem;
    }

    .carousel-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .carousel-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .carousel-btn,
    .carousel-btn-outline {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.6rem;
        margin-right: 0;
    }

    .carousel-image img {
        max-height: 220px;
        width: 100%;
        object-fit: cover;
    }

    /* 🌟 FEATURED BENEFITS */
    .featured-section {
        margin: 2.5rem 0;
        padding: 1.8rem 1.4rem;
        border-radius: 24px;
    }

    .featured-card {
        padding: 1.4rem 1.2rem;
    }

    .featured-icon {
        font-size: 2.4rem;
    }

    /* 🏷️ CATEGORY SECTION */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

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

    .category-card {
        padding: 1.1rem 0.9rem;
        border-radius: 18px;
    }

    .category-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .category-name {
        font-size: 0.95rem;
    }

    .category-count {
        font-size: 0.75rem;
    }
}

/* extra-small phones */
@media (max-width: 480px) {

    .category-grid {
        grid-template-columns: 1fr;
    }

    .carousel-title {
        font-size: 1.6rem;
    }

    .carousel-subtitle {
        font-size: 0.9rem;
    }
}


        /* 🎨 COLORFUL BANNERS */
        .color-banner {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 3rem 0;
        }

        .banner-block {
            padding: 3rem 2rem;
            border-radius: 28px;
            color: white;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: var(--transition);
            min-height: 200px;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
        }

        .banner-block::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0;
            transition: var(--transition);
            z-index: 1;
        }

        .banner-block:hover { 
            transform: translateY(-8px);
            box-shadow: 0 24px 60px rgba(0,0,0,0.25);
        }

        .banner-block:hover::before { opacity: 0.1; background: rgba(0,0,0,0.5); }

        .banner-content {
            z-index: 2;
            flex: 1;
        }

        .banner-title {
            font-size: 1.8rem;
            font-weight: 900;
            margin-bottom: 0.5rem;
        }

        .banner-subtitle {
            font-size: 0.95rem;
            opacity: 0.95;
        }

        .banner-btn {
            padding: 0.7rem 1.5rem;
            background: rgba(255,255,255,0.25);
            border: 2px solid white;
            color: white;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 700;
            transition: var(--transition);
            backdrop-filter: blur(10px);
        }

        .banner-btn:hover {
            background: white;
            color: inherit;
        }

        .banner-emoji {
            font-size: 4rem;
            opacity: 0.3;
        }

        .banner-organic { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
        .banner-spice { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
        .banner-dairy { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
        .banner-snack { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
        .banner-fresh { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
        .banner-deal { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }

        /* 🛒 PRODUCTS GRID – mobile first */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;                 /* phones: single column */
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* ≥ 480px: two columns */
@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* ≥ 768px: original auto-fill behaviour */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 2rem;
    }
}

/* Card tweaks for small screens */
.product-card {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.2rem 1rem 2rem;
    position: relative;
    border: 1px solid rgba(255,255,255,0.5);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 20px 60px rgba(15,118,92,0.12);
    display: flex;
    flex-direction: column;
}

/* Hover only on devices that support hover */
@media (hover: hover) {
    .product-card:hover::before { transform: scaleX(1); }

    .product-card:hover {
        transform: translateY(-12px) scale(1.01);
        box-shadow: 0 50px 120px rgba(15,118,92,0.25);
        border-color: rgba(27,127,95,0.3);
    }
}

.product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1rem;
    transition: var(--transition);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Actions: stack on very small devices */
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 400px) {
    .product-actions {
        flex-direction: column;
    }
    .btn-add-cart {
        width: 100%;
    }
    .btn-quick-view {
        width: 100%;
        border-radius: 18px;
    }
}


        /* ⭐ TESTIMONIALS */
        .testimonials-section {
            margin: 4rem 0;
            padding: 3rem;
            background: rgba(255,255,255,0.5);
            backdrop-filter: blur(20px);
            border-radius: 32px;
            border: 1px solid rgba(255,255,255,0.3);
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .testimonial-card {
            background: white;
            padding: 2rem;
            border-radius: 24px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.12);
            transition: var(--transition);
        }

        .testimonial-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 40px 100px rgba(0,0,0,0.2);
        }

        .stars {
            color: #fbbf24;
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }

        .testimonial-text {
            color: var(--text);
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
            line-height: 1.8;
            font-style: italic;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 1.3rem;
        }

        .author-name {
            font-weight: 700;
            color: var(--text);
        }

        .author-role {
            font-size: 0.8rem;
            color: var(--muted);
        }

        /* 📊 STATS */
        .stats-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }

        .stat-card {
            background: linear-gradient(135deg, rgba(27,127,95,0.1), rgba(255,215,106,0.1));
            padding: 2.5rem 2rem;
            border-radius: 24px;
            border: 1px solid rgba(27,127,95,0.2);
            text-align: center;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 900;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 1rem;
            color: var(--text);
            font-weight: 600;
        }

        /* 📧 NEWSLETTER */
        .newsletter-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 3.5rem 2rem;
            border-radius: 32px;
            margin: 3rem 0;
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .newsletter-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            border-radius: 50%;
        }

        .newsletter-content {
            max-width: 600px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .newsletter-title {
            font-size: 2rem;
            font-weight: 900;
            margin-bottom: 1rem;
        }

        .newsletter-subtitle {
            font-size: 1rem;
            opacity: 0.95;
            margin-bottom: 2rem;
        }

        .newsletter-form {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .newsletter-input {
            flex: 1;
            min-width: 250px;
            padding: 1rem 1.5rem;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
        }

        .newsletter-btn {
            padding: 1rem 2.5rem;
            border: none;
            background: white;
            color: #667eea;
            border-radius: 25px;
            font-weight: 800;
            cursor: pointer;
            transition: var(--transition);
            font-size: 1rem;
        }

        .newsletter-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 40px rgba(0,0,0,0.2);
        }

        /* 📱 Testimonials, stats & newsletter */
@media (max-width: 768px) {

    .testimonials-section {
        margin: 2.5rem 0;
        padding: 1.8rem 1.3rem;
        border-radius: 24px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }

    .testimonial-card {
        padding: 1.5rem 1.2rem;
        border-radius: 20px;
    }

    .testimonial-text {
        font-size: 0.9rem;
        margin-bottom: 1.1rem;
    }

    .author-name {
        font-size: 0.95rem;
    }

    .stats-section {
        grid-template-columns: 1fr 1fr;
        gap: 1.3rem;
        margin: 2.5rem 0;
    }

    .stat-card {
        padding: 1.6rem 1.1rem;
        border-radius: 20px;
    }

    .stat-number {
        font-size: 2.1rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .newsletter-section {
        padding: 2.2rem 1.4rem;
        margin: 2.5rem 0;
        border-radius: 26px;
    }

    .newsletter-title {
        font-size: 1.5rem;
        margin-bottom: 0.7rem;
    }

    .newsletter-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.4rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-input {
        min-width: 0;
        width: 100%;
    }

    .newsletter-btn {
        width: 100%;
        margin-top: 0.6rem;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr;
    }

    .newsletter-title {
        font-size: 1.3rem;
    }

    .newsletter-subtitle {
        font-size: 0.85rem;
    }
}


        /* 🎁 FOOTER */
        .footer-premium {
            background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
            color: white;
            padding: 4rem 0 2rem;
            margin-top: 4rem;
        }

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

        .footer-column h4 {
            font-size: 1.2rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            color: white;
        }

        .footer-column ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

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

        .footer-column a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: var(--transition);
            font-weight: 500;
        }

        .footer-column a:hover {
            color: var(--accent);
            transform: translateX(4px);
        }

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

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 1.5rem 0;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            transition: var(--transition);
            font-size: 1.2rem;
        }

        .social-icon:hover {
            background: var(--accent);
            transform: translateY(-4px);
        }

        /* 🛍️ CART SIDEBAR */
        .cart-sidebar {
            position: fixed;
            right: -400px;
            top: 0;
            width: 400px;
            height: 100vh;
            background: white;
            box-shadow: -10px 0 40px rgba(0,0,0,0.2);
            transition: right 0.3s ease;
            z-index: 2000;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

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

        .cart-header {
            padding: 2rem;
            border-bottom: 1px solid rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-header h3 {
            font-size: 1.5rem;
            font-weight: 900;
            margin: 0;
        }

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

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

        .cart-item {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid rgba(0,0,0,0.1);
        }

        .cart-item-image {
            width: 80px;
            height: 80px;
            border-radius: 12px;
            object-fit: cover;
        }

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

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

        .cart-item-price {
            color: var(--danger);
            font-weight: 800;
            margin-bottom: 0.5rem;
        }

        .cart-item-qty {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            width: fit-content;
            border-radius: 20px;
            border: 1px solid rgba(0,0,0,0.1);
            padding: 0.3rem 0.6rem;
        }

        .cart-item-qty button {
            background: none;
            border: none;
            cursor: pointer;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-weight: 700;
        }

        .cart-item-remove {
            background: none;
            border: none;
            color: var(--muted);
            cursor: pointer;
            margin-top: 0.5rem;
            font-size: 0.8rem;
            text-decoration: underline;
        }

        .cart-footer {
            padding: 2rem;
            border-top: 1px solid rgba(0,0,0,0.1);
        }

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

        .cart-checkout {
            width: 100%;
            padding: 1rem;
            border-radius: 25px;
            border: none;
            background: var(--primary-gradient);
            color: white;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 16px 40px rgba(27,127,95,0.4);
        }

        .cart-checkout:hover {
            transform: translateY(-2px);
            box-shadow: 0 24px 60px rgba(27,127,95,0.6);
        }

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

        .cart-empty-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        /* 🎓 STORY SECTION */
        .story-section {
            background: white;
            padding: 4rem 2rem;
            border-radius: 32px;
            margin: 3rem 0;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
        }

        .story-content {
            max-width: 900px;
            margin: 0 auto;
        }

        .story-title {
            font-size: 2.5rem;
            font-weight: 900;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1.5rem;
        }

        .story-text {
            font-size: 1.1rem;
            color: var(--text-light);
            line-height: 1.9;
            margin-bottom: 1.5rem;
        }

        .story-highlight {
            font-weight: 700;
            color: var(--primary);
        }

        /* 📱 FOOTER & CART & STORY – mobile */
@media (max-width: 768px) {

    /* 🎁 FOOTER */
    .footer-premium {
        padding: 2.5rem 0 1.5rem;
        margin-top: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        margin-bottom: 2rem;
    }

    .footer-column h4 {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    .footer-column p,
    .footer-column li {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 1rem;
        margin: 1.2rem 0;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }

    /* 🛍️ CART SIDEBAR */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

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

    .cart-header {
        padding: 1.3rem 1.1rem;
    }

    .cart-items {
        padding: 1.1rem;
    }

    .cart-item {
        gap: 0.8rem;
        margin-bottom: 1.1rem;
        padding-bottom: 1.1rem;
    }

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

    .cart-footer {
        padding: 1.4rem 1.1rem 1.6rem;
    }

    .cart-total {
        font-size: 1.05rem;
        margin-bottom: 1.1rem;
    }

    .cart-checkout {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        border-radius: 20px;
    }

    .cart-empty {
        padding: 2.4rem 1.6rem;
        font-size: 0.9rem;
    }

    /* 🎓 STORY SECTION */
    .story-section {
        padding: 2.3rem 1.4rem;
        margin: 2.5rem 0;
        border-radius: 26px;
    }

    .story-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .story-text {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.1rem;
    }
}

/* extra‑small phones */
@media (max-width: 480px) {
    .footer-bottom p {
        margin-bottom: 0.4rem;
    }

    .cart-item-name {
        font-size: 0.9rem;
    }

    .story-title {
        font-size: 1.6rem;
    }
}

       

            /* Overlay for bottom sheet */
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0,0,0,0.4) !important;
                z-index: 1500 !important;
                transition: opacity 0.3s ease !important;
                opacity: 0;
                pointer-events: none;
            }

                opacity: 1;
                pointer-events: all;
            }

            /* Checkout Modal - Full Screen on Mobile */
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100% !important;
                height: 100vh !important;
                background: rgba(0,0,0,0.9) !important;
                z-index: 3000 !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
                display: none !important;

            .checkout-container {
                background: white;
                width: 100% !important;
                max-width: none !important;
                margin: 0 !important;
                border-radius: 0 !important;
                overflow: visible !important;
                box-shadow: none !important;
                animation: mobileCheckoutSlideUp 0.4s ease;
                min-height: 100vh;
                display: flex;
                flex-direction: column;
            }

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

            .checkout-close {
                position: fixed;
                top: 1.2rem;
                right: 1.2rem;
                background: white;
                border: none;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.3rem;
                color: var(--text);
                transition: var(--transition);
                z-index: 100;
                box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            }

            .checkout-close:active {
                background: #f0f0f0;
                transform: scale(0.95);
            }

            /* Progress Indicator - Mobile Horizontal Stepper */
            .checkout-progress {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 1.2rem 1rem;
                background: linear-gradient(135deg, #F5FBF9 0%, #E6F6F0 100%);
                position: sticky;
                top: 0;
                z-index: 10;
                gap: 0.5rem;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .progress-step {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 0.4rem;
                flex: 0 0 auto;
                min-width: fit-content;
                position: relative;
                z-index: 2;
            }

            .progress-number {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background: white;
                border: 3px solid #ddd;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 900;
                font-size: 1rem;
                color: var(--muted);
                transition: var(--transition);
                flex-shrink: 0;
            }

            .progress-step.active .progress-number {
                background: var(--primary-gradient);
                color: white;
                border-color: var(--primary);
                box-shadow: var(--glow-primary);
            }

            .progress-step.completed .progress-number {
                background: var(--success);
                color: white;
                border-color: var(--success);
            }

            .progress-label {
                font-size: 0.7rem;
                font-weight: 600;
                color: var(--muted);
                text-align: center;
                max-width: 50px;
                line-height: 1.2;
            }

            .progress-step.active .progress-label {
                color: var(--primary);
                font-weight: 700;
            }

            .progress-line {
                flex: 0 0 auto;
                width: 8px;
                height: 3px;
                background: #ddd;
                margin: 0;
                position: relative;
            }

            .progress-line.completed {
                background: var(--success);
            }

            /* 📱 Bottom‑sheet overlay */
.bottomsheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

/* visible state (add .is-open via JS) */
.bottomsheet-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* 📱 Checkout modal – full screen on mobile */
.checkout-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;                /* hidden by default */
}

/* visible state */
.checkout-modal.is-open {
    display: block;
}

.checkout-container {
    background: white;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    animation: mobileCheckoutSlideUp 0.4s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Close button */
.checkout-close {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text);
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.checkout-close:active {
    background: #f0f0f0;
    transform: scale(0.95);
}

/* 📱 Mobile horizontal stepper */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1rem;
    background: linear-gradient(135deg, #F5FBF9 0%, #E6F6F0 100%);
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    min-width: fit-content;
    position: relative;
    z-index: 2;
}

.progress-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.progress-step.active .progress-number {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.progress-step.completed .progress-number {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.progress-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    max-width: 60px;
    line-height: 1.2;
}

.progress-step.active .progress-label {
    color: var(--primary);
    font-weight: 700;
}

.progress-line {
    flex: 0 0 auto;
    width: 8px;
    height: 3px;
    background: #ddd;
}

.progress-line.completed {
    background: var(--success);
}

/* small phones: slightly smaller progress UI */
@media (max-width: 400px) {
    .progress-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .progress-label {
        font-size: 0.65rem;
        max-width: 50px;
    }
}


            /* Checkout Steps */
            .checkout-step {
                display: none;
                padding: 1.2rem;
                padding-bottom: 100px;
                animation: fadeIn 0.3s ease;
                flex: 1;
            }

            .checkout-step.active {
                display: block;
            }

            .checkout-title {
                font-size: 1.4rem;
                font-weight: 900;
                color: var(--text);
                margin-bottom: 1.5rem;
                display: flex;
                align-items: center;
                gap: 0.6rem;
            }

            .checkout-content {
                background: #f8fffe;
                padding: 1.2rem;
                border-radius: 16px;
                border: 1px solid rgba(27,127,95,0.1);
                margin-bottom: 1.5rem;
            }

            /* Checkout Items */
            .checkout-items-list {
                display: flex;
                flex-direction: column;
                gap: 1rem;
                margin-bottom: 1.5rem;
            }

            .checkout-item {
                display: flex;
                gap: 0.8rem;
                padding: 1rem;
                background: white;
                border-radius: 12px;
                border: 1px solid rgba(27,127,95,0.1);
                align-items: flex-start;
            }

            .checkout-item-image {
                width: 70px;
                height: 70px;
                border-radius: 10px;
                object-fit: cover;
                background: #f0f0f0;
                flex-shrink: 0;
            }

            .checkout-item-details {
                flex: 1;
                min-width: 0;
            }

            .checkout-item-name {
                font-weight: 700;
                font-size: 0.9rem;
                color: var(--text);
                margin-bottom: 0.3rem;
                line-height: 1.3;
            }

            .checkout-item-price {
                color: var(--danger);
                font-weight: 800;
                font-size: 1rem;
            }

            .checkout-item-qty {
                margin-top: 0.4rem;
                font-size: 0.85rem;
                color: var(--muted);
            }

            .checkout-item-actions {
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                gap: 0.5rem;
            }

            /* Summary Card */
            .checkout-summary {
                background: white;
                padding: 1.2rem;
                border-radius: 12px;
                border: 1px solid rgba(27,127,95,0.1);
            }

            .summary-row {
                display: flex;
                justify-content: space-between;
                padding: 0.6rem 0;
                font-size: 0.9rem;
                color: var(--text-light);
            }

            .summary-total {
                font-size: 1.2rem;
                font-weight: 900;
                color: var(--text);
                padding-top: 0.4rem;
            }

            .summary-divider {
                height: 1px;
                background: #e5e7eb;
                margin: 0.8rem 0;
            }

            /* Promo Code */
            .promo-section {
                display: flex;
                gap: 0.6rem;
                margin-top: 1rem;
            }

            .promo-input {
                flex: 1;
                padding: 0.8rem 1rem;
                border: 2px solid #e5e7eb;
                border-radius: 8px;
                font-size: 0.9rem;
                transition: var(--transition);
                font-family: 'Poppins', sans-serif;
            }

            .promo-input:focus {
                border-color: var(--primary);
                outline: none;
                box-shadow: 0 0 0 3px rgba(27,127,95,0.1);
            }

            .promo-btn {
                padding: 0.8rem 1.2rem;
                background: var(--accent-gradient);
                border: none;
                border-radius: 8px;
                font-weight: 700;
                color: var(--text);
                cursor: pointer;
                transition: var(--transition);
                white-space: nowrap;
                flex-shrink: 0;
            }

            .promo-btn:active {
                transform: scale(0.96);
            }

            /* Forms */
            .checkout-form {
                display: flex;
                flex-direction: column;
                gap: 1rem;
            }

            .form-group {
                display: flex;
                flex-direction: column;
            }

            .form-group label {
                font-weight: 600;
                margin-bottom: 0.5rem;
                color: var(--text);
                font-size: 0.9rem;
            }

            .form-input {
                padding: 0.9rem 1rem;
                border: 2px solid #e5e7eb;
                border-radius: 8px;
                font-size: 1rem;
                font-family: 'Poppins', sans-serif;
                transition: var(--transition);
                -webkit-appearance: none;
                appearance: none;
            }

            .form-input:focus {
                border-color: var(--primary);
                outline: none;
                box-shadow: 0 0 0 3px rgba(27,127,95,0.1);
            }

            .form-input::placeholder {
                color: #9ca3af;
            }

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

            .form-group.checkbox {
                flex-direction: row;
                align-items: flex-start;
                gap: 0.8rem;
            }

            .form-group.checkbox input {
                width: 20px;
                height: 20px;
                cursor: pointer;
                margin-top: 0.2rem;
                flex-shrink: 0;
            }

            .form-group.checkbox label {
                margin: 0;
                cursor: pointer;
                font-size: 0.9rem;
                font-weight: 500;
            }

            /* 📱 Checkout steps – mobile friendly */
.checkout-step {
    display: none;
    padding: 1.1rem 1rem;
    padding-bottom: 90px;
    animation: fadeIn 0.3s ease;
    flex: 1;
}

.checkout-step.active {
    display: block;
}

.checkout-title {
    font-size: 1.25rem;
    gap: 0.5rem;
}

/* Items & layout already column-based – just tighten spacing on small screens */
.checkout-content {
    background: #f8fffe;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(27,127,95,0.1);
    margin-bottom: 1.2rem;
}

.checkout-items-list {
    gap: 0.85rem;
    margin-bottom: 1.3rem;
}

.checkout-item {
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 10px;
}

.checkout-item-image {
    width: 64px;
    height: 64px;
}

.checkout-item-name {
    font-size: 0.9rem;
}

/* Actions stay right‑aligned but remain touchable */
.checkout-item-actions {
    gap: 0.4rem;
}

/* Summary */
.checkout-summary {
    padding: 1rem;
    border-radius: 10px;
}

.summary-row {
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.summary-total {
    font-size: 1.15rem;
}

/* Promo: stack on small screens */
.promo-section {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.promo-input {
    flex: 1 1 140px;
}

.promo-btn {
    flex: 0 0 auto;
}

/* Forms */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

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

/* breakpoint: wider layout on tablets/desktop */
@media (min-width: 768px) {

    .checkout-step {
        padding: 1.5rem 1.2rem 110px;
    }

    .checkout-title {
        font-size: 1.5rem;
    }

    .checkout-content {
        padding: 1.3rem 1.5rem;
        border-radius: 16px;
    }

    .checkout-item {
        padding: 1rem 1.1rem;
    }

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

    .promo-section {
        flex-wrap: nowrap;
    }
}

/* extra‑small phones tweaks */
@media (max-width: 400px) {
    .checkout-item-image {
        width: 56px;
        height: 56px;
    }

    .checkout-title {
        font-size: 1.15rem;
    }
}


            /* Shipping Options */
            .shipping-title {
                font-size: 1.1rem;
                font-weight: 700;
                color: var(--text);
                margin-top: 1.5rem;
                margin-bottom: 1rem;
            }

            .shipping-options {
                display: flex;
                flex-direction: column;
                gap: 0.8rem;
            }

            .shipping-option {
                display: flex;
                align-items: center;
                gap: 0.8rem;
                padding: 1rem;
                background: white;
                border: 2px solid #e5e7eb;
                border-radius: 12px;
                cursor: pointer;
                transition: var(--transition);
            }

            .shipping-option:active {
                background: rgba(27,127,95,0.05);
            }

            .shipping-option.selected {
                border-color: var(--primary);
                background: rgba(27,127,95,0.08);
                box-shadow: var(--glow-primary);
            }

            .shipping-option input[type="radio"] {
                width: 20px;
                height: 20px;
                cursor: pointer;
                accent-color: var(--primary);
                flex-shrink: 0;
            }

            .shipping-content {
                flex: 1;
            }

            .shipping-content strong {
                display: block;
                color: var(--text);
                margin-bottom: 0.2rem;
                font-size: 0.9rem;
            }

            .shipping-content p {
                margin: 0;
                font-size: 0.8rem;
                color: var(--muted);
            }

            .shipping-price {
                font-weight: 900;
                font-size: 1rem;
                color: var(--primary);
                min-width: 50px;
                text-align: right;
                flex-shrink: 0;
            }

            /* Payment Methods */
            .payment-methods {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
                margin-bottom: 1.5rem;
            }

            .payment-method {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 0.6rem;
                padding: 1.2rem 0.8rem;
                background: white;
                border: 2px solid #e5e7eb;
                border-radius: 12px;
                cursor: pointer;
                transition: var(--transition);
                text-align: center;
                min-height: 120px;
                justify-content: center;
            }
            

            .payment-method:active {
                background: rgba(27,127,95,0.05);
            }

            .payment-method.selected {
                border-color: var(--primary);
                background: linear-gradient(135deg, rgba(27,127,95,0.08), rgba(255,215,106,0.05));
                box-shadow: var(--glow-primary);
            }

            .payment-method input[type="radio"] {
                accent-color: var(--primary);
            }

            .payment-icon {
                font-size: 2.2rem;
            }

            .payment-method strong {
                font-size: 0.85rem;
                color: var(--text);
                line-height: 1.3;
            }

            .payment-method p {
                margin: 0;
                font-size: 0.7rem;
                color: var(--muted);
            }

            /* Security Info */
            .security-info {
                display: flex;
                align-items: center;
                gap: 0.8rem;
                padding: 1rem;
                background: rgba(16,185,129,0.1);
                border-radius: 8px;
                color: var(--success);
                font-size: 0.85rem;
                margin-top: 1rem;
            }

            .security-info i {
                font-size: 1.2rem;
                flex-shrink: 0;
            }

            /* Confirmation */
            .confirmation-section {
                margin-bottom: 1.5rem;
                padding-bottom: 1.2rem;
                border-bottom: 1px solid #e5e7eb;
            }

            .confirmation-section:last-child {
                border-bottom: none;
            }

            .confirmation-section h3 {
                font-size: 1rem;
                font-weight: 700;
                color: var(--text);
                margin-bottom: 0.8rem;
            }

            .confirmation-items {
                display: flex;
                flex-direction: column;
                gap: 0.6rem;
            }

            .confirmation-item {
                display: flex;
                justify-content: space-between;
                padding: 0.7rem;
                background: white;
                border-radius: 8px;
                border: 1px solid #e5e7eb;
                font-size: 0.9rem;
            }

            .confirmation-text {
                background: white;
                padding: 1rem;
                border-radius: 8px;
                border: 1px solid #e5e7eb;
                line-height: 1.6;
                font-size: 0.9rem;
            }

            .confirmation-summary {
                background: white;
                padding: 1rem;
                border-radius: 8px;
                border: 1px solid #e5e7eb;
            }

            .conf-row {
                display: flex;
                justify-content: space-between;
                padding: 0.5rem 0;
                font-size: 0.9rem;
                color: var(--text-light);
            }

            .conf-divider {
                height: 1px;
                background: #e5e7eb;
                margin: 0.6rem 0;
            }

            .conf-total {
                font-size: 1.1rem;
                font-weight: 900;
                color: var(--text);
            }

            /* Terms Checkbox */
            .terms-checkbox {
                display: flex;
                align-items: flex-start;
                gap: 0.8rem;
                padding: 1rem;
                background: rgba(16,185,129,0.05);
                border-radius: 8px;
                margin-top: 1rem;
            }

            .terms-checkbox input {
                width: 20px;
                height: 20px;
                cursor: pointer;
                margin-top: 0.2rem;
                accent-color: var(--primary);
                flex-shrink: 0;
            }

            .terms-checkbox label {
                margin: 0;
                cursor: pointer;
                font-size: 0.85rem;
                line-height: 1.4;
            }

            /* Checkout Actions */
            .checkout-actions {
                display: flex;
                flex-direction: column;
                gap: 0.8rem;
                margin-top: 1.5rem;
                padding-bottom: 1.5rem;
            }

            .btn-checkout-primary,
            .btn-checkout-secondary {
                width: 100%;
                padding: 1rem;
                border-radius: 12px;
                border: none;
                font-weight: 700;
                font-size: 1rem;
                cursor: pointer;
                transition: var(--transition);
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.6rem;
                min-height: 48px;
                touch-action: manipulation;
                -webkit-user-select: none;
                user-select: none;
            }

            .btn-checkout-primary {
                background: var(--primary-gradient);
                color: white;
                box-shadow: 0 12px 30px rgba(27,127,95,0.3);
            }

            .btn-checkout-primary:active {
                transform: scale(0.98);
            }

            .btn-checkout-secondary {
                background: transparent;
                color: var(--primary);
                border: 2px solid var(--primary);
            }

            .btn-checkout-secondary:active {
                background: rgba(27,127,95,0.1);
            }

            /* Payment Form */
            .payment-form {
                background: #fff9f0;
                padding: 1.2rem;
                border-radius: 12px;
                border: 1px solid rgba(255,215,106,0.3);
                margin-top: 1rem;
            }
/* 📱 Shipping & payment – mobile friendly */

/* Shipping options are already column; just tighten spacing */
.shipping-title {
    font-size: 1.05rem;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

.shipping-options {
    gap: 0.7rem;
}

.shipping-option {
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
}

/* Payment methods: single column on small screens */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1.3rem;
}

.payment-method {
    padding: 1rem 0.8rem;
    min-height: 110px;
}

/* Security info becomes more compact */
.security-info {
    padding: 0.8rem 0.9rem;
    font-size: 0.8rem;
}

/* Confirmation blocks already vertical; only spacing tweaks */
.confirmation-section {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
}

.confirmation-item,
.confirmation-text,
.confirmation-summary {
    padding: 0.85rem 0.9rem;
    border-radius: 8px;
}

/* Checkout actions: full width (already) – just reduce gaps */
.checkout-actions {
    gap: 0.7rem;
    margin-top: 1.3rem;
    padding-bottom: 1.2rem;
}

/* Payment form */
.payment-form {
    padding: 1rem 0.9rem;
    border-radius: 10px;
}

/* ✅ Tablet/desktop enhancements */
@media (min-width: 768px) {

    .shipping-option {
        padding: 1rem 1.2rem;
    }

    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .payment-method {
        min-height: 130px;
    }

    .confirmation-item {
        padding: 1rem 1.1rem;
    }

    .checkout-actions {
        flex-direction: row;
    }

    .btn-checkout-primary,
    .btn-checkout-secondary {
        width: auto;
        min-width: 180px;
    }

    .payment-form {
        padding: 1.3rem 1.2rem;
    }
}

/* extra‑small phones */
@media (max-width: 400px) {
    .shipping-content strong {
        font-size: 0.85rem;
    }

    .shipping-content p,
    .payment-method p {
        font-size: 0.75rem;
    }

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

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

        .fade-in { animation: fadeIn 0.5s ease; }

        /* 🛒 CHECKOUT MODAL */
        .checkout-container {
            background: white;
            width: 90%;
            max-width: 900px;
            margin: 2rem auto;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 20px 100px rgba(0,0,0,0.3);
            animation: checkoutSlideUp 0.4s ease;
        }

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

        .checkout-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: rgba(0,0,0,0.05);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--text);
            transition: var(--transition);
            z-index: 100;
        }

        .checkout-close:hover {
            background: rgba(0,0,0,0.1);
            transform: scale(1.1);
        }

        /* Progress Indicator */
        .checkout-progress {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 2rem 2rem 3rem;
            background: linear-gradient(135deg, #F5FBF9 0%, #E6F6F0 100%);
            position: relative;
        }

        .progress-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            flex: 1;
            position: relative;
            z-index: 2;
        }

        .progress-number {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: white;
            border: 3px solid #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            font-size: 1.3rem;
            color: var(--muted);
            transition: var(--transition);
        }

        .progress-step.active .progress-number {
            background: var(--primary-gradient);
            color: white;
            border-color: var(--primary);
            box-shadow: var(--glow-primary);
        }

        .progress-step.completed .progress-number {
            background: var(--success);
            color: white;
            border-color: var(--success);
        }

        .progress-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--muted);
            text-align: center;
        }

        .progress-step.active .progress-label {
            color: var(--primary);
            font-weight: 700;
        }

        .progress-line {
            flex: 1;
            height: 3px;
            background: #ddd;
            margin: 0 1rem;
            position: relative;
        }

        .progress-line.completed {
            background: var(--success);
        }

        /* Checkout Steps */
        .checkout-step {
            display: none;
            padding: 2rem;
            animation: fadeIn 0.3s ease;
        }

        .checkout-step.active {
            display: block;
        }

        .checkout-title {
            font-size: 1.8rem;
            font-weight: 900;
            color: var(--text);
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .checkout-content {
            background: #f8fffe;
            padding: 2rem;
            border-radius: 16px;
            border: 1px solid rgba(27,127,95,0.1);
            margin-bottom: 2rem;
        }

        /* Cart Items Review */
        .checkout-items-list {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
            margin-bottom: 2rem;
        }

        .checkout-item {
            display: flex;
            gap: 1.2rem;
            padding: 1.2rem;
            background: white;
            border-radius: 12px;
            border: 1px solid rgba(27,127,95,0.1);
            align-items: center;
        }

        .checkout-item-image {
            width: 100px;
            height: 100px;
            border-radius: 12px;
            object-fit: cover;
            background: #f0f0f0;
        }

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

        .checkout-item-name {
            font-weight: 700;
            font-size: 1rem;
            color: var(--text);
            margin-bottom: 0.3rem;
        }

        .checkout-item-price {
            color: var(--danger);
            font-weight: 800;
            font-size: 1.1rem;
        }

        .checkout-item-qty {
            margin-top: 0.5rem;
            font-size: 0.9rem;
            color: var(--muted);
        }

        .checkout-item-actions {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        .btn-item-qty {
            width: 32px;
            height: 32px;
            border: 1px solid #ddd;
            background: white;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 700;
            transition: var(--transition);
        }

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

        .btn-item-remove {
            padding: 0.4rem 0.8rem;
            background: rgba(229,57,53,0.1);
            border: none;
            color: var(--danger);
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 600;
            transition: var(--transition);
        }

        .btn-item-remove:hover {
            background: var(--danger);
            color: white;
        }

        /* Order Summary */
        .checkout-summary {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            border: 1px solid rgba(27,127,95,0.1);
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 0.8rem 0;
            font-size: 0.95rem;
            color: var(--text-light);
        }

        .summary-divider {
            height: 1px;
            background: #e5e7eb;
            margin: 1rem 0;
        }

        .summary-total {
            font-size: 1.3rem;
            font-weight: 900;
            color: var(--text);
            padding-top: 0.5rem;
        }

        /* Promo Code */
        .promo-section {
            display: flex;
            gap: 0.8rem;
            margin-top: 1.5rem;
        }

        .promo-input {
            flex: 1;
            padding: 0.8rem 1.2rem;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .promo-input:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(27,127,95,0.1);
        }

        .promo-btn {
            padding: 0.8rem 2rem;
            background: var(--accent-gradient);
            border: none;
            border-radius: 8px;
            font-weight: 700;
            color: var(--text);
            cursor: pointer;
            transition: var(--transition);
        }

        .promo-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--glow-accent);
        }

        /* Forms */
        .checkout-form {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group label {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text);
            font-size: 0.95rem;
        }

        .form-input {
            padding: 0.9rem 1.2rem;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 1rem;
            font-family: 'Poppins', sans-serif;
            transition: var(--transition);
        }

        .form-input:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(27,127,95,0.1);
        }

        .form-input::placeholder {
            color: #9ca3af;
        }

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

        .form-group.checkbox {
            flex-direction: row;
            align-items: center;
            gap: 0.8rem;
        }

        .form-group.checkbox input {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .form-group.checkbox label {
            margin: 0;
            cursor: pointer;
        }

        /* Shipping Options */
        .shipping-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text);
            margin-top: 2rem;
            margin-bottom: 1rem;
        }

        .shipping-options {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .shipping-option {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.2rem;
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition);
        }

        .shipping-option:hover {
            border-color: var(--primary);
            background: rgba(27,127,95,0.05);
        }

        .shipping-option.selected {
            border-color: var(--primary);
            background: rgba(27,127,95,0.08);
            box-shadow: var(--glow-primary);
        }

        .shipping-option input[type="radio"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: var(--primary);
        }

        .shipping-content {
            flex: 1;
        }

        .shipping-content strong {
            display: block;
            color: var(--text);
            margin-bottom: 0.3rem;
        }

        .shipping-content p {
            margin: 0;
            font-size: 0.85rem;
            color: var(--muted);
        }

        .shipping-price {
            font-weight: 900;
            font-size: 1.2rem;
            color: var(--primary);
            min-width: 60px;
            text-align: right;
        }

        /* Payment Methods */
        .payment-methods {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 1.2rem;
            margin-bottom: 2rem;
        }

        .payment-method {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.8rem;
            padding: 1.5rem 1.2rem;
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
        }

        .payment-method:hover {
            border-color: var(--primary);
            background: rgba(27,127,95,0.05);
            transform: translateY(-4px);
        }

        .payment-method.selected {
            border-color: var(--primary);
            background: linear-gradient(135deg, rgba(27,127,95,0.08), rgba(255,215,106,0.05));
            box-shadow: var(--glow-primary);
        }

        .payment-method input[type="radio"] {
            accent-color: var(--primary);
        }

        .payment-icon {
            font-size: 2.5rem;
        }

        .payment-method strong {
            font-size: 1rem;
            color: var(--text);
        }

        .payment-method p {
            margin: 0;
            font-size: 0.75rem;
            color: var(--muted);
        }

        /* 📱 Checkout modal & steps – mobile first */
@media (max-width: 768px) {

    /* Modal container */
    .checkout-container {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .checkout-close {
        top: 1rem;
        right: 1rem;
        width: 34px;
        height: 34px;
        font-size: 1.3rem;
    }

    /* Progress bar becomes compact + scrollable (matches mobile stepper you added) */
    .checkout-progress {
        padding: 1.1rem 1rem 1.3rem;
        overflow-x: auto;
        gap: 0.6rem;
    }

    .progress-step {
        flex: 0 0 auto;
        min-width: fit-content;
        gap: 0.35rem;
    }

    .progress-number {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .progress-label {
        font-size: 0.7rem;
        max-width: 60px;
    }

    .progress-line {
        flex: 0 0 10px;
        margin: 0;
    }

    /* Steps & content */
    .checkout-step {
        padding: 1.2rem 1rem 5rem;
    }

    .checkout-title {
        font-size: 1.35rem;
        margin-bottom: 1.2rem;
        gap: 0.6rem;
    }

    .checkout-content {
        padding: 1rem;
        border-radius: 14px;
        margin-bottom: 1.3rem;
    }

    /* Items list */
    .checkout-items-list {
        gap: 0.9rem;
        margin-bottom: 1.4rem;
    }

    .checkout-item {
        gap: 0.8rem;
        padding: 0.9rem;
        align-items: flex-start;
    }

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

    .checkout-item-name {
        font-size: 0.95rem;
    }

    .checkout-item-price {
        font-size: 1rem;
    }

    .checkout-item-actions {
        gap: 0.4rem;
    }

    /* Summary */
    .checkout-summary {
        padding: 1rem;
        border-radius: 10px;
    }

    .summary-row {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }

    .summary-total {
        font-size: 1.2rem;
    }

    /* Promo */
    .promo-section {
        flex-wrap: wrap;
        gap: 0.6rem;
        margin-top: 1.1rem;
    }

    .promo-input {
        flex: 1 1 160px;
    }

    .promo-btn {
        flex: 0 0 auto;
        padding: 0.8rem 1.4rem;
    }

    /* Forms */
    .checkout-form {
        gap: 1rem;
    }

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

    .form-group label {
        font-size: 0.9rem;
    }

    .form-input {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    /* Shipping (compact, still column) */
    .shipping-title {
        font-size: 1.1rem;
        margin-top: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .shipping-options {
        gap: 0.8rem;
    }

    .shipping-option {
        padding: 0.9rem;
        gap: 0.8rem;
    }

    .shipping-content p {
        font-size: 0.8rem;
    }

    .shipping-price {
        font-size: 1rem;
    }

    /* Payment methods: single column */
    .payment-methods {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .payment-method {
        padding: 1.1rem 0.9rem;
    }

    .payment-icon {
        font-size: 2.1rem;
    }

    .payment-method strong {
        font-size: 0.9rem;
    }
}

/* extra‑small phones tweaks */
@media (max-width: 400px) {
    .checkout-title {
        font-size: 1.25rem;
    }

    .checkout-item-image {
        width: 64px;
        height: 64px;
    }

    .progress-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .progress-label {
        font-size: 0.65rem;
    }
}


       /* 📱 Payment form, confirmation & actions – mobile */

/* base tweaks apply everywhere */
.payment-form {
    background: #fff9f0;
    padding: 1.3rem;
    border-radius: 12px;
    border: 1px solid rgba(255,215,106,0.3);
    margin-top: 1.2rem;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
    font-size: 0.85rem;
    margin-top: 1.2rem;
}

/* Confirmation cards already vertical; just tighten spacing on small screens */
.confirmation-section {
    margin-bottom: 1.6rem;
    padding-bottom: 1.2rem;
}

.confirmation-section h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.confirmation-items {
    gap: 0.7rem;
}

.confirmation-item,
.confirmation-text,
.confirmation-summary {
    padding: 0.85rem 0.95rem;
    border-radius: 8px;
}

.conf-row {
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.conf-total {
    font-size: 1.15rem;
}

/* Terms */
.terms-checkbox {
    align-items: flex-start;
    padding: 0.9rem;
    margin-top: 1.2rem;
}

.terms-checkbox label {
    font-size: 0.85rem;
}

/* Checkout actions – full width on mobile */
.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn-checkout-primary,
.btn-checkout-secondary {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 12px;
    font-size: 1rem;
    min-height: 48px;
}

/* 👉 wider layout on tablets/desktop */
@media (min-width: 768px) {

    .payment-form {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .security-info {
        padding: 1rem 1.1rem;
        font-size: 0.9rem;
    }

    .confirmation-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .checkout-actions {
        flex-direction: row;
    }

    .btn-checkout-primary,
    .btn-checkout-secondary {
        flex: 1;
        width: auto;
        padding: 1rem 2rem;
    }
}

/* extra‑small phones */
@media (max-width: 400px) {
    .confirmation-text {
        font-size: 0.9rem;
    }
}
