/*
 * Universo Jardín - Estilos principales
 * Diseño inspirado en el original de Lovable con colores del vivero
 */

/* ===== Variables CSS ===== */
:root {
    /* Colores principales - Paleta del vivero */
    --primary: #2C5234;          /* Verde Bosque Profundo */
    --primary-light: #3d6b45;    /* Verde medio */
    --primary-lighter: #A6C4A0;  /* Verde Salvia Suave */
    --primary-bg: rgba(44, 82, 52, 0.1);
    
    --accent: #DA9B9B;           /* Rosa Terracota */
    --accent-dark: #c48585;
    
    /* Colores neutros */
    --background: #F4EBD9;       /* Crema Natural */
    --foreground: #4A4A4A;       /* Gris Tierra Oscuro */
    --muted: #A6C4A0;            /* Verde Salvia Suave */
    --muted-foreground: #4A4A4A; /* Gris Tierra Oscuro */
    --border: #E8D5C0;           /* Beige Arena */
    
    /* Cards */
    --card: #ffffff;
    --card-foreground: #4A4A4A;
    
    /* Otros */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --whatsapp: #25d366;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Bordes */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Fuentes */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background-color: #20bd5a;
    transform: translateY(-1px);
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
}

/* ===== Navigation ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.nav-toggle {
    display: flex;
    padding: var(--spacing-sm);
    color: white;
}

.nav-toggle i {
    width: 24px;
    height: 24px;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
}

.nav-menu.active {
    display: flex;
}

.nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        border: none;
        padding: 0;
        gap: var(--spacing-xs);
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: var(--spacing-3xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../vivero.webp');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    opacity: 0.35;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(166, 196, 160, 0.5) 0%, rgba(244, 235, 217, 0.7) 50%, rgba(218, 155, 155, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

@media (min-width: 768px) {
    .hero {
        padding: var(--spacing-3xl) 0 calc(var(--spacing-3xl) * 1.5);
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* ===== Page Header ===== */
.page-header {
    position: relative;
    padding: var(--spacing-2xl) 0;
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../vivero.webp');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    opacity: 0.25;
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(166, 196, 160, 0.5) 0%, rgba(244, 235, 217, 0.7) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Sections ===== */
.section {
    padding: var(--spacing-3xl) 0;
}

.about {
    background-color: rgba(166, 196, 160, 0.2);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* ===== Cards ===== */
.card {
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Featured Products Section */
.featured-products {
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--background) 100%);
}

.featured-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 640px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.featured-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.featured-products .loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: var(--spacing-xl);
}

.featured-products .spinner-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Feature Cards */
.features-grid {
    display: grid;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    text-align: center;
    height: 100%;
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.card-icon i {
    width: 48px;
    height: 48px;
    color: var(--primary);
}

.card-icon.accent i {
    color: var(--accent-dark);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--muted-foreground);
}

