/**
 * FACILECOMMERCE - Estilos tienda pública
 */

:root {
    /* Paleta base: blanco y negro absolutos, al estilo de las tiendas
       de indumentaria minimalistas. El header sobreescribe estas variables
       si la empresa configuró colores propios en Admin → Configuración. */
    --store-primary: #000000;
    --store-primary-hover: #333333;
    --store-accent: #000000;
    --store-accent-dark: #333333;
    --store-bg: #ffffff;
    --store-text: #000000;
    --store-muted: #767676;
    --store-card: #ffffff;
    --store-border: #e6e6e6;
    --store-radius: 0px;
    --store-shadow: none;

    /* Superficies invertidas (barra superior, header y footer) */
    --store-adbar-bg: #ffffff;
    --store-adbar-fg: #000000;
    --store-header-bg: #000000;
    --store-header-fg: #ffffff;
    --store-footer-bg: #000000;
    --store-footer-fg: #ffffff;
    --store-label-bg: #000000;
    --store-label-fg: #ffffff;

    /* Semáforo de estados */
    --store-success: #4bb98c;
    --store-danger: #dd7774;
    --store-warning: #dc8f38;

    /* Tipografía: títulos con Almarai, textos con Poppins.
       Escala chica y peso liviano, como en las tiendas de moda. */
    --store-font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
    --store-heading-font: "Almarai", "Poppins", system-ui, sans-serif;
    --store-fs-small: 10px;
    --store-fs-medium: 11px;
    --store-fs-base: 12px;
    --store-fs-big: 14px;
    --store-fs-large: 16px;
    --store-title-weight: 400;
    --store-tracking: 0.12em;

    /* Alto del carrusel de inicio. Se configura en Admin -> Configuración
       y el header lo sobreescribe con el valor de cada empresa. */
    --store-hero-alto: 620px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--store-font);
    color: var(--store-text);
    background: var(--store-bg);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.store-container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--store-accent);
    color: white;
}

.store-btn:hover {
    background: var(--store-accent-dark);
}

.store-btn.outline {
    background: transparent;
    border: 1px solid var(--store-border);
    color: var(--store-text);
}

.store-btn.outline:hover {
    border-color: var(--store-accent);
    color: var(--store-accent);
}

.store-btn:disabled,
.store-btn.is-loading {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.store-btn.is-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: storeSpin 0.7s linear infinite;
}

.store-btn.outline.is-loading::after {
    border-color: rgba(0, 0, 0, 0.15);
    border-top-color: var(--store-text);
}

@keyframes storeSpin {
    to { transform: rotate(360deg); }
}

/* Accesibilidad: foco visible al navegar con teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--store-accent);
    outline-offset: 2px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 600;
}

.store-header {
    background: white;
    border-bottom: 1px solid var(--store-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.store-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.store-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.store-brand-logo {
    width: 90px;
    height: 42px;
    border-radius: 12px;

    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.store-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--store-muted);
}

.store-nav a.active,
.store-nav a:hover {
    background: var(--store-bg);
    color: var(--store-text);
}

/* Contador del carrito en el header */
.store-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.store-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--store-accent);
    color: white;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.store-cart-badge.is-empty {
    background: var(--store-border);
    color: var(--store-muted);
}

.store-cart-badge.pulse {
    animation: cartPulse 0.4s ease;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.store-hero {
    padding: 0;
    background: white;
}

.store-hero-grid {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

.store-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: min(800px, 90vw);
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: var(--store-radius);
    backdrop-filter: blur(10px);
    box-shadow: var(--store-shadow);
}

.store-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 0 0 12px;
    color: var(--store-primary);
}

.store-hero-carousel {
    position: relative;
    height: var(--store-hero-alto);
    width: 100%;
    margin-top: 0;
}

/* En celular la portada no ocupa más del 62% de la pantalla */
@media (max-width: 768px) {
    .store-hero-carousel {
        height: min(var(--store-hero-alto), 62vh);
    }
}

.store-hero-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: carouselFade 12s infinite;
}

.store-hero-carousel img:nth-child(2) {
    animation-delay: 4s;
}

.store-hero-carousel img:nth-child(3) {
    animation-delay: 8s;
}

@keyframes carouselFade {

    0%,
    30% {
        opacity: 1;
    }

    33%,
    100% {
        opacity: 0;
    }
}

