:root {
    --black: #111;
    --accent: #c19a6b;
    --light: #f7f7f7;
    --gray: #777;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f2ed;
    color: #222;
    line-height: 1.6;
}

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar {
    background: #111;
    color: #fff;
    height: 36px;
    overflow: hidden;
    position: relative;
    z-index: 1001;
}

.topbar__track {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    animation: topbar-scroll 28s linear infinite;
    padding: 0 24px;
    height: 36px;
}

.topbar:hover .topbar__track {
    animation-play-state: paused;
}

@keyframes topbar-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.topbar__item {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar__item strong {
    color: #fff;
    font-weight: 600;
}

.topbar__sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
}

.topbar__social {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.topbar__social:hover {
    color: #fff;
}

.topbar__link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.topbar__link:hover {
    color: #fff;
}

/* ── HEADER PRINCIPAL ────────────────────────────────────── */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 40px;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* nav ocupa columna 1, logo columna 2, acciones columna 3 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    justify-self: start;
}

.logo {
    color: #111;
    text-decoration: none;
    justify-self: center;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.72;
}

/* Contenedor del logo compuesto */
.logo__wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0;
    row-gap: 0;
}

/* "hey" ocupa las 3 columnas de la fila 1, centrado */
.logo__hey {
    grid-column: 1 / 4;
    grid-row: 1;
    font-family: 'Dancing Script', cursive;
    font-size: 2.6rem;
    font-weight: 700;
    color: #111;
    line-height: 1;
    text-align: center;
    padding: 0 6px;
    position: relative;
    z-index: 1;
}

/* Líneas horizontales — fila 1, columnas laterales */
.logo__line {
    grid-row: 1;
    height: 1.5px;
    background: #111;
    display: block;
    align-self: center;
    margin-top: 4px;
    /* alinear con la mitad de la cursiva */
}

.logo__line--left {
    grid-column: 1;
    width: 48px;
}

.logo__line--right {
    grid-column: 3;
    width: 100px;
}

/* "DENIM" — fila 2, centrado en las 3 columnas */
.logo__denim {
    grid-column: 1 / 4;
    grid-row: 2;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: #111;
    text-align: center;
    margin-top: 1px;
}

/* Versión clara para footer oscuro */
.logo__wrap--light .logo__hey,
.logo__wrap--light .logo__denim {
    color: #fff;
}

.logo__wrap--light .logo__line {
    background: #fff;
}

.logo__text {
    font-family: 'Dancing Script', cursive;
    font-size: 2.4rem;
    font-weight: 700;
    color: #111;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-self: end;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    color: #333;
    transition: background 0.2s;
}

/* ── NAV PRINCIPAL ───────────────────────────────────────── */
.main-nav__link {
    text-decoration: none;
    color: #333;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 16px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: color 0.2s;
}

.main-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #111;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.main-nav__link:hover {
    color: #111;
}

.main-nav__link:hover::after {
    transform: scaleX(1);
}

/* ── ACCIONES DERECHA ────────────────────────────────────── */
.header-actions__btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #333;
    transition: background 0.2s, color 0.2s;
}

.header-actions__btn:hover {
    background: #f5f5f5;
    color: #111;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #333;
    transition: background 0.2s, color 0.2s;
}

.cart-icon:hover {
    background: #f5f5f5;
    color: #111;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #111;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.menu-toggle:hover {
    background: #f5f5f5;
}

/* HERO */
.hero {
    min-height: 70vh;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.35), rgba(17, 17, 17, 0.65)),
        url('https://images.unsplash.com/photo-1541099649105-f69ad21f3246?auto=format&fit=crop&w=1300&q=80') center/cover fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 60px 30px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-family: 'Playfair Display';
    line-height: 1.02;
    letter-spacing: 0.02em;
    max-width: 900px;
}

.hero__brand {
    color: var(--accent);
}

.hero__sub {
    margin-top: 18px;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.04em;
    font-weight: 400;
    max-width: 600px;
}

.section {
    padding: 50px 0px;
}

.cart-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.out-of-stock {
    color: red;
}

.shipping-result-box {
    margin-top: 20px;
    line-height: 1.8;
}

.shipping-result-box h3 {
    margin-top: 15px;
}

.section h2 {
    margin: 0 0 18px 30px;
    font-size: 2.5rem;
    font-family: 'Playfair Display';
}

.about-section {
    background: url('https://images.unsplash.com/photo-1503342217505-b0a15ec3261c?auto=format&fit=crop&w=1400&q=80') center/cover fixed no-repeat;
    color: white;
    position: relative;
}

