/* ==========================================================================
   GBV România — product.css (chunk 5; PORT_MAPPING §10)
   The product page: WooCommerce's single-product markup inside Astra's
   wrappers restyled to produs.dc.html. The crumb and the summary rows come
   from inc/product.php and inc/breadcrumb.php; the gallery is
   WooCommerce's. Scope:
   body.single-product (WooCommerce) — the cart, the checkout and My Account
   never load this file (inc/enqueue.php). Astra's and WooCommerce's rules
   that fight the grid are reset at ≥ 0,3,x or with the #primary id where
   Astra uses one. Token variables only; the mockup's literals carry their
   source. Breakpoints: 768 / 922 (Astra's inclusive tablet switch) / 1280.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Container and vertical rhythm: Astra's .ast-container (1280 + gutters,
      base.css §2) is the page container; the rhythm is the mockup's —
      crumb 22 above, grid 28 / 24, sections 24 / 56, related band 48 / 56.
   -------------------------------------------------------------------------- */
.single-product.ast-plain-container.ast-no-sidebar #primary {
  margin: 0;
  padding: 0;
}
.single-product .ast-woocommerce-container {
  padding: 0;
}

/* The crumb above the grid (inside WooCommerce's container, before the
   notices — A1); the base.css §3 recipe, Astra's .woocommerce-breadcrumb
   colours and margins (0,2,1) out-ranked */
.single-product nav.woocommerce-breadcrumb.gbv-crumb {
  margin: 0;
  padding: 22px 0 0;                                    /* produs.dc.html crumb wrap */
  font-family: var(--font-body);
  font-size: var(--text-caption);
  color: var(--text-body);
}
.single-product nav.woocommerce-breadcrumb.gbv-crumb a,
.single-product nav.woocommerce-breadcrumb.gbv-crumb a:visited {
  color: var(--text-body);
  text-decoration: none;
}
.single-product nav.woocommerce-breadcrumb.gbv-crumb a:hover,
.single-product nav.woocommerce-breadcrumb.gbv-crumb a:focus-visible {
  color: var(--color-accent-strong);
  text-decoration: none;
}
.single-product nav.woocommerce-breadcrumb.gbv-crumb .gbv-crumb__item:last-child {
  color: var(--text-strong);
  font-weight: var(--fw-medium);
}
.single-product nav.woocommerce-breadcrumb.gbv-crumb .gbv-crumb__sep {
  flex: none;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   2. The grid: cover | summary, the sections wrap spanning both columns
      (produs.dc.html .pr-main: gap 64, 40 at 921–1279, 32 at 768–920, one
      column with gap 20 below 768). WooCommerce's floats and Astra's widths
      (inline 50 % / 46 % from 922, 100 % below) are reset at 0,4,2.
   -------------------------------------------------------------------------- */
.woocommerce-js.single-product .ast-woocommerce-container div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-16);                                 /* 64 px */
  align-items: start;
  margin: 0;
  padding: 28px 0 24px;                                 /* produs.dc.html .pr-main */
}
/* Astra's inline widths carry the #content id ((1,3,2): `.woocommerce
   #content .ast-woocommerce-container div.product div.images { width: 50% }`
   and `… div.summary { width: 46% }`), so the reset carries it too;
   WooCommerce's floats / 48 % (woocommerce-layout) and 2em margins go with it */
.woocommerce-js.single-product #content .ast-woocommerce-container div.product div.images,
.woocommerce-js.single-product #content .ast-woocommerce-container div.product div.summary {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  min-width: 0;
}
@media (max-width: 1279.98px) {
  .woocommerce-js.single-product .ast-woocommerce-container div.product {
    gap: var(--space-10);                               /* 40 px, 921–1279 */
  }
}
@media (max-width: 921.99px) {
  .woocommerce-js.single-product .ast-woocommerce-container div.product {
    gap: var(--space-8);                                /* 32 px, 768–920 */
  }
}
@media (max-width: 767.98px) {
  .woocommerce-js.single-product .ast-woocommerce-container div.product {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);                                /* 20 px */
  }
}

