/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

:root {
    /* Meadows Hive & Grind Brand Color Palette */
    --honey-gold: #F4D35E;
    --honey-light: #F9E89E;
    --coffee-brown: #0E1428;
    --coffee-medium: #1A2440;
    --yemen-sand: #A47864;
    --sage-green: #57886C;
    --cream: #F7F7FF;
    --warm-white: #FFFFFF;
    --dark-charcoal: #0E1428;
    --soft-shadow: rgba(14, 20, 40, 0.1);
    --warm-shadow: rgba(244, 211, 94, 0.15);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    /* Spacing for Comfort */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius for Softness */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--coffee-brown);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--dark-charcoal);
    opacity: 0.9;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--honey-gold);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-description {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
    font-size: 1.125rem;
    color: var(--coffee-medium);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* ==========================================
   FLOATING GLASSMORPHISM NAVIGATION
   ========================================== */

.floating-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.5s ease-out;
}

.floating-nav.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.floating-nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 12px 20px;
    background: rgba(247, 247, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(14, 20, 40, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.4) inset,
                0 0 0 1px rgba(244, 211, 94, 0.1);
    border: 1px solid rgba(244, 211, 94, 0.2);
}

.floating-nav-menu li {
    display: flex;
    align-items: center;
}

.floating-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    position: relative;
    color: var(--coffee-brown);
    gap: 4px;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.nav-icon {
    font-size: 1.5rem;
    transition: var(--transition-bounce);
    flex-shrink: 0;
}

.nav-logo-link {
    padding: var(--spacing-xs) !important;
}

.nav-logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: var(--transition-bounce);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-logo-link:hover .nav-logo-image {
    transform: scale(1.1) translateY(-2px);
}

.nav-logo-link.active .nav-logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(244, 211, 94, 0.4));
}

.nav-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.floating-nav-link:hover {
    background: rgba(244, 211, 94, 0.2);
    backdrop-filter: blur(10px);
}

.floating-nav-link:hover .nav-icon {
    transform: scale(1.2) translateY(-2px);
}

.floating-nav-link:hover .nav-text {
    opacity: 1;
    color: var(--coffee-brown);
}

.floating-nav-link.active {
    background: linear-gradient(135deg,
                rgba(244, 211, 94, 0.3),
                rgba(249, 232, 158, 0.3));
    box-shadow: 0 4px 12px rgba(244, 211, 94, 0.2);
}

.floating-nav-link.active .nav-icon {
    transform: scale(1.15);
}

.floating-nav-link.active .nav-text {
    opacity: 1;
    font-weight: 700;
}

/* Cart Button in Nav */
.nav-cart-btn {
    position: relative;
    width: 70px;
    height: 70px;
}

.nav-cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--coffee-brown);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid rgba(247, 247, 255, 0.9);
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-bounce);
}

.nav-cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.nav-cart-btn.bounce .nav-icon {
    animation: cartBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.3) translateY(-4px); }
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* CSS Scroll-Driven Animation (Progressive Enhancement) */
@supports (animation-timeline: scroll()) {
    .hero-bg-image {
        animation: hero-zoom linear forwards;
        animation-timeline: scroll();
        animation-range: 0vh 100vh;
    }

    .hero-content {
        animation: hero-fade linear forwards;
        animation-timeline: scroll();
        animation-range: 0vh 80vh;
    }

    @keyframes hero-zoom {
        0% {
            transform: scale(1.15);
        }
        100% {
            transform: scale(1.0);
        }
    }

    @keyframes hero-fade {
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(14, 20, 40, 0.7) 0%,
        rgba(87, 136, 108, 0.5) 100%
    );
}

/* Pencil sketch background layer */
.hero-logo-pattern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('https://meadows-images-cdn.meadows-9fa.workers.dev/pencil_sketch_landscape.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
}

/* Logo layer on top */
.hero-logo-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://meadows-images-cdn.meadows-9fa.workers.dev/logo.svg');
    background-size: 600px 600px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    mix-blend-mode: multiply;
    animation: logoBreathe 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes logoBreathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.08;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.12;
    }
}

