/* =====================================================
   TIENDA (/tienda) — flow tipo Apple Store, estética Dismacol
   Monument solo para "TIENDA" (sin glifos con tilde);
   titulares de sección en Acumin, etiquetas en SecretCode.
===================================================== */

.dstore{
    --ds-card: #f4f4f3;
    --ds-card-hover: #ffffff;
    --ds-ink: var(--black);
    --ds-muted: #6e6e6c;
    --ds-radius: 28px;
    --ds-shadow: 0 2px 10px rgba(29,29,28,.04);
    --ds-shadow-hover: 0 22px 50px rgba(29,29,28,.14);
    --ds-ease: cubic-bezier(.22,.8,.24,1);
    /* mismo borde izquierdo que .container (global.css) */
    --ds-gutter: max(28px, calc((100% - var(--container)) / 2));

    padding: 140px 0 var(--space-3xl);
    color: var(--ds-ink);
    overflow-x: clip;
}

/* woocommerce.css pone padding-top:50px a todo main de WooCommerce con
   un selector más fuerte; aquí se recupera el espacio para el header fijo */
body.woocommerce-page:not(.home) main.dstore{
    padding-top: 140px;
}

/* global.css le da 140px arriba y abajo a todo <section>; aquí el
   ritmo vertical lo controlan los margin de cada bloque */
.dstore section{
    padding: 0;
}

/* ===== HERO ===== */

.dstore .dstore-hero{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.dstore-eyebrow{
    margin: 0 0 14px;
    font-family: "SecretCode";
    font-size: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ds-muted);
}

.dstore-title{
    margin: 0;
    font-family: "Monument";
    font-size: clamp(56px, 8vw, 132px);
    font-weight: 400;
    line-height: .9;
    text-transform: uppercase;
    color: var(--ds-ink);
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
}

.dstore-lead{
    max-width: 640px;
    margin: 22px 0 0;
    font-family: "Acumin";
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.01em;
    color: var(--ds-ink);
}

.dstore-lead span{ color: var(--ds-muted); }

.dstore-help{
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px 16px 16px;
    border-radius: 20px;
    background: var(--ds-card);
    text-decoration: none;
    color: var(--ds-ink);
    transition: background .35s var(--ds-ease), transform .35s var(--ds-ease), box-shadow .35s var(--ds-ease);
}

.dstore-help:hover{
    background: var(--ds-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--ds-shadow-hover);
}

.dstore-help-icon{
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
}

.dstore-help-icon svg{
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linejoin: round;
}

.dstore-help strong{
    display: block;
    font-family: "Acumin";
    font-size: 15px;
    font-weight: 600;
}

.dstore-help small{
    font-family: "Acumin";
    font-size: 14px;
    color: var(--green);
}

/* ===== CHIPS ===== */

.dstore-chips{
    margin-bottom: var(--space-xl);
}

.dstore-chips-track{
    display: flex;
    gap: 8px;
    padding: 4px var(--ds-gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--ds-gutter);
    scrollbar-width: none;
}

.dstore-chips-track::-webkit-scrollbar{ display: none; }

.dstore-chip{
    flex: none;
    width: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    text-decoration: none;
    color: var(--ds-ink);
    scroll-snap-align: start;
}

.dstore-chip-img{
    width: 84px;
    height: 84px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--ds-card);
    transition: transform .4s var(--ds-ease), box-shadow .4s var(--ds-ease);
}

.dstore-chip-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dstore-chip:hover .dstore-chip-img{
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 24px rgba(29,29,28,.14);
}

