/* =====================================================
   GREENVISTA - Farm-to-Table Website Styles
   Transparent Fruit Farming
   ===================================================== */

/* CSS Variables - Farm Color Palette */
:root {
    /* Primary Colors - From visiting card */
    --green-dark: #1B4332;
    --green-primary: #2D6A4F;
    --green-light: #40916C;
    --green-pale: #74C69D;

    /* Earth Tones */
    --brown-dark: #5C4033;
    --brown-medium: #8B6914;
    --cream: #F5F0E6;
    --cream-dark: #E8E0D0;
    --sand: #D4C5A9;

    /* Accent Colors */
    --orange-fruit: #E85D04;
    --red-pomegranate: #9D0208;
    --yellow-lemon: #F9C74F;
    --green-lime: #90BE6D;
    --orange-papaya: #F8961E;

    /* Neutrals */
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-light: #F8F9FA;
    --gray-medium: #6C757D;
    --gray-dark: #343A40;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--black);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul,
ol {
    list-style: none;
}

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

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

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

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

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

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

.text-green {
    color: var(--green-primary);
}

.text-brown {
    color: var(--brown-dark);
}

/* =====================================================
   PRELOADER
   ===================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: var(--white);
}

.preloader .tree-icon {
    font-size: 4rem;
    animation: sway 2s ease-in-out infinite;
}

.preloader p {
    color: var(--cream);
    font-size: 1.25rem;
    margin-top: var(--space-md);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes sway {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.main-header.transparent {
    background: transparent;
    box-shadow: none;
}

.main-header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

/* Scrolled header - ensure dark text */
.main-header.scrolled .logo-green {
    color: var(--green-dark);
    text-shadow: none;
}

.main-header.scrolled .logo-vista {
    color: var(--brown-dark);
    text-shadow: none;
}

.main-header.scrolled .logo-tagline {
    color: var(--gray-medium);
}

.main-header.scrolled .nav-menu a {
    color: var(--gray-dark);
}

.main-header.scrolled .nav-menu a:hover,
.main-header.scrolled .nav-menu a.active {
    color: var(--green-primary);
}

.main-header.scrolled .btn-outline {
    color: var(--green-primary);
    border-color: var(--green-primary);
}

.main-header.scrolled .btn-outline:hover {
    background: var(--green-primary);
    color: var(--white);
}

.main-header.scrolled .nav-toggle span {
    background: var(--green-dark);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-green {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--green-dark);
    letter-spacing: 1px;
}

.logo-vista {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--brown-dark);
    letter-spacing: 1px;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--gray-medium);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.main-header.transparent .logo-green,
.main-header.transparent .logo-vista {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-header.transparent .logo-tagline {
    color: var(--cream);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: var(--space-xl);
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-sm) 0;
    position: relative;
    color: var(--gray-dark);
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--green-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.main-header.transparent .nav-menu a {
    color: var(--white);
}

.main-header.transparent .nav-menu a:hover,
.main-header.transparent .nav-menu a.active {
    color: var(--cream);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    padding: var(--space-sm);
}

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--green-dark);
    transition: all var(--transition-fast);
}

.main-header.transparent .nav-toggle span {
    background: var(--white);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--green-primary);
    border-color: var(--green-primary);
}

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

.main-header.transparent .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.main-header.transparent .btn-outline:hover {
    background: var(--white);
    color: var(--green-dark);
}

.btn-text {
    background: transparent;
    color: var(--gray-medium);
    padding: var(--space-sm);
}

.btn-text:hover {
    color: var(--green-primary);
}

