@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #2ecc71;
    /* Verde Esmeralda Vibrante */
    --primary-bright: #26de81;
    /* Verde Brillante */
    --secondary: #0a151e;
    /* Azul Oscuro Profundo */
    --dark: #050a0f;
    --light: #ffffff;
    --grey: #a0aec0;
    --success: #2dd4bf;
    --font-main: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
    
    /* Nuevas variables para consistencia visual */
    --bg-light: #f8fafc;
    --border-color: rgba(226, 232, 240, 0.8);
    --text-muted: #64748b;
    --shadow-card: 0 20px 50px rgba(10, 21, 30, 0.04);
    --shadow-badge: 0 4px 12px rgba(10, 21, 30, 0.03);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Header & Nav --- */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 8px;
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: var(--secondary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-transform: none;
    /* Override uppercase from nav */
    font-weight: 500;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Arrow indicator */
.dropbtn::after {
    content: ' ▾';
    font-size: 0.8em;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* --- Layout General --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.section-title {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn:hover {
    background: #27ae60;
}

.btn-secondary {
    background: var(--secondary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-whatsapp {
    background: #25D366;
}

/* --- Hero Section (Home) --- */
.hero {
    height: 70vh;
    /* Background removed in favor of video + overlay */
    background: #000;
    position: relative;
    /* Important for absolute children */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 55, 30, 0.4), rgba(46, 204, 113, 0.6));
    z-index: 2;
}

.product-price-hidden {
    display: block;
    font-size: 0.9rem;
    color: var(--grey);
    margin-bottom: 1rem;
    font-style: italic;
}

/* ... existing sections ... */

/* --- Arabesque Styling (Full Frame) --- */
.arabesque-section {
    position: relative;
    padding: 6rem 2rem;
    /* Aumentado padding horizontal */
    margin: 4rem 20px;
    /* Margen lateral para evitar clipping por scrollbar */
    border: 38px solid transparent;
    /* Aproximadamente 1cm */
    border-image-source: url('../img/arabesque_border_full.png');
    border-image-slice: 100;
    border-image-repeat: round;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    /* Un poco más de radio para acomodar el borde grueso */
}

/* Ocultación de esquinas antiguas si quedara rastro */
.arabesque-section::before,
.arabesque-section::after,
.arabesque-corner-bl,
.arabesque-corner-br {
    display: none !important;
}

.arabesque-section>*:not(.arabesque-corner-bl):not(.arabesque-corner-br) {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* --- Catalogo Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Asegura que todas las tarjetas en la fila tengan la misma altura */
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 280px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: white;
    padding: 1rem;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--secondary);
    min-height: 2.5rem;
    /* Asegura espacio consistente para el título */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.product-tag {
    font-size: 0.7rem;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

/* --- Product Detail Page --- */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.thumb {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}

.thumb.active,
.thumb:hover {
    border-color: var(--primary);
}

.product-meta h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.product-description {
    color: #4a5568;
    margin: 2rem 0;
    line-height: 1.8;
}

.size-selector {
    margin-top: 2rem;
}

.size-chips {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.size-chip {
    padding: 0.5rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.size-chip.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-meta h1 {
        font-size: 1.8rem;
    }
}

/* --- Footer --- */
footer {
    background: var(--secondary);
    color: #aaa;
    padding: 4rem 5% 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* --- Carrito Sidebar (Simple) --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.cart-footer {
    border-top: 2px solid #eee;
    padding-top: 1rem;
}

.shipping-alert {
    background: #d4edda;
    color: #155724;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: none;
}

.shipping-alert.active {
    display: block;
}

/* --- Cookies Banner --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    display: none;
    /* Se activa con JS */
}

#cookie-banner button {
    margin-left: 1rem;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 4rem 5%;
    background: #f8fafc;
    border-radius: 20px;
    margin: 4rem auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
}

.faq-item h3 {
    margin-top: 0;
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.faq-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5568;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Full Style Consolidado arriba */

/* --- KINETIC HERO SATELLITES --- */
.hero-kinetic-container {
    position: relative;
    overflow: hidden;
    /* Mantener el fondo existente o ajustarlo si es necesario */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    /* Asegurar altura suficiente para la órbita */
}

/* El sistema orbital rotatorio */
.orbit-system {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    /* Diámetro de la órbita */
    height: 800px;
    margin-top: -400px;
    /* Centrar verticalmente (mitad del height) */
    margin-left: -400px;
    /* Centrar horizontalmente (mitad del width) */
    border-radius: 50%;
    /* border: 1px solid rgba(255,255,255,0.1); Opcional: ver el carril */
    animation: orbit 60s linear infinite;
    /* 60s para una vuelta completa suave */
    z-index: 3;
    /* Detrás del texto pero delante del overlay */
    pointer-events: none;
    /* Que no bloquee clicks en nada */
}

/* Los items satélites individuales */
.satellite-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    /* Tamaño del producto */
    height: 140px;
    /* Configuración para mantener la verticalidad */
    transform: translate(-50%, -50%);
}

.satellite-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    animation: counter-orbit 60s linear infinite;
}

/* Posiciones fijas en el círculo (Radio 400px) */
/* Círculo trigonométrico: cx=400, cy=400. x = r*cos(a), y = r*sin(a) */
/* Top/Left percentages para ser responsive-ish dentro del contenedor de 800x800 */

/* 1. (0deg / -90deg visualmente arriba) top: 0, left: 50% */
.satellite-item:nth-child(1) {
    top: 0%;
    left: 50%;
}

/* 2. (72deg) */
.satellite-item:nth-child(2) {
    top: 30.9%;
    left: 97.5%;
}

/* 3. (144deg) */
.satellite-item:nth-child(3) {
    top: 80.9%;
    left: 79.4%;
}

/* 4. (216deg) */
.satellite-item:nth-child(4) {
    top: 80.9%;
    left: 20.6%;
}

/* 5. (288deg) */
.satellite-item:nth-child(5) {
    top: 30.9%;
    left: 2.5%;
}

/* KEYFRAMES */
/* La órbita principal gira todo el contenedor */
@keyframes orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes counter-orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Estilo para el texto central para asegurar que esté POR ENCIMA */
.hero-center-text {
    position: relative;
    z-index: 10;
    text-align: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 70%);
    /* Sombra suave detrás del texto para legibilidad */
    padding: 3rem;
    border-radius: 50%;
}

/* Status Badges */
.badge-coming-soon {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .orbit-system {
        width: 100vw;
        height: 100vw;
        margin-top: -50vw;
        margin-left: -50vw;
    }

    .satellite-item {
        width: 80px;
        height: 80px;
    }
}

body.transition-enabled {
    opacity: 0;
    transition: opacity 0.15s ease-out;
}
body.transition-enabled.page-loaded {
    opacity: 1;
}

/* ==========================================
   --- SKELETON LOADERS (SHIMMER) ---
   ========================================== */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Skeleton Product Card */
.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 380px;
}

.skeleton-card .skeleton-img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.skeleton-card .skeleton-tag {
    width: 40%;
    height: 15px;
    border-radius: 4px;
}

.skeleton-card .skeleton-title {
    width: 85%;
    height: 20px;
    border-radius: 4px;
    margin-top: 5px;
}

.skeleton-card .skeleton-price {
    width: 30%;
    height: 20px;
    border-radius: 4px;
    margin-top: 10px;
}

.skeleton-card .skeleton-btn {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    margin-top: auto;
}

/* Skeleton Product Detail Card */
.skeleton-detail-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 3rem;
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
}