.dstore-chip-name{
    font-family: "Acumin";
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.dstore-chip.is-current .dstore-chip-img{
    box-shadow: 0 0 0 2px var(--ds-ink);
}

.dstore-chip.is-current .dstore-chip-name{ color: var(--green); }

/* chips dentro de las páginas de categoría (functions.php) */
.dstore--inline{
    --ds-gutter: 0px;
    padding: 0;
    margin: 0 0 var(--space-md);
}

.dstore--inline .dstore-chips{ margin-bottom: 0; }

/* ===== TITULARES DE SECCIÓN =====
   .dstore delante: /tienda lleva body.woocommerce-page y woocommerce.css
   fuerza Monument en mayúsculas sobre todo h2 de esa página. */

.dstore .dstore-h2{
    margin: 0;
    font-family: "Acumin";
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-transform: none;
    color: var(--ds-ink);
}

.dstore .dstore-h2 span{ color: var(--ds-muted); }

/* ===== ESTANTES (scroll horizontal) ===== */

.dstore-shelf{
    margin-bottom: var(--space-2xl);
}

.dstore-shelf-head{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.dstore-arrows{
    display: flex;
    gap: 10px;
    flex: none;
}

.dstore-arrow{
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(29,29,28,.08);
    color: var(--ds-ink);
    cursor: pointer;
    transition: background .25s ease, opacity .25s ease;
}

.dstore-arrow:hover{ background: rgba(29,29,28,.16); }
.dstore-arrow:disabled{ opacity: .3; cursor: default; }

.dstore-arrow svg{
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dstore-track{
    display: flex;
    gap: 20px;
    padding: 10px var(--ds-gutter) 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--ds-gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.dstore-track::-webkit-scrollbar{ display: none; }

/* tarjeta de producto */
.dstore-card{
    flex: none;
    width: min(360px, 78vw);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 24px;
    border-radius: var(--ds-radius);
    background: var(--ds-card);
    box-shadow: var(--ds-shadow);
    text-decoration: none;
    color: var(--ds-ink);
    scroll-snap-align: start;
    transition: transform .5s var(--ds-ease), box-shadow .5s var(--ds-ease), background .5s var(--ds-ease);
}

.dstore-card:hover{
    transform: scale(1.015);
    background: var(--ds-card-hover);
    box-shadow: var(--ds-shadow-hover);
}

.dstore-card-text{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dstore-card-eyebrow{
    font-family: "SecretCode";
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green);
}

.dstore-card-title{
    font-family: "Acumin";
    font-size: 24px;
    font-weight: 600;
    line-height: 1.12;
}

.dstore-card-desc{
    font-family: "Acumin";
    font-size: 15px;
    line-height: 1.4;
    color: var(--ds-muted);
}

.dstore-card-img{
    flex: 1;
    display: grid;
    place-items: center;
    margin: 18px 0;
    min-height: 200px;
    border-radius: 18px;
    overflow: hidden;
}

.dstore-card-img img{
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    transition: transform .7s var(--ds-ease);
}

.dstore-card:hover .dstore-card-img img{ transform: scale(1.04); }

.dstore-card-foot{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dstore-card-price{
    font-family: "SecretCode";
    font-size: 16px;
    font-weight: 600;
}

.dstore-card-price del{ opacity: .5; margin-right: 6px; }
.dstore-card-price ins{ text-decoration: none; }

.dstore-card-cta,
.dstore-cat-link{
    font-family: "Acumin";
    font-size: 14px;
    font-weight: 600;
}

.dstore-card-cta{
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--ds-ink);
    color: #fff;
    transition: background .3s ease;
}

.dstore-card:hover .dstore-card-cta{ background: var(--green); }

/* ===== MOSAICO DE CATEGORÍAS ===== */

.dstore-cats{
    margin-bottom: var(--space-2xl);
}

.dstore .dstore-cats .dstore-h2{ margin-bottom: 22px; }

.dstore-cats-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dstore-cat{
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: 30px;
    border-radius: var(--ds-radius);
    background: var(--ds-card);
    overflow: hidden;
    text-decoration: none;
    color: var(--ds-ink);
    transition: transform .5s var(--ds-ease), box-shadow .5s var(--ds-ease), background .5s var(--ds-ease);
}

.dstore-cat:hover{
    transform: scale(1.012);
    background: var(--ds-card-hover);
    box-shadow: var(--ds-shadow-hover);
}

.dstore-cat-text{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dstore-cat-name{
    font-family: "Acumin";
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 600;
    line-height: 1.1;
}

.dstore-cat-count{
    font-family: "SecretCode";
    font-size: 13px;
    letter-spacing: .06em;
    color: var(--ds-muted);
}

.dstore-cat-link{
    margin-top: 6px;
    color: var(--green);
}

.dstore-cat-img{
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 24px -30px -30px;
}

.dstore-cat-img img{
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform .8s var(--ds-ease);
}

.dstore-cat:hover .dstore-cat-img img{ transform: scale(1.05); }

/* la primera categoría ocupa dos columnas, en horizontal */
.dstore-cat--wide{
    grid-column: span 2;
    flex-direction: row;
    align-items: stretch;
}

.dstore-cat--wide .dstore-cat-text{
    width: 38%;
    justify-content: center;
}

.dstore-cat--wide .dstore-cat-name{ font-size: clamp(30px, 3vw, 44px); }

.dstore-cat--wide .dstore-cat-img{
    margin: -30px -30px -30px 24px;
}

.dstore-cat--wide .dstore-cat-img img{ max-height: none; }

/* ===== CÓMO PEDIR ===== */

.dstore-how{
    flex: none;
    width: min(300px, 74vw);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border-radius: var(--ds-radius);
    background: var(--ds-ink);
    color: #fff;
    scroll-snap-align: start;
}

.dstore-how-num{
    font-family: "SecretCode";
    font-size: 16px;
    color: var(--green);
}

.dstore-how-title{
    margin-top: 28px;
    font-family: "Acumin";
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
}

.dstore-how-desc{
    font-family: "Acumin";
    font-size: 15px;
    line-height: 1.45;
    color: #a9a9a7;
}

/* ===== APARICIÓN AL HACER SCROLL ===== */

.dstore [data-reveal]{
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ds-ease), transform .9s var(--ds-ease);
}

.dstore [data-reveal].is-in{
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce){
    .dstore [data-reveal]{ opacity: 1; transform: none; transition: none; }
    .dstore-card, .dstore-cat, .dstore-card-img img, .dstore-cat-img img{ transition: none; }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px){

    .dstore-cats-grid{ grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 760px){

    body.woocommerce-page:not(.home) main.dstore{ padding-top: 100px; }

    .dstore-hero{
        flex-direction: column;
        align-items: flex-start;
    }

    .dstore-help{ width: 100%; }

    .dstore-arrows{ display: none; }

    .dstore-cats-grid{
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dstore-cat{ min-height: 340px; padding: 24px; }
    .dstore-cat-img{ margin: 20px -24px -24px; }

    .dstore-cat--wide{
        grid-column: auto;
        flex-direction: column;
    }

    .dstore-cat--wide .dstore-cat-text{ width: auto; }
    .dstore-cat--wide .dstore-cat-img{ margin: 20px -24px -24px; }

    .dstore-card{ min-height: 430px; padding: 24px 22px 20px; }
    .dstore-track{ gap: 14px; }
}


/* =====================================================
   SKELETON DE IMÁGENES (ver shop.js)
   Bloque gris con un brillo que cruza mientras la foto
   carga; la foto entra con fundido. Se usa un <span>
   inyectado y no ::before/::after para no chocar con
   pseudo-elementos que ya usen las tarjetas.
===================================================== */

.dm-skel--rel{ position: relative; }

.dm-skel{
    background-color: #e4e4e4 !important;
}

.dm-skel img{ opacity: 0; }

.dm-skel-shine{
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
    background-size: 220% 100%;
    animation: dm-skel-shine 1.4s ease-in-out infinite;
}

@keyframes dm-skel-shine{
    from{ background-position: 120% 0; }
    to{ background-position: -120% 0; }
}

.dm-skel-in{
    animation: dm-skel-fade .45s ease both;
}

@keyframes dm-skel-fade{
    from{ opacity: 0; }
    to{ opacity: 1; }
}

@media (prefers-reduced-motion: reduce){
    .dm-skel-shine{ animation: none; }
    .dm-skel-in{ animation: none; }
}