.btn-lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   HERO SECTION - Immersive Farm Experience
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg-sky {
    background: linear-gradient(180deg,
            #1a3c34 0%,
            #2D6A4F 30%,
            #40916C 60%,
            #74C69D 100%);
}

.hero-bg-mountains {
    background:
        radial-gradient(ellipse 120% 80% at 10% 90%, rgba(27, 67, 50, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(45, 106, 79, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 90% 85%, rgba(64, 145, 108, 0.7) 0%, transparent 40%);
}

/* Farm texture overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(27, 67, 50, 0.3) 0%,
            rgba(27, 67, 50, 0.5) 50%,
            rgba(27, 67, 50, 0.7) 100%);
    z-index: -1;
}

/* Animated Farm Elements */
.hero-farm-scene {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    z-index: -1;
}

.farm-hills {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background:
        radial-gradient(ellipse 100% 120% at 15% 100%, var(--green-dark) 0%, transparent 45%),
        radial-gradient(ellipse 80% 100% at 45% 100%, var(--green-primary) 0%, transparent 40%),
        radial-gradient(ellipse 90% 110% at 80% 100%, var(--green-light) 0%, transparent 45%);
}

.farm-rows {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 30px,
            rgba(255, 255, 255, 0.08) 30px,
            rgba(255, 255, 255, 0.08) 32px);
    transform: perspective(800px) rotateX(65deg);
    transform-origin: bottom;
}

/* Tree silhouettes */
.hero-farm-scene::before {
    content: '🌳 🌳 🌳 🌳 🌳 🌳 🌳 🌳 🌳 🌳';
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    font-size: 3rem;
    text-align: center;
    letter-spacing: 30px;
    opacity: 0.3;
    filter: blur(1px);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.floating-leaf {
    position: absolute;
    font-size: 2rem;
    animation: floatLeaf 15s ease-in-out infinite;
    opacity: 0.6;
}

.floating-leaf:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.floating-leaf:nth-child(2) {
    left: 25%;
    animation-delay: 3s;
}

.floating-leaf:nth-child(3) {
    left: 45%;
    animation-delay: 6s;
}

.floating-leaf:nth-child(4) {
    left: 65%;
    animation-delay: 9s;
}

.floating-leaf:nth-child(5) {
    left: 85%;
    animation-delay: 12s;
}

@keyframes floatLeaf {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-xl);
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    color: var(--white);
    font-size: 0.9rem;
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 .highlight {
    color: var(--yellow-lemon);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--cream);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    background: var(--white);
    color: var(--green-dark);
    border-color: var(--white);
}

.hero-cta .btn-primary:hover {
    background: var(--cream);
    transform: translateY(-3px);
}

.hero-cta .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.8rem;
    margin-bottom: var(--space-sm);
}

.scroll-indicator .arrow {
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* =====================================================
   WHY DIFFERENT SECTION
   ===================================================== */
.why-different {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.why-different::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--cream) 0%, transparent 100%);
}

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

.section-header .subtitle {
    display: inline-block;
    color: var(--green-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray-medium);
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.difference-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.difference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.difference-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.difference-card:hover::before {
    transform: scaleX(1);
}

.difference-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

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

.difference-card p {
    font-size: 0.95rem;
    color: var(--gray-medium);
    margin-bottom: 0;
}

/* =====================================================
   LIVE CAMERA SECTION
   ===================================================== */
.live-cameras-section {
    background: var(--green-dark);
    color: var(--white);
    position: relative;
}

.live-cameras-section .section-header .subtitle {
    color: var(--green-pale);
}

.live-cameras-section .section-header h2 {
    color: var(--white);
}

.live-cameras-section .section-header p {
    color: var(--cream);
}

.camera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.camera-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.camera-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.camera-feed {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-feed .placeholder {
    text-align: center;
    color: var(--gray-medium);
}

.camera-feed .placeholder .icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    animation: pulse 2s ease-in-out infinite;
}

.live-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(220, 38, 38, 0.9);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.live-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

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

.camera-info h4 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.camera-info p {
    color: var(--cream);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.camera-meta {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.8rem;
    color: var(--green-pale);
}

/* =====================================================
   FRUITS SHOWCASE
   ===================================================== */
.fruits-showcase {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.fruits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.fruit-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.fruit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.fruit-image {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fruit-image .fruit-emoji {
    font-size: 6rem;
    transition: transform var(--transition-normal);
}

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

.fruit-season-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--green-primary);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.fruit-content {
    padding: var(--space-xl);
}

.fruit-content h3 {
    margin-bottom: var(--space-sm);
}

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

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

.fruit-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--green-dark);
}

.fruit-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-medium);
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how-it-works {
    background: var(--cream);
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--green-primary) 20%,
            var(--green-primary) 80%,
            transparent);
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--green-primary);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.step p {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '🌳';
    position: absolute;
    font-size: 20rem;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.cta-section p {
    color: var(--cream);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--green-dark);
}