.store-hero p {
    color: var(--store-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}

.store-hero-card {
    background: white;
    padding: 24px;
    border-radius: var(--store-radius);
    box-shadow: var(--store-shadow);
}

.store-section {
    padding: 48px 0;
}

.store-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.store-card {
    background: var(--store-card);
    border-radius: var(--store-radius);
    box-shadow: var(--store-shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.store-card-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-card-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.store-card-title {
    font-weight: 600;
    font-size: 1rem;
}

.store-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.store-price del {
    color: var(--store-muted);
    font-weight: 500;
    margin-right: 6px;
    font-size: 0.9rem;
}

.store-muted {
    color: var(--store-muted);
}

.store-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.store-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--store-border);
    color: var(--store-muted);
    font-size: 0.85rem;
}

.store-footer {
    background: var(--store-footer-bg);
    color: #e2e8f0;
    padding: 40px 0;
}

.store-fixed-logo {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 70px;
    height: auto;
    z-index: 50;
    border-radius: 12px;
    box-shadow: var(--store-shadow);
    background: white;
    padding: 6px;
}

.store-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.store-footer a {
    color: #fbbf24;
}

.store-form {
    display: grid;
    gap: 16px;
}

.store-form input,
.store-form textarea,
.store-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--store-border);
    font-family: inherit;
}

.store-form textarea {
    min-height: 100px;
}

.store-table {
    width: 100%;
    border-collapse: collapse;
}

.store-table th,
.store-table td {
    padding: 12px;
    border-bottom: 1px solid var(--store-border);
    text-align: left;
}

.store-table th {
    font-size: 0.85rem;
    color: var(--store-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.store-summary {
    background: white;
    border-radius: var(--store-radius);
    padding: 20px;
    box-shadow: var(--store-shadow);
}

.store-alert {
    padding: 12px 16px;
    border-radius: 10px;
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
    margin-bottom: 16px;
}

.store-alert.warning {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.store-product-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.store-product-gallery {
    background: white;
    border-radius: var(--store-radius);
    padding: 20px;
    box-shadow: var(--store-shadow);
}

.store-product-gallery img {
    border-radius: 12px;
    height: 360px;
    width: 100%;
    object-fit: cover;
}

.store-product-info {
    display: grid;
    gap: 16px;
}

.store-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .store-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-nav {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    background-color: #20b85a;
}

.whatsapp-float img {
    width: 34px;
    height: 34px;
    display: block;
}


/* Google Maps Container */
.store-map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--store-radius);
    overflow: hidden;
    margin-top: 24px;
    border: 1px solid var(--store-border);
    box-shadow: var(--store-shadow);
}

.store-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

/* Pagination (Bootstrap-style adapted to theme) */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: white;
    overflow: hidden;
    margin: 0;
}

.page-item:not(:first-child) .page-link {
    border-left: 1px solid var(--store-border);
}

.page-link {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--store-primary);
    text-decoration: none;
    background-color: transparent;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.page-link:hover {
    z-index: 2;
    color: var(--store-primary-hover, #047857);
    background-color: #f1f5f9;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--store-primary);
    border-color: var(--store-primary);
}

.page-item.disabled .page-link {
    color: #94a3b8;
    pointer-events: none;
    background-color: #fff;
}

/* Línea de tiempo del pedido (pago.php) */
.store-timeline {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 8px;
    position: relative;
}

.store-timeline::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: var(--store-border);
    z-index: 0;
}

.store-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.store-timeline-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--store-border);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.store-timeline-step.done .store-timeline-dot {
    background: var(--store-accent);
    border-color: var(--store-accent);
}

.store-timeline-step.current .store-timeline-dot {
    border-color: var(--store-accent);
    background: white;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--store-accent) 20%, transparent);
}

.store-timeline-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--store-muted);
    text-align: center;
}

.store-timeline-step.done .store-timeline-label,
.store-timeline-step.current .store-timeline-label {
    color: var(--store-text);
}

/* Toasts (notificaciones flotantes) */
#store-toasts {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(340px, 90vw);
}

.store-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--store-primary);
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.store-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.store-toast a {
    color: #fbbf24;
    font-weight: 700;
    white-space: nowrap;
}

.store-toast.error {
    background: #b91c1c;
}

/* Transición suave en las cards del catálogo */
.store-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

/* Respetar la preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* =====================================================
   TEMA "JADE" (inspirado en jadetiendadediseño.com.ar)
   Capa final: redefine la apariencia manteniendo las clases.
   Blanco y negro, tipografía chica en mayúsculas, imagen protagonista.
   ===================================================== */

body {
    font-family: var(--store-font);
    font-size: var(--store-fs-big);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--store-heading-font);
    font-weight: var(--store-title-weight);
    letter-spacing: 0.06em;
}

