/* ========================================
   RESET Y VARIABLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #ffc107;
    --text-dark: #333;
    --text-light: #fff;
    --transition-speed: 0.4s;
    --header-height: 80px;
    /* Colores personalizables para el header transparente */
    --header-icon-color: #fff;
    --header-logo-filter: brightness(0) invert(1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #fff;
}
/* ========================================
   HEADER - TRANSPARENTE CON ANIMACIÓN /INICIO HEADER/
   ======================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all var(--transition-speed) ease;
}


/* ===== CHAT FLOTANTE ===== */
.chat-float {
    fill: white;
    width: 50px;
    height: 50px;
    padding: 3px;
    background-color: #4dc247;
    border-radius: 50%;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    box-shadow: 2px 2px 11px rgba(0,0,0,0.7);
    position: fixed;
    bottom: 20px;
    right : 20px;
    z-index: 10;
}

.chat-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px #4dc247;
}

.chat-icon {
    animation: pulse 2s infinite;
}


/* Header cuando se hace scroll */
#main-header.scrolled {
    background-color: transparent;
}

#main-header.scrolled .header-top {
    padding: 10px 30px;
}

/*  El logo NO cambia de color al hacer scroll
#main-header.scrolled .logo-single {
     Mantiene su color original
} */

#main-header.scrolled .btn-img img,
#main-header.scrolled .icon-link img {
    filter: brightness(0);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    transition: all var(--transition-speed) ease;
    position: relative; /* Necesario para el centrado absoluto del logo */
}

/* Botón menú */
.btn-img {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.btn-img:hover {
    transform: scale(1.1);
}

.btn-img img {
    width: 30px;
    height: 30px;
    filter: var(--header-icon-color);
    transition: filter var(--transition-speed) ease;
}



/* Logo */
.header{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    padding:20px 40px;
    transition: all 0.3s ease;
    z-index:1000;
}

.header.scrolled{
    background-color: transparent;
}

.logo {
    /* Centrado absoluto para asegurar que no se mueva */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Asegurar que esté sobre otros elementos */
}

.logo-single {
    height: auto;
    width: 105px;         /* <--  */
    object-fit: contain;  /* <-- */
    transition: all var(--transition-speed) ease;
    display: block;
}

/* Añadimos una clase temporal para el efecto de parpadeo suave al cambiar */
.logo-fade {
    opacity: 0;
    transform: scale(0.95);
}

/* Iconos derecha */
.right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.icon-link:hover {
    transform: scale(1.1);
}

.icon-link img {
    width: 28px;
    height: 28px;
    filter: var(--header-icon-color);
    transition: filter var(--transition-speed) ease;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* ========================================
   OVERLAY MENÚ HAMBURGUESA (DROP STYLE)
======================================== */

/* 1. Asegurar que el menú de hamburguesa esté por encima de TODO */
.overlay-coleccion {
    position: fixed;
    inset: 0;
    z-index: 999999 !important; /* Un valor muy alto para ganar a cualquier otro elemento */
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform .7s cubic-bezier(.77,0,.18,1), visibility 0s linear .7s;
}

/* 2. Cuando el menú está activo */
.overlay-coleccion.active {
    visibility: visible;
    transform: translateY(0);
    transition: transform .7s cubic-bezier(.77,0,.18,1);
}

/* 3. Ajustar el contenedor del producto para que no compita con el menú */
.product-wrapper {
    position: relative;
    z-index: 1; /* Un valor bajo para que el menú lo tape sin problemas */
}

/* 4. El header también debe estar por debajo del overlay cuando este se abre */
#main-header {
    z-index: 1000;
}




.overlay-coleccion.active {
    visibility: visible;
    transform: translateY(0);
    transition: transform .7s cubic-bezier(.77,0,.18,1);
    z-index: 0;
}

.overlay-coleccion {
    overflow-y: auto;
    overscroll-behavior: contain;
}


/* ========================================
   CONTENIDO OVERLAY
======================================== */

.overlay-contenido {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;

    opacity: 0;
    transform: translateY(-30px);
    transition: opacity .5s ease .3s,
                transform .5s ease .3s;
}
/* 🔥 CUANDO EL OVERLAY ESTÁ ABIERTO */
body.overlay-open #main-header {
    pointer-events: none;
}

