/* 5. MERCHANDISING */

.iconos-merchandising {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
    font-size: 24px;
}


.productos-oficiales {
    position: relative;
    padding: 50px 40px;
    background: #f5f5f5;
}

.public-alert-ok {
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #e7f8ec;
    border: 1px solid #b6e2c5;
    color: #17603a;
    text-align: center;
    font-weight: 700;
}

.public-alert-error {
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fdecec;
    border: 1px solid #efb8b8;
    color: #8a1f1f;
    text-align: center;
    font-weight: 700;
}

.merch-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto 34px;
}

.merch-intro {
    max-width: 760px;
}

.merch-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c1121f;
}

.productos-oficiales h2 {
    margin-bottom: 10px;
    font-size: 30px;
    color: #181818;
}

.merch-subtitulo {
    max-width: 680px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #5f6368;
}

.boton-cesta-flotante {
    position: relative;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.boton-cesta-flotante:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.22);
}

@media (min-width: 769px) {
    .merch-toolbar {
        align-items: flex-start;
    }

    .boton-cesta-flotante {
        position: fixed;
        right: 5em;
        bottom: 32px;
        padding: 16px 20px;
        opacity: 1;
        transform: translateY(0);
        transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, opacity 0.28s ease;
    }

    .boton-cesta-flotante.is-pinned {
        box-shadow: 0 24px 46px rgba(0, 0, 0, 0.22);
    }

    .boton-cesta-flotante.is-hidden {
        transform: translateY(110px);
        opacity: 0;
        pointer-events: none;
    }
}

.boton-cesta-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e60000;
    font-size: 14px;
}

.rejilla-productos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1180px;
    margin: 0 auto;
}