.floating-tree {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
    transition: transform 0.3s ease-out;
}

.floating-tree-top-right {
    top: 10%;
    right: 5%;
    width: clamp(150px, 20vw, 350px);
    height: auto;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: var(--spacing-md);
    transition: opacity 0.1s ease-out;
}

.hero-logo {
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    width: clamp(150px, 20vw, 250px);
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(2px 4px 12px rgba(0, 0, 0, 0.5));
    /* Makes the logo white and adds shadow for visibility on dark background */
}

.hero-title,
.hero-subtitle {
    color: var(--warm-white);
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    color: var(--cream);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.4);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--honey-gold), var(--honey-light));
    color: var(--coffee-brown);
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px var(--warm-shadow);
    transition: var(--transition-bounce);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px var(--warm-shadow);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.scroll-line {
    width: 100%;
    height: 30px;
    background: var(--honey-gold);
    animation: scroll-animation 2s ease-in-out infinite;
}

@keyframes scroll-animation {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ==========================================
   ANIMATION UTILITIES
   ========================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   STORY SECTION
   ========================================== */

.story-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, var(--cream), var(--warm-white));
    position: relative;
    overflow: hidden;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.story-content {
    padding: var(--spacing-lg);
}

.story-text {
    margin-bottom: var(--spacing-md);
    font-family: var(--font-accent);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--coffee-medium);
}

.story-text strong {
    color: var(--coffee-brown);
    font-weight: 600;
}

.story-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: flex-end;
}

.growing-tree {
    position: absolute;
    width: 100%;
    max-width: 500px;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.tree-left {
    bottom: 0;
    left: 0;
    transform: translateY(100px);
}

.tree-left.grow {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   PRODUCTS SECTION
   ========================================== */

.products-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--cream);
    position: relative;
    overflow: hidden;
}

/* Background Trees with Gentle Sway Animation */
.background-tree {
    position: absolute;
    pointer-events: none;
    opacity: 0.25;
    z-index: 0;
    will-change: transform;
}

.tree-top-right-bg {
    top: -5%;
    right: -5%;
    width: clamp(350px, 40vw, 650px);
    height: auto;
    animation: gentleSway 8s ease-in-out infinite;
    transform-origin: bottom center;
}

.tree-bottom-left-bg {
    bottom: -8%;
    left: -5%;
    width: clamp(400px, 45vw, 700px);
    height: auto;
    animation: gentleSway 10s ease-in-out infinite;
    animation-delay: 1s;
    transform-origin: bottom center;
}

@keyframes gentleSway {
    0%, 100% {
        transform: rotate(0deg) translateX(0px);
    }
    25% {
        transform: rotate(1.5deg) translateX(4px);
    }
    50% {
        transform: rotate(0deg) translateX(0px);
    }
    75% {
        transform: rotate(-1.5deg) translateX(-4px);
    }
}

/* Ensure product cards and content are above background trees */
.products-section .container {
    position: relative;
    z-index: 1;
}

.tree-right {
    bottom: -50px;
    right: -50px;
    width: clamp(200px, 25vw, 400px);
    transform: translateX(200px) translateY(100px);
    transform-origin: bottom center;
}

.tree-right.grow {
    opacity: 1;
    transform: translateX(0) translateY(0);
    animation: gentleSway 9s ease-in-out infinite;
    animation-delay: 0.5s;
}

.product-category {
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.category-decoration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50vw;
    height: 80vh;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.decoration-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.4);
}

.coffee-decoration {
    right: -10vw;
}

.honey-decoration {
    left: -10vw;
    right: auto;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.category-title {
    font-size: 2.5rem;
    color: var(--coffee-brown);
    position: relative;
    z-index: 1;
    margin: 0;
}

.category-story-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 12px 24px;
    background: var(--cream);
    color: var(--navy);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 20, 40, 0.15);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    border: 2px solid var(--tan);
}

.category-story-link span {
    color: var(--navy);
}

