/* ========================================
   VERDE MERCADO - MODERN AGROECOLOGICAL DESIGN
   ======================================== */

/* ========================================
   CSS VARIABLES - COLOR PALETTE (TERROSO Y FRESCO)
   ======================================== */
:root {
    /* Primary Colors - Terroso y Fresco */
    --primary-green: var(--color-herb);          /* Herb green */
    --primary-green-light: #7a8a7a;              /* Lighter herb */
    --primary-green-soft: #8a9a8a;               /* Very light herb */
    --primary-green-dark: #4e574d;               /* Darker herb */
    
    /* Secondary Colors - Terroso y Fresco */
    --earth-brown: var(--color-terracotta);      /* Terracotta */
    --earth-brown-light: #a66d70;                /* Lighter terracotta */
    --natural-beige: #f8f7f7;                    /* Light beige */
    --natural-beige-dark: #e8e6e6;               /* Medium beige */
    
    /* Accent Colors - Terroso y Fresco */
    --accent-gold: var(--color-chilli);          /* Chilli red */
    --accent-gold-light: #c55a4e;                /* Lighter chilli */
    --accent-coral: var(--color-terracotta);     /* Terracotta */
    --accent-vibrant: var(--color-chilli);       /* Chilli */
    
    /* Neutral Colors - Terroso y Fresco */
    --white: #FFFFFF;
    --gray-50: #FFFFFF;                          /* Pure white */
    --gray-100: #F8F7F7;                         /* Very light gray */
    --gray-200: #E8E6E6;                         /* Light beige */
    --gray-300: #D4D2D2;                         /* Medium beige */
    --gray-400: #C0BEBE;                         /* Light gray */
    --gray-500: var(--color-herb);               /* Herb */
    --gray-600: #4e574d;                         /* Darker herb */
    --gray-700: #3c423c;                         /* Very dark herb */
    --gray-800: var(--color-charcoal);           /* Charcoal */
    --gray-900: #2a2a2a;                         /* Very dark charcoal */
    
    /* Status Colors - Terroso y Fresco */
    --success: var(--color-herb);                /* Herb success */
    --warning: var(--color-chilli);              /* Chilli warning */
    --error: var(--color-chilli);                /* Chilli error */
    --info: var(--color-terracotta);             /* Terracotta info */
    
    /* Typography - Clean & Natural */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Source Sans Pro', sans-serif;
    --font-accent: 'Merriweather', serif;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    --font-ui: 'Source Sans Pro', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: #FFFFFF;
    overflow-x: hidden;
    font-weight: 400;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-charcoal);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-700);
}

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

a:hover {
    color: #96B8A8;
    text-decoration: none;
}

/* ========================================
   NAVIGATION - MODERN AGROECOLOGICAL NAVBAR
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(167, 203, 191, 0.2);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Navbar scroll effect */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
}

/* Brand styling */
.navbar-brand {
    font-family: var(--font-accent);
    font-size: 1.85rem !important;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-herb) 0%, var(--color-terracotta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.navbar-brand::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--color-herb) 0%, var(--color-terracotta) 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover::before {
    width: 100%;
}

.navbar-brand .brand-accent {
    color: var(--color-terracotta) !important;
    -webkit-text-fill-color: var(--color-terracotta);
    font-weight: 900;
}

/* Navigation links */
.navbar-nav {
    margin-left: 2rem;
}

.navbar-nav .nav-link {
    color: var(--color-charcoal) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 0.25rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(167, 203, 191, 0.1) 0%, rgba(221, 147, 72, 0.1) 100%);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link:hover {
    color: var(--color-herb) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 203, 191, 0.2);
}

.navbar-nav .nav-link i {
    font-size: 1rem;
    color: var(--color-herb);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link:hover i {
    color: var(--color-terracotta);
    transform: scale(1.1);
}

/* Active nav link */
.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(167, 203, 191, 0.15) 0%, rgba(221, 147, 72, 0.15) 100%);
    color: var(--color-herb) !important;
    box-shadow: 0 2px 8px rgba(167, 203, 191, 0.2);
}