/* --------------------------------------------------------------------------
   3. The gallery as the well (D7 reversed, 2026-10-13; hover zoom off the
      same evening, H1): WooCommerce's markup — div.images.woocommerce-
      product-gallery › .woocommerce-product-gallery__wrapper › .woocommerce-
      product-gallery__image › a › img — styled to produs.dc.html's square
      sunken well: corner 64 (44 below 922), padding 12 (7 below 922), the
      cover contained; a square cover (.gbv-gallery--square, from the
      attachment ratio) carries the fill corner itself. With two or more
      images flexslider wraps the wrapper in .flex-viewport, which is then
      the well, and appends ol.flex-control-thumbs below it. Each slide is
      the picture's own box — fit-content, the img contained by the well's
      container-query units — so the picture link, the lightbox control, is
      exactly the picture (with Teo's square canvases the whole inner well).
      Below 768 the column is capped at 420 and centred.
   -------------------------------------------------------------------------- */
.woocommerce-js.single-product div.product div.images {
  opacity: 1 !important;                                /* product-image.php's inline opacity 0 until wc-single-product runs */
}

/* The well: the wrapper alone (one image) or flexslider's viewport.
   WooCommerce's wrapper rule (0,4,2: transition all, margin, padding 0) is
   out-ranked at 0,5,2 */
.woocommerce-js.single-product div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce-js.single-product div.product div.images .flex-viewport {
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  padding: 12px;                                        /* produs.dc.html coverbox */
  background: var(--surface-sunken);
  border-radius: var(--radius-lg);
  border-top-left-radius: var(--corner-lg);
  overflow: hidden;
  container-type: size;                                 /* 100cqw / 100cqh = the inner square */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}
.woocommerce-js.single-product div.product div.images .flex-viewport {
  display: block;                                       /* the track starts at the inner square's left edge (flexslider translates it) */
  height: auto !important;                              /* wc-single-product sets the viewport's height to the slide's once the main image loads */
}
/* Once flexslider wraps it, the wrapper is the slide track inside the well: a
   row of cells as wide as the inner square (the inline width and transform
   are flexslider's), each slide centred in its cell */
.woocommerce-js.single-product div.product div.images .flex-viewport .woocommerce-product-gallery__wrapper {
  aspect-ratio: auto;
  height: 100cqh;
  padding: 0;
  background: none;
  border-radius: 0;
  overflow: visible;
  container-type: normal;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100cqw;
  justify-content: start;                               /* the well rule above centres (the track is wider than the well) */
  align-items: center;
  justify-items: center;
  /* The slide (theme corrections B-4b, §11 item 46): the well rule's
     `transition: none` (kept for the one-picture well) left flexslider's
     move instant; the track moves with WooCommerce's slide again — the
     transform only, WooCommerce's easing; flexslider sets the duration
     inline (500 ms on a move, 0 s at setup) */
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.795, -0.035, 0, 1); /* woocommerce.css, .woocommerce-product-gallery__wrapper */
}
@media (prefers-reduced-motion: reduce) {
  .woocommerce-js.single-product div.product div.images .flex-viewport .woocommerce-product-gallery__wrapper {
    transition: none;
  }
}
/* The clearfix pseudo-elements on the wrapper would each take a cell */
.woocommerce-js.single-product div.product div.images .flex-viewport .woocommerce-product-gallery__wrapper::before,
.woocommerce-js.single-product div.product div.images .flex-viewport .woocommerce-product-gallery__wrapper::after {
  content: none;
  display: none;
}

/* The slide = the picture's box (WooCommerce's 25 % inline-block rule for
   the extra images and flexslider's inline width out-ranked) */
.woocommerce-js.single-product div.product div.images .woocommerce-product-gallery__image,
.woocommerce-js.single-product div.product div.images .woocommerce-product-gallery__image--placeholder {
  display: block;
  width: fit-content !important;
  max-width: 100%;
  margin: 0;
  float: none;
  border: 0;
  background: transparent;
}
/* The picture link is the lightbox control (H1): zoom-in cursor; rest,
   hover, focus-visible and active declared so Astra's link rules never
   apply — hover changes nothing but the cursor, focus-visible is the base
   ring (outside the picture, over the well's padding), active changes
   nothing */