.about-overlay {
    background: rgba(0, 0, 0, 0.45);
    padding: 60px 40px;
    border-radius: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.about-overlay p {
    line-height: 1.8;
    color: #f1f1f1;
    max-width: 760px;
}

.carousel {
    margin: 15px;
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding-bottom: 10px;
    position: relative;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.carousel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
    z-index: 1;
}

.carousel::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
    z-index: 1;
}

.carousel-indicator {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: rgba(166, 127, 84, 0.3);
    border-radius: 2px;
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-50%) scaleX(1);
    }

    50% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(1.2);
    }
}

.carousel-track {
    display: flex;
    gap: 20px;
    cursor: grab;
    touch-action: pan-y;
    will-change: transform;
}

.carousel-track:hover {
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track.paused {
    animation-play-state: paused;
}

.carousel-card {
    min-width: 260px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

/* Flechas de navegación del carrusel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.98);
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.carousel-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.carousel-card .product-img-wrap {
    height: 230px;
}

.carousel-card .product-info {
    padding: 16px 16px 14px;
}

.carousel-card .product-info h3 {
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 8px;
}

.carousel-card .product-price {
    margin-bottom: 12px;
}

.carousel-card__cta {
    width: 100%;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    padding: 0 30px;
}

.product {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.product img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

/* ── Hover de imágenes ── */
.product-img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 230px;
    background: #f2eee7;
}

.product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.45s ease;
}

.product-img--main {
    opacity: 1;
    z-index: 1;
}

.product-img--hover {
    opacity: 0;
    z-index: 2;
}

.product-img-wrap:hover .product-img--main {
    opacity: 0;
}

.product-img-wrap:hover .product-img--hover {
    opacity: 1;
}

.product-image-count {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 4;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.72);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    padding: 6px 9px;
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    visibility: hidden;
}

.product-gallery-nav--prev {
    left: 10px;
}

.product-gallery-nav--next {
    right: 10px;
}

.product-gallery-nav:hover,
.product-gallery-nav:focus {
    background: #111;
    color: #fff;
    outline: none;
}

.product-thumbs {
    display: flex;
    gap: 7px;
    padding: 10px 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-thumbs::-webkit-scrollbar {
    display: none;
}

.product-thumb {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1.5px solid #e5e0d8;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.product-thumb.active {
    border-color: #111;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 18px 18px 16px;
}

.product-info h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.product-info p {
    margin-bottom: 16px;
    color: var(--gray);
    line-height: 1.7;
}

.product-info button {
    border: none;
    background: var(--accent);
    color: white;
    padding: 11px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 500;
}

.product-info button:hover,
.product-info button:focus {
    background: #a67f54;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Precio con descuento */
.product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    line-height: 1.4;
}

.product-price__new {
    font-weight: 700;
    color: #111;
    font-size: 1.05rem;
}

.product-price__old {
    text-decoration: line-through;
    color: #bbb;
    font-size: 0.88rem;
}

.product-price__badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

/* Tarjeta destacada */
.product--featured {
    border: 2px solid #c19a6b;
    box-shadow: 0 0 0 4px rgba(193, 154, 107, 0.12), 0 18px 45px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product--featured:hover {
    box-shadow: 0 0 0 4px rgba(193, 154, 107, 0.2), 0 28px 60px rgba(0, 0, 0, 0.14);
}

.product__featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: linear-gradient(135deg, #c19a6b, #a67f54);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(193, 154, 107, 0.4);
}

.product--discount {
    position: relative;
    border: 2px solid #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1), 0 18px 45px rgba(0, 0, 0, 0.1);
}

.product--discount:hover {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18), 0 28px 60px rgba(0, 0, 0, 0.14);
}

.product__discount-ribbon {
    position: absolute;
    top: 14px;
    right: -38px;
    z-index: 6;
    width: 138px;
    padding: 7px 0;
    background: #ef4444;
    color: #fff;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(42deg);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
    pointer-events: none;
}

/* ── Producto agotado ── */
.product--out-of-stock {
    opacity: 0.72;
    position: relative;
}

.product--out-of-stock .product-img-wrap {
    filter: grayscale(40%);
}

.product__out-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 7;
    background: rgba(17, 17, 17, 0.82);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
}

.btn-out-of-stock {
    border: none;
    background: #e5e7eb;
    color: #9ca3af;
    padding: 11px 16px;
    border-radius: 6px;
    cursor: not-allowed;
    font-weight: 500;
    font-size: 0.88rem;
    width: 100%;
}

