/*
 * Fashion Theme - Tema elegante y sofisticado para tiendas de moda
 * Estilo: Minimalista, elegante, con tipografía sofisticada y espacios amplios
 * Inspiración: Revistas de moda, boutiques de lujo, e-commerce premium
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    /* Paleta de colores elegante */
    --primary-color: #1a1a1a;        /* Negro sofisticado */
    --secondary-color: #c9a86a;      /* Dorado elegante */
    --accent-color: #d4af37;         /* Oro */
    --success-color: #5a7d5a;        /* Verde sage */
    --warning-color: #c9a86a;
    --danger-color: #8b4545;         /* Burgundy suave */

    /* Colores neutros premium */
    --white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f5f5f5;
    --medium-gray: #e8e8e8;
    --dark-gray: #4a4a4a;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;

    /* Espaciado amplio y aireado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Bordes suaves */
    --border-radius-sm: 0;
    --border-radius: 2px;
    --border-radius-lg: 4px;

    /* Sombras sutiles */
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 32px rgba(0,0,0,0.12);

    /* Transiciones suaves */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===========================
   RESET Y BASE
   =========================== */

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografía elegante */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.text-light-emphasis{
    color: rgba(255,255,255,0.85) !important;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all var(--transition-normal);
}

a:hover {
    color: var(--secondary-color);
}

/* ===========================
   HEADER Y NAVEGACIÓN
   =========================== */

.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    padding: var(--spacing-xs) 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
    overflow: visible !important;
}

.navbar .container,
.navbar .container-fluid {
    overflow: visible !important;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--text-dark) !important;
    letter-spacing: 0.05em;
    text-transform: none;
    transition: all var(--transition-normal);
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.02);
}

.navbar-brand img {
    max-height: 45px;
    filter: none;
}

.navbar-nav {
    align-items: center;
    overflow: visible !important;
}

.navbar-collapse {
    overflow: visible !important;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    margin: 0 var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    transition: all var(--transition-normal);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: width var(--transition-normal);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: var(--spacing-xs);
}