/* Barra de anuncios: fondo claro, texto diminuto en marquesina infinita.
   Los mensajes se separan con "|" en Admin → Configuración. */
.store-announcement {
    background: var(--store-adbar-bg);
    color: var(--store-adbar-fg);
    border-bottom: 1px solid var(--store-border);
    padding: 9px 0;
    overflow: hidden;
}

.store-adbar-track {
    display: flex;
    width: max-content;
    animation: storeAdbarScroll 40s linear infinite;
}

.store-announcement:hover .store-adbar-track {
    animation-play-state: paused;
}

.store-adbar-msg {
    padding: 0 32px;
    white-space: nowrap;
    font-size: var(--store-fs-small);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@keyframes storeAdbarScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Header negro, sticky, con el logo centrado en escritorio */
.store-header {
    background: var(--store-header-bg);
    color: var(--store-header-fg);
    border-bottom: none;
    box-shadow: none;
}

.store-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
}

.store-brand {
    justify-content: center;
    gap: 10px;
    color: var(--store-header-fg);
}

.store-brand-logo,
.store-brand-logo img {
    width: auto;
    height: 46px;
}

.store-brand-name {
    font-family: var(--store-heading-font);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: var(--store-fs-large);
    white-space: nowrap;
}

/* Si hay logo cargado, la marca es solo la imagen (como en la referencia) */
.store-brand-logo ~ .store-brand-name {
    display: none;
}

.store-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

/* Buscador: solo una línea inferior, sin caja */
.store-search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 220px;
    border: none;
    border-bottom: 1px solid var(--store-header-fg);
    opacity: 0.85;
}

.store-search:focus-within {
    opacity: 1;
}

.store-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--store-header-fg);
    padding: 6px 4px;
    font-family: inherit;
    font-size: var(--store-fs-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    outline: none;
    min-width: 0;
}

.store-search input::placeholder {
    color: var(--store-header-fg);
    opacity: 0.6;
}

.store-search button {
    border: none;
    background: transparent;
    color: var(--store-header-fg);
    padding: 0 2px 0 6px;
    font-size: 1.05rem;
    cursor: pointer;
}

/* Navegación en mayúsculas diminutas */
.store-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0;
}

.store-nav a {
    background: none;
    border-radius: 0;
    padding: 4px 0;
    margin: 0;
    font-size: var(--store-fs-medium);
    font-weight: 600;
    letter-spacing: var(--store-tracking);
    text-transform: uppercase;
    color: var(--store-header-fg);
    border-bottom: 1px solid transparent;
}

.store-nav a.active,
.store-nav a:hover {
    background: none;
    color: var(--store-header-fg);
    border-bottom-color: var(--store-header-fg);
}

.store-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.store-cart-badge {
    background: var(--store-header-fg);
    color: var(--store-header-bg);
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    font-size: var(--store-fs-small);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.store-cart-badge.is-empty {
    background: transparent;
    color: var(--store-header-fg);
    border: 1px solid var(--store-header-fg);
}

/* Botones rectangulares, negros, en mayúsculas */
.store-btn {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: var(--store-tracking);
    font-size: var(--store-fs-medium);
    font-weight: 600;
    padding: 14px 24px;
    background: var(--store-accent);
    color: #ffffff;
}

.store-btn:hover {
    background: var(--store-accent-dark);
    opacity: 0.86; /* la paleta es negra: el hover se nota por opacidad */
}

.store-btn.outline {
    background: transparent;
    border: 1px solid var(--store-text);
    color: var(--store-text);
}

.store-btn.outline:hover {
    background: var(--store-text);
    border-color: var(--store-text);
    color: #ffffff;
}

/* Etiquetas sobre la foto: negras, cuadradas */
.store-badge,
.store-badge.offer,
.store-badge.new {
    border-radius: 0;
    background: var(--store-label-bg);
    color: var(--store-label-fg);
    font-size: var(--store-fs-small);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 9px;
}

/* Secciones y títulos centrados, tipo editorial */
.store-section {
    padding: 56px 0;
}

.store-section-header h2 {
    font-family: var(--store-heading-font);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: var(--store-fs-large);
    font-weight: var(--store-title-weight);
    margin: 0;
}

/* Grilla de productos: 2 columnas en celular, 4 en escritorio */
.store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 10px;
}

@media (min-width: 769px) {
    .store-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 44px 20px;
    }
}

/* Ficha de producto en la grilla: la foto manda, sin sombras ni bordes */
.store-card {
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    gap: 10px;
}

.store-card:hover {
    transform: none;
    box-shadow: none;
}