.carousel-card__cta:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.product-description {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #555;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* MODAL PRO */
.modal[hidden],
.shipping-modal[hidden] {
    display: none !important;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(8px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ── MODAL PRODUCTO ── */
.product-modal__content {
    background: #fff;
    width: min(860px, 96vw);
    border-radius: 6px;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.25s ease;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #eee;
}

.product-modal__body {
    display: flex;
    flex-direction: row;
    min-height: 500px;
    max-height: 88vh;
}

/* ── Columna izquierda: imagen ── */
.product-modal__gallery {
    flex: 0 0 42%;
    background: #f4f1ec;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 20px 20px;
}

#modal-img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    display: block;
}

#modal-img:hover {
    transform: scale(1.04);
}

/* ── Wrap de imagen con lupa ── */
.modal-img-wrap {
    position: relative;
    width: 100%;
}

.modal-zoom-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(17, 17, 17, 0.65);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.modal-img-wrap:hover .modal-zoom-btn {
    opacity: 1;
    transform: scale(1);
}

.modal-zoom-btn:hover {
    background: rgba(17, 17, 17, 0.9);
}

/* ── LUPA DE DETALLE (lens zoom) ── */
.zoom-lens {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    cursor: none;
    pointer-events: none;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background-repeat: no-repeat;
    background-color: #f4f1ec;
}

.zoom-result {
    position: fixed;
    width: 240px;
    height: 240px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-repeat: no-repeat;
    background-color: #f4f1ec;
    display: none;
    z-index: 4000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    pointer-events: none;
}

.modal-img-wrap:hover .zoom-lens,
.modal-img-wrap:hover .zoom-result {
    display: block;
}

@media (max-width: 700px) {

    .zoom-lens,
    .zoom-result {
        display: none !important;
    }
}

.product-modal__thumbs {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.product-modal__thumbs[hidden] {
    display: none !important;
}

.product-modal__thumbs::-webkit-scrollbar {
    display: none;
}

.product-modal__thumb {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border: 1.5px solid rgba(17, 17, 17, 0.14);
    border-radius: 6px;
    padding: 0;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.product-modal__thumb.active {
    border-color: #111;
}

.product-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Columna derecha: detalles ── */
.product-modal__details {
    flex: 1;
    padding: 30px 28px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 1px solid #ece9e3;
}

.product-modal__details::-webkit-scrollbar {
    width: 4px;
}

.product-modal__details::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.product-modal__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aaa;
    font-weight: 600;
}

.product-modal__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    color: #111;
    margin: 0;
}

.product-modal__price {
    font-size: 1.45rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.product-modal__desc {
    color: #888;
    font-size: 0.86rem;
    line-height: 1.6;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #f0ede8;
}

.product-modal__stock {
    font-size: 0.8rem;
    color: #5a9e6f;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-modal__stock::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5a9e6f;
    display: inline-block;
    flex-shrink: 0;
}

.product-modal__stock--out {
    color: #c0392b;
}

.product-modal__stock--out::before {
    background: #c0392b;
}

#colors-block[hidden] {
    display: none !important;
}

.product-modal__block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-modal__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #333;
}

.product-modal__hint {
    font-size: 0.78rem;
    color: #d4622a;
    font-weight: 600;
    margin: 0;
    min-height: 1em;
}

/* ── Talles ── */
.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-pill {
    min-width: 50px;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #ddd;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.size-pill__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    line-height: 1;
}

.size-pill__badge {
    font-size: 0.58rem;
    color: #e07b39;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.size-pill:hover:not(:disabled) {
    border-color: #111;
}

.size-pill.active {
    border-color: #111;
    background: #111;
}

.size-pill.active .size-pill__label {
    color: #fff;
}

.size-pill.active .size-pill__badge {
    color: rgba(255, 255, 255, 0.7);
}

.size-pill--out {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f8f8;
}

.size-pill--out::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right,
            transparent calc(50% - 0.6px),
            #bbb calc(50% - 0.6px),
            #bbb calc(50% + 0.6px),
            transparent calc(50% + 0.6px));
}

.size-pill--out .size-pill__label {
    color: #bbb;
}

/* ── Colores ── */
.color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e0ddd8;
    background: var(--swatch, #ccc);
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s, box-shadow 0.15s;
}

.color-swatch.active {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
}

/* ── Cantidad ── */
.product-modal__block--qty .modal-qty-controls {
    width: fit-content;
}

/* ── CTA ── */
.product-modal__cta {
    margin-top: 6px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 3px;
    background: #111;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.product-modal__cta:hover:not(:disabled) {
    background: #333;
}

.product-modal__cta:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

.modal-content {
    background: white;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.modal-body img {
    width: 50%;
    max-width: 380px;
    border-radius: 15px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.modal-body img:hover {
    transform: scale(1.02);
}

.modal-info {
    flex: 1;
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 180px;
}

.modal-field label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.modal-qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    padding: 12px 14px;
    background: #faf7f2;
    border: 1px solid #eee;
    border-radius: 14px;
}

.modal-qty-controls button {
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #333;
}

.modal-qty-controls button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.modal-qty-controls input {
    width: 72px;
    height: 42px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    background: white;
}

.image-preview {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3100;
}

.image-preview.active {
    display: flex;
}

.image-preview img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.image-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3200;
}