.category-story-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 20, 40, 0.25);
    background: var(--tan);
    color: white;
}

.category-story-link:hover span {
    color: white;
}

.category-story-link svg {
    transition: transform 0.3s ease;
    stroke: var(--navy);
    flex-shrink: 0;
}

.category-story-link:hover svg {
    transform: translateX(4px);
    stroke: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--soft-shadow);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px var(--warm-shadow);
    border-color: var(--honey-light);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.product-image-coffee {
    background: linear-gradient(135deg, #6B4423 0%, #8B5A3C 50%, #6B4423 100%);
}

.product-image-honey {
    background: linear-gradient(135deg, #F4D35E 0%, #F9E89E 50%, #F4D35E 100%);
}

.product-image img {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

/* Full background image style - fills entire card */
.product-image-full {
    padding: 0 !important;
    background: none !important;
}

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

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

.product-image-placeholder {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, var(--cream), var(--honey-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.product-image-placeholder.product-image-coffee {
    background: linear-gradient(135deg, #6B4423 0%, #8B5A3C 50%, #6B4423 100%);
}

.product-image-placeholder.product-image-honey {
    background: linear-gradient(135deg, #F4D35E 0%, #F9E89E 50%, #F4D35E 100%);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
}

.coming-soon {
    font-size: 0.875rem;
    color: var(--coffee-medium);
    font-weight: 500;
}

.product-info {
    padding: var(--spacing-md);
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--coffee-brown);
}

.product-origin {
    font-size: 0.875rem;
    color: var(--honey-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--coffee-medium);
}

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

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coffee-brown);
}

.product-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--coffee-brown), var(--coffee-medium));
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 12px rgba(74, 44, 42, 0.2);
}

.product-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 44, 42, 0.3);
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */

.experience-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.experience-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.experience-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.experience-bg-image.zoom {
    transform: scale(1.1);
}

.experience-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 20, 40, 0.75);
}

.experience-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-md);
}

.experience-title {
    color: var(--warm-white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.experience-text {
    color: var(--cream);
    font-size: 1.25rem;
    line-height: 1.8;
    font-family: var(--font-accent);
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   QUALITY SECTION
   ========================================== */

.quality-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--warm-white);
    position: relative;
    overflow: hidden;
}

.quality-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    z-index: 0;
}

.quality-bg-texture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quality-section .container {
    position: relative;
    z-index: 1;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.quality-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 8px 24px var(--soft-shadow);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.quality-card:hover {
    transform: translateY(-8px);
    border-color: var(--honey-gold);
    box-shadow: 0 12px 32px var(--warm-shadow);
}

.quality-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.quality-card h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--coffee-brown);
}

.quality-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--coffee-medium);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    position: relative;
    background: linear-gradient(135deg, var(--coffee-brown), var(--coffee-medium));
    color: var(--cream);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    overflow: hidden;
}



.footer-birds-decoration {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 800px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.footer-birds-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .footer-birds-decoration {
        width: 120vw;
        height: 700px;
        left: -10vw;
        opacity: 0.15;
    }
}

.footer-brand-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-container {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: center;
    text-align: center;
}

.footer-brand-name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--cream);
    line-height: 1;
}

.footer-brand-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.5em;
    color: var(--cream);
    line-height: 1;
}

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

.footer-title {
    font-size: 1.75rem;
    color: var(--honey-gold);
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    font-family: var(--font-accent);
    font-size: 1.125rem;
    color: var(--cream);
    opacity: 0.9;
}

.footer-section h4 {
    color: var(--honey-gold);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.footer-section p {
    color: var(--cream);
    margin-bottom: var(--spacing-xs);
    opacity: 0.85;
}

.footer-section a {
    color: var(--cream);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--honey-gold);
    text-decoration-color: var(--honey-gold);
}

.footer-note {
    font-size: 0.875rem;
    font-style: italic;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-direction: column;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(250, 249, 240, 0.2);
}

