/* GENERATED by redesign-taste/v4/tools/sync-theme-css.mjs from redesign-taste/v4/canvas/src/V4-produkt/extra.css - do not edit here, edit the source and run the tool. */
/* DBIJOU v4 - product page. Shared components live in system/system.css.
   nb, sku, qty, crumbs--back and the product grid (.pgrid) are system components (system.css, section 15).
   Blocks still marked PROMOTE (pgal, swatch, buybar) are candidates that only the product page uses today. */

/* PROMOTE: pgal - product gallery: one packshot on white in a square frame; the thumbnail row and the phone counter exist only when a product has more pictures */
.pgal{position:relative;display:flex;flex-direction:column;gap:var(--sp-2)}
.pgal__main{display:block;width:100%;aspect-ratio:1;overflow:hidden;background:var(--white);cursor:zoom-in}
.pgal__main img{width:100%;height:100%;object-fit:contain}
.pgal__thumbs{display:flex;flex-wrap:wrap;gap:var(--sp-2)}
.pgal__thumb{display:block;width:72px;height:72px;overflow:hidden;background:var(--white);border:1px solid transparent;transition:border-color var(--dur-2) var(--ease-out)}
.pgal__thumb img{width:100%;height:100%;object-fit:contain}
.pgal__thumb:hover{border-color:var(--fg-3)}
.pgal__thumb[aria-current="true"]{border-color:var(--fg)}
.pgal__count{display:none;position:absolute;right:var(--sp-3);top:var(--sp-3);padding:var(--sp-1) var(--sp-2);background:var(--cream);font-size:var(--fs-label);font-weight:500;line-height:1.4;color:var(--ink);font-variant-numeric:tabular-nums}

/* PROMOTE: swatch - the same model in another metal: linked picture tiles, the current one outlined */
.swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-2)}
.swatch{display:flex;align-items:center;gap:var(--sp-3);min-height:var(--tap);padding:var(--sp-2);border:1px solid var(--fg-3);font-size:var(--fs-ui);font-weight:500;line-height:1.2;color:var(--fg);transition:border-color var(--dur-2) var(--ease-out)}
.swatch:hover{border-color:var(--fg)}
.swatch img{flex:none;width:48px;height:48px;background:var(--white);object-fit:cover}
.swatch[aria-current="true"]{border-color:var(--fg);box-shadow:inset 0 0 0 1px var(--fg)}

/* PROMOTE: buybar - phone purchase bar: price and the action, sticky to the bottom edge while the page scrolls and
   parked in the flow above the footer at the page end, so it never lies on content there. Hidden above the phone width.
   .is-off (set by the theme script while the add-to-cart row is on screen) takes it away without moving anything. */
.buybar{display:none}

/* ------------------------------------------------------------------ product: gallery and purchase column */
.prod{padding-block:var(--sp-4) var(--sec-y)}
.prod__crumbs{margin-bottom:var(--sp-4)}
.prod__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--gap);align-items:start}
.prod__gal{position:sticky;top:calc(var(--h-hdr) + var(--sp-5))}
.prod__buy{display:flex;flex-direction:column;gap:var(--sp-6);max-width:560px;padding-top:var(--sp-2)}
.prod__head{display:flex;flex-direction:column;align-items:flex-start}
.prod__spec{margin-top:var(--sp-3);font-size:var(--fs-ui);line-height:1.5;color:var(--fg-2)}
.prod__price{margin-top:var(--sp-5)}
.prod__lead{margin-top:var(--sp-1)}
.prod__opt{display:flex;flex-direction:column;gap:var(--sp-2)}
.prod__form{display:flex;flex-direction:column;gap:var(--sp-5)}
.prod__lblrow{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4)}
/* The help link keeps its 44 px target without making the label row taller. */
.prod__help{margin-block:calc((1.3em - var(--tap)) / 2);font-size:var(--fs-small)}
.buy{display:flex;flex-direction:column;gap:var(--sp-3)}
/* One line; on a column too narrow for the label the button drops under the stepper at full width. */
.buy__row{display:flex;flex-wrap:wrap;gap:var(--sp-3)}
.buy__btn{flex:1 1 184px;padding-inline:var(--sp-4)}
.buy__hint{font-size:var(--fs-small);font-weight:500;line-height:1.4;color:var(--fg)}
.prod__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--gap);row-gap:var(--sp-5);padding-top:var(--sp-6);border-top:1px solid var(--line)}
.prod__facts .fact__v{font-size:var(--fs-h4);white-space:normal}
.prod__facts .fact__k{font-size:var(--fs-small)}

/* ------------------------------------------------------------------ after the order: the steps sit side by side */
.after__steps{flex-direction:row;gap:var(--gap)}
.after__steps .step{flex:1 1 0;min-width:0}

/* ------------------------------------------------------------------ description and data */
.pinfo__split,
.size__split{align-items:start}
.pinfo__txt,
.size__txt{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-5);max-width:560px}
/* Data table without a header row: row heads read as plain keys, the first row carries the top rule. */
.pspec th{width:44%;padding-block:var(--sp-4);border-bottom-color:var(--line);font-size:inherit;font-weight:400;white-space:normal;vertical-align:top}
.pspec tr:first-child > *{border-top:1px solid var(--fg-3)}
.pspec .sku{font-size:inherit;line-height:inherit;color:var(--fg)}

/* ------------------------------------------------------------------ size help */
.size__tbls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--sp-7);align-items:start}

