/* Le comptoir et ses plaques d’inventaire. */
.rst-shop, .rst-product-sheet {
    padding-bottom: clamp(3rem, 6vw, 6rem);
    overflow-wrap: anywhere;
}

.rst-shop .rst-crumb a, .rst-product-sheet .rst-crumb a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
}

.rst-shop .rst-crumb, .rst-product-sheet .rst-crumb {
    padding-block: .5rem;
}

.rst-shop-counter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 24%);
    align-items: center;
    gap: clamp(1rem, 4vw, 5rem);
    padding: clamp(1.5rem, 4.5vw, 4.75rem);
    background: var(--rst-holes), #323736;
    color: var(--rst-paper);
    border: 1px solid #353a39;
    border-bottom: 6px solid var(--rst-wood);
    position: relative;
    isolation: isolate;
}

.rst-shop-counter::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 19% 0 0;
    background: var(--rst-red);
    clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
}

.rst-counter-copy {
    max-width: 56ch;
}

.rst-counter-copy h1 {
    font-size: clamp(3rem, 6.2vw, 6.6rem);
    line-height: .98;
}

.rst-counter-copy > p:last-child {
    margin: 1.2rem 0 0;
    max-width: 47ch;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.rst-counter-copy .rst-kicker span {
    background: #eed5ac;
}

.rst-counter-plate {
    position: relative;
    display: grid;
    gap: .3rem;
    padding: clamp(1.2rem, 2.5vw, 2.5rem) .9rem;
    color: #212626;
    background: var(--rst-aluminium);
    border: 1px solid #9ca6a3;
    box-shadow: inset 0 1px white, 0 4px 0 #161d1c;
    text-align: center;
    font: 500 .8rem/1.5 var(--rst-mono);
}

.rst-counter-plate strong {
    font: 500 clamp(2.75rem, 5vw, 5.3rem)/1 var(--rst-mono);
    letter-spacing: -.08em;
}

.rst-counter-plate .rst-rivets {
    inset: .45rem;
}

.rst-shop-notice {
    background: #eee6d6;
    border-left: 4px solid var(--rst-wood);
    padding: .95rem clamp(1rem, 2vw, 1.7rem);
    color: #403b32;
    font-size: .94rem;
}

.rst-shop-notice p {
    max-width: 105ch;
    margin: 0;
}

.rst-shop-notice strong {
    color: #34251e;
}

.rst-shop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: clamp(1.5rem, 3vw, 2.8rem) 0;
}

.rst-shop-tabs a, .rst-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .6em;
    min-height: 44px;
    padding: .45rem .75rem;
    border: 1px solid #aba69a;
    background: var(--rst-paper);
    font-weight: 600;
    text-decoration: none;
}

.rst-shop-tabs a span {
    font: .76rem var(--rst-mono);
}

.rst-shop-tabs a[aria-current], .rst-shop-tabs a:hover {
    border-color: #272c2b;
    background: #272c2b;
    color: var(--rst-paper);
}

/* Le formulaire reste utilisable grâce au volet HTML natif. */
.rst-catalog-layout {
    display: grid;
    grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2.7vw, 2.8rem);
}

.rst-shop-filters {
    --rst-filter-top: calc(var(--rst-header-height, 86px) + var(--wp-admin--admin-bar--height, 0px) + .75rem);
    position: sticky;
    top: var(--rst-filter-top);
    max-height: calc(100dvh - var(--rst-filter-top) - .75rem);
    overflow-y: auto;
    border: 1px solid #aba598;
    background: var(--rst-paper);
    scrollbar-width: thin;
    scrollbar-color: #857e70 #efe9dc;
}

.rst-shop-filters summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    min-height: 52px;
    background: var(--rst-aluminium);
    border-top: 4px solid #4b5554;
    color: #222726;
    font: 700 1.6rem var(--rst-slab);
    list-style: none;
}

.rst-shop-filters summary::after {
    content: '+';
    font: 1.4rem var(--rst-mono);
}

.rst-shop-filters [open] summary::after {
    content: '−';
}

.rst-shop-filters form {
    padding: 1rem;
}

.rst-shop-filters fieldset {
    margin: 0 0 1rem;
    padding: 0 0 .8rem;
    border: 0;
    border-bottom: 1px solid var(--rst-line);
}

.rst-shop-filters legend {
    padding: 0;
    margin-bottom: .3rem;
    font: 700 1.3rem var(--rst-slab);
}

.rst-filter-options {
    max-height: 13.75rem;
    overflow: auto;
    scrollbar-width: thin;
}

.rst-filter-options label {
    display: flex;
    gap: .6rem;
    align-items: center;
    min-height: 44px;
    padding-inline: .2rem .4rem;
    cursor: pointer;
    font-size: .93rem;
}