.cta-section .btn-primary:hover {
    background: var(--cream);
}

.cta-section .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

/* =====================================================
   FOOTER
   ===================================================== */
.main-footer {
    background: linear-gradient(180deg, #1B4332 0%, #0D2818 100%);
    color: var(--white);
    position: relative;
}

/* Wave transition at top of footer */
.main-footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, transparent 0%, #1B4332 100%);
}

/* Clean wave separator */
.footer-wave {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
}

.footer-content {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-xl);
}


.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

/* Fix footer logo text colors to be visible */
.footer-brand .logo-green {
    color: var(--green-pale) !important;
}

.footer-brand .logo-vista {
    color: var(--white) !important;
}

.footer-tagline {
    color: var(--green-pale);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
}

.footer-desc {
    color: var(--cream);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--green-light);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: var(--space-sm);
}

.footer-links a,
.footer-contact a {
    color: var(--cream);
    font-size: 0.9rem;
    opacity: 0.9;
    transition: all var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
    opacity: 1;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--cream);
    font-size: 0.9rem;
}

.footer-contact .icon {
    flex-shrink: 0;
}

/* Trust Badges */
.footer-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    padding: var(--space-2xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-xl);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--cream);
    font-size: 0.9rem;
}

.trust-badge .badge-icon {
    font-size: 1.5rem;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

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

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: var(--cream);
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-legal a:hover {
    opacity: 1;
}

/* =====================================================
   PRODUCTS PAGE
   ===================================================== */
.page-header {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    color: var(--white);
    padding: calc(100px + var(--space-3xl)) 0 var(--space-3xl);
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.page-header p {
    color: var(--cream);
    max-width: 600px;
    margin: 0 auto;
}

.products-section {
    padding: var(--space-3xl) 0;
}

/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */
.product-detail {
    padding: calc(80px + var(--space-2xl)) 0 var(--space-3xl);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    background: var(--cream);
    border-radius: var(--radius-xl);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.product-main-image .fruit-emoji {
    font-size: 12rem;
}

.product-camera-preview {
    background: var(--black);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.product-camera-preview .live-badge {
    position: static;
    display: inline-flex;
    margin-bottom: var(--space-md);
}

.product-camera-preview p {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.product-info h1 {
    margin-bottom: var(--space-md);
}

.product-meta {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.product-price-block {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.product-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-dark);
}

.product-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-medium);
}

.product-description {
    margin-bottom: var(--space-2xl);
    color: var(--gray-dark);
    line-height: 1.8;
}

/* Batch Selection */
.batch-selection {
    margin-bottom: var(--space-2xl);
}

.batch-selection h3 {
    margin-bottom: var(--space-lg);
}

.batch-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.batch-item {
    background: var(--white);
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-lg);
    align-items: center;
}

.batch-item:hover {
    border-color: var(--green-light);
}

.batch-item.selected {
    border-color: var(--green-primary);
    background: rgba(45, 106, 79, 0.05);
}

.batch-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--cream-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-item.selected .batch-radio {
    border-color: var(--green-primary);
}

.batch-item.selected .batch-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--green-primary);
    border-radius: 50%;
}

.batch-details h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.batch-details p {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin: 0;
}

.batch-availability {
    text-align: right;
}

.batch-availability .available {
    font-weight: 600;
    color: var(--green-primary);
}

.batch-availability .total {
    font-size: 0.85rem;
    color: var(--gray-medium);
}