.tarjeta-producto {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(34, 34, 34, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.tarjeta-producto:hover {
    transform: translateY(-8px);
    border-color: rgba(193, 18, 31, 0.24);
    box-shadow: 0 22px 46px rgba(34, 34, 34, 0.14);
}

.tarjeta-producto img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tarjeta-producto:hover img {
    transform: scale(1.06);
}

.tarjeta-producto-media-link {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.info-producto {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 18px 18px 20px;
}

.info-producto h3 {
    margin-bottom: 6px;
    font-size: 20px;
    color: #181818;
}

.tarjeta-producto-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tarjeta-producto-title-link:hover {
    color: #c1121f;
}

.descripcion-producto {
    flex-grow: 1;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #555;
}

.merch-resumen-compra {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.merch-tallas-bloque {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.merch-tallas-texto {
    color: #5f6368;
}

.precio {
    font-size: 24px;
    font-weight: 800;
    color: #c1121f;
    white-space: nowrap;
}

.merch-add-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.merch-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.selector-talla,
.selector-cantidad,
.pedido-field input,
.pedido-field textarea {
    width: 100%;
    border: 1px solid #d4d7dc;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    background: #ffffff;
}

.selector-cantidad {
    max-width: 110px;
}

.precio-comprar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.merch-field-cantidad {
    flex-shrink: 0;
}

.boton-comprar {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #e60000 0%, #ad1111 100%);
    color: #ffffff;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(173, 17, 17, 0.22);
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease, background 0.24s ease;
}

.boton-comprar:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 34px rgba(173, 17, 17, 0.3);
    filter: saturate(1.08);
}

.boton-comprar:active {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(173, 17, 17, 0.24);
}

.merch-sin-talla {
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.merch-field-placeholder {
    min-height: 73px;
}

.merch-sin-talla-box {
    display: flex;
    align-items: center;
    min-height: 43px;
    border: 1px solid #d4d7dc;
    border-radius: 10px;
    padding: 11px 12px;
    background: #ffffff;
    color: #5f6368;
}

.public-card-action {
    margin: 0;
}

.merch-hide-action {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.public-hide-button {
    border: 1px solid #d97706;
    background: #fff;
    color: #b45309;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}

.contenedor-paginacion {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.merch-detail-shell {
    padding: 48px 40px 60px;
    background: #ffffff;
}

.merch-detail-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.merch-detail-media-card,
.merch-detail-info-card,
.merch-detail-purchase-card,
.merch-detail-related-card {
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(34, 34, 34, 0.08);
}

.merch-detail-media-card {
    position: sticky;
    top: 110px;
    overflow: hidden;
    padding: 0;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f6 100%);
    border: 1px solid #f2d5cd;
    box-shadow: 0 18px 40px rgba(127, 29, 29, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.merch-detail-media-card img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.merch-detail-media-card:hover {
    transform: translateY(-8px);
    border-color: #ef4444;
    box-shadow: 0 24px 48px rgba(127, 29, 29, 0.16);
}

.merch-detail-media-card:hover img {
    transform: scale(1.04);
}

.merch-detail-info-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.merch-detail-info-card,
.merch-detail-purchase-card,
.merch-detail-related-card {
    padding: 28px;
}

.merch-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.merch-detail-header h2 {
    margin: 0;
    font-size: 34px;
    color: #181818;
}

.merch-detail-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 62px;
    padding: 0 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e60000 0%, #ad1111 100%);
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(173, 17, 17, 0.22);
}

.merch-detail-copy {
    margin: 0 0 22px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.merch-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.merch-detail-meta-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #f3d8d3;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.merch-detail-meta-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #ef4444 0%, #7f1d1d 100%);
    opacity: 0.88;
}

.merch-detail-meta-item:hover {
    transform: translateY(-6px);
    border-color: #ef4444;
    box-shadow: 0 16px 32px rgba(127, 29, 29, 0.12);
    background: #fff7f7;
}

.merch-detail-meta-item span {
    position: relative;
    padding-left: 12px;
    color: #b91c1c;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.merch-detail-meta-item strong {
    position: relative;
    padding-left: 12px;
    color: #111827;
    font-size: 16px;
    line-height: 1.45;
}

.merch-detail-purchase-head {
    margin-bottom: 18px;
}

.merch-detail-purchase-head h3,
.merch-detail-related-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #181818;
}

.merch-detail-purchase-head p,
.merch-detail-related-card p {
    margin: 0;
    color: #5f6368;
    line-height: 1.7;
}

.merch-detail-form {
    gap: 16px;
}

.merch-detail-purchase-row {
    align-items: flex-end;
}

.merch-detail-related-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.merch-related-link {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #f8f5f2;
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.merch-related-link:hover {
    transform: translateY(-3px);
    background: #fff0f0;
    box-shadow: 0 12px 24px rgba(34, 34, 34, 0.1);
}

.merch-related-link img {
    width: 74px;
    height: 84px;
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
    padding: 6px;
}

.merch-related-link strong {
    display: block;
    margin-bottom: 4px;
    color: #181818;
}

.merch-related-link span {
    color: #c1121f;
    font-weight: 800;
}

.merch-related-link em {
    color: #7f1d1d;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.merch-detail-actions-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.merch-detail-top-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cesta-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 40;
}

.panel-cesta {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(430px, 100%);
    height: 100vh;
    background: #fbfaf8;
    box-shadow: -14px 0 36px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 50;
}

.cart-open .cesta-overlay {
    opacity: 1;
    visibility: visible;
}

.cart-open .panel-cesta {
    transform: translateX(0);
}

.panel-cesta-header,
.panel-cesta-footer {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.panel-cesta-footer {
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    border-bottom: none;
    margin-top: auto;
    background: #ffffff;
}

.panel-cesta-kicker {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c1121f;
}

.panel-cesta-header h3 {
    margin: 0;
    font-size: 26px;
    color: #181818;
}

.panel-cesta-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.panel-cesta-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    overflow-y: auto;
}

.cesta-item {
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
    background: #ffffff;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.cesta-item:hover {
    transform: translateY(-6px);
    border-color: rgba(193, 18, 31, 0.18);
    box-shadow: 0 18px 34px rgba(34, 34, 34, 0.12);
}

.cesta-item img {
    width: 86px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.cesta-item-info h4 {
    margin-bottom: 6px;
    font-size: 17px;
    color: #181818;
}

.cesta-item-info p {
    margin-bottom: 6px;
    color: #5f6368;
    font-size: 14px;
}

.cesta-inline-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.merch-field-panel {
    font-size: 12px;
}

.cesta-remove-button,
.pedido-submit {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.cesta-remove-button {
    background: #f9dede;
    color: #8f1c1c;
}

.cesta-item-total {
    align-self: flex-start;
    font-size: 18px;
    font-weight: 800;
    color: #c1121f;
}

.cesta-vacia {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 46px 18px;
    border: 1px dashed rgba(17, 17, 17, 0.16);
    border-radius: 18px;
    text-align: center;
    color: #5f6368;
}

.cesta-vacia i {
    font-size: 28px;
    color: #c1121f;
}

.cesta-resumen-linea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #333;
}

.cesta-submit-link,
.pedido-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e60000 0%, #ad1111 100%);
    color: #ffffff;
    padding: 14px 18px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.cesta-submit-link:hover,
.pedido-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(173, 17, 17, 0.28);
    filter: saturate(1.08);
}

.cesta-submit-link-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.contacto-pedido {
    padding: 48px 40px;
    background: linear-gradient(135deg, #111111 0%, #262626 100%);
    color: #ffffff;
    text-align: center;
}

.contacto-pedido h2 {
    margin-bottom: 8px;
    font-size: 26px;
}

.contacto-pedido p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.boton-contacto {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #111111;
    padding: 12px 25px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.pedido-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.pedido-card,
.pedido-summary {
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(34, 34, 34, 0.08);
}

.pedido-card {
    padding: 28px;
}

.pedido-summary {
    padding: 24px;
    height: fit-content;
}

.pedido-card h2,
.pedido-summary h3 {
    margin-bottom: 12px;
    font-size: 28px;
    color: #181818;
}

.pedido-card p,
.pedido-summary p {
    color: #5f6368;
}

.pedido-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.pedido-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.pedido-field-full {
    grid-column: 1 / -1;
}

.pedido-field textarea {
    min-height: 120px;
    resize: vertical;
}

.pedido-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.pedido-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #f7f5f2;
}

.pedido-item img {
    width: 70px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
}

.pedido-item strong {
    display: block;
    margin-bottom: 4px;
    color: #181818;
}

.pedido-item span {
    display: block;
    color: #5f6368;
    font-size: 14px;
}

.pedido-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

@media (max-width: 1024px) {
    .merch-toolbar,
    .pedido-layout,
    .merch-detail-layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .rejilla-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .merch-detail-media-card {
        position: static;
    }

    .merch-detail-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .productos-oficiales,
    .contacto-pedido,
    .merch-detail-shell {
        padding: 36px 18px;
    }

    .merch-toolbar {
        gap: 18px;
    }

    .boton-cesta-flotante {
        justify-content: space-between;
        width: 100%;
    }

    .rejilla-productos {
        grid-template-columns: 1fr;
    }

    .precio-comprar,
    .cesta-inline-form,
    .pedido-form,
    .merch-detail-meta-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .selector-cantidad {
        max-width: 100%;
    }

    .cesta-item,
    .pedido-item {
        grid-template-columns: 1fr;
    }

    .cesta-item-total {
        justify-self: flex-start;
    }

    .panel-cesta {
        width: 100%;
    }

    .merch-detail-info-card,
    .merch-detail-purchase-card,
    .merch-detail-related-card {
        padding: 20px;
    }

    .merch-detail-media-card {
        aspect-ratio: 1 / 1;
    }

    .merch-detail-header {
        flex-direction: column;
    }

    .merch-detail-header h2 {
        font-size: 28px;
    }

    .merch-related-link {
        grid-template-columns: 62px 1fr;
    }

    .merch-related-link em {
        grid-column: 2;
    }
}

.boton-contacto:hover {
    background: #eee;
}

.boton-contacto i {
    margin-right: 8px;
}


/* Migrado de inline */
.merch-tallas-bloque { margin-bottom: 15px; font-size: 0.9rem; }
.merch-tallas-texto { background: #eee; padding: 2px 6px; border-radius: 4px; }

.pie-pagina {
    margin-top: 0;
}

/* =========================
   Modo oscuro SOLO Tienda
   ========================= */
html[data-theme="dark"] .public-news-hero {
    background: radial-gradient(circle at 22% 12%, #7f1d1d 0%, #1f2937 45%, #020617 100%);
}

html[data-theme="dark"] .public-news-hero-badge {
    background: #111827;
    border: 1px solid #374151;
    color: #fecaca;
}

html[data-theme="dark"] .public-news-hero h1 {
    color: #f8fafc;
}

html[data-theme="dark"] .public-news-hero p {
    color: #e2e8f0;
}

html[data-theme="dark"] .public-news-hero-divider {
    background: #f87171;
}

html[data-theme="dark"] .iconos-merchandising {
    color: #fca5a5;
}

html[data-theme="dark"] .productos-oficiales {
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.12), transparent 28%),
        linear-gradient(180deg, #08101d 0%, #0b1120 100%);
}

html[data-theme="dark"] .public-alert-ok {
    background: #052e1a;
    border-color: #166534;
    color: #bbf7d0;
}

html[data-theme="dark"] .public-alert-error {
    background: #4c1111;
    border-color: #b91c1c;
    color: #fecaca;
}

html[data-theme="dark"] .merch-kicker {
    color: #fca5a5;
}

html[data-theme="dark"] .productos-oficiales h2 {
    color: #f8fafc;
}

html[data-theme="dark"] .merch-subtitulo {
    color: #cbd5e1;
}

html[data-theme="dark"] .boton-cesta-flotante {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.38);
}

html[data-theme="dark"] .boton-cesta-count {
    background: #dc2626;
    color: #fff;
}

html[data-theme="dark"] .tarjeta-producto {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.55);
}

html[data-theme="dark"] .tarjeta-producto img {
    background: #0b1220;
}

html[data-theme="dark"] .tarjeta-producto-title-link:hover {
    color: #fca5a5;
}

html[data-theme="dark"] .info-producto h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .descripcion-producto {
    color: #cbd5e1;
}

html[data-theme="dark"] .merch-field {
    color: #e5e7eb;
}

html[data-theme="dark"] .precio {
    color: #f87171;
}

html[data-theme="dark"] .selector-talla,
html[data-theme="dark"] .selector-cantidad,
html[data-theme="dark"] .pedido-field input,
html[data-theme="dark"] .pedido-field textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .selector-talla::placeholder,
html[data-theme="dark"] .pedido-field textarea::placeholder,
html[data-theme="dark"] .pedido-field input::placeholder {
    color: #94a3b8;
}

html[data-theme="dark"] .selector-talla:focus,
html[data-theme="dark"] .selector-cantidad:focus,
html[data-theme="dark"] .pedido-field input:focus,
html[data-theme="dark"] .pedido-field textarea:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

html[data-theme="dark"] .merch-sin-talla {
    color: #cbd5e1;
}

html[data-theme="dark"] .merch-sin-talla-box {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .boton-comprar {
    background: #dc2626;
    box-shadow: 0 16px 30px rgba(127, 29, 29, 0.34);
}

html[data-theme="dark"] .boton-comprar:hover {
    background: #ef4444;
    box-shadow: 0 22px 38px rgba(127, 29, 29, 0.42);
}

html[data-theme="dark"] .boton-comprar:active {
    box-shadow: 0 12px 22px rgba(127, 29, 29, 0.3);
}

html[data-theme="dark"] .public-hide-button {
    background: #111827;
    border-color: #f59e0b;
    color: #fbbf24;
}

html[data-theme="dark"] .public-hide-button:hover {
    background: #f59e0b;
    color: #111827;
}

html[data-theme="dark"] .merch-tallas-texto {
    background: #1f2937;
    color: #e5e7eb;
}

html[data-theme="dark"] .cesta-overlay {
    background: rgba(2, 6, 23, 0.72);
}

html[data-theme="dark"] .panel-cesta {
    background: #0f172a;
    box-shadow: -18px 0 40px rgba(2, 6, 23, 0.55);
}

html[data-theme="dark"] .panel-cesta-header,
html[data-theme="dark"] .panel-cesta-footer {
    background: #111827;
    border-color: #334155;
}

html[data-theme="dark"] .panel-cesta-header h3,
html[data-theme="dark"] .cesta-item-info h4,
html[data-theme="dark"] .pedido-card h2,
html[data-theme="dark"] .pedido-summary h3,
html[data-theme="dark"] .pedido-item strong {
    color: #f8fafc;
}

html[data-theme="dark"] .panel-cesta-close {
    color: #f8fafc;
}

html[data-theme="dark"] .cesta-item {
    background: linear-gradient(180deg, #172033 0%, #0f172a 100%);
    border-color: #334155;
}

html[data-theme="dark"] .cesta-item-info p,
html[data-theme="dark"] .cesta-vacia,
html[data-theme="dark"] .pedido-card p,
html[data-theme="dark"] .pedido-summary p,
html[data-theme="dark"] .pedido-item span {
    color: #cbd5e1;
}

html[data-theme="dark"] .cesta-update-button,
html[data-theme="dark"] .pedido-submit {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
}

html[data-theme="dark"] .cesta-remove-button {
    background: rgba(127, 29, 29, 0.28);
    color: #fecaca;
}

html[data-theme="dark"] .cesta-item-total,
html[data-theme="dark"] .cesta-resumen-linea strong,
html[data-theme="dark"] .pedido-total strong {
    color: #fca5a5;
}

html[data-theme="dark"] .cesta-resumen-linea {
    color: #e5e7eb;
}

html[data-theme="dark"] .cesta-submit-link {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
}

html[data-theme="dark"] .cesta-submit-link-disabled {
    background: #334155;
    color: #94a3b8;
}

html[data-theme="dark"] .cesta-vacia {
    border-color: #334155;
}

html[data-theme="dark"] .pedido-card,
html[data-theme="dark"] .pedido-summary {
    background: linear-gradient(180deg, #172033 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.45);
}

html[data-theme="dark"] .merch-detail-shell {
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.12), transparent 28%),
        linear-gradient(180deg, #08101d 0%, #0b1120 100%);
}

html[data-theme="dark"] .merch-detail-media-card,
html[data-theme="dark"] .merch-detail-info-card,
html[data-theme="dark"] .merch-detail-purchase-card,
html[data-theme="dark"] .merch-detail-related-card {
    background: linear-gradient(180deg, #172033 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.45);
}

html[data-theme="dark"] .merch-detail-media-card {
    background:
        radial-gradient(circle at top, rgba(248, 113, 113, 0.14), transparent 34%),
        linear-gradient(180deg, #172033 0%, #0f172a 100%);
}

html[data-theme="dark"] .merch-detail-header h2,
html[data-theme="dark"] .merch-detail-purchase-head h3,
html[data-theme="dark"] .merch-detail-related-card h3,
html[data-theme="dark"] .merch-related-link strong {
    color: #f8fafc;
}

html[data-theme="dark"] .merch-detail-copy,
html[data-theme="dark"] .merch-detail-purchase-head p,
html[data-theme="dark"] .merch-detail-related-card p {
    color: #cbd5e1;
}

html[data-theme="dark"] .merch-detail-meta-item,
html[data-theme="dark"] .merch-related-link {
    background: #111827;
}

html[data-theme="dark"] .merch-detail-meta-item {
    border-color: #334155;
    box-shadow: none;
}

html[data-theme="dark"] .merch-detail-meta-item::before {
    background: linear-gradient(180deg, #f87171 0%, #7f1d1d 100%);
}

html[data-theme="dark"] .merch-detail-meta-item:hover {
    background: #172033;
    border-color: #ef4444;
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.42);
}

html[data-theme="dark"] .merch-detail-meta-item span {
    color: #fca5a5;
}

html[data-theme="dark"] .merch-detail-meta-item strong {
    color: #f8fafc;
}

html[data-theme="dark"] .merch-related-link:hover {
    background: #172033;
}

html[data-theme="dark"] .merch-related-link img {
    background: #0f172a;
}

html[data-theme="dark"] .merch-related-link span,
html[data-theme="dark"] .merch-detail-price-badge {
    color: #fecaca;
}

html[data-theme="dark"] .merch-related-link em {
    color: #fca5a5;
}

html[data-theme="dark"] .pedido-field {
    color: #e5e7eb;
}

html[data-theme="dark"] .pedido-item {
    background: #111827;
}

html[data-theme="dark"] .pedido-total {
    border-color: #334155;
    color: #e5e7eb;
}

html[data-theme="dark"] .contacto-pedido {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

html[data-theme="dark"] .boton-contacto {
    background: #f8fafc;
    color: #111827;
    border: 1px solid #cbd5e1;
}

html[data-theme="dark"] .boton-contacto:hover {
    background: #e2e8f0;
}

html[data-theme="dark"] .productos-oficiales .pagination .page-link {
    background: #1d4ed8;
    border-color: #1e40af;
    color: #f8fafc;
}

html[data-theme="dark"] .productos-oficiales .pagination .page-link:hover {
    background: #2563eb;
}

html[data-theme="dark"] .productos-oficiales .pagination .disabled .page-link,
html[data-theme="dark"] .productos-oficiales .pagination .page-item.disabled .page-link {
    background: #334155;
    color: #94a3b8;
}

@media (max-width: 992px) {
    .seccion-merchandising-header,
    .productos-oficiales,
    .contacto-pedido {
        padding-left: 24px;
        padding-right: 24px;
    }

    .rejilla-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .merch-resumen-compra,
    .precio-comprar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .seccion-merchandising-header {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .seccion-merchandising-header h1 {
        font-size: 28px;
    }

    .productos-oficiales,
    .contacto-pedido {
        padding-left: 18px;
        padding-right: 18px;
    }

    .productos-oficiales {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .merch-intro {
        margin-bottom: 26px;
    }

    .productos-oficiales h2 {
        font-size: 24px;
    }

    .merch-subtitulo {
        font-size: 15px;
        line-height: 1.6;
    }

    .rejilla-productos {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tarjeta-producto {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    .tarjeta-producto img {
        height: 220px;
    }

    .info-producto {
        padding: 16px;
    }

    .selector-talla,
    .boton-comprar {
        width: 100%;
    }

    .contacto-pedido h2 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .seccion-merchandising-header,
    .productos-oficiales,
    .contacto-pedido {
        padding-left: 16px;
        padding-right: 16px;
    }

    .seccion-merchandising-header h1 {
        font-size: 24px;
    }

    .iconos-merchandising {
        gap: 16px;
        font-size: 20px;
    }

    .productos-oficiales h2 {
        font-size: 22px;
    }

    .merch-subtitulo {
        font-size: 14px;
    }

    .descripcion-producto {
        font-size: 13px;
    }

    .precio {
        font-size: 20px;
    }

    .contacto-pedido {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .boton-contacto {
        width: 100%;
        text-align: center;
    }
}

/* Merchandising: keep product images fully visible */
.tarjeta-producto-media-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 14px;
    background: linear-gradient(180deg, #fff9f9 0%, #ffffff 100%);
}

.tarjeta-producto img,
.cesta-item img,
.pedido-item img {
    object-fit: contain;
    background: #ffffff;
}

.tarjeta-producto img {
    padding: 14px;
}

.cesta-item img,
.pedido-item img {
    padding: 6px;
}