/* Dropdown styling */
.navbar-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(167, 203, 191, 0.2);
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .dropdown-item {
    color: var(--color-charcoal);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-nav .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(167, 203, 191, 0.1) 0%, rgba(221, 147, 72, 0.1) 100%);
    color: var(--color-herb);
    transform: translateX(4px);
}

.navbar-nav .dropdown-item i {
    color: var(--color-herb);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* Toggle button */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 12px;
    background: rgba(167, 203, 191, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggler:hover {
    background: rgba(167, 203, 191, 0.2);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(167, 203, 191, 0.3);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(167, 203, 191, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Right side elements */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* Cart icon styling */
#carrito-link {
    color: var(--color-charcoal);
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

#carrito-link:hover {
    color: var(--color-herb);
    background: rgba(167, 203, 191, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

#carrito-link i {
    font-size: 1.1rem;
    color: var(--color-herb);
}

#carrito-link-ico {
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#carrito-link-ico:hover {
    background: rgba(167, 203, 191, 0.1);
    transform: scale(1.1);
}

#carrito-link-ico i {
    font-size: 1.25rem;
    color: var(--color-herb);
}



#contador-carrito {
    background: linear-gradient(135deg, var(--color-chilli) 0%, #d63384 100%) !important;
    border: 2px solid white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* User menu styling */
#nombre-usuario {
    background: linear-gradient(135deg, var(--color-herb) 0%, var(--color-terracotta) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(167, 203, 191, 0.3);
}

#nombre-usuario:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 203, 191, 0.4);
    color: white;
}

#nombre-usuario:focus {
    box-shadow: 0 0 0 3px rgba(167, 203, 191, 0.3);
}

/* Login button styling */
#link-login {
    background: linear-gradient(135deg, var(--color-herb) 0%, var(--color-terracotta) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(167, 203, 191, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#link-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 203, 191, 0.4);
    color: white;
    text-decoration: none;
}

#link-login i {
    font-size: 1rem;
}

/* Logout button styling */
#cerrar-sesion-admin {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#cerrar-sesion-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
    color: white;
    text-decoration: none;
}

/* Animations */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #A7CBBF 0%, #B8D4C8 100%);
    color: #332E44;
    box-shadow: 0 4px 12px rgba(167, 203, 191, 0.2);
    font-family: var(--font-ui);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #96B8A8 0%, #A7CBBF 100%);
    color: #332E44;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 203, 191, 0.3);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    color: var(--gray-900);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ========================================
   CARDS
   ======================================== */
.card {
    background: #FFFFFF;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--white);
    border: none;
    padding: var(--spacing-lg);
    font-weight: 600;
    font-family: var(--font-heading);
}

.card-body {
    padding: var(--spacing-xl);
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-lg);
}

/* ========================================
   FORMS
   ======================================== */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--white);
    font-family: var(--font-body);
}

.form-control:focus {
    border-color: #A7CBBF;
    box-shadow: 0 0 0 0.2rem rgba(167, 203, 191, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.form-text {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-600);
}

/* ========================================
   ALERTS & MESSAGES
   ======================================== */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #A7CBBF 0%, #B8D4C8 100%);
    color: #332E44;
    font-family: var(--font-body);
}

.alert-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #FFD54F 100%);
    color: var(--gray-900);
}