/* Quantity Selector */
.quantity-section {
    margin-bottom: var(--space-2xl);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.qty-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--cream-dark);
    background: var(--white);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.qty-input {
    width: 100px;
    height: 50px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.qty-unit {
    color: var(--gray-medium);
}

/* Add to Cart */
.add-to-cart-section {
    display: flex;
    gap: var(--space-md);
}

.add-to-cart-section .btn {
    flex: 1;
}

/* =====================================================
   CART PAGE
   ===================================================== */
.cart-page {
    padding: calc(80px + var(--space-2xl)) 0 var(--space-3xl);
    min-height: 70vh;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-2xl);
    align-items: start;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--cream-dark);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.cart-item-info h4 {
    margin-bottom: var(--space-xs);
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin: 0;
}

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

.cart-item-qty button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--cream-dark);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.cart-item-qty span {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

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

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--cream-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.summary-row.total {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--cream-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.free-shipping-badge {
    background: var(--green-pale);
    color: var(--green-dark);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.advance-info {
    background: var(--cream);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.advance-info strong {
    color: var(--green-dark);
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--gray-dark);
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--green-primary);
}

.form-control.error {
    border-color: var(--red-pomegranate);
}

.form-error {
    color: var(--red-pomegranate);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    padding: var(--space-xl);
}

.auth-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--gray-medium);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--cream-dark);
}

.auth-footer a {
    color: var(--green-primary);
    font-weight: 500;
}

/* =====================================================
   DASHBOARD
   ===================================================== */
.dashboard {
    padding: calc(80px + var(--space-2xl)) 0 var(--space-3xl);
}

.dashboard-header {
    margin-bottom: var(--space-2xl);
}

.dashboard-header h1 {
    margin-bottom: var(--space-sm);
}

.dashboard-header p {
    color: var(--gray-medium);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-2xl);
}

.dashboard-nav {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    height: fit-content;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    color: var(--gray-dark);
    transition: all var(--transition-fast);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: var(--cream);
    color: var(--green-primary);
}

.dashboard-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