.skeleton-detail-card .skeleton-gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-detail-card .skeleton-main-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
}

.skeleton-detail-card .skeleton-thumbs-wrap {
    display: flex;
    gap: 14px;
}

.skeleton-detail-card .skeleton-thumb-item {
    width: 85px;
    height: 85px;
    border-radius: 14px;
}

.skeleton-detail-card .skeleton-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-detail-card .skeleton-info-tag {
    width: 30%;
    height: 25px;
    border-radius: 30px;
}

.skeleton-detail-card .skeleton-info-title {
    width: 90%;
    height: 45px;
    border-radius: 8px;
}

.skeleton-detail-card .skeleton-info-category {
    width: 40%;
    height: 20px;
    border-radius: 4px;
}

.skeleton-detail-card .skeleton-info-price-box {
    width: 100%;
    height: 120px;
    border-radius: 20px;
}

.skeleton-detail-card .skeleton-info-desc {
    width: 100%;
    height: 80px;
    border-radius: 8px;
}

.skeleton-detail-card .skeleton-info-badges {
    width: 100%;
    height: 60px;
    border-radius: 12px;
}

.skeleton-detail-card .skeleton-info-btn {
    width: 100%;
    height: 60px;
    border-radius: 14px;
    margin-top: 10px;
}

@media (max-width: 950px) {
    .skeleton-detail-card {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding: 2rem;
    }
}