.alert-danger {
    background: linear-gradient(135deg, var(--error) 0%, #F44336 100%);
    color: var(--white);
}

.alert-info {
    background: linear-gradient(135deg, var(--info) 0%, #2196F3 100%);
    color: var(--white);
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
    background: var(--gray-100);
}

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

.product-info {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.product-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    line-height: 1.4;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.product-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

/* Product card loading state */
.product-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

@keyframes loading-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   SHOPPING CART
   ======================================== */
.cart-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

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

.cart-item-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

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

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: var(--spacing-lg);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F7F7 100%);
    color: #332E44;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-lg);
    color: #332E44;
    text-shadow: 0 2px 4px rgba(51, 46, 68, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    color: #332E44;
    font-weight: 400;
    opacity: 0.9;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    border: 1px solid #E8D6D4;
    transition: all var(--transition-normal);
    height: 100%;
    font-family: var(--font-body);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.feature-card:hover {
    background: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
    border-color: #A7CBBF;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #A7CBBF 0%, #B8D4C8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: #332E44;
    font-size: 2rem;
}

/* ========================================
   FEATURE CARD TYPOGRAPHY
   ======================================== */
.feature-card h4 {
    color: #332E44;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.feature-card p {
    color: #332E44;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section h2 {
    color: #332E44;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-heading);
}

.about-section .lead {
    color: #332E44;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.about-section p {
    color: #332E44;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.features-section h2 {
    color: #332E44;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
    text-align: center;
}

.features-section .lead {
    color: #332E44;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    opacity: 0.9;
}

/* ========================================
   VIDEO WRAPPER
   ======================================== */
.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   PRODUCTS PAGE TITLE
   ======================================== */
.products-page-title {
    color: #332E44;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    margin-top: 3rem;
    text-align: center;
    position: relative;
}

.products-page-title i {
    color: #A7CBBF;
    font-size: 1.2em;
    margin: 0 0.75rem;
}

/* ========================================
   CALL TO ACTION SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, #A7CBBF 0%, #B8D4C8 100%);
    color: #332E44;
    padding: var(--spacing-3xl) 0;
}

.cta-section h2 {
    color: #332E44;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.cta-section p {
    color: #332E44;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* ========================================
   FOOTER - Overridden by modern-footer.css
   ======================================== */
/* Footer styles are now handled by modern-footer.css for better legibility and aesthetics */

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-primary { color: var(--color-terracotta) !important; }
.text-secondary { color: var(--color-herb) !important; }
.text-accent { color: var(--color-chilli) !important; }
.text-success { color: var(--color-herb) !important; }
.text-warning { color: var(--color-chilli) !important; }
.text-danger { color: var(--color-chilli) !important; }
.text-info { color: var(--color-terracotta) !important; }

.bg-primary { background-color: var(--color-terracotta) !important; }
.bg-secondary { background-color: var(--color-herb) !important; }
.bg-accent { background-color: var(--color-chilli) !important; }
.bg-light { background-color: #FFFFFF !important; }
.bg-white { background-color: #FFFFFF !important; }

.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .product-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Typography */
    .hero-title {
        font-size: 2.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Navigation - Enhanced Mobile Navbar */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar.scrolled {
        padding: 0.4rem 0;
    }

    .navbar-nav {
        margin-left: 0;
        margin-top: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem !important;
        border-radius: 12px;
        font-size: 1rem;
    }

    .navbar-nav .nav-link:hover {
        transform: translateX(4px);
    }

    .navbar-brand {
        font-size: 1.6rem !important;
    }
    
    /* Mobile navbar collapse improvements */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile dropdown improvements */
    .navbar-nav .dropdown-menu {
        background: rgba(255, 255, 255, 0.9);
        border: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
        border-radius: 12px;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
    }
    
    /* Mobile cart and user menu */
    #carrito-link,
    #nombre-usuario,
    #link-login,
    #cerrar-sesion-admin {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin: 0.25rem 0;
    }
    
    #carrito-link-ico {
        padding: 0.75rem;
    }
    
    #carrito-link-ico i {
        font-size: 1.1rem;
    }
    
    /* Cards and Layout */
    .card-body {
        padding: var(--spacing-lg);
    }
    
    .product-card {
        margin-bottom: var(--spacing-md);
    }
    
    .product-image {
        height: 180px;
    }
    
    /* Cart */
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .cart-item-image {
        width: 120px;
        height: 120px;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons */
    .product-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Hero Section */
    .hero-section {
        padding: var(--spacing-2xl) 0;
    }
    
    /* Features */
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    /* Typography */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    /* Layout */
    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    /* Navigation */
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-toggler {
        padding: var(--spacing-xs);
        font-size: 0.875rem;
    }
    
    /* Cards */
    .card-body {
        padding: var(--spacing-md);
    }
    
    .product-card {
        margin-bottom: var(--spacing-sm);
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-title {
        font-size: 1.125rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
        padding: var(--spacing-md);
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: var(--spacing-lg);
        font-size: 1.125rem;
    }
    
    /* Forms */
    .form-control {
        padding: var(--spacing-md);
        font-size: 16px;
    }
    
    .input-group-text {
        padding: var(--spacing-md);
    }
    
    /* Alerts */
    .alert {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    /* Hero Section */
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    /* Features */
    .features-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .feature-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: var(--spacing-md);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    .footer-content {
        gap: var(--spacing-lg);
    }
    
    /* Scroll to top */
    .scroll-to-top {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Search bar */
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        margin-bottom: -1px;
    }
    
    .input-group .btn {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        margin-bottom: 0;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    .product-card {
        margin-bottom: var(--spacing-xs);
    }
    
    .product-image {
        height: 140px;
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem !important;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .features-section {
        padding: var(--spacing-xl) 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Mobile-specific optimizations */
@media (max-width: 576px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Optimize images for mobile */
    .product-image {
        background-size: cover;
        background-position: center;
    }
    
    /* Improve button spacing */
    .btn + .btn {
        margin-top: var(--spacing-sm);
    }
    
    /* Better form spacing */
    .form-control + .form-control {
        margin-top: var(--spacing-sm);
    }
    
    /* Optimize modal for mobile */
    .modal-dialog {
        margin: var(--spacing-sm);
        max-width: calc(100% - 2rem);
    }
    
    /* Better alert spacing */
    .alert {
        margin-left: var(--spacing-sm);
        margin-right: var(--spacing-sm);
    }
    
    /* Improve navigation on mobile */
    .navbar-collapse {
        background: var(--white);
        border-radius: var(--radius-md);
        margin-top: var(--spacing-sm);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }
    
    /* Better dropdown on mobile */
    .dropdown-menu {
        border: none;
        box-shadow: var(--shadow-lg);
        margin-top: var(--spacing-sm);
    }
    
    /* Optimize hero section for mobile */
    .hero-section {
        min-height: 60vh;
        display: flex;
        align-items: center;
    }
    
    /* Better video wrapper for mobile */
    .videoWrapper {
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    
    /* Improve feature cards on mobile */
    .feature-card {
        text-align: center;
        padding: var(--spacing-lg);
    }
    
    /* Better footer on mobile */
    .footer {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 50vh;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .features-section {
        padding: var(--spacing-lg) 0;
    }
    
    .feature-card {
        padding: var(--spacing-md);
    }
}

/* High DPI mobile displays */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px) {
    .product-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Google Sign-In Button Optimizations */
.g_id_signin {
    width: 100% !important;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .g_id_signin {
        transform: scale(0.9);
        transform-origin: center;
    }

    .g_id_signin > div {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ========================================
   PRODUCT CARDS - PROFESSIONAL DESIGN
   ======================================== */
.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    aspect-ratio: 1;
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    z-index: 2;
}



.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-header {
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 500;
}

.product-price-container {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.product-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.quantity-section {
    margin-bottom: 1.5rem;
}

.quantity-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.quantity-input {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.quantity-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

.quantity-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    border: 2px solid var(--success);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.stepper-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.stepper-btn:hover {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: white;
    transform: scale(1.1);
}

.quantity-display {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 40px;
    text-align: center;
    color: var(--success);
    background: rgba(40, 167, 69, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
}

.product-actions {
    margin-top: auto;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
}

.remove-from-cart-btn {
    background: linear-gradient(135deg, var(--error) 0%, #c82333 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.remove-from-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333 0%, var(--error) 100%);
}

/* Mobile-specific product improvements */
@media (max-width: 576px) {
    .product-card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }
    
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .product-image-container {
        aspect-ratio: 1;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }
    
    .product-description {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-bottom: 0.75rem;
    }
    
    .product-price-container {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .product-price {
        font-size: 1.3rem;
        font-weight: 800;
        margin-bottom: 0.25rem;
    }
    
    .product-unit {
        font-size: 0.75rem;
    }
    
    .quantity-section {
        margin-bottom: 1.25rem;
    }
    
    .quantity-label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .quantity-input {
        padding: 0.6rem;
        font-size: 0.95rem;
    }
    
    .quantity-stepper {
        padding: 0.6rem;
        gap: 10px;
    }
    
    .stepper-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .quantity-display {
        font-size: 1rem;
        min-width: 35px;
        padding: 0.4rem;
    }
    
    .add-to-cart-btn,
    .remove-from-cart-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .add-to-cart-btn:hover,
    .remove-from-cart-btn:hover {
        transform: translateY(-1px);
    }
}
    
    /* Search bar improvements */
    .input-group-lg {
        border-radius: var(--border-radius-lg);
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .input-group-lg .form-control {
        font-size: 1rem;
        padding: 15px 20px;
        border: 1px solid var(--border-color);
    }
    
    .input-group-lg .input-group-text {
        background: var(--light-bg);
        border: 1px solid var(--border-color);
        border-right: none;
        color: var(--text-muted);
    }
    
    .input-group-lg .form-control {
        border-left: none;
    }
    
    .input-group-lg .form-control:focus {
        border-color: var(--primary-green);
        box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    }
    
    .input-group-lg .btn {
        padding: 15px 20px;
        font-size: 1rem;
        border: 1px solid var(--primary-green);
        background: var(--primary-green);
        color: white;
    }
    
    .input-group-lg .btn:hover {
        background: var(--primary-green-dark);
        border-color: var(--primary-green-dark);
    }
    
    /* Alert improvements */
    .alert {
        border-radius: var(--border-radius-lg);
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .alert strong {
        font-size: 1rem;
    }
    
    .alert small {
        font-size: 0.85rem;
    }
}

/* Extra small mobile optimizations */
@media (max-width: 375px) {
    .product-card {
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    
    .product-card:hover {
        transform: translateY(-2px);
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
    
    .product-price-container {
        padding: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .product-unit {
        font-size: 0.7rem;
    }
    
    .quantity-section {
        margin-bottom: 1rem;
    }
    
    .quantity-label {
        font-size: 0.8rem;
    }
    
    .quantity-input {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .quantity-stepper {
        padding: 0.5rem;
        gap: 8px;
    }
    
    .stepper-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .quantity-display {
        font-size: 0.9rem;
        min-width: 30px;
        padding: 0.3rem;
    }
    
    .add-to-cart-btn,
    .remove-from-cart-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 576px) and (orientation: landscape) {
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .product-description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .product-price-container {
        padding: 0.6rem;
        margin-bottom: 0.75rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .quantity-section {
        margin-bottom: 0.75rem;
    }
    
    .add-to-cart-btn,
    .remove-from-cart-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ========================================
   LOADER & SPINNER
   ======================================== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top.show {
    display: flex;
}

/* ========================================
   SEARCH BAR STYLES
   ======================================== */
.search-container {
    margin-bottom: 2rem;
}

.search-group {
    border-radius: 50px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 2px solid var(--border-color) !important;
    background: white !important;
}

.search-group:hover {
    border-color: var(--primary-green) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2) !important;
}

.search-group:focus-within {
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
}

.search-icon {
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    padding: 15px 20px !important;
    font-size: 1.1rem !important;
}

.search-input {
    font-size: 1rem !important;
    padding: 15px 20px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-weight: 400 !important;
}

.search-input::placeholder {
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}

.search-input:focus {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
}

.search-btn {
    padding: 15px 25px !important;
    font-size: 1rem !important;
    border: none !important;
    background: var(--primary-green) !important;
    color: white !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    min-width: 60px !important;
}

.search-btn:hover {
    background: var(--primary-green-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3) !important;
}

.search-btn:active {
    transform: translateY(0) !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .search-group {
        border-radius: 25px !important;
    }
    
    .search-icon {
        padding: 12px 15px !important;
        font-size: 1rem !important;
    }
    
    .search-input {
        padding: 12px 15px !important;
        font-size: 0.95rem !important;
    }
    
    .search-btn {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        min-width: 50px !important;
    }
}

@media (max-width: 375px) {
    .search-icon {
        padding: 10px 12px !important;
    }
    
    .search-input {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }
    
    .search-btn {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        min-width: 45px !important;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --gray-50: #2d2d2d;
        --gray-100: #404040;
        --gray-200: #525252;
        --gray-300: #737373;
        --gray-400: #a3a3a3;
        --gray-500: #d4d4d4;
        --gray-600: #e5e5e5;
        --gray-700: #f5f5f5;
        --gray-800: #fafafa;
        --gray-900: #ffffff;
    }
} 