.woocommerce-js.single-product div.product div.images .woocommerce-product-gallery__image a,
.woocommerce-js.single-product div.product div.images .woocommerce-product-gallery__image a:visited,
.woocommerce-js.single-product div.product div.images .woocommerce-product-gallery__image a:hover,
.woocommerce-js.single-product div.product div.images .woocommerce-product-gallery__image a:active {
  display: block;
  width: fit-content;
  color: inherit;
  background: transparent;
  text-decoration: none;
  box-shadow: none;
  opacity: 1;
  cursor: zoom-in;
}
.woocommerce-js.single-product div.product div.images .woocommerce-product-gallery__image a:focus-visible {
  outline: var(--stroke-bold) solid var(--ring-color);  /* the base.css ring */
  outline-offset: 2px;
}
.woocommerce-js.single-product div.product div.images .woocommerce-product-gallery__image img,
.woocommerce-js.single-product div.product div.images .woocommerce-product-gallery__image--placeholder img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100cqw;                                    /* contained by the well's inner square */
  max-height: 100cqh;
  margin: 0;
  border-radius: var(--radius-xs);
  box-shadow: none;
}
/* A square cover fills the inner square and carries the fill corner */
.woocommerce-js.single-product div.product div.images.gbv-gallery--square .woocommerce-product-gallery__image img {
  border-radius: 4px;                                   /* produs.dc.html .pr-cover-fill */
  border-top-left-radius: var(--corner-md);
}

/* Thumbnails (flexslider's ol of imgs, below the well): 56 px sunken
   squares, gap 8, the image contained, the current one ringed in the accent;
   WooCommerce's 25 % floats, clears and the 0.5 opacity out-ranked. The
   image is the control (product.js gives it a tabindex): hover / focus
   blue-mist, press blue-steel */
.woocommerce-js.single-product div.product div.images ol.flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);                                  /* 8 px */
  margin: var(--space-3) 0 0;                           /* 12 px under the well */
  padding: 0;
  overflow: visible;
  zoom: normal;
  list-style: none;
}
.woocommerce-js.single-product div.product div.images ol.flex-control-thumbs li {
  box-sizing: border-box;
  width: 56px;                                          /* ≥ 44 px target */
  height: 56px;
  float: none;
  clear: none;
  margin: 0;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
  transition: background-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}
.woocommerce-js.single-product div.product div.images ol.flex-control-thumbs li img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  opacity: 1;
  border-radius: 2px;
  cursor: pointer;
}
.woocommerce-js.single-product div.product div.images ol.flex-control-thumbs li:has(img:hover),
.woocommerce-js.single-product div.product div.images ol.flex-control-thumbs li:has(img:focus-visible) {
  background: var(--surface-brand-soft);
}
.woocommerce-js.single-product div.product div.images ol.flex-control-thumbs li:has(img:active) {
  background: var(--gbv-blue-steel);
}
.woocommerce-js.single-product div.product div.images ol.flex-control-thumbs li:has(img.flex-active) {
  box-shadow: 0 0 0 var(--stroke-bold) var(--color-accent);
}

@media (max-width: 921.99px) {
  .woocommerce-js.single-product div.product div.images .woocommerce-product-gallery__wrapper,
  .woocommerce-js.single-product div.product div.images .flex-viewport {
    padding: 7px;                                       /* produs.dc.html < 921 */
    border-top-left-radius: var(--corner-md);
  }
  .woocommerce-js.single-product div.product div.images.gbv-gallery--square .woocommerce-product-gallery__image img {
    border-radius: 9px;                                 /* produs.dc.html .pr-cover-fill < 921 */
    border-top-left-radius: var(--corner-md);
  }
}
/* One picture at a time (theme corrections step B, T26): overflow clips at
   the padding box, so with the cells as wide as the inner square the next
   (and the previous) picture showed in the well's 12 / 7 px padding strip.
   With two or more pictures the viewport has no padding — each cell is the
   whole well and a neighbour's cell starts at the well's edge — and the
   padding moves into the cell as the picture's inset; at rest every
   picture sits where it sat, and its focus ring keeps room in its cell. */
.woocommerce-js.single-product div.product div.images .flex-viewport {
  --gbv-well-pad: 12px;                                 /* produs.dc.html coverbox */
  padding: 0;
}
.woocommerce-js.single-product div.product div.images .flex-viewport .woocommerce-product-gallery__image img {
  max-width: calc(100cqw - 2 * var(--gbv-well-pad));
  max-height: calc(100cqh - 2 * var(--gbv-well-pad));
}
@media (max-width: 921.99px) {
  .woocommerce-js.single-product div.product div.images .flex-viewport {
    --gbv-well-pad: 7px;                                /* produs.dc.html < 921 */
    padding: 0;
  }
}
@media (max-width: 767.98px) {
  .woocommerce-js.single-product #content .ast-woocommerce-container div.product div.images {
    width: 100%;
    max-width: 420px;                                   /* produs.dc.html < 768 */
    margin: 0 auto;
  }
}
/* --------------------------------------------------------------------------
   4. Summary: caption · h1 · author links · „Cod articol” (produs.dc.html
      info column, padding-top 8). Astra's .product_title rules (0,3,1) and
      the Customizer's h1 size are out-ranked at 0,3,2.
   -------------------------------------------------------------------------- */