.rst-filter-options label:has(:checked) {
    color: var(--rst-red);
    background: #f6ebe3;
}

.rst-filter-options input {
    accent-color: var(--rst-red);
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
}

.rst-filter-options small {
    margin-left: auto;
    font: .73rem var(--rst-mono);
}

.rst-shop-filters small, .rst-shop-price small, .rst-sheet-summary > small {
    display: block;
    color: var(--rst-muted);
    line-height: 1.5;
}

.rst-price-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    font-size: .85rem;
}

.rst-price-inputs input, .rst-shop-filters select {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: .2rem 0 .55rem;
    padding: .45rem;
    border: 1px solid #898477;
    border-radius: 2px;
    background: white;
    color: var(--rst-ink);
    font: 1rem var(--rst-mono);
}

.rst-filter-actions {
    display: grid;
    text-align: center;
}

.rst-filter-actions a, .rst-shop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: .9rem;
    color: var(--rst-red);
    font-weight: 650;
}

.rst-result-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1rem;
    padding: 0 0 .85rem;
    border-bottom: 2px solid #716454;
}

.rst-result-bar h2 {
    margin-right: auto;
    font-size: clamp(1.65rem, 2.5vw, 2.35rem);
}

.rst-filter-chip {
    font-size: .84rem;
    color: #72221d;
    border-color: #b98272;
    background: #f9eee5;
}

.rst-shop-grid, .rst-shop-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.85rem, 1.4vw, 1.4rem);
}

.rst-product-card {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #bcb5a6;
    background: var(--rst-paper);
    box-shadow: 0 3px 0 #d9d2c5;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.rst-card-photo {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: clamp(.85rem, 1.5vw, 1.6rem);
    background: white;
    border-bottom: 1px solid #e2ded3;
}

.rst-card-photo img, .rst-gallery-photo img, .rst-photo-label img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rst-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(.85rem, 1.3vw, 1.45rem);
}

.rst-card-meta, .rst-sheet-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    color: #514d44;
    font: 500 .78rem/1.5 var(--rst-mono);
}

.rst-card-meta {
    justify-content: space-between;
}

.rst-merchant {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    width: fit-content;
    padding: .25em .65em;
    border: 1px solid #b6a580;
    background: #f3ead4;
    color: #503d1f;
    font: 500 .78rem/1.5 var(--rst-mono);
}

.rst-merchant::before {
    content: '';
    width: .5em;
    height: .5em;
    background: currentColor;
    border-radius: 50%;
}

.rst-merchant-vevor {
    background: #e3e9e7;
    color: #2c4746;
    border-color: #9cadaa;
}

.rst-product-card h3 {
    margin: .75rem 0 .35rem;
    font-size: clamp(1.45rem, 1.9vw, 1.92rem);
    line-height: 1.12;
    text-wrap: initial;
}

.rst-product-card h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.rst-product-card h3 a:hover {
    text-decoration: underline;
    color: var(--rst-red);
}

.rst-card-spec {
    font: .82rem/1.5 var(--rst-mono);
    color: var(--rst-muted);
    margin: .1rem 0 0;
}

.rst-shop-price {
    padding: 1rem 0;
    color: #534d44;
    font-size: .91rem;
}

.rst-shop-price strong {
    display: block;
    font: 500 1.35rem/1.35 var(--rst-mono);
    color: var(--rst-ink);
}

.rst-shop-price small {
    font-size: .79rem;
}

.rst-card-actions {
    display: grid;
    margin-top: auto;
    border-top: 1px solid var(--rst-line);
    padding-top: .85rem;
}

.rst-shop-buy {
    width: 100%;
    gap: .6em;
    padding-inline: .55rem;
    min-height: 48px;
    color: white;
}

.rst-shop-buy span {
    font-weight: 500;
    flex: none;
}

@container (max-width: 17rem) {
    .rst-card-actions .rst-shop-buy {
        min-height: 4.1rem;
    }
}

.rst-card-actions .rst-shop-link {
    margin-bottom: -.45rem;
}

.rst-shop .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.rst-shop .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--rst-line);
    font: .83rem var(--rst-mono);
}

.rst-shop .page-numbers.current {
    color: white;
    background: var(--rst-red);
}

.rst-empty, .rst-catalog-note {
    padding: clamp(1.4rem, 3vw, 2.8rem);
    background: var(--rst-paper);
    border-bottom: 4px solid var(--rst-wood);
}

.rst-empty h3, .rst-catalog-note h2 {
    margin: 0 0 1rem;
}

.rst-catalog-note {
    max-width: 76ch;
    margin: clamp(2rem, 5vw, 5rem) auto 0;
}

.rst-catalog-note p:last-child {
    margin: 0;
}