.footer-bottom p {
    color: var(--cream);
    opacity: 0.7;
    font-size: 0.875rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .story-visual {
        height: 400px;
    }

    .floating-tree-top-right {
        width: 150px;
    }

    .background-tree {
        opacity: 0.15;
    }

    .tree-top-right-bg {
        width: clamp(250px, 35vw, 450px);
        top: -3%;
        right: -8%;
    }

    .tree-bottom-left-bg {
        width: clamp(280px, 38vw, 480px);
        bottom: -5%;
        left: -8%;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .category-title {
        text-align: center;
    }

    .footer-brand-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-brand-logo {
        width: 60px;
        height: 60px;
    }

    .floating-nav {
        bottom: 20px;
    }

    .floating-nav-menu {
        padding: 10px 12px;
        gap: 4px;
    }

    .floating-nav-link {
        padding: 8px 10px;
        width: 62px;
        height: 62px;
    }

    .nav-cart-btn {
        width: 62px;
        height: 62px;
    }

    .nav-icon {
        font-size: 1.3rem;
    }

    .nav-logo-image {
        width: 40px;
        height: 40px;
    }

    .nav-text {
        font-size: 0.6rem;
    }

    .hero {
        height: 100svh;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

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

    .story-content {
        padding: var(--spacing-sm);
    }

    .experience-section {
        height: 60vh;
    }

    .tree-right {
        display: none;
    }

    .background-tree {
        opacity: 0.3;
    }

    .tree-top-right-bg {
        width: clamp(280px, 55vw, 400px);
        top: -2%;
        right: -10%;
    }

    .tree-bottom-left-bg {
        width: clamp(300px, 60vw, 450px);
        bottom: -3%;
        left: -10%;
    }
}

@media (max-width: 480px) {
    .floating-nav {
        bottom: 15px;
        width: calc(100% - 30px);
        left: 15px;
        transform: translateX(0) translateY(120%);
    }

    .floating-nav.visible {
        transform: translateX(0) translateY(0);
    }

    .floating-nav-menu {
        padding: 8px 10px;
        gap: 2px;
        justify-content: space-around;
        width: 100%;
    }

    .floating-nav-link {
        padding: 6px 4px;
        width: auto;
        flex: 1;
        height: 58px;
    }

    .nav-cart-btn {
        width: auto;
        flex: 1;
        height: 58px;
    }

    .nav-icon {
        font-size: 1.2rem;
    }

    .nav-logo-image {
        width: 36px;
        height: 36px;
    }

    .nav-text {
        font-size: 0.55rem;
    }

    .background-tree {
        opacity: 0.25;
    }

    .tree-top-right-bg {
        width: clamp(240px, 65vw, 350px);
        top: 0%;
        right: -12%;
    }

    .tree-bottom-left-bg {
        width: clamp(260px, 70vw, 380px);
        bottom: -2%;
        left: -12%;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-content {
        padding: var(--spacing-sm);
    }

    .logo-image {
        width: clamp(150px, 40vw, 250px);
    }

    .footer-logo-image {
        width: clamp(100px, 20vw, 150px);
    }

    .product-card {
        border-radius: var(--radius-md);
    }

    .quality-card {
        padding: var(--spacing-md);
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

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

/* Focus Styles */
a:focus,
button:focus {
    outline: 3px solid var(--honey-gold);
    outline-offset: 4px;
}

/* ==========================================
   NOTIFICATION SYSTEM
   ========================================== */

.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.notification {
    background: linear-gradient(135deg, var(--honey-gold), var(--honey-light));
    color: var(--coffee-brown);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px var(--warm-shadow);
    font-weight: 600;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   CART PANEL (SLIDE-OUT)
   ========================================== */

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
}

.cart-panel.active {
    pointer-events: all;
}

.cart-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 20, 40, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.cart-panel.active .cart-panel-overlay {
    opacity: 1;
}

.cart-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 90%;
    height: 100%;
    background: rgba(247, 247, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: -4px 0 24px rgba(14, 20, 40, 0.2);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(244, 211, 94, 0.3);
}

.cart-panel.active .cart-panel-content {
    transform: translateX(0);
}

.cart-header {
    padding: var(--spacing-md);
    border-bottom: 2px solid rgba(244, 211, 94, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.cart-header h2 {
    font-size: 1.75rem;
    color: var(--coffee-brown);
    margin: 0;
}

.cart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(14, 20, 40, 0.1);
    color: var(--coffee-brown);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.cart-close-btn:hover {
    background: var(--coffee-brown);
    color: white;
    transform: rotate(90deg);
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    text-align: center;
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.6;
}

.cart-empty h3 {
    color: var(--coffee-brown);
    margin-bottom: var(--spacing-sm);
}

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

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.cart-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 2px 8px rgba(14, 20, 40, 0.05);
    transition: var(--transition-smooth);
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(14, 20, 40, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--cream), var(--honey-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--coffee-brown);
    font-size: 1rem;
}

.cart-item-roast {
    font-size: 0.8125rem;
    color: var(--tan);
    font-weight: 500;
    font-style: italic;
}

.cart-item-price {
    color: var(--honey-gold);
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--coffee-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.quantity-btn:hover {
    background: var(--honey-light);
    transform: scale(1.1);
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--coffee-brown);
}

.remove-item-btn {
    margin-left: auto;
    padding: 4px 12px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

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

.cart-footer {
    padding: var(--spacing-md);
    border-top: 2px solid rgba(244, 211, 94, 0.2);
    background: rgba(255, 255, 255, 0.5);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--coffee-brown);
}

.subtotal-amount {
    color: var(--honey-gold);
    font-size: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--coffee-brown), var(--coffee-medium));
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: var(--transition-bounce);
    box-shadow: 0 4px 12px rgba(14, 20, 40, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 20, 40, 0.4);
}

.btn-arrow {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.checkout-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================
   CHECKOUT SCREEN
   ========================================== */

.checkout-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.checkout-screen.active {
    display: block;
    opacity: 1;
}

.checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 20, 40, 0.6);
    backdrop-filter: blur(10px);
}

.checkout-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--coffee-brown);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.checkout-close-btn:hover {
    background: var(--coffee-brown);
    color: white;
    transform: rotate(90deg);
}

.checkout-content {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(247, 247, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(14, 20, 40, 0.3);
    border: 1px solid rgba(244, 211, 94, 0.3);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
}

.checkout-summary {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.5);
    border-right: 2px solid rgba(244, 211, 94, 0.2);
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.checkout-summary h2 {
    margin-bottom: var(--spacing-md);
    color: var(--coffee-brown);
}
/* ==========================================
   ROAST SELECTION MODAL
   ========================================== */

.roast-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.roast-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 20, 40, 0.8);
    backdrop-filter: blur(4px);
}

.roast-modal-container {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 560px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
    margin: 16px;
}

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

.roast-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--coffee-medium);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.roast-modal-close:hover {
    background: var(--cream);
    color: var(--coffee-brown);
}

