/* ===== WordPress layer (hand-written) =====
   The design ran inside a preview frame: .frame was the size container "store" (all responsive rules are
   @container store, the type scale uses cqi) and .viewport was the scroller. Here:
   - .moys-store wraps the page (announcement, header, main, footer) and is the "store" container;
   - .moys-layer is a fixed full-screen "store" container for the drawers, as the frame was for them. */
html{scroll-behavior:smooth}
body{background:var(--bg)}
.moys-store{container:store/inline-size;background:var(--bg)}
.moys-layer{position:fixed;inset:0;z-index:50;container:store/inline-size;pointer-events:none}
.moys-layer>*{pointer-events:auto}

/* empty photo slots: the preview printed the photo brief in them */
.img-slot:not(.has-img)::after{content:none}

/* cart drawer: the refreshed part (WooCommerce fragment) keeps the panel's flex layout */
[data-cd1-in]{display:contents}
[data-ck2-in]{display:contents}
[aria-busy="true"]{opacity:.6;pointer-events:none}

/* sticky header under the WordPress admin bar (logged-in admins only) */
.admin-bar .hd9{top:32px}
@media (max-width:782px){.admin-bar .hd9{top:46px}}
@media (max-width:600px){.admin-bar .hd9{top:0}}
/* the collection toolbar sticks under the header (77px, 61px on mobile): same shift */
.admin-bar .tb1{top:109px}
@media (max-width:782px){.admin-bar .tb1{top:123px}}
@container store (max-width:749px){.admin-bar .tb1{top:107px}}
@media (max-width:600px){.admin-bar .tb1{top:61px}}

/* anchors (home FAQ from the contact page, contact form) clear the sticky header, as the preview's scroll did */
#faq,#ecrire{scroll-margin-top:90px}

/* collection: no product yet / no product for the chosen filters (not in the design) */
.cg4-em{grid-column:1/-1;padding-block:clamp(32px,4cqi,56px);text-align:center;color:var(--muted)}
.cg4-em[hidden]{display:none}

/* links that replace preview buttons keep the button look */
a.pc1-add{text-decoration:none}
/* a video slot with a link to the post */
.rv8-rl>a{display:block}

/* pages not converted yet (WooCommerce screens, plain pages) */
.moys-page{padding-block:var(--space-section)}
.moys-page h1{font-size:var(--fs-h1);margin-bottom:var(--space-head)}
.moys-page .entry>*+*{margin-top:1em}

/* WooCommerce notices on the converted cart page (WooCommerce's own styles are off there) */
.moys-notices{display:grid;gap:8px;margin:-8px 0 var(--space-head)}
.moys-notices>*,.moys-notices ul{margin:0;padding:12px 16px;list-style:none;border-radius:var(--radius-sm);background:var(--surface);font-size:14px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.moys-notices .woocommerce-error,.moys-notices .is-error{box-shadow:inset 3px 0 0 #b3261e}
.moys-notices svg{width:20px;height:20px;flex:none}
.moys-notices a{text-decoration:underline;text-underline-offset:3px}

/* product buy box: the add-to-cart form keeps the grid of .bb5-in (not in the design: the form, the line shown
   when the chosen option or the product cannot be bought, the disabled buttons) */
.bb5 form[data-buy]{display:contents}
.bb5 .bb5-st{margin-top:-8px;font-size:13.5px;color:var(--muted)}
.bb5 .bb5-st[hidden]{display:none}
.bb5 .bb5-b[disabled]{opacity:.45;cursor:not-allowed}
.bb5 .moys-notices{margin:0 0 18px}
.bb5 .bb5-pr del{font-size:.75em;font-weight:400;color:var(--muted)}
.bb5 .bb5-pr ins{text-decoration:none}

/* WordPress / WooCommerce text for screen readers only (e.g. "Price range" of a variable product's price). */
.screen-reader-text{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:#fff;clip-path:none;color:#222;display:block;font-size:14px;height:auto;left:5px;padding:15px 23px 14px;top:5px;width:auto;z-index:100000}

/* Cart drawer on mobile (client request): a side drawer, not a full screen. The design's panel is min(440px,100%),
   so on a phone it covered the page; a strip of the dimmed page stays visible beside it (tap it to close). */
@container store (max-width:749px){
  .cd1 .panel{width:min(440px,calc(100% - 52px));box-shadow:0 0 40px color-mix(in srgb,var(--ink) 18%,transparent)}
}
/* Logged-in: the drawers go over the WordPress admin bar (it hid their top and close button). The layer itself lets clicks through. */
body.admin-bar .moys-layer{z-index:100000}