.rst-catalog-links {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    margin-top: .85rem;
}

.rst-catalog-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--rst-red);
    font-weight: 600;
}

/* Fiche de mobilier, vitrine photographique et colonne de lecture. */
.rst-sheet-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.25rem, 3vw, 3rem);
    background: var(--rst-paper);
    border: 1px solid var(--rst-line);
    border-top: 5px solid var(--rst-red);
}

.rst-sheet-hero > .rst-shop-notice {
    grid-column: 1 / -1;
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--rst-line);
}

.rst-shop-gallery {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: .65rem;
    padding: clamp(1rem, 2vw, 2rem);
}

.rst-gallery-photo {
    display: block;
    flex: 0 0 100%;
    order: -1;
    margin: 0;
    min-width: 0;
    background: white;
    border: 1px solid #d8d4c9;
}

.rst-gallery-photo > div {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: clamp(.8rem, 2vw, 2rem);
}

.rst-gallery-scene > div {
    aspect-ratio: 16 / 9;
    padding: 0;
}

.rst-gallery-photo figcaption {
    padding: .65rem .85rem;
    border-top: 1px solid #dfdace;
    color: #524c43;
    background: #f6f3eb;
    font: .78rem/1.5 var(--rst-mono);
}

.rst-photo-choice:not(:checked) + label + figure {
    display: none;
}

.rst-photo-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 48px;
    min-width: 0;
    padding: .3rem .55rem .3rem .3rem;
    cursor: pointer;
    background: white;
    border: 1px solid #b5ad9c;
    color: #493e32;
    font: .77rem/1.4 var(--rst-mono);
}

.rst-photo-label img {
    width: 3.3rem;
    height: 2.4rem;
}

.rst-photo-choice:checked + label {
    color: var(--rst-red);
    border-color: var(--rst-red);
    box-shadow: inset 0 -2px var(--rst-red);
}

.rst-photo-choice:focus-visible + label {
    outline: 3px solid #0056ae;
    outline-offset: 3px;
}

.rst-sheet-summary {
    align-self: center;
    padding: clamp(1.5rem, 3vw, 3.25rem) clamp(1.5rem, 3vw, 3.25rem) 0 0;
}

.rst-sheet-summary h1 {
    margin: 1rem 0;
    font-size: clamp(2.4rem, 3.8vw, 4.25rem);
    overflow-wrap: anywhere;
}

.rst-chapo, .rst-sheet-intro {
    font-size: clamp(1.06rem, 1.35vw, 1.22rem);
    line-height: 1.65;
}

.rst-sheet-spec {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 2rem;
    margin: 1.2rem 0 0;
    padding-block: .85rem;
    border-block: 1px solid var(--rst-line);
    font: .88rem/1.5 var(--rst-mono);
}

.rst-sheet-spec:empty {
    display: none;
}

.rst-sheet-spec dt {
    color: var(--rst-muted);
    font-size: .73rem;
}

.rst-sheet-spec dd, .rst-spec-table dd {
    margin: 0;
    font-weight: 500;
}

.rst-sheet-summary .rst-shop-price strong {
    font-size: clamp(1.6rem, 2.3vw, 2.25rem);
}

.rst-sheet-summary .rst-shop-buy {
    min-height: 54px;
    font-size: 1.02rem;
}

.rst-sheet-summary > small {
    margin: .65rem 0 0;
}

.rst-sheet-reading {
    max-width: 68ch;
    margin: clamp(2.25rem, 5vw, 5rem) auto;
    line-height: 1.75;
}

.rst-sheet-reading section + section {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.rst-sheet-reading h2, .rst-neighbors h2 {
    margin-bottom: 1.1rem;
    font-size: clamp(2rem, 3vw, 3rem);
}

.rst-sheet-intro {
    padding-left: 1.15rem;
    border-left: 3px solid var(--rst-red);
    margin-bottom: 2.35rem;
}

.rst-strengths {
    display: grid;
    gap: .75rem;
    padding: 0;
    counter-reset: strengths;
    list-style: none;
}

.rst-strengths li {
    position: relative;
    counter-increment: strengths;
    padding: 1.2rem 1.1rem 1.2rem 4.1rem;
    border: 1px solid var(--rst-line);
    background: var(--rst-paper);
    box-shadow: 0 2px 0 #d4cdbe;
}

.rst-strengths li::before {
    content: counter(strengths, decimal-leading-zero);
    position: absolute;
    inset: 1.2rem auto auto .85rem;
    background: var(--rst-aluminium);
    border: 1px solid #9aa4a0;
    padding: .25em .45em;
    font: 500 1rem/1.25 var(--rst-mono);
}

.rst-strengths h3 {
    font-size: 1.55rem;
}

.rst-strengths p {
    margin: .5rem 0 0;
}

.rst-audience ul, .rst-sheet-reading .rst-safety ul {
    padding-left: 1.4rem;
    margin-bottom: 0;
}

.rst-sheet-reading li + li {
    margin-top: .35rem;
}

.rst-sheet-reading li::marker {
    color: var(--rst-red);
}

.rst-spec-table {
    margin: 0;
    border-block: 1px solid #aaa496;
    font: .9rem/1.6 var(--rst-mono);
}

.rst-spec-table > div {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 1rem;
    padding: .8rem 1rem;
}

.rst-spec-table > div:nth-child(odd) {
    background: var(--rst-paper);
}

.rst-guide-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rst-guide-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .65rem .95rem;
    min-height: 48px;
    background: var(--rst-paper);
    border-left: 3px solid var(--rst-wood);
    color: var(--rst-red);
    font-weight: 600;
}