.roast-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coffee-brown);
    margin-bottom: 8px;
    text-align: center;
    padding-right: 40px;
}

.roast-modal-subtitle {
    font-size: 0.9375rem;
    color: var(--coffee-medium);
    text-align: center;
    margin-bottom: 24px;
}

.roast-options {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.roast-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--cream);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.roast-option:hover {
    border-color: var(--tan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.roast-option.selected {
    border-color: var(--tan);
    background: rgba(164, 120, 100, 0.08);
    box-shadow: 0 4px 16px rgba(164, 120, 100, 0.2);
}

.roast-bean-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.roast-option.selected .roast-bean-icon {
    transform: scale(1.1);
}

.roast-info {
    flex: 1;
    min-width: 0;
}

.roast-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--coffee-brown);
    margin-bottom: 4px;
}

.roast-description {
    font-size: 0.8125rem;
    color: var(--coffee-medium);
    line-height: 1.4;
}

.roast-confirm-btn {
    width: 100%;
    padding: 16px 24px;
    background: #0E1428;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 20, 40, 0.3);
}

.roast-confirm-btn:hover {
    background: #6F4E37;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 20, 40, 0.4);
}

.roast-confirm-btn:disabled {
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Mobile responsive styles for roast modal */
@media (max-width: 768px) {
    .roast-modal-container {
        padding: 24px;
        width: calc(100% - 24px);
        margin: 12px;
        max-height: 85vh;
    }

    .roast-modal-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .roast-modal-subtitle {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }

    .roast-options {
        gap: 10px;
        margin-bottom: 20px;
    }

    .roast-option {
        padding: 12px;
        gap: 12px;
    }

    .roast-bean-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .roast-name {
        font-size: 0.9375rem;
    }

    .roast-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .roast-confirm-btn {
        padding: 14px 20px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .roast-modal-container {
        padding: 20px;
        width: calc(100% - 16px);
        margin: 8px;
        border-radius: 12px;
    }

    .roast-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .roast-modal-title {
        font-size: 1.125rem;
        padding-right: 36px;
    }

    .roast-option {
        padding: 10px;
        gap: 10px;
        border-radius: 10px;
    }

    .roast-bean-icon {
        width: 44px;
        height: 44px;
        font-size: 1.375rem;
    }
}

.checkout-items {
    margin-bottom: var(--spacing-lg);
}

.checkout-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    background: white;
    border-radius: var(--radius-md);
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--cream), var(--honey-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.checkout-item-name {
    font-weight: 600;
    color: var(--coffee-brown);
    margin-bottom: 4px;
}

.checkout-item-roast {
    font-size: 0.8125rem;
    color: var(--tan);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 4px;
}

.checkout-item-quantity {
    font-size: 0.875rem;
    color: var(--coffee-medium);
}

.checkout-item-price {
    font-weight: 700;
    color: var(--honey-gold);
    align-self: center;
}

.checkout-totals {
    padding-top: var(--spacing-md);
    border-top: 2px solid rgba(244, 211, 94, 0.2);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    color: var(--coffee-medium);
}

.total-final {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coffee-brown);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 2px solid rgba(244, 211, 94, 0.3);
}

.total-final span:last-child {
    color: var(--honey-gold);
}

.checkout-form {
    padding: var(--spacing-lg);
}

.checkout-form h2 {
    margin-bottom: var(--spacing-md);
    color: var(--coffee-brown);
}

.fulfillment-toggle {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
}

.toggle-option {
    flex: 1;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: var(--transition-smooth);
    font-weight: 600;
    color: var(--coffee-medium);
}

.toggle-option.active {
    background: linear-gradient(135deg, var(--honey-gold), var(--honey-light));
    color: var(--coffee-brown);
    box-shadow: 0 4px 12px rgba(244, 211, 94, 0.3);
}

.option-icon {
    font-size: 1.5rem;
}

.fulfillment-section {
    transition: var(--transition-smooth);
}

.fulfillment-section.hidden {
    display: none;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--coffee-brown);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(244, 211, 94, 0.2);
    border-radius: var(--radius-md);
    background: white;
    color: var(--coffee-brown);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--honey-gold);
    box-shadow: 0 0 0 3px rgba(244, 211, 94, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.pickup-location {
    padding: var(--spacing-md);
    background: rgba(244, 211, 94, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(244, 211, 94, 0.3);
}

.pickup-location h4 {
    color: var(--coffee-brown);
    margin-bottom: var(--spacing-xs);
}

.location-address {
    color: var(--coffee-medium);
    line-height: 1.6;
}

.payment-note {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-bottom: var(--spacing-md);
}

.note-icon {
    font-size: 1.5rem;
}

.payment-note p {
    color: var(--coffee-brown);
    font-size: 0.9rem;
    font-weight: 500;
}

.place-order-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--coffee-brown), var(--coffee-medium));
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: var(--transition-bounce);
    box-shadow: 0 8px 24px rgba(14, 20, 40, 0.3);
}