.store-card-image {
    position: relative;
    border-radius: 0;
    height: auto;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f2;
    margin-bottom: 4px;
}

.store-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    max-height: none;
    transition: opacity 0.4s ease;
}

/* Segunda foto: aparece al pasar el mouse, como en la referencia */
.store-card-image .store-card-image-alt {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.store-card:hover .store-card-image-alt {
    opacity: 1;
}

.store-card-image .store-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.store-card-cat {
    font-size: var(--store-fs-small);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--store-muted);
    margin: 0;
}

.store-card-title {
    font-family: var(--store-heading-font);
    text-transform: uppercase;
    font-size: var(--store-fs-base);
    font-weight: var(--store-title-weight);
    letter-spacing: 0.1em;
    margin: 0;
}

.store-card > div {
    padding: 0;
}

.store-price {
    font-size: var(--store-fs-big);
    font-weight: 600;
    padding: 0;
}

.store-price del {
    font-size: var(--store-fs-medium);
    font-weight: 400;
    color: var(--store-muted);
}

.store-cta {
    display: grid;
    gap: 6px;
}

.store-cta .store-btn {
    width: 100%;
    padding: 11px 14px;
    font-size: var(--store-fs-small);
}

/* Filtros cuadrados */
.store-pill {
    border-radius: 0;
    text-transform: uppercase;
    font-size: var(--store-fs-small);
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: 8px 14px;
    color: var(--store-text);
    border-color: var(--store-border);
    cursor: pointer;
}

.store-pill:hover {
    border-color: var(--store-text);
}

/* Franja de beneficios (pagos / envíos / atención) */
.store-benefits {
    border-top: 1px solid var(--store-border);
    border-bottom: 1px solid var(--store-border);
    padding: 40px 0;
}

.store-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    text-align: center;
}

.store-benefit h4 {
    font-family: var(--store-heading-font);
    margin: 0 0 6px;
    font-size: var(--store-fs-base);
    font-weight: var(--store-title-weight);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.store-benefit p {
    margin: 0;
    font-size: var(--store-fs-medium);
    color: var(--store-muted);
    line-height: 1.7;
}

/* Newsletter sobre fondo claro, centrado */
.store-newsletter {
    background: var(--store-bg);
    color: var(--store-text);
    text-align: center;
    padding: 56px 20px;
}

.store-newsletter h3 {
    font-family: var(--store-heading-font);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: var(--store-fs-large);
    font-weight: var(--store-title-weight);
}

.store-newsletter p {
    color: var(--store-muted);
    margin: 0 0 24px;
    font-size: var(--store-fs-base);
}

.store-newsletter-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 0;
}

.store-newsletter-form input {
    flex: 1;
    border: 1px solid var(--store-text);
    border-right: none;
    background: transparent;
    color: var(--store-text);
    padding: 13px 16px;
    font-family: inherit;
    font-size: var(--store-fs-medium);
    letter-spacing: 0.06em;
    min-width: 0;
}

.store-newsletter-form input::placeholder {
    color: var(--store-muted);
}

.store-newsletter-form .store-btn {
    background: var(--store-text);
    color: #ffffff;
}

.store-newsletter-form .store-btn:hover {
    background: var(--store-accent-dark);
}

.store-newsletter-ok {
    color: var(--store-text) !important;
    font-weight: 600;
}

/* Footer negro */
.store-footer {
    background: var(--store-footer-bg);
    color: var(--store-footer-fg);
    border-top: none;
    padding: 56px 0 0;
    font-size: var(--store-fs-medium);
}

.store-footer h3 {
    font-family: var(--store-heading-font);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: var(--store-fs-base);
    font-weight: var(--store-title-weight);
    margin: 0 0 10px;
}

.store-footer h4 {
    font-family: var(--store-heading-font);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: var(--store-fs-medium);
    font-weight: var(--store-title-weight);
    color: var(--store-footer-fg);
    margin: 0 0 12px;
}

.store-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.store-footer a,
.store-footer .store-muted,
.store-footer p {
    color: var(--store-footer-fg);
    font-size: var(--store-fs-medium);
    opacity: 0.8;
}

.store-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.store-footer-social {
    display: flex !important;
    gap: 16px;
    margin-top: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.store-footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 40px;
    padding: 18px 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.store-footer-legal p,
.store-footer-legal a {
    font-size: var(--store-fs-small);
    color: var(--store-footer-fg);
    opacity: 0.7;
    margin: 0;
}

.store-footer-legal a {
    text-decoration: underline;
}

/* Header responsive: marca centrada arriba, buscador y menú debajo */
@media (max-width: 900px) {
    .store-header-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 12px;
        padding: 14px 0;
    }

    .store-header-actions {
        width: 100%;
        justify-content: center;
    }

    .store-search {
        max-width: 260px;
    }

    .store-nav {
        justify-content: center;
        gap: 18px;
    }

    .store-brand-logo,
    .store-brand-logo img {
        height: 38px;
    }
}