.modal-info button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.modal-info button:hover,
.modal-info button:focus {
    background: #a67f54;
}

.close {
    float: right;
    font-size: 25px;
    cursor: pointer;
}

.sizes {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.sizes button {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.sizes button.active,
.sizes button:hover {
    background: var(--accent);
    color: white;
}

.product.show-description .product-description {
    max-height: 140px;
    padding: 14px 20px 20px;
}

.cart {
    position: fixed;
    right: -420px;
    top: 0;
    width: 420px;
    height: 100dvh;
    background: white;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
    padding: 0;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
    z-index: 3200;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
}

.cart.active {
    right: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 3100;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px 18px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    margin-top: 0;
    min-height: 82px;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.cart-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.2s, border-color 0.2s;
}

.cart-clear-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-cart:hover {
    background: #eee;
}

.cart-content {
    flex: 1;
    padding: 18px 28px;
    overflow-y: auto;
}

.cart-footer {
    padding: 18px 28px 22px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-footer p {
    margin: 0 0 15px 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.summary-row {
    color: #555;
    font-size: 0.86rem;
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 2px 0;
}

.summary-total {
    color: #111;
    font-size: 1rem;
    font-weight: 800;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #a67f54;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    margin-bottom: 16px;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.cart-item>div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item strong {
    font-size: 0.875rem;
    font-weight: 600;
}

.cart-item span {
    font-size: 0.7rem;
    color: #666;
}

.cart-item>span:last-child {
    font-weight: 600;
    font-size: 0.875rem;
    text-align: right;
    min-width: 80px;
}

.cart-item__price {
    font-weight: 700;
    font-size: 0.875rem;
    text-align: right;
    min-width: 86px;
    color: #111;
}

.cart-item__price--discount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cart-item__old-price {
    color: #aaa;
    font-size: 0.72rem;
    text-decoration: line-through;
    font-weight: 500;
}

.cart-item__price--discount em {
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.cart-item__discount-note {
    color: #ef4444 !important;
    font-weight: 700;
}

.cart-empty {
    color: #555;
    font-size: 0.95rem;
    padding: 40px 0;
    text-align: center;
}

.qty {
    display: flex;
    gap: 6px;
    align-items: center;
    background: #f5f5f5;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.qty button {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.qty button:hover {
    background: #efefef;
    border-color: #999;
}

.colors {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.colors span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.colors span.active {
    border: 2px solid black;
}

.reviews {
    display: flex;
    gap: 22px;
    overflow-x: auto;
}

.review {
    min-width: 250px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.review img {
    width: 100%;
    display: block;
}

footer {
    background: #0d0d0d;
    color: white;
    padding: 0;
}

/* ── Franja superior ── */
.footer__top {
    background: var(--accent);
    padding: 12px 60px;
    text-align: center;
}

.footer__top-text {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    opacity: 0.92;
}

/* ── Cuerpo ── */
.footer__body {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    padding: 60px 60px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

footer h3,
footer h4 {
    margin-bottom: 20px;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__col-icon {
    color: var(--accent);
    font-size: 0.75rem;
}

footer a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 0.86rem;
    transition: color 0.2s, gap 0.2s;
}

footer a:hover,
footer a:focus {
    color: #fff;
    gap: 12px;
}

.footer__link-arrow {
    font-size: 0.55rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}

footer a:hover .footer__link-arrow {
    transform: translateX(3px);
}

.footer__link-icon {
    font-size: 0.78rem;
    color: var(--accent);
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.footer__outlink {
    color: rgba(255, 255, 255, 0.38) !important;
    font-size: 0.82rem !important;
}

.footer__outlink:hover {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer__wa-link {
    color: #25d366 !important;
}

.footer__wa-link:hover {
    color: #1fba58 !important;
}

.footer__wa-link .footer__link-icon {
    color: #25d366;
}

/* ── Brand ── */
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer__logo-link {
    display: inline-block;
    margin: 0 !important;
    text-decoration: none;
}

.footer__tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
    line-height: 1.7;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

/* ── Social ── */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.25s ease;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
    margin: 0 !important;
    gap: 0 !important;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(193, 154, 107, 0.35);
}

/* ── Bottom ── */
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 60px;
}

.footer__bottom p {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
}

.footer__bottom-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.04em;
}

.footer__badge i {
    color: var(--accent);
    font-size: 0.72rem;
}

/* ════════════════════════════════════════
   NEXSI WATERMARK
   ════════════════════════════════════════ */
.nexsi-signature {
    width: 100%;
    padding: 13px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.25);
    letter-spacing: 0.04em;
}

.nexsi-signature a {
    color: #3b82f6 !important;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    display: inline !important;
    margin: 0 !important;
    gap: 0 !important;
    font-size: 11px;
}

.nexsi-signature a:hover {
    opacity: 0.8;
}

.whatsapp {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 60px;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.22));
    transition: transform 0.2s ease;
}

.whatsapp:hover {
    transform: scale(1.1);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: black;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    opacity: 0;
    transition: 0.4s;
    z-index: 4000;
}

/* ── BOTÓN FLOTANTE ENVÍO ───────────────────────────────── */
.shipping-float {
    position: fixed;
    bottom: 96px;
    right: 24px;
    background: #fff;
    color: #111;
    border: 1.5px solid #e0e0e0;
    padding: 0 18px;
    height: 44px;
    border-radius: 22px;
    cursor: pointer;
    z-index: 3000;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.shipping-float:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ── MODAL ENVÍO ─────────────────────────────────────────── */
.shipping-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4000;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}

@media (min-width: 600px) {
    .shipping-modal {
        align-items: center;
        padding: 24px;
    }
}

.shipping-modal.active {
    display: flex;
}

.shipping-content {
    background: white;
    width: 100%;
    max-width: 440px;
    padding: 32px 28px 28px;
    border-radius: 20px 20px 0 0;
    position: relative;
    animation: shippingFade 0.28s ease;
    max-height: 92vh;
    overflow-y: auto;
}

@media (min-width: 600px) {
    .shipping-content {
        border-radius: 16px;
    }
}

.shipping-content::-webkit-scrollbar {
    width: 4px;
}

.shipping-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

@keyframes shippingFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shipping-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.2s;
}

.shipping-close:hover {
    background: #eee;
    color: #111;
}

.shipping-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-right: 32px;
}

.shipping-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shipping-group label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
}

.shipping-group input,
.shipping-group select {
    padding: 11px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    outline: none;
    background: white;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.shipping-group input:focus,
.shipping-group select:focus {
    border-color: #111;
}

.shipping-group input:disabled {
    background: #f8f8f8;
    color: #999;
}

.shipping-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.shipping-btn {
    flex: 1;
    padding: 13px;
    border: none;
    background: #111;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.shipping-btn:hover {
    background: #333;
}

.shipping-btn--reset {
    flex: 0 0 auto;
    background: transparent;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    padding: 13px 16px;
}

.shipping-btn--reset:hover {
    background: #f9fafb;
    color: #111;
    border-color: #111;
}

#shipping-result {
    margin-top: 16px;
}

.shipping-result-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.shipping-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.84rem;
}