/* Location Cards */
.location-grid {
    display: grid;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.location-card {
    background-color: rgba(166, 196, 160, 0.2);
    border-color: var(--border);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

.card-header i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.card-header h3 {
    font-size: 1.25rem;
}

.card-body {
    color: var(--muted-foreground);
}

.schedule {
    margin-top: var(--spacing-md);
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-xs);
}

.schedule-header i {
    width: 16px;
    height: 16px;
}

.schedule-times {
    font-size: 0.875rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.contact-item i {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ===== Products ===== */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-dropdown-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 500;
    color: var(--foreground);
    background-color: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 200px;
    justify-content: space-between;
}

.filter-dropdown-btn:hover {
    border-color: var(--primary);
}

.filter-dropdown-btn.active {
    border-color: var(--primary);
    background-color: var(--primary-bg);
}

.filter-dropdown-btn i {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.filter-dropdown.open .filter-dropdown-btn i {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.filter-dropdown.open .filter-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-option {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95rem;
    color: var(--foreground);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.filter-option:hover {
    background-color: var(--primary-bg);
}

.filter-option.active {
    background-color: var(--primary);
    color: white;
}

/* Category Tabs - Sistema de 2 niveles */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.category-tab {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background-color: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tab.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.category-tab i {
    width: 18px;
    height: 18px;
}

/* Subcategory Filter - Dropdown */
.subcategory-filter {
    display: none;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 100;
}

/* Custom Subcategory Dropdown */
.subcategory-dropdown {
    position: relative;
    display: inline-flex;
}

.subcategory-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--foreground);
}

.subcategory-toggle:hover {
    border-color: var(--primary);
    background-color: rgba(44, 82, 52, 0.03);
}

.subcategory-toggle.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 52, 0.15);
}

.subcategory-toggle i {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.subcategory-toggle i:last-child {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.subcategory-toggle.active i:last-child {
    transform: rotate(180deg);
}

.subcategory-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    min-width: 220px;
    max-height: 300px;
    overflow-y: auto;
}

.subcategory-menu.show {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.subcategory-option {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--foreground);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.subcategory-option:hover {
    background: rgba(44, 82, 52, 0.08);
}

.subcategory-option.selected {
    background: rgba(44, 82, 52, 0.12);
    color: var(--primary);
}

.subcategory-option:first-child {
    border-radius: 18px 18px 0 0;
}

.subcategory-option:last-child {
    border-radius: 0 0 18px 18px;
}

.subcategory-option:only-child {
    border-radius: 18px;
}

/* Hide old select */
.subcategory-select {
    display: none;
}

.subcategory-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.subcategory-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.subcategory-btn.active {
    background-color: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background-color: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.products-grid {
    display: grid;
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background-color: var(--muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-emoji {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.product-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--muted);
    color: var(--muted-foreground);
    border-radius: var(--radius-sm);
    text-transform: capitalize;
    margin-bottom: var(--spacing-sm);
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.product-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price-old {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: line-through;
    margin-left: var(--spacing-sm);
}

/* Loading & Empty States */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl);
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl);
    color: var(--muted-foreground);
    text-align: center;
}

.empty-state i {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.hidden {
    display: none !important;
}

/* ===== Wholesale ===== */
.wholesale-card {
    background-color: rgba(166, 196, 160, 0.2);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
}

.wholesale-card h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
}

.wholesale-card .subtitle {
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-xl);
}

.requirements {
    margin-bottom: var(--spacing-xl);
}

.requirements h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    color: var(--muted-foreground);
}

.requirements-list i {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.wholesale-contact {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
}

.wholesale-contact h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.contact-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 640px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-grid .contact-item {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-md);
    background-color: white;
    border-radius: var(--radius-md);
}

.contact-grid .contact-item i {
    width: 32px;
    height: 32px;
    margin-bottom: var(--spacing-sm);
}

.contact-grid .contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-grid .contact-item strong {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.contact-grid .contact-item span {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-sm);
}

@media (min-width: 768px) {
    .footer-logo {
        margin: 0 0 var(--spacing-sm);
    }
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-developer {
    margin-top: var(--spacing-md);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-developer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-developer a:hover {
    color: white;
}

.admin-link {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.admin-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Google Map ===== */
.map-container {
    margin-top: var(--spacing-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
}

/* Location Grid with Map */
.location-content {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 1024px) {
    .location-content {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        gap: var(--spacing-lg);
    }
    
    .location-grid {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .location-card {
        flex: 1;
    }
    
    .map-container {
        margin-top: 0;
    }
}

/* ===== Animations ===== */
.animate-fade-up {
    animation: fadeUp 0.7s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* ===== Product Image Carousel ===== */
.product-image-carousel {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.product-image-carousel .product-image {
    margin-bottom: 0;
    cursor: pointer;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all var(--transition-fast);
    opacity: 0;
}

.product-card:hover .carousel-btn,
.product-image-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn i {
    width: 18px;
    height: 18px;
    color: var(--foreground);
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: white;
}

/* Product card content link */
.product-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

/* ===== Image Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close i {
    width: 24px;
    height: 24px;
    color: white;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav i {
    width: 28px;
    height: 28px;
    color: white;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 20px;
    }
}