/* ==========================================
   --- CABECERA - BUSCADOR PREDICTIVO ---
   ========================================== */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.nav-search-container {
    position: relative;
    margin-left: 0;
    display: flex;
    align-items: center;
    z-index: 1005;
}

@media (max-width: 1150px) {
    .nav-links {
        gap: 0.8rem;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
}

.nav-search-box {
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    border-radius: 30px;
    padding: 4px;
    border: 1.5px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 36px;
    overflow: hidden;
}

.nav-search-box.expanded {
    background: #f1f5f9;
    width: 200px;
    padding: 2px 10px;
    border-color: rgba(0, 0, 0, 0.05);
}

.nav-search-box:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.15);
}

.nav-search-box input {
    border: none;
    background: transparent;
    padding: 6px 0;
    width: 0;
    flex: none;
    outline: none;
    font-size: 0.85rem;
    color: var(--secondary);
    font-family: var(--font-main);
    transition: opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.nav-search-box.expanded input {
    width: auto;
    flex: 1;
    padding: 6px 6px;
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 769px) {
    .nav-search-container {
        width: 36px;
        height: 36px;
        position: relative;
    }
    .nav-search-box {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
    .nav-search-results {
        width: 200px;
        left: 0;
        right: auto;
    }
    .nav-right-actions .cart-icon {
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        z-index: 5;
    }
    .nav-right-actions.search-expanded .cart-icon {
        transform: translateX(164px);
    }
}

.nav-search-box .nav-search-btn {
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-box .nav-search-clear {
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
    color: #94a3b8;
    display: none;
    font-weight: bold;
    user-select: none;
}

.nav-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
    max-height: 380px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
}

.nav-search-results.active {
    display: block;
}

/* Items del buscador */
.nav-search-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
    text-decoration: none;
    color: var(--secondary);
    transition: background 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.nav-search-item:last-child {
    border-bottom: none;
}

.nav-search-item:hover {
    background: #f8fafc;
}

.nav-search-item img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.nav-search-item-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.nav-search-item-title {
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-search-item-brand {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 1px;
}

.nav-search-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
    text-align: right;
}

.nav-search-no-results {
    padding: 14px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .nav-right-actions {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 0.5rem;
        gap: 1rem;
        order: 4;
    }
    .nav-search-container {
        margin: 0;
        max-width: 100%;
        width: calc(100% - 50px);
    }
    .nav-search-box.expanded {
        width: 100%;
    }
    .navbar {
        flex-wrap: wrap;
    }
}

/* ==========================================
   --- SECCIÓN DETALLE DE PRODUCTO ---
   ========================================== */
.product-page {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    animation: fadeInPage 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Breadcrumb Trail */
.breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    align-items: center;
    background: white;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    width: fit-content;
    border: 1px solid rgba(0,0,0,0.01);
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb span {
    color: #cbd5e1;
    font-weight: 400;
}
.breadcrumb #breadcrumb-current {
    color: var(--secondary);
    font-weight: 600;
}

/* Main Product Card Container */
.product-detail-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    margin-bottom: 4rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
    align-items: start;
}

/* Gallery Styling */
.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(10, 21, 30, 0.05);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.main-image-wrap img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.main-image-wrap:hover img {
    transform: scale(1.06) rotate(1deg);
}

.gallery-thumbs {
    display: flex;
    gap: 14px;
    margin-top: 1.5rem;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.gallery-thumb {
    width: 85px;
    height: 85px;
    border-radius: 14px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    box-shadow: var(--shadow-badge);
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.2);
    transform: translateY(-3px);
}
.gallery-thumb:hover:not(.active) {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

/* Product Info Wrap */
.product-info-wrap {
    padding-left: 0.5rem;
}

.product-info-wrap .tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(38, 222, 129, 0.12) 100%);
    color: #27ae60;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(46, 204, 113, 0.1);
}