/* Order Cards */
.order-card {
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

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

.order-status {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.order-status.confirmed {
    background: var(--green-pale);
    color: var(--green-dark);
}

.order-status.pending {
    background: var(--yellow-lemon);
    color: var(--brown-dark);
}

.order-status.shipped {
    background: #93C5FD;
    color: #1E40AF;
}

.order-status.delivered {
    background: var(--green-primary);
    color: var(--white);
}

/* =====================================================
   ALERTS & MESSAGES
   ===================================================== */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.alert-success {
    background: rgba(74, 222, 128, 0.2);
    color: var(--green-dark);
    border: 1px solid var(--green-light);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red-pomegranate);
    border: 1px solid var(--red-pomegranate);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .product-gallery {
        position: static;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px var(--space-xl) var(--space-xl);
        gap: var(--space-md);
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        gap: var(--space-sm);
    }

    .nav-actions .btn {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.85rem;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .steps-container::before {
        display: none;
    }

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

    .footer-social {
        justify-content: center;
    }

    .footer-trust {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

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

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

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .auth-container {
        padding: var(--space-xl);
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: var(--space-md);
    }

    .cart-item-qty,
    .cart-item-price {
        grid-column: 2;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Intersection Observer Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--cream-dark);
    border-top-color: var(--green-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: var(--space-md);
}

.empty-state p {
    color: var(--gray-medium);
    margin-bottom: var(--space-xl);
}

/* =====================================================
   MOBILE-FIRST EXPERIENCE
   ===================================================== */

/* Mobile Bottom Navigation - Floating Pill Style */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: var(--white);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: var(--space-sm) var(--space-md);
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
    border-radius: 24px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: var(--space-sm);
    color: var(--gray-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item.active {
    color: var(--green-primary);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--green-primary);
    border-radius: 0 0 4px 4px;
}

.mobile-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.mobile-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 20px);
    background: var(--red-pomegranate);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Mobile Sticky Add to Cart Bar */
.mobile-sticky-cart {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: var(--space-md);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
    z-index: 999;
}

.mobile-sticky-cart .price-display {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.mobile-sticky-cart .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-dark);
}

.mobile-sticky-cart .price-unit {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

.mobile-sticky-cart .btn {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
}

/* =====================================================
   MOBILE RESPONSIVE OVERRIDES (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {

    /* Show mobile nav */
    .mobile-bottom-nav {
        display: flex;
    }

    /* Add padding to body for bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Hide footer on mobile - too heavy */
    .main-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-trust {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    /* Compact header on mobile */
    .navbar {
        padding: var(--space-sm) var(--space-md);
    }

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

    .logo-green,
    .logo-vista {
        font-size: 1.2rem;
    }

    .logo-tagline {
        display: none;
    }

    .nav-actions .btn {
        display: none;
    }

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

    /* Hero mobile optimization */
    .hero {
        min-height: 85vh;
    }

    .hero-content {
        padding: var(--space-md);
    }

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

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-md);
    }

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

    .scroll-indicator {
        display: none;
    }

    /* Section padding mobile */
    .section {
        padding: var(--space-2xl) 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Fruit cards - horizontal scroll */
    .fruits-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-md);
        padding: var(--space-md) 0;
        margin: 0 calc(-1 * var(--space-md));
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        -webkit-overflow-scrolling: touch;
    }

    .fruits-grid::-webkit-scrollbar {
        display: none;
    }

    .fruits-grid .fruit-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    /* Difference cards - 2 column on mobile */
    .difference-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .difference-card {
        padding: var(--space-lg);
    }

    .difference-icon {
        font-size: 2rem;
    }

    .difference-card h3 {
        font-size: 0.95rem;
    }

    .difference-card p {
        font-size: 0.85rem;
        display: none;
    }

    /* Camera grid mobile */
    .camera-grid {
        gap: var(--space-md);
    }

    /* Steps horizontal scroll on mobile */
    .steps-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-md);
        padding: var(--space-md) 0;
        -webkit-overflow-scrolling: touch;
    }

    .steps-container .step {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }

    /* Product detail mobile */
    .product-detail {
        padding-bottom: 100px;
    }

    .product-grid {
        gap: var(--space-lg);
    }

    .product-main-image {
        height: 250px;
    }

    .product-main-image .fruit-emoji {
        font-size: 6rem;
    }

    .batch-list {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        -webkit-overflow-scrolling: touch;
    }

    .batch-item {
        flex: 0 0 250px;
        scroll-snap-align: start;
    }

    /* Show mobile sticky cart on product pages */
    .product-detail .mobile-sticky-cart {
        display: block;
    }

    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: var(--space-md) var(--space-xl);
    }

    .btn-lg {
        min-height: 52px;
        padding: var(--space-md) var(--space-2xl);
    }

    .form-control {
        min-height: 48px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Cart page mobile */
    .cart-page h1 {
        font-size: 1.5rem;
    }

    .cart-item {
        padding: var(--space-md);
    }

    .cart-item-image {
        font-size: 2rem;
    }

    /* Auth pages mobile */
    .auth-container {
        padding: var(--space-lg);
        margin: var(--space-md);
    }

    /* Dashboard mobile */
    .dashboard-nav {
        display: none;
    }

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

    .order-card {
        padding: var(--space-md);
    }

    /* Page header mobile */
    .page-header {
        padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.75rem;
    }

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

    .fruits-grid .fruit-card {
        flex: 0 0 260px;
    }
}