.navbar-toggler:focus {
    box-shadow: 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%281, 1, 1, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Badge del carrito */
.cart-badge {
    background-color: var(--text-dark);
    color: var(--white);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Badge contador del carrito (position absolute con translate-middle) */
.cart-count-badge,
.translate-middle {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    transform: translate(-50%, -50%) !important;
    background-color: #dc3545 !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    padding: 0.35em 0.65em !important;
    border-radius: 50rem !important;
    display: inline-block !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
    z-index: 99999 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    clip-path: none !important;
    overflow: visible !important;
}

/* Contenedor del carrito - permitir overflow para el badge */
.navbar-nav .nav-item {
    overflow: visible !important;
    position: relative !important;
}

.navbar-nav .nav-item.position-relative {
    overflow: visible !important;
}

.navbar-nav .nav-link {
    overflow: visible !important;
}

.navbar-nav .nav-link.position-relative {
    overflow: visible !important;
    position: relative;
}

/* Asegurar que todos los contenedores permitan overflow */
nav, header {
    overflow: visible !important;
}

.navbar > * {
    overflow: visible !important;
}

/* Forzar overflow visible en absolutamente todo lo relacionado con navbar */
.navbar, .navbar * {
    clip: auto !important;
    clip-path: none !important;
}

.navbar .container,
.navbar .container-fluid,
.navbar-collapse,
.navbar-nav,
.navbar-nav .nav-item,
.navbar-nav .nav-link,
.position-relative {
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
}

/* Contenedor del badge específico */
.nav-link.position-relative,
a.position-relative {
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
}

/* Asegurar que el badge esté por encima de todo */
.badge, [class*="badge"] {
    z-index: 99999 !important;
}

/* Botón del carrito - asegurar overflow visible */
.cart-icon-link,
.btn-outline-primary.position-relative {
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
}

/* ===========================
   TOAST NOTIFICATIONS (Mejoradas)
   =========================== */

/* Contenedor de toasts - movido hacia abajo para no bloquear navbar */
.toast-container {
    position: fixed !important;
    top: 80px !important; /* Debajo del navbar */
    right: 1rem !important;
    z-index: 9999 !important;
    pointer-events: none; /* Permitir hacer clic a través del contenedor */
}

/* Toasts individuales - elegantes y menos intrusivos */
.toast {
    pointer-events: auto; /* Solo los toasts bloquean clicks */
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px);
    margin-bottom: 0.75rem;
    min-width: 280px;
    max-width: 350px;
    animation: slideInRight 0.3s ease-out;
}

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

/* Toast body */
.toast-body {
    padding: 1rem 1.25rem !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Colores de toasts - estilo Fashion */
.toast.bg-success {
    background: linear-gradient(135deg, #5a7d5a 0%, #4a6d4a 100%) !important;
}

.toast.bg-danger {
    background: linear-gradient(135deg, #8b4545 0%, #7a3535 100%) !important;
}

.toast.bg-info {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b89858 100%) !important;
}

/* Agregar ícono antes del mensaje */
.toast.bg-success .toast-body::before {
    content: "✓";
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
}

.toast.bg-danger .toast-body::before {
    content: "✕";
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
}

.toast.bg-info .toast-body::before {
    content: "ⓘ";
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
}

/* ===========================
   PAGE HEADER STYLES
   =========================== */
.page-header {
    padding: var(--spacing-lg) 0;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.page-header h1 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.page-header .text-muted {
    color: var(--text-light) !important;
    font-size: 0.9rem;
}

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

.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Pattern overlay elegante con dorado */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, transparent 40%, rgba(201, 168, 106, 0.08) 40%, rgba(201, 168, 106, 0.08) 60%, transparent 60%),
        linear-gradient(60deg, transparent 40%, rgba(212, 175, 55, 0.05) 40%, rgba(212, 175, 55, 0.05) 60%, transparent 60%);
    background-size: 80px 80px;
    z-index: 1;
}

/* Accent decorativo dorado brillante */
.hero-section::after {
    position: absolute;
    top: -30%;
    right: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(201, 168, 106, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
}

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

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
    font-weight: 300;
    line-height: 1.8;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-primary {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 16px rgba(201, 168, 106, 0.4);
}

.hero-section .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

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

.hero-section .btn-outline-primary:hover {
    background-color: var(--white);
    color: var(--text-dark);
    border-color: var(--white);
}

/* ===========================
   BOTONES
   =========================== */

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--text-dark);
    color: var(--white);
    border: 2px solid var(--text-dark);
}

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

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

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    font-size: 0.8rem;
    padding: 0.875rem 1.25rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
    min-height: 48px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-primary i {
    font-size: 1.2rem !important;
}

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

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

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
    border: none;
}

.btn-success:hover {
    background-color: #4a6a4a;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Botón de tamaño pequeño */
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

/* Botón de tamaño grande */
.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

/* ===========================
   SECCIONES
   =========================== */

section {
    padding: var(--spacing-lg) 0;
}

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

.section-title h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.section-title .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: var(--spacing-lg) auto 0;
}

/* ===========================
   CATEGORÍAS
   =========================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
}

.category-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--white);
    margin: 0;
    text-transform: capitalize;
}

.category-card-count {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--spacing-xs);
}

/* ===========================
   PRODUCTOS
   =========================== */

/* Grid principal de productos - 3 columnas fijas en desktop */
.product-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.product-card {
    background-color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

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

.product-image-wrapper,
.product-card-img {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: var(--light-gray);
    isolation: isolate;
}

.product-image-wrapper img,
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* Badge de producto destacado */
.product-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background-color: var(--text-dark);
    color: var(--white);
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    z-index: 5;
}

.product-badge.sale {
    background-color: var(--danger-color);
}

.product-badge.new {
    background-color: var(--secondary-color);
}

/* Botones de acción rápida */
.product-actions {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    transition: all var(--transition-normal);
    display: flex;
    gap: var(--spacing-sm);
}