.product-info-wrap h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.product-info-wrap .category-badge {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-info-wrap .category-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* Trust Badges Row */
.trust-badges-row {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    flex: 1;
    min-width: 140px;
}
.trust-badge-icon {
    font-size: 1.4rem;
}
.trust-badge-text {
    display: flex;
    flex-direction: column;
}
.trust-badge-text strong {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
}
.trust-badge-text span {
    font-size: 0.7rem;
    color: #718096;
}

/* Price Section */
.product-info-wrap .price-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    margin-bottom: 2.25rem;
    position: relative;
}

.product-info-wrap .price {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
}

.product-info-wrap .price small {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-badge {
    display: inline-block;
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info-wrap .ean {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-family: monospace;
}

/* Alert Box */
.product-info-wrap .min-order {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #d97706;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    width: 100%;
}

.product-info-wrap .description {
    color: #334155;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* Size Selector Styling */
.size-selector {
    margin-bottom: 2.25rem;
}

.size-selector label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-chip {
    padding: 10px 22px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: white;
    color: #4a5568;
}

.size-chip.active {
    border-color: var(--primary);
    background: #e8f8f0;
    color: #27ae60;
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.12);
    transform: translateY(-2px);
}
.size-chip:hover:not(.active) {
    border-color: #cbd5e1;
    color: var(--secondary);
    transform: translateY(-2px);
}

/* Quantity Selector Styling */
.qty-selector-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2.5rem;
}
.qty-selector-wrap label {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid #edf2f7;
    border-radius: 14px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

.qty-selector button {
    width: 46px;
    height: 46px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4a5568;
    transition: all 0.2s ease;
}

.qty-selector button:hover {
    background: #f8fafc;
    color: var(--primary);
}

.qty-selector input {
    width: 70px;
    height: 46px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--secondary);
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
}

.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* CTA Button styling */
.btn-add-cart {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(46, 204, 113, 0.4);
}
.btn-add-cart:active {
    transform: translateY(-1px) scale(0.99);
}

/* Specifications (Ficha Técnica) */
.product-specs {
    margin-top: 3.5rem;
    padding: 2.25rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.product-specs h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.25rem;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs td {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.product-specs tr:last-child td {
    border-bottom: none;
}

.product-specs td:first-child {
    font-weight: 700;
    color: var(--secondary);
    width: 45%;
}

.product-specs td:last-child {
    color: var(--text-muted);
}

/* Related Products Section in Arabesque */
.arabesque-section.related-section {
    margin-top: 5rem !important;
    padding: 5rem 2rem !important;
}

.related-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--secondary);
}

/* Video Thumbnails and Controls */
.gallery-thumb.video-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: white;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.gallery-thumb.video-thumb::after {
    content: 'VÍDEO';
    position: absolute;
    bottom: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    background: var(--primary);
    color: white;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

@media (max-width: 950px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .product-gallery {
        position: static;
    }

    .product-detail-card {
        padding: 2rem;
    }

    .product-info-wrap {
        padding-left: 0;
    }
}
}