/* =====================================================
   PROMOCIONES: transferencia, cuotas y envío gratis
   ===================================================== */

.store-price-transfer {
    display: block;
    font-size: var(--store-fs-medium);
    font-weight: 500;
    color: var(--store-text);
    margin-top: 3px;
}

.store-cuotas {
    display: block;
    font-size: var(--store-fs-medium);
    font-weight: 400;
    color: var(--store-muted);
    margin-top: 3px;
}

.store-freeship-badge {
    display: inline-block;
    font-size: var(--store-fs-small);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--store-label-bg);
    color: #ffffff;
    padding: 3px 8px;
    margin-top: 6px;
    width: fit-content;
}

/* Barra de progreso hacia el envío gratis (carrito) */
.store-freeship-bar {
    background: #f6f6f4;
    border: 1px solid var(--store-border);
    padding: 14px 18px;
    margin-bottom: 18px;
}

.store-freeship-msg {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.store-freeship-msg.ok {
    color: #1a7f37;
}

.store-freeship-track {
    height: 6px;
    background: var(--store-border);
    overflow: hidden;
}

.store-freeship-fill {
    height: 100%;
    background: #111111;
    transition: width 0.4s ease;
}

/* Selector de método de pago (checkout) */
.store-payment-options {
    display: grid;
    gap: 10px;
}

.store-payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--store-border);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.store-payment-option:hover {
    border-color: var(--store-text);
}

.store-payment-option:has(input:checked) {
    border-color: var(--store-text);
    outline: 1px solid var(--store-text);
}

.store-payment-option input {
    margin-top: 3px;
    accent-color: #111111;
    width: auto !important;
}

/* Solo el contenedor directo, para no alcanzar al badge (que también es span) */
.store-payment-option > span {
    display: grid;
    gap: 2px;
}

.store-payment-option small {
    color: var(--store-muted);
}

.store-payment-option .store-badge {
    border-radius: 0;
    background: #111111;
    color: #ffffff;
    margin-left: 6px;
    font-size: 10px;
    letter-spacing: 0.06em;
}

/* Datos bancarios en la confirmación */
.store-transfer-datos {
    background: #f6f6f4;
    border: 1px dashed var(--store-border);
    padding: 14px 16px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    margin: 10px 0;
    user-select: all;
}

/* =====================================================
   FICHA DE PRODUCTO
   ===================================================== */

/* Breadcrumb */
.store-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--store-muted);
    margin-bottom: 20px;
}

.store-breadcrumb a:hover {
    color: var(--store-text);
    text-decoration: underline;
}

.store-breadcrumb .current {
    color: var(--store-text);
    font-weight: 600;
}

/* Galería */
.main-image-container {
    width: 100%;
    margin-bottom: 10px;
    border-radius: var(--store-radius);
    overflow: hidden;
    border: 1px solid var(--store-border);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: zoom-in;
    position: relative;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.main-image-container:hover img {
    transform: scale(1.06);
}

.main-image-container .zoom-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--store-border);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-size: 15px;
    pointer-events: none;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 62px;
    height: 62px;
    border: 2px solid transparent;
    border-radius: var(--store-radius);
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    opacity: 1;
    border-color: var(--store-border);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--store-accent);
}

/* Lightbox */
.store-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.92);
    z-index: 1200;
    align-items: center;
    justify-content: center;
}

.store-lightbox.open {
    display: flex;
}

.store-lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    object-fit: contain;
}

.store-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
}

.store-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.store-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.store-lightbox-nav.prev { left: 18px; }
.store-lightbox-nav.next { right: 18px; }

/* Indicador de stock */
.store-stock {
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0;
}

.store-stock.ok { color: #1a7f37; }
.store-stock.low { color: #b45309; }
.store-stock.out { color: var(--store-muted); }

/* Selector de cantidad */
.qty-control {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--store-border);
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    border: none;
    background: var(--store-bg);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: var(--store-text);
}

.qty-btn:hover {
    background: var(--store-border);
}

.qty-input {
    width: 56px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.store-buy-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 6px 0 14px;
}

/* Compartir */
.store-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.store-share-btn {
    border: 1px solid var(--store-border);
    background: var(--store-card);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--store-text);
    transition: border-color 0.15s ease;
}