.product-card:hover .product-actions {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.product-action-btn {
    background-color: var(--white);
    color: var(--text-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow);
}

.product-action-btn:hover {
    background-color: var(--text-dark);
    color: var(--white);
    transform: scale(1.1);
}

/* Contenido del producto */
.product-card-body {
    padding: var(--spacing-lg);
    text-align: center;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title:hover {
    color: var(--secondary-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: var(--spacing-md);
}

.product-price-old {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through !important;
    font-weight: 400;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0;
}

.product-price-sale {
    color: var(--danger-color);
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-block;
    text-decoration: line-through;
}

.product-price-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

/* Botón agregar al carrito */
.product-card .btn-add-cart,
.btn-add-to-cart {
    width: 100%;
    margin-top: var(--spacing-md);
    background-color: var(--text-dark);
    color: var(--white) !important;
    border: 2px solid var(--text-dark);
    padding: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-card .btn-add-cart:hover,
.btn-add-to-cart:hover {
    background-color: var(--secondary-color) !important;
    color: var(--text-dark) !important;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 106, 0.3);
}

/* Modal de atributos - mismo estilo que botón carrito */
.modal-header-cart {
    background-color: var(--text-dark) !important;
}

.modal-header-cart .modal-title {
    color: var(--white) !important;
}

.modal-footer .btn-primary,
#attributesModal .btn-primary {
    background-color: var(--text-dark) !important;
    border-color: var(--text-dark) !important;
    color: var(--white) !important;
}

.modal-footer .btn-primary:hover,
#attributesModal .btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--text-dark) !important;
}

/* Botones y badges de atributos */
.attr-option-btn.selected {
    border-color: var(--text-dark) !important;
    background: var(--text-dark) !important;
    color: var(--white) !important;
}

/* Texto blanco dentro del botón seleccionado (excepto color-dot) */
.attr-option-btn.selected .option-label,
.attr-option-btn.selected span:not(.color-dot) {
    color: var(--white) !important;
}

.attr-option-btn:hover {
    border-color: var(--secondary-color) !important;
}

.attr-color-btn.selected .color-dot {
    box-shadow: 0 0 0 2px var(--text-dark) !important;
}

.attr-badge {
    background-color: var(--text-dark) !important;
    color: var(--white) !important;
}

/* ===========================
   DETALLE DE PRODUCTO
   =========================== */

.product-detail-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--light-gray);
    aspect-ratio: 3/4;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.product-gallery-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.product-gallery-item:hover,
.product-gallery-item.active {
    border-color: var(--text-dark);
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding: var(--spacing-lg) 0;
}

.product-detail-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: var(--spacing-lg) 0;
}

.product-detail-description {
    color: var(--text-light);
    line-height: 1.8;
    margin: var(--spacing-lg) 0;
    font-size: 1rem;
}

.product-attributes {
    margin: var(--spacing-xl) 0;
}

.attribute-group {
    margin-bottom: var(--spacing-lg);
}

.attribute-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.attribute-option {
    padding: 0.5rem 1rem;
    border: 2px solid var(--medium-gray);
    background-color: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.attribute-option:hover {
    border-color: var(--text-dark);
}

.attribute-option.selected {
    background-color: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
}

/* Color swatches */
.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--medium-gray);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.selected {
    border-color: var(--text-dark);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--text-dark);
}

/* ===========================
   CARRITO DE COMPRAS
   =========================== */

.cart-page {
    padding: var(--spacing-xxl) 0;
    background-color: var(--off-white);
}

.cart-table {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background-color: var(--light-gray);
    padding: var(--spacing-md);
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-table td {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--medium-gray);
    vertical-align: middle;
}

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

.cart-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-item-name:hover {
    color: var(--secondary-color);
}

.cart-item-attributes {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.quantity-input button {
    width: 35px;
    height: 35px;
    border: 1px solid var(--medium-gray);
    background-color: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
}

.quantity-input button:hover {
    background-color: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
}

.quantity-input input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--medium-gray);
    padding: 0.5rem;
    font-weight: 600;
}

.cart-summary {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--medium-gray);
    font-size: 1rem;
    color: var(--text-light);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-lg) 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-summary .btn {
    width: 100%;
    margin-top: var(--spacing-lg);
}

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