/* Touch feedback */
@media (hover: none) {
    .btn:active {
        transform: scale(0.97);
    }

    .mobile-nav-item:active {
        background: var(--cream);
    }

    .fruit-card:active {
        transform: scale(0.98);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   ADDITIONAL MOBILE PAGE FIXES
   ===================================================== */

@media (max-width: 768px) {

    /* Dashboard Page Mobile */
    .dashboard {
        padding: var(--space-xl) 0;
        padding-bottom: 100px;
    }

    .dashboard-header {
        text-align: center;
        padding: var(--space-md);
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .dashboard-header p {
        font-size: 0.9rem;
    }

    .dashboard-content {
        padding: 0;
    }

    .profile-form {
        max-width: 100%;
    }

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

    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Order cards mobile */
    .order-card .order-header {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .order-card [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: var(--space-sm) !important;
    }

    /* Contact Page Mobile */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

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

    /* About Page Mobile */
    .about-features {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 12px;
    }

    /* How It Works Mobile */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    /* Live Cameras Mobile */
    .camera-card {
        padding: var(--space-md);
    }

    .camera-preview {
        height: 180px;
    }

    /* Checkout Page Mobile */
    .checkout-form {
        padding: var(--space-lg);
    }

    .checkout-summary {
        padding: var(--space-lg);
    }

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

    /* Payment Success Mobile */
    .success-card {
        padding: var(--space-xl);
        margin: var(--space-md);
    }

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

    /* Auth Pages Mobile */
    .auth-page {
        padding: var(--space-lg) var(--space-md);
        min-height: calc(100vh - 140px);
    }

    .auth-container {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    /* Tab switching for dashboard - horizontal scroll */
    .dashboard-nav {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        gap: var(--space-sm);
        padding: var(--space-md);
        margin-bottom: var(--space-lg);
        background: var(--white);
        border-radius: var(--radius-lg);
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-nav a {
        flex: 0 0 auto;
        padding: var(--space-sm) var(--space-lg);
        border-radius: var(--radius-full);
        background: var(--cream);
        white-space: nowrap;
    }

    .dashboard-nav a.active {
        background: var(--green-primary);
        color: var(--white) !important;
    }

    .dashboard-nav a[href="/live-cameras.php"],
    .dashboard-nav a[href="/auth/logout.php"] {
        display: none;
    }

    /* Products grid mobile - 2 columns */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .product-card-link .fruit-card {
        padding: var(--space-md);
    }

    .product-card-link .fruit-emoji {
        font-size: 2.5rem;
    }

    .product-card-link h3 {
        font-size: 1rem;
    }

    .product-card-link .price {
        font-size: 1rem;
    }

    /* Add safe padding for floating nav */
    body {
        padding-bottom: 90px;
    }
}

/* Extra small screens - single column products */
@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-nav {
        padding: var(--space-sm);
    }

    .dashboard-nav a {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.85rem;
    }

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

/* Fix overlap: Hide bottom nav on product detail when sticky cart is visible */
@media (max-width: 768px) {
    .product-detail .mobile-bottom-nav {
        display: none !important;
    }

    .product-detail .mobile-sticky-cart {
        display: block !important;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 24px 24px 0 0;
    }
}

/* =====================================================
   COMPREHENSIVE MOBILE FIXES - Footer & Fruit Cards
   ===================================================== */

@media (max-width: 768px) {

    /* Footer Mobile - Compact and Clean */
    .main-footer {
        padding-bottom: 100px;
        /* Space for floating nav */
    }

    .footer-wave svg {
        height: 40px;
    }

    .footer-content {
        padding: var(--space-xl) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg);
        text-align: center;
    }

    .footer-brand {
        margin-bottom: var(--space-md);
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-desc {
        font-size: 0.85rem;
        max-width: 280px;
        margin: 0 auto var(--space-md);
    }

    .footer-social {
        justify-content: center;
        gap: var(--space-lg);
    }

    .footer-social a {
        font-size: 1.5rem;
    }

    .footer-links h4 {
        font-size: 1rem;
        margin-bottom: var(--space-sm);
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm) var(--space-md);
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-contact ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .footer-contact li {
        font-size: 0.85rem;
    }

    .footer-trust {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-md) !important;
        padding: var(--space-lg) 0;
    }

    .trust-badge {
        flex-direction: column;
        text-align: center;
        padding: var(--space-sm);
        font-size: 0.75rem;
    }

    .trust-badge .badge-icon {
        font-size: 1.25rem;
        margin-bottom: var(--space-xs);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-lg) 0;
        font-size: 0.8rem;
    }

    .footer-legal {
        display: flex;
        gap: var(--space-md);
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Fruit Cards on Homepage - Horizontal Scroll */
    .fruits-section .fruits-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: var(--space-md) !important;
        padding: var(--space-md) var(--space-md) var(--space-xl);
        margin: 0 calc(-1 * var(--space-lg));
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .fruits-section .fruits-grid::-webkit-scrollbar {
        display: none;
    }

    .fruits-section .fruit-card {
        flex: 0 0 260px !important;
        min-width: 260px !important;
        scroll-snap-align: start;
    }

    .fruits-section .fruit-image {
        aspect-ratio: 4/3;
    }

    .fruits-section .fruit-image .fruit-emoji {
        font-size: 4rem !important;
    }

    .fruits-section .fruit-content {
        padding: var(--space-md) !important;
    }

    .fruits-section .fruit-content h3 {
        font-size: 1.1rem;
    }

    .fruits-section .fruit-content .description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .fruits-section .fruit-footer {
        gap: var(--space-sm);
    }

    .fruits-section .fruit-price {
        font-size: 1.1rem;
    }

    .fruits-section .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8rem;
    }

    /* Products Page Grid - 2 columns */
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-md) !important;
    }

    .products-grid .fruit-card {
        min-width: auto !important;
    }

    .products-grid .fruit-image .fruit-emoji {
        font-size: 3rem !important;
    }

    .products-grid .fruit-content {
        padding: var(--space-sm) !important;
    }

    .products-grid .fruit-content h3 {
        font-size: 0.95rem;
        margin-bottom: var(--space-xs);
    }

    .products-grid .fruit-content .description {
        display: none !important;
    }

    .products-grid .fruit-price {
        font-size: 1rem;
    }

    .products-grid .fruit-footer {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch;
    }

    .products-grid .fruit-footer .btn {
        width: 100%;
        text-align: center;
        padding: var(--space-sm);
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {

    /* Extra small - single column products */
    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .fruits-section .fruit-card {
        flex: 0 0 240px !important;
        min-width: 240px !important;
    }

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

/* Enhanced Auth Styles */
.auth-page-premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdfbf7 0%, #ebf5f0 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.auth-page-premium::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
}

.auth-page-premium::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -50px;
    left: -50px;
    border-radius: 50%;
    z-index: 0;
}

.auth-card-premium {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    z-index: 10;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.12);
}

.auth-header-premium {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.auth-subtitle {
    color: var(--gray-medium);
    font-size: 0.95rem;
}

.form-floating {
    position: relative;
    margin-bottom: 20px;
}

.form-floating input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
    outline: none;
}

.form-floating input:focus {
    border-color: var(--green-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
}

.form-floating-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-medium);
    transition: color 0.2s;
}

.form-floating input:focus~.form-floating-icon {
    color: var(--green-primary);
}

.btn-auth-primary {
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    color: white;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(45, 106, 79, 0.2);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(45, 106, 79, 0.3);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--gray-medium);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    padding: 0 12px;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: var(--gray-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-social:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.auth-footer-premium {
    text-align: center;
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.auth-footer-premium a {
    color: var(--green-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-premium a:hover {
    text-decoration: underline;
}

.pulse-animation {
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(45, 106, 79, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(45, 106, 79, 0);
    }
}

@media (max-width: 768px) {

    /* Simplify Header - Show Logo Only */
    .main-header .nav-toggle,
    .main-header .nav-actions,
    .main-header .nav-menu {
        display: none !important;
    }

    .main-header .navbar {
        justify-content: center !important;
        padding: var(--space-sm) var(--space-md) !important;
    }

    .main-header .logo {
        transform: scale(0.9);
        /* Slightly smaller logo */
    }
}

/* 
   Mobile Fruit Card Redesign 
   Fixes "weird" button layout by stacking elements
*/
@media (max-width: 480px) {

    .product-footer,
    .fruit-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .fruit-price,
    .product-price {
        align-self: flex-start;
        margin-bottom: 4px;
    }

    .fruit-footer .btn,
    .product-footer .btn,
    .btn-primary {
        width: 100% !important;
        text-align: center !important;
        justify-content: center;
        padding: 12px !important;
        /* Larger touch target */
    }

    /* Ensure grid is single column on very small screens */
    .fruits-grid,
    .products-grid {
        grid-template-columns: 1fr !important;
    }
}