.place-order-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(14, 20, 40, 0.4);
}

.place-order-btn:hover .btn-arrow {
    transform: translateX(6px);
}

/* ==========================================
   ORDER CONFIRMATION SCREEN
   ========================================== */

.confirmation-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.confirmation-screen.active {
    display: block;
    opacity: 1;
}

.confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 20, 40, 0.8), rgba(87, 136, 108, 0.8));
    backdrop-filter: blur(10px);
}

.confirmation-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 100%;
    margin: 0 auto;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-content {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(247, 247, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: 0 20px 60px rgba(14, 20, 40, 0.4);
    border: 1px solid rgba(244, 211, 94, 0.3);
}

.success-animation {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.success-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.success-checkmark {
    color: white;
    font-size: 4rem;
    font-weight: 700;
    animation: checkmarkAppear 0.4s ease-out 0.3s both;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
}

.confirmation-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--coffee-brown);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.confirmation-subtitle {
    font-size: 1.25rem;
    color: var(--coffee-medium);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

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

.order-number {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(244, 211, 94, 0.2), rgba(249, 232, 158, 0.2));
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(244, 211, 94, 0.3);
}

.order-number .label {
    font-size: 0.875rem;
    color: var(--coffee-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.order-number .number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--coffee-brown);
    font-family: var(--font-heading);
}

.order-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(244, 211, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid rgba(244, 211, 94, 0.3);
    transition: var(--transition-smooth);
}

.timeline-step.active .step-icon {
    background: linear-gradient(135deg, var(--honey-gold), var(--honey-light));
    border-color: var(--honey-gold);
    box-shadow: 0 4px 12px rgba(244, 211, 94, 0.4);
}

.step-label {
    font-size: 0.875rem;
    color: var(--coffee-medium);
    font-weight: 600;
}

.timeline-line {
    width: 80px;
    height: 2px;
    background: rgba(244, 211, 94, 0.3);
    margin: 0 var(--spacing-sm);
}

.order-details {
    text-align: left;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.order-details h3 {
    margin-bottom: var(--spacing-md);
    color: var(--coffee-brown);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--cream);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--coffee-medium);
    font-weight: 500;
}