.checkout-form {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

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

.form-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition-fast);
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--text-dark);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

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

/* Input group - mantener elementos en una línea */
.input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.input-group .form-control {
    flex: 1 1 auto !important;
    min-width: 60px !important;
    max-width: 70px !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0.5rem 0.25rem !important;
}

.input-group .btn {
    flex-shrink: 0 !important;
    min-width: 38px !important;
    padding: 0.5rem 0.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.input-group .btn i {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-gray);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

/* ===========================
   FOOTER - Fashion Trendy
   =========================== */

footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%) !important;
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #ff6b9d, var(--secondary-color));
}

footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

footer > * {
    position: relative;
    z-index: 1;
}

footer h6.text-warning {
    color: var(--secondary-color) !important;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-color: rgba(255, 107, 157, 0.3) !important;
}

footer .border-warning {
    border-color: rgba(255, 107, 157, 0.3) !important;
}

footer .text-light-emphasis {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
}

footer a.text-light-emphasis {
    transition: all 0.3s ease;
}

footer a.text-light-emphasis:hover {
    color: var(--secondary-color) !important;
    padding-left: 8px;
}

footer .social-icon {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

footer .social-icon:hover {
    border-color: var(--secondary-color);
    color: #fff;
    background: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

footer .btn-outline-warning {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color) !important;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.4s ease;
    background: transparent;
    padding: 10px 25px;
}

footer .btn-outline-warning:hover {
    background: linear-gradient(135deg, var(--secondary-color), #ff6b9d) !important;
    border-color: var(--secondary-color) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

footer .border-top.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

footer .text-primary {
    color: var(--secondary-color) !important;
}

footer .text-success {
    color: #25D366 !important;
}

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

.footer-section h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: rgba(255, 255, 255, 0.8);
}

.social-link:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ===========================
   FILTROS Y BÚSQUEDA
   =========================== */

.filters-sidebar {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 120px;
}

.filter-group {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--medium-gray);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Search and filter wrapper */
.search-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-lg);
    flex-wrap: nowrap;
}

.search-filter-wrapper .form-control {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    padding: 0.875rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
}

.search-filter-wrapper .search-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-filter-wrapper .filter-toggle-btn {
    flex-shrink: 0;
}

/* Botón de filtros para móvil */
.filter-toggle-btn {
    display: none;
    width: 45px;
    height: 45px;
    padding: 0;
    background-color: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.filter-toggle-btn:hover {
    background-color: var(--secondary-color);
}

.filter-toggle-btn i {
    margin: 0;
}

/* Botón cerrar filtros en móvil */
.filter-close-btn {
    display: none;
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 10000;
}

.filter-close-btn:hover {
    color: var(--secondary-color);
}

/* ===========================
   BREADCRUMB
   =========================== */

.breadcrumb {
    background: transparent;
    padding: var(--spacing-lg) 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
    padding: 0 var(--spacing-sm);
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--text-dark);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* ===========================
   ALERTAS Y MENSAJES
   =========================== */

.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid;
    font-size: 0.95rem;
}

.alert-success {
    background-color: rgba(90, 125, 90, 0.1);
    color: var(--success-color);
    border-color: var(--success-color);
}

.alert-danger {
    background-color: rgba(139, 69, 69, 0.1);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(201, 168, 106, 0.1);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.alert-info {
    background-color: rgba(26, 26, 26, 0.05);
    color: var(--text-dark);
    border-color: var(--text-dark);
}

/* ===========================
   LOADING Y ESTADOS VACÍOS
   =========================== */

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--text-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.empty-state {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto var(--spacing-lg);
}

/* ===========================
   MODAL / OVERLAY
   =========================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-dark);
    transform: scale(1.1);
}

/* ===========================
   CONTACTO
   =========================== */

.contact-page {
    padding: var(--spacing-xxl) 0;
}

.contact-info-card {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--text-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto var(--spacing-md);
}

.contact-info-card h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.contact-info-card p {
    color: var(--text-light);
    margin: 0;
}

/* Mapa */
.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: var(--spacing-xl);
}