.store-share-btn:hover {
    border-color: var(--store-accent);
    color: var(--store-accent);
}

/* Talles */
.talle-btn {
    border: 2px solid var(--store-border);
    background: white;
    padding: 12px 8px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.talle-btn:hover:not(:disabled) {
    border-color: var(--store-accent);
    background: var(--store-bg);
}

.talle-btn.selected {
    border-color: var(--store-accent);
    background: var(--store-accent);
    color: white;
}

.talle-btn.sin-stock {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* =====================================================
   FICHA DE PRODUCTO — ajustes del tema "Jade"
   La foto ocupa toda la columna en formato retrato,
   igual que en las tiendas de indumentaria de referencia.
   ===================================================== */

.store-product-detail {
    gap: 48px;
}

.store-product-gallery {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.main-image-container {
    aspect-ratio: 3 / 4;
    border: none;
    background: #f4f4f2;
    margin-bottom: 8px;
}

.main-image-container img,
.store-product-gallery img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    object-fit: cover;
}

.main-image-container .zoom-hint {
    border-radius: 0;
    border: none;
    background: rgba(255, 255, 255, 0.85);
}

.store-product-info h2 {
    font-family: var(--store-heading-font);
    font-size: var(--store-fs-large);
    font-weight: var(--store-title-weight);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.store-product-info .store-price {
    font-size: 1.25rem !important;
    font-weight: 600;
}

.store-share-btn {
    border-radius: 0;
    font-size: var(--store-fs-small);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 16px;
}

.store-share-btn:hover {
    border-color: var(--store-text);
    color: var(--store-text);
}

/* Selector de talles cuadrado */
.talle-btn {
    border-radius: 0 !important;
    font-size: var(--store-fs-medium);
    letter-spacing: 0.06em;
}

/* Avisos cuadrados y sobrios, en la línea del resto del tema */
.store-alert {
    border-radius: 0;
    background: #f7f7f5;
    color: var(--store-text);
    border: 1px solid var(--store-border);
    font-size: var(--store-fs-base);
    padding: 14px 18px;
}

.store-alert.warning {
    background: #f7f7f5;
    border-color: var(--store-border);
    color: var(--store-text);
}

/* =====================================================
   CHECKOUT
   Dos columnas: formulario por pasos + resumen fijo.
   En celular el resumen sube arriba y se puede plegar.
   ===================================================== */

/* Pasos del proceso de compra */
.checkout-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    font-size: var(--store-fs-small);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--store-muted);
}

.checkout-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-steps li::after {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--store-border);
    margin-left: 6px;
}

.checkout-steps li:last-child::after {
    display: none;
}

.checkout-steps .is-done {
    color: var(--store-text);
}

.checkout-steps .is-done .checkout-step-num {
    background: var(--store-text);
    color: #ffffff;
    border-color: var(--store-text);
}

.checkout-steps .is-current {
    color: var(--store-text);
    font-weight: 600;
}

.checkout-steps .checkout-step-num {
    width: 20px;
    height: 20px;
    font-size: 9px;
}

/* Grilla general */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .checkout-summary {
        order: -1;
    }
}

/* Bloques del formulario */
.checkout-block + .checkout-block {
    border-top: 1px solid var(--store-border);
    margin-top: 32px;
    padding-top: 32px;
}

.checkout-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--store-heading-font);
    font-size: var(--store-fs-base);
    font-weight: var(--store-title-weight);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.checkout-step-num {
    flex: none;
    width: 22px;
    height: 22px;
    border: 1px solid var(--store-text);
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-family: var(--store-font);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
}

/* Campos */
.checkout-fields {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
}

.checkout-fields.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-fields.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-fields + .checkout-fields {
    margin-top: 16px;
}

@media (max-width: 560px) {
    .checkout-fields.cols-2,
    .checkout-fields.cols-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.checkout-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.checkout-field label {
    font-size: var(--store-fs-small);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--store-muted);
}

.checkout-field label .opt {
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    border: 1px solid var(--store-border);
    border-radius: 0;
    background: #ffffff;
    padding: 12px 14px;
    font-family: inherit;
    font-size: var(--store-fs-base);
    color: var(--store-text);
    outline: none;
    transition: border-color 0.15s ease;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    border-color: var(--store-text);
}

.checkout-field textarea {
    min-height: 88px;
    resize: vertical;
}

/* Marca el campo obligatorio recién cuando el visitante ya escribió algo */
.checkout-field input:required:invalid:not(:placeholder-shown) {
    border-color: var(--store-danger);
}