.woocommerce-js.single-product .ast-woocommerce-container div.product div.summary {
  padding-top: var(--space-2);                          /* 8 px */
}
.single-product .gbv-product__caption {
  display: block;
  font-size: var(--text-xs);                            /* 12 px, produs.dc.html */
  line-height: 1.3;
  color: var(--text-strong);
}
.woocommerce-js div.product h1.product_title {
  clear: none;
  margin: var(--space-3) 0 6px;                         /* 12 / 6, produs.dc.html */
  padding: 0;
  font-family: var(--font-headline);
  font-weight: var(--fw-bold);
  font-size: clamp(1.75rem, 3vw, 2.375rem);             /* 28–38 px */
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.single-product .gbv-product__author {
  margin: 0 0 var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);                       /* Gantari 400 — Teo's R4 pick (2026-10-13); the mockup draws 300 */
  font-size: clamp(1.03125rem, 1.6vw, 1.1875rem);       /* 16.5–19 px */
  line-height: 1.3;
  color: var(--text-body);
  overflow-wrap: anywhere;                              /* the last resort: the names never break inside (U+00A0, inc/text.php) */
}
/* R4: a real link at rest — the site's link colour, clay on hover, the
   base.css focus ring; Astra's content-link rules never reach the summary */
.single-product .gbv-product__author a,
.single-product .gbv-product__author a:visited {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--motion-base) ease;
}
.single-product .gbv-product__author a:hover,
.single-product .gbv-product__author a:focus-visible {
  color: var(--color-accent-strong);
  text-decoration: none;
}
.single-product .gbv-product__sku {
  display: block;                                       /* its own line; the mockup's inline-block sits before a block price row */
  font-family: var(--font-body);
  font-size: var(--text-caption);                       /* 13 px */
  color: var(--text-muted);
}

/* The notices wrapper between the crumb and the grid: an error notice (an
   over-stock add) keeps WooCommerce's flow recipe (woocommerce.css §1) with
   the mockup's 22 px under the crumb; the success notice is the fixed toast
   (toast.css) and takes no room here */
.single-product .ast-woocommerce-container .woocommerce-notices-wrapper .woocommerce-error {
  margin: 22px 0 0;
}

/* --------------------------------------------------------------------------
   5. Price row: WooCommerce's p.price (produs.dc.html: flex baseline, gap
      12, margin 24 0 4; the price Inter 700 27–32 px blue, clay on sale with
      the struck regular price after it; the mockup's „TVA inclus” suffix is
      not printed — Teo, 2026-10-13). Astra's p.price rules (0,3,1)
      out-ranked at 0,3,2.
   -------------------------------------------------------------------------- */
.single-product .gbv-product__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);                                  /* 12 px */
  margin: var(--space-6) 0 var(--space-1);              /* 24 / 4 */
}
.woocommerce-js div.product .gbv-product__price-row p.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
  margin: 0;
  font-family: var(--font-headline);
  font-weight: var(--fw-bold);
  font-size: clamp(1.6875rem, 2.8vw, 2rem);             /* 27–32 px */
  line-height: 1.1;
  color: var(--color-brand);
}
.woocommerce-js div.product .gbv-product__price-row p.price ins {
  order: 1;
  display: inline;
  background: none;
  font-weight: var(--fw-bold);
  color: var(--color-accent-strong);
  text-decoration: none;
}
.woocommerce-js div.product .gbv-product__price-row p.price del {
  order: 2;
  display: inline;
  opacity: 1;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-base);                          /* 16 px struck regular price */
  color: var(--text-muted);
  text-decoration: line-through;
}
.woocommerce-js div.product .gbv-product__price-row p.price .gbv-price--free {
  color: var(--text-strong);
}
/* --------------------------------------------------------------------------
   6. Availability line: dot 9 · label 600, 14.5 px, margin 14 0 26
      (produs.dc.html without its „· note” — Teo, 2026-10-13). Colours: in
      stock success, backorder clay, out muted.
   -------------------------------------------------------------------------- */