.overlay-coleccion {
    pointer-events: auto;
}


.overlay-coleccion.active .overlay-contenido {
    opacity: 1;
    transform: translateY(0);
}


@keyframes overlayFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   BOTÓN CERRAR
======================================== */

.cerrar-overlay {
    position: absolute;
    top: 20px;
    right: 30px;

    background: none;
    border: none;
    color: var(--text-light);
    font-size: 50px;
    cursor: pointer;
    line-height: 1;

    transition: transform .3s ease;
}

.cerrar-overlay:hover {
    transform: rotate(90deg);
}

/* ========================================
   TÍTULO
======================================== */

.titulo-overlay {
    color: var(--text-light);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* ========================================
   GRID CATEGORÍAS
======================================== */

.grid-coleccion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* ========================================
   CARDS PROFESIONALES
======================================== */

.grid-coleccion .card {
    text-decoration: none;
    color: var(--text-light);
    cursor: pointer;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.02)
    );
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.12);

    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);

    opacity: 0;
    transform: translateY(30px);
}

.grid-coleccion .card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.grid-coleccion .card {
    opacity: 0;
    transform: translateY(40px);
    transition: all .6s ease;
}

.overlay-coleccion.active .card {
    opacity: 1;
    transform: translateY(0);
}

.grid-coleccion .card:nth-child(1) { transition-delay: .2s; }
.grid-coleccion .card:nth-child(2) { transition-delay: .3s; }
.grid-coleccion .card:nth-child(3) { transition-delay: .4s; }
.grid-coleccion .card:nth-child(4) { transition-delay: .5s; }


/* estado activo real */
.overlay-coleccion.active .card {
    opacity: 1;
    transform: translateY(0);
}

/* delays limpios */
.overlay-coleccion.active .card:nth-child(1) { transition-delay: .1s; }
.overlay-coleccion.active .card:nth-child(2) { transition-delay: .2s; }
.overlay-coleccion.active .card:nth-child(3) { transition-delay: .3s; }
.overlay-coleccion.active .card:nth-child(4) { transition-delay: .4s; }


/* Delay elegante */
.grid-coleccion .card:nth-child(1) { animation-delay: .1s; }
.grid-coleccion .card:nth-child(2) { animation-delay: .2s; }
.grid-coleccion .card:nth-child(3) { animation-delay: .3s; }
.grid-coleccion .card:nth-child(4) { animation-delay: .4s; }

/* Hover premium */
.grid-coleccion .card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.45);
}

/* ========================================
   IMAGEN
======================================== */

.grid-coleccion .card img {
    width: 100%;
    height: 250px;
    object-fit: cover;

    filter: brightness(0.9);
    transition: transform .5s ease, filter .5s ease;
}

.grid-coleccion .card:hover img {
    transform: scale(1.15);
    filter: brightness(1);
}

/* ========================================
   TEXTO
======================================== */

.grid-coleccion .card h3 {
    padding: 20px;
    text-align: center;

    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ========================================
   BOTÓN VER
======================================== */

.btn-ver {
    width: 100%;
    padding: 15px;

    background: linear-gradient(
        135deg,
        var(--accent-color),
        #ffb300
    );
    color: var(--text-dark);

    border: none;
    font-weight: bold;
    cursor: pointer;

    text-transform: uppercase;
    letter-spacing: 1px;

    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-ver:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,179,0,0.35);
}

/*fin header*/

/* ===== RESET Y CONFIGURACIÓN GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* ===== ANIMACIONES KEYFRAMES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 30px 0 20px;
    font-size: 0.9rem;
    animation: fadeIn 0.8s ease-out;
}

.breadcrumb a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.product-wrapper {
    padding: 40px 20px 64px;
    animation: fadeIn 0.6s ease-out;
    background-color: #fff;
    place-items: center;
}

.product-container {
    max-width: 1500px;
    
    
}

.top-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 200px;
    margin-bottom: 0;
    padding: 28px;
    overflow: visible;
    
}

/* ===== COLUMNA IZQUIERDA: GALERÍA ===== */
.left-column {
    animation: slideInLeft 1s ease-out 0.2s both;
    position: relative;
    z-index: 30;
}