.checkout-hint {
    font-size: var(--store-fs-small);
    color: var(--store-muted);
    margin: 8px 0 0;
}

.checkout-submit {
    width: 100%;
    margin-top: 28px;
    padding: 16px 24px;
    font-size: var(--store-fs-base);
}

.checkout-legal {
    font-size: var(--store-fs-small);
    color: var(--store-muted);
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.7;
}

/* Resumen */
.checkout-summary {
    border: 1px solid var(--store-border);
    background: #ffffff;
    padding: 24px;
    position: sticky;
    top: 96px;
}

.checkout-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.checkout-summary-head h3 {
    font-family: var(--store-heading-font);
    font-size: var(--store-fs-base);
    font-weight: var(--store-title-weight);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
}

.checkout-summary-toggle {
    display: none;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: var(--store-fs-small);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: underline;
    color: var(--store-text);
    cursor: pointer;
}

@media (max-width: 900px) {
    .checkout-summary {
        position: static;
    }

    .checkout-summary-toggle {
        display: inline-block;
    }
}

.checkout-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.checkout-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.checkout-item-thumb {
    width: 56px;
    aspect-ratio: 3 / 4;
    background: #f4f4f2;
    overflow: hidden;
}

.checkout-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-name {
    margin: 0;
    font-size: var(--store-fs-medium);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.5;
}

.checkout-item-meta {
    margin: 3px 0 0;
    font-size: var(--store-fs-small);
    color: var(--store-muted);
}

.checkout-item-price {
    font-size: var(--store-fs-medium);
    font-weight: 600;
    white-space: nowrap;
}

.checkout-totals {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--store-border);
    display: grid;
    gap: 10px;
    font-size: var(--store-fs-medium);
}

.checkout-totals-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

/* El atributo hidden tiene que ganarle al display:flex de arriba */
.checkout-totals-row[hidden] {
    display: none;
}

.checkout-totals-row dt,
.checkout-totals-row dd {
    margin: 0;
}

.checkout-totals-row dt {
    color: var(--store-muted);
}

.checkout-totals-row.is-discount dt,
.checkout-totals-row.is-discount dd {
    color: var(--store-text);
}

.checkout-totals-row.is-total {
    border-top: 1px solid var(--store-border);
    padding-top: 12px;
    margin-top: 2px;
    font-size: var(--store-fs-large);
    font-weight: 600;
}

.checkout-totals-row.is-total dt {
    color: var(--store-text);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: var(--store-fs-medium);
}

.checkout-summary-note {
    margin: 18px 0 0;
    font-size: var(--store-fs-small);
    color: var(--store-muted);
    line-height: 1.7;
}

/* Pantalla de confirmación */
.checkout-done {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.checkout-done-check {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border: 1px solid var(--store-text);
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.checkout-done h2 {
    font-family: var(--store-heading-font);
    font-size: var(--store-fs-large);
    font-weight: var(--store-title-weight);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.checkout-done-lead {
    color: var(--store-muted);
    margin: 0;
}

.checkout-done-number {
    display: inline-block;
    border: 1px solid var(--store-border);
    padding: 10px 18px;
    margin: 18px 0 26px;
    font-size: var(--store-fs-base);
    letter-spacing: 0.1em;
}

.checkout-next {
    text-align: left;
    border: 1px solid var(--store-border);
    padding: 24px;
    margin-bottom: 20px;
}

.checkout-next h3 {
    font-family: var(--store-heading-font);
    font-size: var(--store-fs-base);
    font-weight: var(--store-title-weight);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.checkout-next ol,
.checkout-next ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    font-size: var(--store-fs-medium);
    color: var(--store-muted);
    line-height: 1.7;
}

.checkout-next strong {
    color: var(--store-text);
}

.checkout-transfer-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--store-border);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.checkout-transfer-total b {
    font-size: 1.35rem;
}

.checkout-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--store-border);
    background: none;
    padding: 9px 14px;
    margin-top: 12px;
    font-family: inherit;
    font-size: var(--store-fs-small);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--store-text);
    cursor: pointer;
}

.checkout-copy:hover {
    border-color: var(--store-text);
}

.checkout-done-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.checkout-done-actions .store-btn {
    flex: 1 1 220px;
}

/* Carrito vacío */
.checkout-empty {
    text-align: center;
    padding: 48px 0 24px;
}

.checkout-empty p {
    color: var(--store-muted);
    margin: 0 0 24px;
}

/* =====================================================
   CHECKOUT EN CELULAR
   Header reducido, resumen plegado con el total a la vista
   y barra fija con el CTA para no scrollear hasta el final.
   ===================================================== */