.shipping-result-row span {
    color: #6b7280;
}

.shipping-result-row strong {
    color: #111;
    font-weight: 600;
}

.shipping-result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #111;
    font-size: 0.92rem;
}

.shipping-result-total span {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.shipping-result-total strong {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.shipping-result-note {
    padding: 8px 14px;
    font-size: 0.72rem;
    color: #9ca3af;
    text-align: center;
    background: #f9fafb;
}

.shipping-result-total--free {
    background: #059669 !important;
}

/* Botón ver lista de precios */
.shipping-rates-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 14px;
    padding: 9px;
    background: none;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.shipping-rates-link:hover {
    border-color: #111;
    color: #111;
    background: #f9fafb;
}

/* Modal tabla de precios */
.rates-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rates-modal.active {
    display: flex;
}

.rates-modal__content {
    background: #fff;
    border-radius: 16px;
    width: min(780px, 96vw);
    max-height: 88vh;
    overflow-y: auto;
    padding: 32px 28px 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.22s ease;
}

.rates-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.rates-modal__close:hover {
    background: #e5e7eb;
}

.rates-modal__content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rates-modal__note {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.rates-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 560px;
}

.rates-table thead {
    background: #111;
    color: #fff;
}

.rates-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rates-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151;
}

.rates-table tbody tr:last-child td {
    border-bottom: none;
}

.rates-table tbody tr:hover {
    background: #f9fafb;
}

.rates-table__free td {
    background: #f0fdf4;
}

.rates-table__free:hover td {
    background: #dcfce7 !important;
}

.zone-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.zone-badge--free {
    background: #dcfce7;
    color: #15803d;
}

.zone-badge--1 {
    background: #eff6ff;
    color: #1d4ed8;
}

.zone-badge--2 {
    background: #f0fdf4;
    color: #15803d;
}

.zone-badge--3 {
    background: #fffbeb;
    color: #b45309;
}

.zone-badge--4 {
    background: #fff7ed;
    color: #c2410c;
}

.zone-badge--5 {
    background: #fdf4ff;
    color: #7e22ce;
}

.zone-badge--6 {
    background: #fef2f2;
    color: #b91c1c;
}

.price-free {
    color: #15803d;
    font-weight: 700;
}

.rates-modal__footer {
    margin-top: 16px;
    font-size: 0.74rem;
    color: #9ca3af;
    text-align: center;
}


@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .carousel-track {
        animation: none;
    }

    .carousel-indicator {
        animation: none;
    }

    .topbar__track {
        animation: none;
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .section {
        padding: 50px 30px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 20px;
    }

    /* topbar */
    .topbar {
        height: 32px;
    }

    .topbar__track {
        height: 32px;
    }

    .topbar__item {
        font-size: 0.7rem;
    }

    /* header */
    .site-header {
        grid-template-columns: auto 1fr auto;
        padding: 0 16px;
        height: 56px;
    }

    .logo {
        font-size: 1.25rem;
        grid-column: 2;
        justify-self: center;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 3;
    }

    .header-actions__btn {
        display: none;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 8px 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        z-index: 999;
        gap: 0;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav__link {
        height: 48px;
        padding: 0 24px;
        font-size: 0.85rem;
        border-bottom: 1px solid #f5f5f5;
        width: 100%;
    }

    .main-nav__link::after {
        display: none;
    }

    .main-nav__link:last-child {
        border-bottom: none;
    }

    /* hero */
    .hero,
    .about-section {
        background-attachment: scroll;
    }

    .hero {
        padding: 80px 20px 60px;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.2;
        margin-bottom: 20px;
    }

    /* carrusel */
    .carousel {
        margin: 0;
        padding: 20px 0;
        overflow: hidden;
    }

    .carousel-track {
        gap: 15px;
        animation-duration: 25s;
    }

    .carousel-card {
        min-width: 200px;
        border-radius: 14px;
    }

    .carousel-card img,
    .carousel-card .product-img-wrap {
        height: 180px;
    }

    .carousel-card p {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .carousel::before,
    .carousel::after {
        display: none;
    }

    .carousel-indicator {
        display: none;
    }

    /* catálogo */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product {
        border-radius: 10px;
    }

    .product img,
    .product-img-wrap {
        height: 200px;
    }

    .product-info {
        padding: 12px 14px 14px;
    }

    .product-info h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .product-info p {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .product-info button {
        width: 100%;
        padding: 9px;
        font-size: 0.85rem;
    }

    /* about */
    .about-section {
        padding: 60px 20px;
        text-align: center;
    }

    .about-overlay h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .about-overlay p {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
    }

    /* modal producto */
    .product-modal__body {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .product-modal__gallery {
        flex: none;
        padding: 16px;
    }

    #modal-img {
        max-height: 200px;
        object-fit: contain;
    }

    .product-modal__details {
        padding: 18px 16px 22px;
        border-left: none;
        border-top: 1px solid #ece9e3;
        overflow-y: visible;
    }

    .size-selector {
        justify-content: flex-start;
    }

    .modal-qty-controls {
        justify-content: flex-start;
    }

    /* carrito */
    .cart {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }

    .cart-header,
    .cart-content,
    .cart-footer {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 0.60rem;
    }

    .cart-item {
        grid-template-columns: 1fr auto auto;
        gap: 10px;
        padding: 12px 0;
    }

    /* botón envío — solo ícono */
    .shipping-float {
        bottom: 88px;
        right: 16px;
        height: 40px;
        width: 40px;
        padding: 0;
        justify-content: center;
        font-size: 0.9rem;
    }

    .shipping-float span {
        display: none;
    }

    /* catálogo — 1 columna, tarjeta horizontal */
    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product {
        display: flex;
        flex-direction: row;
        border-radius: 12px;
        overflow: hidden;
    }

    .product-img-wrap {
        flex: 0 0 130px;
        height: 130px;
    }

    .product img {
        height: 130px;
    }

    .product-info {
        flex: 1;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-info h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .product-info p {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0;
    }

    .product-info button {
        width: 100%;
        padding: 9px;
        font-size: 0.82rem;
        margin-top: 10px;
    }

    .product-description {
        display: none;
    }

    /* whatsapp */
    .whatsapp {
        width: 50px;
        bottom: 16px;
        right: 16px;
    }

    /* reviews */
    .reviews {
        display: flex;
        flex-direction: column;
        margin: 10px;
        gap: 14px;
        padding: 0 20px;
    }

    .review {
        min-width: 200px;
        border-radius: 14px;
    }

    /* footer */
    .footer__top {
        padding: 10px 20px;
    }

    .footer__body {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding: 40px 20px 32px;
        text-align: center;
    }

    .footer__brand {
        grid-column: 1 / -1;
        align-items: center;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        padding: 18px 20px;
        text-align: center;
    }

    .footer__bottom-badges {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 28px 14px;
    }

    .section h2 {
        font-size: 1.4rem;
        margin-left: 0;
    }

    /* topbar */
    .topbar {
        height: 28px;
    }

    .topbar__track {
        height: 28px;
    }

    .topbar__item {
        font-size: 0.65rem;
    }

    /* header */
    .site-header {
        padding: 0 12px;
        height: 52px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .main-nav {
        top: 52px;
    }

    /* hero */
    .hero {
        padding: 60px 14px 40px;
    }

    .hero h1 {
        font-size: clamp(1.7rem, 11vw, 2.4rem);
    }

    /* carrusel */
    .carousel {
        padding: 14px 0;
    }

    .carousel-track {
        gap: 10px;
        animation-duration: 20s;
    }

    .carousel-card {
        min-width: 160px;
    }

    .carousel-card img,
    .carousel-card .product-img-wrap {
        height: 150px;
    }

    /* catálogo: 2 columnas compactas */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product img,
    .product-img-wrap {
        height: 170px;
    }

    .product-info {
        padding: 10px 12px 12px;
    }

    .product-info h3 {
        font-size: 0.85rem;
    }

    .product-info p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .product-info button {
        padding: 8px;
        font-size: 0.8rem;
    }

    /* about */
    .about-section {
        padding: 40px 14px;
    }

    .about-overlay {
        padding: 40px 24px;
    }

    .about-overlay h2 {
        font-size: 1.5rem;
    }

    .about-overlay p {
        font-size: 0.95rem;
    }

    /* modal producto */
    #modal-img {
        max-height: 180px;
    }

    .product-modal__details {
        padding: 16px 14px 20px;
        gap: 10px;
    }

    .product-modal__title {
        font-size: 1.2rem;
    }

    .product-modal__price {
        font-size: 1.2rem;
    }

    /* carrito */
    .cart-header,
    .cart-content,
    .cart-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* botón envío — solo ícono */
    .shipping-float {
        bottom: 80px;
        right: 12px;
        height: 36px;
        width: 46px;
        padding: 0;
        justify-content: center;
        font-size: 0.85rem;
    }

    /* catálogo — 1 columna, tarjeta horizontal compacta */
    .grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product {
        flex-direction: row;
        border-radius: 10px;
    }

    .product-img-wrap {
        flex: 0 0 110px;
        height: 110px;
    }

    .product img {
        height: 110px;
    }

    .product-info {
        padding: 12px 14px;
    }

    .product-info h3 {
        font-size: 0.88rem;
    }

    .product-info p {
        font-size: 0.92rem;
    }

    .product-info button {
        padding: 8px;
        font-size: 0.78rem;
    }

    /* whatsapp */
    .whatsapp {
        width: 46px;
        bottom: 14px;
        right: 12px;
    }

    /* reviews */
    .reviews {
        padding: 0 14px;
        gap: 10px;
    }

    .review {
        min-width: 160px;
    }

    /* footer */
    .footer__body {
        grid-template-columns: 1fr;
        padding: 30px 14px 24px;
        text-align: center;
    }

    .footer__brand {
        align-items: center;
    }

    .footer__bottom {
        padding: 16px 14px;
    }

    .social-links {
        gap: 14px;
        justify-content: center;
    }

    .social-links a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* Responsive refinements for cart and product cards */
@media (max-width: 768px) {
    .section {
        padding: 36px 16px;
    }

    .section h2 {
        margin-left: 0;
    }

    .grid {
        gap: 12px;
        padding: 0;
    }

    .product {
        display: block;
        border-radius: 8px;
        min-width: 0;
    }

    .product:hover {
        transform: none;
    }

    .product-img-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1.05;
        flex: none;
    }

    .product img {
        height: 100%;
    }

    .product-info {
        padding: 10px 10px 12px;
        min-height: 116px;
        display: flex;
        flex-direction: column;
    }

    .product-info h3 {
        font-size: 0.84rem;
        line-height: 1.25;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-info p,
    .product-price {
        font-size: 0.86rem;
        line-height: 1.25;
        margin-bottom: 9px;
    }

    .product-price__new {
        font-size: 0.9rem;
    }

    .product-price__old {
        font-size: 0.72rem;
    }

    .product-price__badge {
        font-size: 0.56rem;
        padding: 2px 5px;
    }

    .product-info button {
        width: 100%;
        margin-top: auto;
        padding: 8px 6px;
        border-radius: 5px;
        font-size: 0.72rem;
    }

    .product-thumbs {
        gap: 5px;
        padding: 7px 8px 0;
    }

    .product-thumb {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 5px;
    }

    .product-image-count {
        left: 8px;
        bottom: 8px;
        font-size: 0.6rem;
        padding: 5px 7px;
    }

    .product-gallery-nav {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    .product-gallery-nav--prev {
        left: 7px;
    }

    .product-gallery-nav--next {
        right: 7px;
    }

    .product__featured-badge {
        top: 8px;
        left: 8px;
        font-size: 0.55rem;
        padding: 3px 7px;
    }

    .product__discount-ribbon {
        top: 10px;
        right: -42px;
        width: 126px;
        padding: 5px 0;
        font-size: 0.58rem;
    }

    .product-description {
        display: none;
    }

    .modal {
        padding: 10px;
    }

    .product-modal__content {
        width: min(480px, 100%);
        max-height: 96dvh;
    }

    .product-modal__gallery {
        padding: 14px 12px 10px;
        gap: 10px;
    }

    #modal-img {
        max-height: 210px;
    }

    .product-modal__thumb {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .cart {
        top: 0;
        width: min(100vw, 420px);
        right: -100vw;
        height: 100dvh;
        border-radius: 0;
    }

    .cart-header {
        min-height: 72px;
        padding: 16px 16px 14px;
    }

    .cart-header,
    .cart-content,
    .cart-footer {
        padding-left: 16px;
        padding-right: 16px;
        font-size: initial;
    }

    .cart-header h3 {
        font-size: 1.05rem;
    }

    .cart-subtitle {
        font-size: 0.78rem;
    }

    .cart-content {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .cart-footer {
        padding-top: 14px;
        padding-bottom: 16px;
    }

    .cart-footer p {
        font-size: 0.92rem;
        margin-bottom: 12px;
    }

    .cart-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        margin-bottom: 10px;
        padding: 10px 0;
    }

    .cart-item strong {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .cart-item span {
        font-size: 0.68rem;
    }

    .cart-item>span:last-child {
        grid-column: 1 / -1;
        min-width: 0;
        text-align: left;
        font-size: 0.82rem;
    }

    .cart-item__price,
    .cart-item__price--discount {
        grid-column: 1 / -1;
        min-width: 0;
        text-align: left;
        align-items: flex-start;
        font-size: 0.82rem;
    }

    .qty {
        gap: 4px;
        padding: 4px 5px;
    }

    .qty span {
        min-width: 20px;
        font-size: 0.82rem;
    }

    .qty button {
        min-width: 28px;
        height: 28px;
        padding: 0 7px;
        font-size: 0.82rem;
    }

    .checkout-btn {
        padding: 10px;
        border-radius: 6px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 30px 12px;
    }

    .grid {
        gap: 9px;
    }

    .product-img-wrap {
        aspect-ratio: 1 / 1;
    }

    .product-info {
        min-height: 108px;
        padding: 9px 9px 10px;
    }

    .product-info h3 {
        font-size: 0.78rem;
    }

    .product-info p,
    .product-price {
        font-size: 0.8rem;
    }

    .product-info button {
        padding: 7px 5px;
        font-size: 0.68rem;
    }

    .product-thumb {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .product-modal__thumb {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .cart {
        width: 100vw;
    }
}

/* ── MODAL CONFIRMACIÓN DE COMPRA ────────────────────────────── */
.cconfirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: fadeIn 0.2s ease;
}

@media (min-width: 600px) {
    .cconfirm-overlay {
        align-items: center;
        padding: 24px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cconfirm {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px 24px 32px;
    animation: slideUp 0.25s ease;
}

@media (min-width: 600px) {
    .cconfirm {
        border-radius: 16px;
        max-height: 85vh;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cconfirm__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cconfirm__section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.cconfirm__section:last-of-type {
    border-bottom: none;
}

.cconfirm__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 10px;
}

.cconfirm__address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.cconfirm__address i {
    color: #111;
    margin-top: 3px;
    flex-shrink: 0;
}

.cconfirm__address strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
}

.cconfirm__address span {
    font-size: 0.78rem;
    color: #6b7280;
}

.cconfirm__address-warn {
    font-size: 0.76rem;
    color: #d97706;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.5;
}

.cconfirm__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
}

.cconfirm__item-name {
    color: #374151;
    flex: 1;
}

.cconfirm__item-price {
    font-weight: 600;
    color: #111;
    flex-shrink: 0;
}

.cconfirm__totals {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 16px;
    border-bottom: none !important;
}

.cconfirm__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #374151;
    padding: 4px 0;
}

.cconfirm__row--total {
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.cconfirm__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cconfirm__btn {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, opacity 0.2s;
    font-family: inherit;
}

.cconfirm__btn--cancel {
    background: #f3f4f6;
    color: #374151;
    flex: 0 0 auto;
    padding: 14px 18px;
}

.cconfirm__btn--cancel:hover {
    background: #e5e7eb;
}

.cconfirm__btn--pay {
    background: #111;
    color: #fff;
    flex: 1;
}

.cconfirm__btn--pay:hover {
    background: #333;
}

.cconfirm__btn--pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Botón pagar desde modal de envío */
.shipping-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.shipping-pay-btn:hover {
    background: #333;
}