.single-product .gbv-product__avail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;                                             /* produs.dc.html */
  margin: 14px 0 26px;                                  /* produs.dc.html */
  font-family: var(--font-body);
  font-size: 0.90625rem;                                /* 14.5 px */
  line-height: 1.4;
  color: var(--text-body);
}
.single-product .gbv-product__dot {
  flex: none;
  width: 9px;                                           /* produs.dc.html dot */
  height: 9px;
  border-radius: var(--radius-pill);
  background: currentColor;
}
.single-product .gbv-product__avail-label {
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  color: inherit;
}
.single-product .gbv-product__avail--in        { color: var(--color-success); }
.single-product .gbv-product__avail--backorder { color: var(--color-accent-strong); }
.single-product .gbv-product__avail--out       { color: var(--text-muted); }
.single-product .gbv-product__avail .gbv-product__dot,
.single-product .gbv-product__avail .gbv-product__avail-label {
  color: inherit;
}

/* --------------------------------------------------------------------------
   7. Actions (F1 as frozen, A2): the quantity box on its own row, the 50 px
      accent button spanning the row below; WooCommerce's and Astra's
      form.cart floats and clearfix reset.
   -------------------------------------------------------------------------- */
.woocommerce-js div.product form.cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);                                  /* 12 px, produs.dc.html .pr-actions */
  align-items: center;
  margin: 0;
  padding: 0;
  zoom: normal;
}
.woocommerce-js div.product form.cart::before,
.woocommerce-js div.product form.cart::after {
  content: none;
}

/* Quantity box: two 44 px buttons and a 44 px value inside a 1.5 px border */
.woocommerce-js div.product form.cart div.quantity {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  float: none;
  margin: 0;
  box-sizing: border-box;
  border: var(--stroke-default) solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-card);
  transition: border-color var(--motion-base) ease;
}
.woocommerce-js div.product form.cart div.quantity:hover {
  border-color: var(--gbv-blue-steel);                  /* produs.dc.html .pr-qty:hover */
}
.woocommerce-js div.product form.cart div.quantity:active,
.woocommerce-js div.product form.cart div.quantity:focus-within {
  border-color: var(--color-accent-strong);             /* produs.dc.html .pr-qty:active / :focus-within */
}
.woocommerce-js div.product form.cart div.quantity .gbv-qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--btn-md);                                 /* 44 × 44 */
  height: var(--btn-md);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--motion-base) ease, color var(--motion-base) ease;
}
.woocommerce-js div.product form.cart div.quantity .gbv-qty__btn:hover,
.woocommerce-js div.product form.cart div.quantity .gbv-qty__btn:focus-visible {
  background: var(--surface-sunken);                    /* produs.dc.html hv11-1-hover */
  border: 0;
  color: var(--text-strong);
}
.woocommerce-js div.product form.cart div.quantity .gbv-qty__btn:active {
  background: var(--surface-sunken);
  transform: none;
}
.woocommerce-js div.product form.cart div.quantity .gbv-qty__btn:focus-visible {
  outline-offset: -3px;                                 /* the ring inside the clipped box */
}
.woocommerce-js div.product form.cart div.quantity .gbv-qty__btn[aria-disabled="true"] {
  color: var(--text-muted);
  cursor: default;
}
.woocommerce-js div.product form.cart div.quantity .gbv-qty__btn[aria-disabled="true"]:hover {
  background: transparent;
}
.woocommerce-js div.product form.cart div.quantity .gbv-qty__glyph {
  font-size: 1.0625rem;
  line-height: 1;
}
.woocommerce-js div.product form.cart div.quantity input.qty {
  box-sizing: border-box;
  width: var(--btn-md);                                 /* 44 px value, produs.dc.html */
  min-height: var(--btn-md);
  height: var(--btn-md);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  text-align: center;
  color: var(--text-strong);
  -moz-appearance: textfield;
  appearance: textfield;
}
.woocommerce-js div.product form.cart div.quantity input.qty:focus {
  outline: none;                                        /* the box's clay border is the ring (focus-within) */
  border: 0;
  box-shadow: none;
}
.woocommerce-js div.product form.cart div.quantity input.qty::-webkit-outer-spin-button,
.woocommerce-js div.product form.cart div.quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* The button: 50 px, orange, the bag icon by mask, the whole row (A2) */
.woocommerce-js div.product form.cart .button.single_add_to_cart_button,
.woocommerce-js div.product form.cart button.single_add_to_cart_button {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;                                             /* produs.dc.html .pr-cartbtn */
  float: none;
  width: 100%;
  min-width: 0;
  min-height: var(--btn-lg);                            /* 50 px */
  margin: 0;
  padding: 0 var(--space-6);
  white-space: nowrap;
  background: var(--color-accent);
  border: var(--stroke-default) solid var(--color-accent);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 0.96875rem;                                /* 15.5 px */
  line-height: 1;
  color: var(--text-on-accent);
  cursor: pointer;
  transition: background-color var(--motion-base) ease, border-color var(--motion-base) ease, color var(--motion-base) ease, transform var(--motion-press) ease;
}
.woocommerce-js div.product form.cart .button.single_add_to_cart_button::before {
  content: "";
  flex: none;
  width: 18px;                                          /* produs.dc.html bag icon */
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("../img/icons/cart.svg") center / contain no-repeat;
  mask: url("../img/icons/cart.svg") center / contain no-repeat;
}
.woocommerce-js div.product form.cart .button.single_add_to_cart_button:hover,
.woocommerce-js div.product form.cart .button.single_add_to_cart_button:focus-visible {
  background: var(--accent-hover-bg);                   /* produs.dc.html .pr-cartbtn:hover; H1, base.css §0 */
  border-color: var(--accent-hover-bg);
  color: var(--text-on-brand);
}
.woocommerce-js div.product form.cart .button.single_add_to_cart_button:active {
  background: var(--accent-hover-bg);
  border-color: var(--accent-hover-bg);
  color: var(--text-on-brand);
  transform: scale(0.98);                               /* produs.dc.html .pr-cartbtn:active */
}