.zoom-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 150px;
    min-height: 620px;
}

.product-main-media {
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    z-index: 30;
}

#producto-img {
    display: block;
    max-height: 720px;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: #fbfbfb;
    border-radius: 5px;
    cursor: zoom-in;
    transition: transform 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

#producto-img:hover {
    transform: scale(1.02);
}



#zoom-result {
    display: none;
    position: absolute;
    top: 10px;
    right: -500px;
    width: 420px;
    height: 520px;
    transform: none;
    background-repeat: no-repeat;
    background-size: 200%;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    border: 2px solid rgba(255, 193, 7, 0.75);
    z-index: 9999;
    pointer-events: none;
}

/* Miniaturas */
.img-thumbs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0;
    scroll-behavior: smooth;
    padding: 8px 6px;
    max-height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 rgba(255, 255, 255, 0.1);
}

.img-thumbs::-webkit-scrollbar {
    height: 6px;
}

.img-thumbs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.img-thumbs::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 10px;
}

.img-thumbs a {
    flex-shrink: 0;
}

.product-gallery {
    width: 94px;
    height: 106px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.7;
}

.product-gallery:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.product-gallery.active {
    border-color: #ffd700;
    opacity: 1;
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.38);
}

/* Botones de navegación de miniaturas */
.thumbs-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.thumbs-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbs-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: scale(1.1);
}

.thumbs-btn:active {
    transform: scale(0.95);
}

/* ===== COLUMNA DERECHA: INFORMACIÓN ===== */
.right-column {
    animation: slideInRight 1s ease-out 0.2s both;
    position: relative;
    z-index: 1;
}

.product-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    background-color: #111;
    background-clip: text;
    text-transform: capitalize;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.price-container {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
}

/* ===== OPCIONES DE PRODUCTO ===== */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.option-group {
    animation: fadeInUp 0.8s ease-out both;
}

.option-group:nth-child(1) {
    animation-delay: 0.6s;
}

.option-group:nth-child(2) {
    animation-delay: 0.7s;
}

.option-group:nth-child(3) {
    animation-delay: 0.8s;
}

.option-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #333;
}

.color-options,
.size-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.color-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.14);
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.color-circle:hover,
.color-circle.selected {
    transform: translateY(-2px) scale(1.05);
    border-color: #ffc107;
    box-shadow: 0 10px 28px rgba(255, 193, 7, 0.28);
}

.color-circle .checkmark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    opacity: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.color-circle.selected .checkmark {
    opacity: 1;
}

.size-box {
    min-width: 46px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 12px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.size-box:hover,
.size-box.selected {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-2px);
}

.quantity-options {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 5px;
    border-radius: 999px;
    background: #f3f3f3;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.qty-btn:hover {
    background: #ffc107;
    transform: scale(1.04);
}

.quantity-options input {
    width: 48px;
    border: none;
    background: transparent;
    text-align: center;
    color: #111;
    font-size: 1rem;
    font-weight: 900;
    outline: none;
}

.action-buttons {
    display: grid;
    gap: 12px;
    margin-bottom: 34px;
}

.btn-add,
.btn-buy {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid #111;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-add {
    background: #111;
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.btn-buy {
    background: #ffc107;
    color: #111;
    border-color: #ffc107;
}

.btn-add:hover,
.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.btn-add:disabled,
.btn-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-add.success {
    background: #08a464;
    border-color: #08a464;
}

.btn-icon {
    flex: 0 0 auto;
}

.info-accordion {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 0 100px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 100px;
    
}

.info-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 16px 0;
}

.info-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
}

.info-item summary::-webkit-details-marker {
    display: none;
}

.info-item h4 {
    margin: 0;
    color: #333;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.info-item p {
    margin-top: 12px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

.info-item .chevron {
    transition: transform 0.2s ease;
}

.info-item[open] .chevron {
    transform: rotate(180deg);
}

#modal-alerta {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(6px);
    z-index: 400000;
}