/* ===========================
   UTILIDADES
   =========================== */

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

.text-muted {
    color: var(--text-muted) !important;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.py-1 { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
.py-2 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-3 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-4 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-5 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

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

/* Mobile padding adjustment */
@media (max-width: 768px) {
    .py-5 {
        padding-top: var(--spacing-md) !important;
        padding-bottom: var(--spacing-md) !important;
    }
}

/* Pantallas medianas a grandes - mantener 3 columnas */
@media (min-width: 992px) {
    .product-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets en portrait */
@media (max-width: 991px) and (min-width: 769px) {
    .product-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2.25rem;
    }

    .navbar {
        padding: var(--spacing-xs) 0;
    }

    .product-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: var(--spacing-md);
    }

    .product-image-wrapper,
    .product-card-img {
        height: 220px;
    }

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

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .cart-table {
        overflow-x: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .modal-content {
        width: 95%;
        padding: var(--spacing-lg);
    }

    /* Mostrar botón de filtros en móvil */
    .filter-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Mostrar botón de cerrar en móvil */
    .filter-close-btn {
        display: flex !important;
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: var(--light-gray, #f0f0f0);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
    }

    /* Panel de filtros móvil - slide desde la izquierda */
    .filters-sidebar {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        z-index: 10001;
        background-color: var(--white, white);
        padding: 60px var(--spacing-lg) var(--spacing-lg);
        overflow-y: auto;
        margin: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
        transition: left 0.3s ease-in-out;
        border-radius: 0;
    }

    /* Mostrar filtros cuando estén activos */
    .filters-sidebar.show {
        left: 0;
    }

    /* Overlay oscuro sobre el catálogo cuando el sidebar está abierto */
    .col-lg-9::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: -1;
    }

    body.sidebar-open .col-lg-9::before {
        visibility: visible;
        opacity: 1;
        z-index: 10000;
    }

    /* Ajustar el wrapper de búsqueda y filtros */
    .search-filter-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .search-filter-wrapper .form-control {
        flex: 1;
    }

    .search-filter-wrapper .search-btn {
        width: 45px;
        height: 45px;
    }

    .filter-toggle-btn {
        display: flex !important;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }

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

    .product-image-wrapper,
    .product-card-img {
        height: 260px;
    }

    .product-detail-title {
        font-size: 2rem;
    }
}

/* Zoom result for product image hover */
.zoom-result {
    background-color: var(--white) !important;
    border: 2px solid var(--text-dark) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

/* Ensure zoom result is not clipped */
.product-gallery .gallery-main {
    overflow: visible !important;
}

/* ===========================
   ANIMACIONES
   =========================== */

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ===========================
   ACCESIBILIDAD
   =========================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para accesibilidad de teclado */
:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== AJUSTES RESPONSIVE PROFESIONALES ===== */
@media (max-width: 991px) {
    :root { --spacing-lg: 1.25rem; --spacing-md: 0.875rem; }
    .page-header { padding: 1rem 0; margin-bottom: 1rem; }
    .search-filter-wrapper { margin-bottom: 0.75rem; }
}
@media (max-width: 767px) {
    :root { --spacing-lg: 1rem; --spacing-md: 0.75rem; --spacing-sm: 0.5rem; }
    .page-header { padding: 0.75rem 0; margin-bottom: 0.75rem; }
    .page-header h1 { font-size: 1.25rem; }
    .search-filter-wrapper { margin-bottom: 0.5rem; }
    .products-grid, .product-grid { gap: 0.75rem; }
    .product-info { padding: 0.75rem; }
    .product-title { font-size: 0.9rem; }
}
@media (max-width: 575px) {
    :root { --spacing-lg: 0.75rem; --spacing-md: 0.5rem; --spacing-sm: 0.375rem; }
    .page-header { padding: 0.5rem 0; }
    .page-header h1 { font-size: 1.1rem; }
    .products-grid, .product-grid { gap: 0.5rem; }
    .product-info { padding: 0.5rem; }
    .product-title { font-size: 0.85rem; line-height: 1.3; }
    .product-price { font-size: 0.95rem; }
    .btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
}