/* Out of stock: the outlined, non-interactive „Indisponibil” (the card's R3 shape) */
.single-product .gbv-product__add--out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--btn-lg);
  padding: 0 var(--space-6);
  background: transparent;
  border: var(--stroke-default) solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 0.96875rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce-js div.product form.cart .button.single_add_to_cart_button:active {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   8. Sections: „Descriere” / „Detalii” (produs.dc.html tabs block: wrap
      padding 24 0 56; the bar sticky at the stuck header from 922, static
      below (B3), 47 px, z --z-sticky-bar; panels 720 wide; the Detalii grid
      200 / 120 px labels). The landing is header + bar + 24 (the G2
      correction).
   -------------------------------------------------------------------------- */
.woocommerce-js.single-product .ast-woocommerce-container div.product .gbv-sections {
  grid-column: 1 / -1;
  min-width: 0;
  padding: var(--space-6) 0 56px;                       /* produs.dc.html tabs wrap */
}
.single-product .gbv-sections__bar {
  position: sticky;
  top: var(--header-stuck);
  z-index: var(--z-sticky-bar);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);                                  /* 32 px */
  margin: 0;
  padding: var(--space-3) 0 0;                          /* 12 px */
  background: var(--surface-card);
  border-bottom: var(--stroke-hairline) solid var(--border-subtle);
}
.single-product .gbv-sections__link,
.single-product .gbv-sections__link:visited {
  display: inline-block;
  margin-bottom: -1px;                                  /* the active rule sits on the hairline */
  padding: 0 2px 14px;                                  /* produs.dc.html */
  border-bottom: var(--stroke-bold) solid transparent;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  line-height: 1.2;                                     /* the bar lands at the mockup's 47 px */
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--motion-base) ease, border-color var(--motion-base) ease;
}
.single-product .gbv-sections__link:hover,
.single-product .gbv-sections__link:focus-visible {
  color: var(--color-accent-strong);
  text-decoration: none;
}
.single-product .gbv-sections__link[aria-current="true"] {
  color: var(--color-accent-strong);
  border-bottom-color: var(--color-accent);
}
@media (max-width: 921.99px) {
  .single-product .gbv-sections__bar {
    position: static;                                   /* B3 */
  }
}

.single-product .gbv-section {
  max-width: var(--container-prose);                    /* 720 px */
  margin: 0;
}
/* The landing (G2, corrected): the heading 24 px under the stuck header +
   bar (47 px) — the margin is header + bar + 24 minus the section's own
   top padding, so it is the heading that sits 24 below the bar */