.detail-value {
    color: var(--coffee-brown);
    font-weight: 600;
}

.email-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.email-icon {
    font-size: 1.5rem;
}

.email-note p {
    font-size: 0.95rem;
    color: var(--coffee-medium);
}

.continue-shopping-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--coffee-brown), var(--coffee-medium));
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 12px rgba(14, 20, 40, 0.3);
}

.continue-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 20, 40, 0.4);
}

/* ==========================================
   CART/CHECKOUT RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        border-right: none;
        border-bottom: 2px solid rgba(244, 211, 94, 0.2);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}

@media (max-width: 768px) {
    .cart-panel-content {
        width: 100%;
        max-width: 100%;
    }

    .checkout-container {
        padding: var(--spacing-sm);
    }

    .checkout-close-btn {
        top: 10px;
        right: 10px;
    }

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

    .timeline-line {
        width: 40px;
    }

    .order-details {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .cart-header {
        padding: var(--spacing-sm);
    }

    .cart-items {
        padding: var(--spacing-sm);
    }

    .cart-footer {
        padding: var(--spacing-sm);
    }

    .checkout-summary,
    .checkout-form {
        padding: var(--spacing-md);
    }

    .confirmation-content {
        padding: var(--spacing-md);
    }

    .success-circle {
        width: 100px;
        height: 100px;
    }

    .success-checkmark {
        font-size: 3rem;
    }

    .timeline-step {
        font-size: 0.75rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .timeline-line {
        width: 30px;


/* ==========================================
   SKELETON LOADERS
   ========================================== */

.product-card-skeleton {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--soft-shadow);
    border: 2px solid transparent;
}

.skeleton-image {
    height: 280px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-text {
    height: 20px;
    margin: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.no-products,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--coffee-brown);
    font-size: 1.1rem;
}

.error-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--radius-lg);
    color: #856404;
}

    }
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */

.hero-bg-image,
.experience-bg-image,
.quality-bg-texture {
    will-change: transform;
}

.product-card,
.quality-card {
    will-change: transform;
}
