/* ============================================
   GANDFAAD DAIRY - Premium Organic Products
   Design System: Organic/Natural with 3D Effects
   Color Palette: Terracotta Studio + Chlorophyll
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - Terracotta Studio */
    --color-primary: #B5563E;
    --color-primary-light: #D4896A;
    --color-primary-dark: #8B4513;
    
    /* Secondary Colors - Organic Greens */
    --color-secondary: #2D6A1E;
    --color-secondary-light: #B8F369;
    --color-secondary-dark: #0A1F02;
    
    /* Neutral Colors */
    --color-cream: #F2E6D9;
    --color-cream-light: #F9F3EB;
    --color-brown: #3D2B1F;
    --color-brown-light: #5B3A29;
    
    /* Text Colors */
    --color-text: #2C2C2C;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    
    /* Background Colors */
    --bg-primary: #F9F3EB;
    --bg-secondary: #F2E6D9;
    --bg-white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-3d: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 3D Transform */
    --perspective: 1000px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-brown);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-size: 1rem;
    color: var(--color-text-light);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background: rgba(249, 243, 235, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(181, 86, 62, 0.1);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: var(--space-xs) 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.logo:hover .logo-icon {
    transform: rotateY(15deg) rotateX(-10deg);
}

.cow-icon {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-3xl)) var(--space-md) var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-secondary-light);
    color: var(--color-secondary-dark);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    transform-style: preserve-3d;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-10px) rotateX(5deg); }
}

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

.hero-title {
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
}

.highlight {
    color: var(--color-primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--color-secondary-light);
    z-index: -1;
    opacity: 0.6;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(181, 86, 62, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(181, 86, 62, 0.5);
}

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

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.milk-splash-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.milk-splash {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(242,230,217,0.8));
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}

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

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-item {
    position: absolute;
    font-size: 3rem;
    animation: float-around 8s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.float-1 { top: 10%; left: 20%; animation-delay: 0s; }
.float-2 { top: 30%; right: 10%; animation-delay: 2s; }
.float-3 { bottom: 30%; left: 10%; animation-delay: 4s; }
.float-4 { bottom: 10%; right: 25%; animation-delay: 6s; }

@keyframes float-around {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(0, -40px) rotate(0deg); }
    75% { transform: translate(-20px, -20px) rotate(-5deg); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
    padding: var(--space-3xl) var(--space-md);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-secondary-light);
    color: var(--color-secondary-dark);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--color-text-light);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    background: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.4));
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-cream), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-icon {
    font-size: 5rem;
    transition: transform 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 4px 12px;
    background: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

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

.product-name {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.product-desc {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

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

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

.add-to-cart {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: var(--color-primary-dark);
    transform: scale(1.1);
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-secondary);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-visual {
    position: relative;
    height: 500px;
}

.farm-scene {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform-style: preserve-3d;
}

.scene-layer {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
}

.layer-1 {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 50%);
}

.layer-2 {
    background: linear-gradient(180deg, transparent 40%, #90EE90 40%, #228B22 100%);
    bottom: 0;
    height: 60%;
}

.layer-3 {
    background: linear-gradient(180deg, transparent 60%, #8B4513 60%);
    bottom: 0;
    height: 40%;
}

.cow-illustration {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    animation: cow-breathe 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

@keyframes cow-breathe {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.about-content {
    padding: var(--space-lg);
}

.about-text {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--color-secondary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits {
    background: var(--bg-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.benefit-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: var(--color-secondary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
}

.benefit-svg {
    width: 40px;
    height: 40px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: var(--bg-secondary);
    padding-bottom: var(--space-3xl);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 300px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    padding: var(--space-xl);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    text-align: center;
    opacity: 0;
    transform: translateX(50px) rotateY(10deg);
    transition: all 0.5s ease;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0) rotateY(0);
    pointer-events: auto;
}

.testimonial-stars {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

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

.author-info {
    text-align: left;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--color-cream);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-info {
    padding: var(--space-lg);
}

.contact-desc {
    margin: var(--space-md) 0 var(--space-xl);
    font-size: 1.1rem;
}

.contact-details {
    display: grid;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-secondary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--color-text-light);
}

.contact-form-wrapper {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.contact-form-wrapper:hover {
    transform: rotateY(-2deg) rotateX(2deg);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid transparent;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(181, 86, 62, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-brown);
    color: var(--color-cream);
    padding: var(--space-3xl) var(--space-md) var(--space-lg);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-3xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-cream-light);
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary-light);
}

.footer-brand p {
    color: var(--color-cream);
    opacity: 0.8;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    color: var(--color-cream-light);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

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

.footer-column li {
    margin-bottom: var(--space-xs);
}

.footer-column a {
    color: var(--color-cream);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--color-primary-light);
}

.footer-bottom {
    max-width: 1400px;
    margin: var(--space-2xl) auto 0;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-cream);
    opacity: 0.6;
}

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

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

.cart-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-size: 1.25rem;
}

.cart-close {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    transition: color 0.3s;
}

.cart-close:hover {
    color: var(--color-primary);
}

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

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--color-primary);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-cream);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

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

.cart-item-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.cart-item-remove:hover {
    color: var(--color-primary);
}

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

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.cart-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--color-cream);
    background: var(--bg-primary);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cart-total span:last-child {
    color: var(--color-primary);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   CHATBOT - GANDU
   ============================================ */
.chatbot-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 1500;
}

.chatbot-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(45, 106, 30, 0.4);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.chatbot-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(45, 106, 30, 0.5);
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chatbot-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3d);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.chatbot-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chatbot-avatar-small {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chatbot-title h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 2px;
}

.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #B8F369;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.message {
    display: flex;
    gap: var(--space-sm);
    max-width: 85%;
    animation: message-in 0.3s ease;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    background: var(--color-secondary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.bot-message {
    align-self: flex-start;
}

.bot-message .message-content {
    background: var(--bg-primary);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--color-primary);
    color: white;
}

.user-message .message-content {
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md);
}

.message-content {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-content p {
    color: inherit;
}

.chatbot-input {
    padding: var(--space-md);
    border-top: 1px solid var(--color-cream);
    display: flex;
    gap: var(--space-sm);
}

.chatbot-input input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-cream);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.chatbot-input input:focus {
    border-color: var(--color-secondary);
}

#chatSend {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--color-secondary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#chatSend:hover {
    background: var(--color-secondary-dark);
    transform: scale(1.1);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-secondary-dark);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: var(--color-secondary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-dark);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(80px + var(--space-2xl));
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .milk-splash-container {
        width: 350px;
        height: 350px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        height: 350px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .chatbot-window {
        width: calc(100vw - var(--space-lg) * 2);
        right: calc(-1 * var(--space-lg));
    }
    
    .chatbot-container {
        right: var(--space-md);
        bottom: var(--space-md);
    }
}

/* ============================================
   3D ANIMATIONS & EFFECTS
   ============================================ */
[data-3d="true"] {
    transform-style: preserve-3d;
    perspective: var(--perspective);
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax effect */
.parallax {
    will-change: transform;
}

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

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