.single-product .gbv-section--descriere {
  padding-top: var(--space-6);                          /* 24 px */
  scroll-margin-top: calc(var(--header-stuck) + 47px);
}
.single-product .gbv-section--detalii {
  padding-top: var(--space-8);                          /* 32 px */
  scroll-margin-top: calc(var(--header-stuck) + 39px);
}
@media (max-width: 921.99px) {
  .single-product .gbv-section--descriere {             /* the bar is static: header + 24 − padding */
    scroll-margin-top: var(--header-stuck);
  }
  .single-product .gbv-section--detalii {
    scroll-margin-top: calc(var(--header-stuck) - 8px);
  }
}
.single-product .gbv-section__title {
  margin: 0 0 var(--space-3);                           /* 12 px (Detalii: 4) */
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text-strong);
}
.single-product .gbv-section--detalii .gbv-section__title {
  margin-bottom: var(--space-1);
}
.single-product .gbv-section__body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-body);
}
.single-product .gbv-section__body p {
  margin: 0 0 var(--space-4);
}
.single-product .gbv-section__body > :last-child {
  margin-bottom: 0;
}

/* The Detalii grid: label 200 (120 below 922) | value, rows 12 / 12 with a
   hairline under all but the last */
.single-product .gbv-details {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);          /* produs.dc.html */
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);                            /* 15 px */
  line-height: 1.5;
}
.single-product .gbv-details__row {
  display: contents;
}
.single-product .gbv-details__label,
.single-product .gbv-details__value {
  margin: 0;
  padding: var(--space-3) 0;                            /* 12 px */
  border-bottom: var(--stroke-hairline) solid var(--border-subtle);
}
.single-product .gbv-details__label {
  font-weight: var(--fw-regular);
  color: var(--text-muted);
}
.single-product .gbv-details__value {
  color: var(--text-strong);
  overflow-wrap: anywhere;
}
.single-product .gbv-details__row:last-child .gbv-details__label,
.single-product .gbv-details__row:last-child .gbv-details__value {
  border-bottom: 0;
}
.single-product .gbv-details__value a,
.single-product .gbv-details__value a:visited {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--motion-base) ease;
}
.single-product .gbv-details__value a:hover,
.single-product .gbv-details__value a:focus-visible {
  color: var(--color-accent-strong);
}
@media (max-width: 921.99px) {
  .single-product .gbv-details {
    grid-template-columns: 120px minmax(0, 1fr);        /* produs.dc.html < 921 */
  }
}

/* --------------------------------------------------------------------------
   9. Related: the cream band after #content (produs.dc.html: full-bleed
      cream, inner 1280 wrap padding 48 / 56, h2 Inter 22–28 px, 4 cards
      gap 24; 2 cards gap 12 below 921). The cards are the chunk 3 card
      (card.css); Astra's product-grid rules (floats, widths, the layout
      grid's .columns-N templates) are out-ranked at 0,4,x.
   -------------------------------------------------------------------------- */
.single-product .gbv-related {
  margin: 0;
  background: var(--gbv-cream);
}
.single-product .gbv-related__inner {
  padding-top: var(--space-12);                         /* 48 px */
  padding-bottom: 56px;                                 /* produs.dc.html */
}
.woocommerce-js.single-product .gbv-related section.related {
  margin: 0;
  padding: 0;
}
.woocommerce-js.single-product .gbv-related section.related > h2 {
  margin: 0 0 var(--space-6);                           /* 24 px */
  padding: 0;
  font-family: var(--font-headline);
  font-weight: var(--fw-bold);
  font-size: clamp(1.375rem, 2.3vw, 1.75rem);           /* 22–28 px */
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.woocommerce-js.single-product .gbv-related section.related ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);                                  /* 24 px */
  margin: 0;
  padding: 0;
}
.woocommerce-js.single-product .gbv-related section.related ul.products::before,
.woocommerce-js.single-product .gbv-related section.related ul.products::after {
  content: none;
}
.woocommerce-js.single-product .gbv-related section.related ul.products li.product {
  width: auto;
  float: none;
  margin: 0;
}
@media (max-width: 921.99px) {
  .woocommerce-js.single-product .gbv-related section.related ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);                                /* 12 px */
  }
}