.rst-guide-links a::after {
    content: '→';
    flex: none;
}

.rst-neighbors {
    border-top: 4px solid var(--rst-wood);
    padding-top: 1.5rem;
}

.rst-neighbors .rst-shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rst-mobile-buy {
    display: none;
}

/* Photos éditoriales des rayons, poinçonnage pour les deux façades sans photo. */
.rst-home-shop {
    background: #e3ded2;
    border-block: 1px solid var(--rst-line);
}

.rst-home-shop .rst-section-head p {
    margin: .8rem 0 0;
}

.rst-home-shop .rst-btn {
    margin: 1.5rem 0;
}

.rst-shop-tile {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr);
    min-height: 7rem;
    text-decoration: none;
    color: var(--rst-ink);
    border: 1px solid #ada697;
    background: var(--rst-paper);
    box-shadow: 0 3px 0 #b4ad9d;
}

.rst-tile-photo {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #e1e3d8;
    background: var(--rst-holes), #343a39;
}

.rst-tile-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rst-tile-photo svg {
    width: 3.5rem;
    height: 3.5rem;
    padding: .4rem;
    background: #343a39;
}

.rst-tile-label {
    align-self: center;
    padding: 1rem;
}

.rst-tile-label h3 {
    font-size: clamp(1.3rem, 1.8vw, 1.85rem);
}

.rst-tile-label span {
    display: block;
    margin-top: .5rem;
    color: var(--rst-red);
    font: .77rem var(--rst-mono);
}

.rst-shop-tile:hover h3 {
    text-decoration: underline;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .rst-product-card:hover {
        transform: translateY(-2px);
        border-color: #93816d;
        box-shadow: 0 5px 0 #d2c9b9;
    }
}

@media (max-width: 72rem) {
    .rst-shop-grid, .rst-neighbors .rst-shop-grid, .rst-shop-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 56rem) {
    .rst-catalog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .rst-shop-filters {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .rst-shop-filters details[open] form {
        animation: rst-shop-slide .2s ease-out;
    }

    .rst-sheet-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .rst-sheet-summary {
        padding: 0 clamp(1rem, 4vw, 2rem) 1rem;
    }
}

@keyframes rst-shop-slide {
    from { opacity: .7; transform: translateY(-.45rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 38rem) {
    .rst-shop-counter {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
        padding: 1.45rem 1.15rem;
    }

    .rst-shop-counter::before {
        right: 3%;
        clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    }

    .rst-counter-copy {
        max-width: 94%;
    }

    .rst-counter-plate {
        width: fit-content;
        max-width: 100%;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: .8rem;
        padding: .65rem 1.35rem;
    }

    .rst-counter-plate strong {
        font-size: 2rem;
    }

    .rst-shop-grid, .rst-neighbors .rst-shop-grid, .rst-shop-tiles {
        grid-template-columns: minmax(0, 1fr);
    }

    .rst-shop-tabs {
        gap: .35rem;
    }

    .rst-shop-tabs a {
        font-size: .85rem;
    }

    .rst-product-card h3 {
        font-size: 1.65rem;
    }

    .rst-shop-gallery {
        padding: .75rem;
    }

    .rst-product-sheet {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .rst-mobile-buy {
        display: block;
        position: fixed;
        z-index: 48;
        inset: auto 0 0;
        padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #8f8879;
        background: var(--rst-paper);
        box-shadow: 0 -3px 12px #25211b1c;
    }

    .rst-mobile-buy .rst-btn {
        min-height: 52px;
    }

    .rst-shop-tile {
        min-height: 6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rst-shop-filters details[open] form {
        animation: none;
    }
}

.rst-product-card h3 a {
    min-height: 44px;
}

.rst-shop .rst-crumb li + li::before, .rst-product-sheet .rst-crumb li + li::before {
    content: '›';
}