.modal-content-alert {
    width: min(360px, 92vw);
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 28px 24px;
    border-radius: 18px;
    background: #fff;
    color: #111;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.modal-content-alert p {
    margin: 0;
    font-weight: 700;
}

.btn-modal {
    border: none;
    border-radius: 12px;
    background: #111;
    color: #fff;
    padding: 11px 22px;
    cursor: pointer;
    font-weight: 900;
}

#fullscreen-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.9);
    z-index: 390000;
    touch-action: none;
}

#fullscreen-overlay img {
    max-width: 96vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 12px;
}

.related-products {
    background: #fff;
    padding: 96px 24px 110px;
}

.section-header {
    max-width: 1380px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-title {
    color: #222;
    font-size: clamp(2.2rem, 4.2vw, 4.4rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 0.95;
}

.title-line {
    width: 94px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: #ffc107;
}

.simple-products-grid {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 330px));
    justify-content: center;
    gap: 42px;
}

.simple-card {
    display: block;
    text-align: center;
}

.simple-img {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 18px;
    background: #f7f7f7;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.simple-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.simple-img .img-back {
    opacity: 0;
}

.simple-card:hover .img-front {
    opacity: 0;
}

.simple-card:hover .img-back {
    opacity: 1;
    transform: scale(1.03);
}

.simple-name {
    max-width: 300px;
    margin: 20px auto 0;
    color: #111;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 900;
    text-transform: lowercase;
}

.simple-price {
    color: #333;
    font-size: 1.06rem;
    margin-top: 8px;
}

@media (max-width: 1180px) {
    .top-section {
        gap: 44px;
    }

    .zoom-wrapper {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 540px;
    }

    .product-gallery {
        width: 82px;
        height: 94px;
    }

    #zoom-result {
        border-radius: 18px;
    }

    .product-title {
        font-size: clamp(2rem, 4.5vw, 3.4rem);
    }

    .simple-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 300px));
        gap: 30px;
    }
}

@media (max-width: 920px) {
    body {
        background: #f0f0f0;
    }

    .product-wrapper {
        padding: 96px 14px 46px;
    }

    .product-container {
        margin: 0 auto;
    }

    .top-section {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 18px;
        border-radius: 22px;
    }

    .breadcrumb {
        padding-top: 8px;
    }

    .zoom-wrapper {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 14px;
        display: grid;
    }

    .product-main-media {
        order: 1;
    }

    #zoom-result {
        display: none !important;
    }

    #producto-img {
        width: 100%;
        max-height: 68vh;
        object-fit: contain;
    }

    .img-thumbs {
        order: 2;
        flex-direction: row;
        justify-content: flex-start;
        max-height: none;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0;
        padding: 4px 2px 10px;
    }

    .product-gallery {
        width: 76px;
        height: 76px;
    }

    .main-img-arrow--left {
        left: 10px;
    }

    .main-img-arrow--right {
        right: 10px !important;
    }

    .right-column {
        z-index: 1;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .product-wrapper {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 26px;
    }

    .product-container {
        width: 100%;
    }

    .top-section {
        border-radius: 0;
        box-shadow: none;
        padding: 14px;
        flex-direction: column;
    }
    
    .zoom-wrapper {
        display: grid;
    }

    .product-title {
        font-size: clamp(2rem, 12vw, 3.3rem);
        line-height: 0.98;
        letter-spacing: 0.02em;
    }

    .price {
        font-size: 2rem;
    }

    .product-options {
        gap: 22px;
    }

    .simple-products-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 18px;
    }

    .related-products {
        padding: 54px 14px 68px;
    }

    .section-title {
        font-size: clamp(1.8rem, 11vw, 3rem);
        letter-spacing: 0.04em;
    }

    .simple-name {
        font-size: 0.98rem;
    }
}

@media (max-width: 430px) {
    .breadcrumb {
        font-size: 0.78rem;
    }

    .product-gallery {
        width: 64px;
        height: 64px;
    }

    .color-circle {
        width: 32px;
        height: 32px;
    }

    .size-box {
        min-width: 42px;
        height: 38px;
        padding: 0 12px;
    }
}