/* Header reducido (solo marca) */
.store-header.is-slim .store-header-inner {
    grid-template-columns: 1fr auto 1fr;
    padding: 14px 0;
}

.store-header-secure {
    justify-self: end;
    font-size: var(--store-fs-small);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--store-header-fg);
    opacity: 0.7;
}

/* Total del resumen cuando está plegado */
.checkout-summary-collapsed-total {
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: var(--store-fs-medium);
    color: var(--store-muted);
}

.checkout-summary-collapsed-total strong {
    font-size: var(--store-fs-large);
    color: var(--store-text);
}

/* El atributo hidden tiene que ganarle al display:flex de arriba */
.checkout-summary-collapsed-total[hidden] {
    display: none;
}

/* Barra fija con el total y el CTA (solo celular) */
.checkout-mobile-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    align-items: center;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid var(--store-border);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

.checkout-mobile-bar-total {
    display: grid;
    gap: 2px;
    line-height: 1.2;
}

.checkout-mobile-bar-total span {
    font-size: var(--store-fs-small);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--store-muted);
}

.checkout-mobile-bar-total strong {
    font-size: var(--store-fs-large);
    white-space: nowrap;
}

.checkout-mobile-bar .store-btn {
    flex: 1;
    padding: 15px 16px;
    min-height: 48px; /* área de toque cómoda */
}

@media (max-width: 900px) {
    /* Header más bajo: la marca y el aviso comparten fila */
    .store-header.is-slim .store-header-inner {
        grid-template-columns: 1fr auto;
        justify-items: start;
        row-gap: 0;
        padding: 12px 0;
    }

    .store-header.is-slim .store-brand {
        justify-content: flex-start;
    }

    .checkout-page {
        padding: 24px 0 32px;
    }

    /* Pasos: más compactos para que entren en una línea */
    .checkout-steps {
        gap: 6px;
        margin-bottom: 22px;
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .checkout-steps li {
        gap: 6px;
    }

    .checkout-steps li::after {
        width: 12px;
        margin-left: 2px;
    }

    .checkout-summary {
        padding: 18px;
    }

    .checkout-summary-head {
        margin-bottom: 0;
    }

    /* Cuando el resumen está desplegado vuelve a separarse del detalle */
    .checkout-summary-head:has(+ [hidden]) {
        margin-bottom: 0;
    }

    #resumen-detalle:not([hidden]) {
        margin-top: 18px;
    }

    .checkout-block-title {
        margin-bottom: 16px;
    }

    .checkout-block + .checkout-block {
        margin-top: 26px;
        padding-top: 26px;
    }

    /* 16px evita que iOS haga zoom al enfocar un campo */
    .checkout-field input,
    .checkout-field textarea {
        font-size: 16px;
        padding: 13px 14px;
    }

    /* Áreas de toque más generosas en el selector de pago */
    .store-payment-option {
        padding: 16px;
        gap: 14px;
        align-items: center;
    }

    .store-payment-option input {
        width: 20px !important;
        height: 20px;
        margin-top: 0;
    }

    .store-payment-option .store-badge {
        margin-left: 0;
        margin-top: 4px;
        width: fit-content;
    }

    .store-payment-option strong {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }

    /* El CTA vive en la barra fija */
    .checkout-submit {
        display: none;
    }

    .checkout-legal {
        margin-top: 22px;
    }

    .checkout-mobile-bar {
        display: flex;
    }

    /* Espacio para que la barra fija no tape el final del formulario */
    body:has(.checkout-mobile-bar) .store-footer {
        padding-bottom: 90px;
    }

    /* El globo de WhatsApp taparía el CTA */
    body:has(.checkout-mobile-bar) .whatsapp-float {
        display: none;
    }
}

@media (max-width: 420px) {
    .checkout-mobile-bar {
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    }

    .checkout-mobile-bar .store-btn {
        padding: 14px 10px;
        font-size: var(--store-fs-small);
        min-height: 46px;
    }

    .checkout-item {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .checkout-item-thumb {
        width: 48px;
    }
}

/* Talle y avisos de stock en el carrito */
.store-cart-talle {
    display: inline-block;
    margin-top: 4px;
    font-size: var(--store-fs-small);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--store-border);
    padding: 2px 8px;
}

.store-cart-alerta {
    display: inline-block;
    margin-top: 4px;
    font-size: var(--store-fs-small);
    font-weight: 600;
    color: var(--store-danger);
}

/* Botón que en realidad es un link a la ficha (productos con talles) */
.store-btn.is-disabled,
.add-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.add-btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