/* ------------------------------------------------------------------ door to the configurator */
.cfgdoor__split{align-items:center}
.cfgdoor__txt{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-5)}
.cfgdoor__act{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3) var(--sp-5);margin-top:var(--sp-3)}
/* Caption centred under the ring, as in the shop's closing block: a bare figure has no box edge to align to. */
.cfgdoor__fig{justify-self:center;display:flex;flex-direction:column;align-items:center;width:min(100%,460px)}
.cfgdoor__fig .fig__media{width:100%;aspect-ratio:5 / 4;--fig-zoom:118%;--fig-x:48%;--fig-y:64%}
.cfgdoor__fig .cap{position:relative;z-index:var(--z-base);margin-top:calc(var(--sp-6) * -1);padding-top:0;text-align:center}

/* ------------------------------------------------------------------ related row: the system .pgrid, two columns from the tablet down */

/* ------------------------------------------------------------------ theme states (not on the boards: no board markup uses these classes)
   Messages after a plain form post, WooCommerce's variation slot, the enquiry state, the hidden bar actions, the size
   dialog and the picture zoom. */
/* The purchase form keeps WooCommerce's class "cart" (scripts and plugins select form.cart); the system scopes its
   header icon rules to a.cart, so the form needs no reset here. */
.prod__notices{display:flex;flex-direction:column;gap:var(--sp-2);margin-bottom:var(--sp-4)}
.prod__vars{display:flex;flex-direction:column;gap:var(--sp-5)}
/* WooCommerce fills .single_variation with the variation's price (shown in the head instead), stock and description. */
.prod__var{font-size:var(--fs-small);line-height:1.5;color:var(--fg-2)}
.prod__var:empty,
.prod__var .woocommerce-variation-price,
.prod__var .woocommerce-variation-description:empty{display:none}
.prod__var > *:not(:empty){margin-bottom:var(--sp-3)}
.prod__var .stock.out-of-stock,
.prod__var [role="alert"]{color:var(--err-fg)}
.buybar__btn[hidden]{display:none}
.pinfo__tbl td{overflow-wrap:anywhere}
/* Size dialog: the system dialog, wide enough for the two size tables side by side. */
.pdlg__box{width:min(640px,100%)}
.pdlg__hd{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--sp-4);margin-bottom:var(--sp-3)}
.pdlg__hd .icon-btn{margin:calc(var(--sp-2) * -1) calc(var(--sp-4) * -1) 0 0}
.pdlg__txt{color:var(--fg-2)}
.pdlg .size__tbls{margin-block:var(--sp-5)}
/* Picture zoom: the packshot as large as the screen allows, on its white ground. */
.pzoom__box{position:relative;width:auto;height:100%;max-width:min(1000px,100%);max-height:1000px;aspect-ratio:1;padding:0;overflow:hidden;background:var(--white)}
.pzoom__img{width:100%;height:100%;object-fit:contain}
.pzoom__close{position:absolute;right:var(--sp-2);top:var(--sp-2);z-index:1;color:var(--ink)}

/* ------------------------------------------------------------------ tablet */
@media (max-width:1024px){
  .prod__grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
  .prod__buy{max-width:none;padding-top:0}
  .swatch{flex-direction:column;align-items:flex-start;gap:var(--sp-2)}
  /* The three facts become rows in the narrower column: key left, value right. */
  .prod__facts{grid-template-columns:minmax(0,1fr);row-gap:var(--sp-4)}
  .prod__facts .fact{flex-direction:row;align-items:baseline;justify-content:space-between;gap:var(--sp-4)}
  .prod__facts .fact__v{order:0}

  .after__steps{flex-direction:column;gap:var(--sp-7)}
  /* The door keeps two columns on the tablet: the piece stays beside the statement. */
  .cfgdoor__split{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
  .cfgdoor__fig .cap{margin-top:0}
  .rel__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ------------------------------------------------------------------ phone */
@media (max-width:640px){

  .pgal__count{display:block}
  /* The phone swipes; the thumbnail row stays in the page for the keyboard and shows only while it holds the focus. */
  .pgal__thumbs:not(:focus-within){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

  .prod{padding-top:var(--sp-1)}
  .prod__crumbs{margin-bottom:var(--sp-1)}
  .prod__grid{grid-template-columns:minmax(0,1fr);row-gap:var(--sp-5)}
  .prod__gal{position:relative;top:auto}
  .buy__row{gap:var(--sp-2)}

  .after__steps{gap:var(--sp-2)}
  .size__tbls{column-gap:var(--sp-5)}
  .size__opt{display:none}
  .cfgdoor__split{grid-template-columns:minmax(0,1fr)}
  .cfgdoor__fig .cap{margin-top:calc(var(--sp-6) * -1)}
  .cfgdoor__act{flex-direction:column;align-items:stretch;align-self:stretch}
  .cfgdoor__act .btn{width:100%}
  .cfgdoor__act .lnk{justify-content:center}

  .buybar{position:sticky;bottom:0;z-index:var(--z-header);display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);padding:var(--sp-3) var(--gutter) max(var(--sp-3),env(safe-area-inset-bottom));box-shadow:0 -1px 0 var(--line)}
  .buybar.is-off{visibility:hidden}
  .buybar__info{display:flex;flex-direction:column;min-width:0}
  .buybar__price{font-size:var(--fs-lead)}
  .buybar__sub{font-size:var(--fs-small);line-height:1.3;color:var(--fg-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .buybar__btn{flex:none}

  .pzoom__box{width:100%;height:auto;max-width:none}
  .pdlg__hd .icon-btn{margin-right:calc(var(--sp-2) * -1)}
}
