/* =============================================================================
   product.css (product area): single product page.
   Spec: docs/reference/04-product.md (values measured at 1440 and 390).
   Layout: .pdp is a grid. Desktop: [main | aside] over [similar | aside], the
   #fbfbfb aside running the full height of <main>. ≤990: main, aside, similar.
   ============================================================================= */

.pdp {
  --pdp-aside-w: calc(var(--unit) + 3 * var(--column-and-gutter-unit) - var(--gutter-unit)); /* 376.7 @1440 */
  --pdp-part-w: 50%;            /* gallery: half the left column (471.6 @1440) */
  --pdp-content-gap: 60px;      /* gallery → title / spec list */
  --pdp-aside-px: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pdp-aside-w);
  grid-template-rows: auto 1fr;
  grid-template-areas: "main aside" "similar aside";
  /* The similar carousel's off-screen slides must not widen the page (clip keeps sticky working). */
  overflow-x: clip;
}
@media (min-width: 1501px) {
  .pdp {
    --pdp-part-w: calc(4 * var(--column-and-gutter-unit) - var(--gutter-unit));
    --pdp-aside-px: var(--unit);
  }
}

.pdp__main { grid-area: main; min-width: 0; padding-left: var(--unit); margin-right: var(--unit); }
.pdp__aside { grid-area: aside; min-width: 0; background: var(--c-surface-50); }
.pdp__aside-inner {
  position: sticky; top: var(--pdp-sticky-top, 0px);
  padding: var(--space-16) var(--pdp-aside-px);
}
.pdp__notices { margin-bottom: var(--space-6); }

/* ---------------------------------------------------------------- Product row (4.2 – 4.5) */
.pdp-product {
  display: grid;
  grid-template-columns: var(--pdp-part-w) minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  grid-template-areas: "gallery title links" "gallery info links";
  align-items: start;
}
.pdp-product__title {
  grid-area: title;
  max-width: 650px;
  margin-left: var(--pdp-content-gap);
  color: var(--c-ink);
  overflow-wrap: anywhere;
}
.pdp-product__links {
  grid-area: links;
  display: grid; grid-auto-flow: column; grid-auto-columns: 40px; gap: 3px;
  margin-left: 45px;
}
.round-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--c-line); border-radius: var(--r-round);
  color: var(--c-ink);
  transition: border-color var(--dur-2) var(--ease);
}
.round-btn:hover { border-color: var(--c-ink-30); }
.round-btn .icon { width: 6px; height: 8px; }
.round-btn--prev .icon { transform: rotate(180deg); }

/* ---------------------------------------------------------------- Gallery (4.3) */
.pdp-gallery { grid-area: gallery; min-width: 0; }
.pdp-gallery__area { position: relative; aspect-ratio: 1 / 1; }
.pdp-gallery__slides { position: absolute; inset: 0; }
.pdp-gallery__slide {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  cursor: zoom-in;
}
.pdp-gallery__slide.is-swapping { animation: pdp-fade var(--dur-1) var(--ease); }
.pdp-gallery__img { width: 100%; height: 100%; object-fit: contain; }
@keyframes pdp-fade { from { opacity: .4; } to { opacity: 1; } }
.pdp-gallery__dl {
  position: absolute; right: 30px; bottom: 30px; z-index: var(--z-float);
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: var(--r-round);
  background: var(--glass-white-80); color: var(--c-ink);
  /* Hairline so the circle still reads where a non-square photo leaves the corner white (decaro's photos are square). */
  box-shadow: 0 0 0 1px var(--c-line);
}
.pdp-gallery__dl .icon { width: 15px; height: 15px; }
.pdp-gallery__footer { margin-top: var(--space-10); }
.pdp-gallery__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); padding: 5px; }
.pdp-gallery__thumbs.is-folded:not(.is-open) .pdp-gallery__thumb-item:nth-child(n+7) { display: none; }
.pdp-gallery__thumb { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; cursor: pointer; }
.pdp-gallery__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery__thumb::before {
  content: ""; position: absolute; inset: -4px; z-index: 1;
  border: 2px solid var(--c-ink); opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease);
}
.pdp-gallery__thumb.is-active::before { opacity: 1; }
.pdp-gallery__more { margin-top: 7px; font-size: var(--fs-16); line-height: var(--lh-body); color: var(--c-ink-60); }

/* ---------------------------------------------------------------- Spec list + description (4.5, 4.6) */
.pdp-info {
  grid-area: info; position: relative; min-width: 0; max-width: 650px;
  margin: var(--space-5) 0 0 var(--pdp-content-gap);
}
.pdp-info.is-clamped { overflow: hidden; }
.pdp-specs { margin: 0; }
.pdp-specs__item { padding: var(--space-3) 0; border-bottom: 1px solid var(--c-line); }
.pdp-specs__item:last-child { border-bottom: 0; }
.pdp-specs__label { font-size: var(--fs-12); line-height: var(--lh-body); color: var(--c-ink-60); }
.pdp-specs__value { margin: 0; font-size: var(--fs-16); line-height: var(--lh-body); overflow-wrap: anywhere; }
.pdp-desc { margin-top: 35px; }
.pdp-desc__title { margin-bottom: 10px; font-size: var(--fs-16); font-weight: var(--fw-medium); line-height: var(--lh-body); letter-spacing: 0; }
.pdp-desc__text { font-size: var(--fs-16); line-height: var(--lh-body); }
.pdp-desc__text > * + * { margin-top: 1em; }
.pdp-info__toggle {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding-top: 5px; background: var(--c-white); text-align: left;
  font-size: var(--fs-16); font-weight: var(--fw-medium); line-height: var(--lh-body);
}
.pdp-info__toggle:hover { opacity: .6; }
.pdp-info.is-open .pdp-info__toggle { position: relative; margin-top: 5px; }

/* ---------------------------------------------------------------- Buy box (4.7) */
.pdp-buy__part { margin-bottom: var(--space-8); }
.pdp-buy__part:last-child { margin-bottom: 0; }

/* Price (4.7.1) */
.pdp-price { display: flex; flex-wrap: wrap; align-items: flex-end; min-height: 24px; }
.pdp-price__amount { font-size: var(--fs-price-lg); font-weight: var(--fw-bold); line-height: 1; }
.pdp-price__unit { font-size: var(--fs-12); font-weight: var(--fw-medium); line-height: 1; white-space: pre; }
.pdp-price__old { position: relative; align-self: center; margin-right: var(--space-2); font-size: var(--fs-12); font-weight: var(--fw-medium); line-height: 1; opacity: .4; }
.pdp-price__old::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1px; background: currentColor; transform: rotate(-10deg); }

/* Quantity stepper (4.7.2): full width between two hairlines */
.pdp-qty .quantity.counter {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; height: 46px; padding: 10px 0;
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.pdp-qty .counter__btn { width: var(--stepper-btn-w); }
.pdp-qty .counter__input { width: 64px; }
.pdp-qty .counter__input:focus-visible { outline-offset: 0; }
.pdp-qty__note { margin-top: var(--space-2); font-size: var(--fs-12); line-height: var(--lh-body); color: var(--c-ink-60); }
.pdp-qty__note.is-alert { color: var(--c-red); }

/* Variation dropdowns (4.7.3, decaro rug / panno select). Open: the page dims
   (the dropdown's ::before, fixed) and the box + list sit above the dim. The
   white background is on the button, so the dim (z 1) covers everything but
   the open dropdown's button (z 2), list (z 3) and floating label (z 4).
   Closed, nothing has a z-index (the label follows the button in the DOM), so
   other dropdowns stay under the dim. */
.pdp-options { display: flex; flex-direction: column; gap: var(--space-1); }
.pdp-dd { position: relative; min-width: 0; }
.pdp-dd__label {
  position: absolute; top: 8px; left: 16px; pointer-events: none;
  font-size: var(--fs-12); font-weight: var(--fw-medium); line-height: 1;
}
.pdp-dd__btn {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-2);
  width: 100%; height: 56px; padding: 14px 16px;
  background: var(--c-white); color: var(--c-ink); text-align: left; cursor: pointer;
  font-size: var(--fs-16); font-weight: var(--fw-regular); line-height: 1;
}
.pdp-dd__btn:focus-visible { outline: 2px solid var(--c-ink); outline-offset: -2px; }
.pdp-dd__value { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pdp-dd__chevron { flex-shrink: 0; width: 12px; height: 12px; margin-right: 8px; align-self: center; transform: translateY(5px); transition: transform .25s ease; }
.pdp-dd.is-open .pdp-dd__btn { z-index: 2; }
.pdp-dd.is-open .pdp-dd__label { z-index: 4; }
.pdp-dd.is-open .pdp-dd__chevron { transform: translateY(5px) rotate(180deg); }
.pdp-dd__list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 3;
  max-height: 200px; overflow-y: auto; padding: 16px 0;
  background: var(--c-white); box-shadow: var(--shadow-dropdown);
  opacity: 0; transform: translateY(2px); transition: opacity .25s ease, transform .25s ease;
}
.pdp-dd__list:focus { outline: 0; }
.pdp-dd.is-open .pdp-dd__list { opacity: 1; transform: none; }
.pdp-dd__option {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: 40px; padding: 8px 24px;
  font-size: var(--fs-16); line-height: 1; cursor: pointer;
}
.pdp-dd__option[aria-selected="true"] { display: none; }
.pdp-dd__option.is-active { background: var(--c-option-hover); }
.pdp-dd__option.is-unavailable { opacity: .4; }
.pdp-dd__swatch { flex-shrink: 0; width: 12px; height: 12px; border-radius: var(--r-round); background: var(--swatch); box-shadow: inset 0 0 0 1px var(--c-ink-20); }
.pdp-dd.is-open::before {
  content: ""; position: fixed; inset: 0; z-index: 1;
  background: var(--overlay-select); animation: pdp-dim .25s ease;
}
@keyframes pdp-dim { from { opacity: 0; } to { opacity: 1; } }
/* Lift the buy box (a sticky stacking context) above the header and cookie bar while a dropdown is open. */
.pdp.has-open-dd .pdp__aside-inner { z-index: var(--z-dropdown-overlay); }
@media (max-width: 990px) { .pdp.has-open-dd .pdp__aside-inner { position: relative; top: auto; } }
@media (prefers-reduced-motion: reduce) {
  .pdp-dd.is-open::before { animation: none; }
  .pdp-dd__list, .pdp-dd__chevron { transition: none; }
}

/* WooCommerce's attribute selects: the no-JS fallback (styled as decaro's 56px select) */
.pdp-selects { display: grid; gap: var(--space-1); }
html.js .pdp-selects { display: none; }
html:not(.js) .pdp-dd { display: none; }
.pdp-select { position: relative; background: var(--c-white); }
.pdp-select__label { position: absolute; top: 8px; left: 16px; font-size: var(--fs-12); font-weight: var(--fw-medium); line-height: 1; pointer-events: none; }
.pdp-select__field {
  display: block; width: 100%; height: 56px; padding: 22px 40px 8px 16px;
  font-size: var(--fs-16); line-height: 1.2; color: var(--c-ink);
  background: none; border: 0; border-radius: 0; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.pdp-select::after { content: ""; position: absolute; right: 18px; top: 26px; border-top: 6px solid var(--c-ink); border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; pointer-events: none; }

/* m² helper (4.7.4) */
.pdp-calc__head { margin-bottom: 10px; }
.pdp-calc__title { font-size: var(--fs-16); font-weight: var(--fw-medium); line-height: var(--lh-body); }
.pdp-calc__sheet { font-size: var(--fs-12); line-height: var(--lh-body); color: var(--c-ink-60); }
.pdp-calc__sheet:empty { display: none; }
.pdp-calc__grid { display: grid; gap: 5px; }
.pdp-calc__input {
  width: 100%; height: 40px; padding: 0 15px;
  font-size: var(--fs-16); color: var(--c-ink);
  background: var(--c-white); border: 0; border-radius: 0; appearance: none;
}
.pdp-calc__input::placeholder { color: var(--c-placeholder); opacity: 1; }
.pdp-calc__input:focus-visible { outline: 1px solid var(--c-ink-30); outline-offset: 0; }
.pdp-calc__props { padding: 20px 15px; background: var(--c-surface-300); }
.pdp-calc__row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2);
  font-size: var(--fs-12); font-weight: var(--fw-medium); line-height: 1.2;
  letter-spacing: var(--ls-caps-tight); text-transform: uppercase;
}
.pdp-calc__value { min-width: 30px; font-weight: var(--fw-bold); text-align: center; letter-spacing: 0; text-transform: none; }
.pdp-calc__value--pill { padding: 2px 4px; border-radius: var(--r-sm); background: var(--cat-active); line-height: 1; }
.pdp-calc__use {
  margin-top: var(--space-1);
  font-size: var(--fs-14); font-weight: var(--fw-medium); line-height: var(--lh-ui); text-align: left;
  text-decoration: underline; text-decoration-color: var(--c-ink-30); text-underline-position: under;
}
.pdp-calc__use:hover { text-decoration-color: var(--c-ink); }

/* Add to basket (4.7.5) */
.pdp-buy__btn { width: 100%; }
.pdp-buy__btn.single_add_to_cart_button::after { content: none; }
.pdp-buy__btn.disabled { opacity: .4; }
/* WooCommerce appends a "View basket" link after added_to_cart; base.css styles .wc-forward at (0,2,1), so match it more specifically. The toast links to the basket instead. */
.pdp-buy__cta a.added_to_cart.wc-forward { display: none; }
.pdp-buy__error { margin-top: var(--space-3); font-size: var(--fs-14); line-height: var(--lh-ui); color: var(--c-red); }

/* Downloads and installation guide (4.7.7) */
.pdp-files__box { display: flex; align-items: flex-start; }
.pdp-files__icon { flex-shrink: 0; margin-right: 9px; padding-top: 5px; color: var(--c-sage-light); }
.pdp-files__icon .icon { width: 15px; height: 15px; }
.pdp-files__details { flex: 1; min-width: 0; margin-bottom: 10px; }
.pdp-files__summary {
  display: flex; align-items: center; padding-bottom: 5px;
  font-size: var(--fs-16); line-height: var(--lh-body); cursor: pointer; list-style: none;
}
.pdp-files__summary::-webkit-details-marker { display: none; }
.pdp-files__summary::after {
  content: ""; margin-left: 12px;
  border-top: 9px solid var(--c-ink); border-left: 5.5px solid transparent; border-right: 5.5px solid transparent;
}
.pdp-files__list { margin-top: var(--space-1); }
.pdp-files__item {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  min-height: 26px; padding: 2px 0;
  font-size: var(--fs-14); line-height: 1.3; color: var(--c-ink-60);
}
.pdp-files__item:hover { color: var(--c-ink); }
.pdp-files__arrow { flex-shrink: 0; padding: 0 5px 3px; border-bottom: 1px solid var(--c-surface-hover); line-height: 1; transition: color var(--dur-1) var(--ease); }
.pdp-files__item:hover .pdp-files__arrow { color: var(--c-sage-dark); }
.pdp-files__guide { font-size: var(--fs-16); line-height: var(--lh-body); }
.pdp-files__guide .icon { width: 16px; height: 16px; }

/* Wishlist box (4.7.8). The toggle is the plugin's .wishlist-btn. */
.use-list { padding: var(--space-4) var(--space-4) var(--space-3); background: var(--c-surface-300); font-size: var(--fs-14); line-height: var(--lh-body); }
.use-list__head { display: flex; align-items: center; font-weight: var(--fw-medium); }
.use-list__heart { width: 16px; height: auto; margin-right: 10px; color: var(--c-sage-light); }
.use-list__action { position: relative; display: inline-flex; align-items: center; margin-top: 2px; }
.use-list .wishlist-btn {
  position: static; display: inline-flex; width: auto; height: auto; padding: 0;
  border: 0; border-radius: 0; background: none; color: var(--c-ink);
}
.use-list .wishlist-btn svg { display: none; }
.use-list .wishlist-btn::after { content: ""; position: absolute; inset: -4px; }
.use-list .wishlist-btn:focus-visible { outline: 0; }
.use-list .wishlist-btn:focus-visible ~ .use-list__state { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.use-list__state {
  font-size: var(--fs-14); font-weight: var(--fw-medium); line-height: var(--lh-ui);
  text-decoration: underline; text-decoration-color: var(--c-ink-10); text-underline-position: under;
  pointer-events: none;
}
.use-list__action:hover .use-list__state { text-decoration-color: var(--c-ink); }
.use-list .wishlist-btn[aria-pressed="true"] ~ .use-list__state--add,
.use-list .wishlist-btn:not([aria-pressed="true"]) ~ .use-list__state--remove { display: none; }
.use-list:has(.wishlist-btn[aria-pressed="true"]) .use-list__heart { color: var(--c-sage-dark); }

/* Aside footer: stock, delivery, warranty (4.7.9) */
.pdp-foot { margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--c-line); }
.pdp-foot__row { display: flex; flex-wrap: wrap; align-items: flex-end; font-size: var(--fs-16); line-height: var(--lh-body); }
.pdp-stock { display: inline-flex; align-items: center; margin-right: 7px; font-weight: var(--fw-medium); color: var(--c-stock); }
.pdp-stock::before { content: ""; width: var(--stock-dot); height: var(--stock-dot); margin-right: 7px; border-radius: var(--r-round); background: currentColor; }
.pdp-stock--out { color: var(--c-ink-60); }
.pdp-foot__link { margin-right: 7px; border-bottom: 1px solid var(--c-line); transition: border-color var(--dur-1) var(--ease); }
.pdp-foot__link:hover { border-bottom-color: var(--c-ink); }

/* ---------------------------------------------------------------- Similar products (4.8) */
.pdp__similar { grid-area: similar; min-width: 0; padding-left: var(--unit); margin-right: var(--unit); }
.pdp-similar { position: relative; z-index: var(--z-float); margin-top: var(--space-40); padding-bottom: 50px; }
.pdp-similar__title { margin: 0; }
.pdp-similar__tabs { display: flex; flex-wrap: wrap; }
.pdp-similar__tab { margin-right: 30px; color: var(--c-ink-50); cursor: pointer; transition: color var(--dur-1) var(--ease); }
.pdp-similar__tab:hover, .pdp-similar__tab.is-active { color: var(--c-ink); }
.pdp-similar__panel { display: none; }
.pdp-similar__panel.is-active { display: block; margin-top: var(--space-10); }
/* Card popovers may hang below the row: clip the sides only. */
.pdp-similar__slider.swiper { overflow: visible; clip-path: inset(-24px 0 -100vh 0); }
.pdp-similar__slide { height: auto; }

/* Fallback card (only while template-parts/catalog/product-card.php is missing) */
.pdp-card__img { position: relative; display: block; aspect-ratio: 1 / 1; margin-bottom: var(--space-4); overflow: hidden; }
.pdp-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-card__sku { margin-bottom: var(--space-4); font-size: var(--fs-16); line-height: var(--lh-body); }
.pdp-card__sku span { display: block; margin-bottom: var(--space-1); font-size: var(--fs-12); line-height: 1; opacity: .3; }
.pdp-card__name { margin-bottom: var(--space-4); font-size: var(--fs-16); font-weight: var(--fw-regular); line-height: var(--lh-snug); letter-spacing: 0; }
.pdp-card__price b { font-size: var(--fs-price); }
.pdp-card__price span { font-size: var(--fs-12); font-weight: var(--fw-medium); }

/* ---------------------------------------------------------------- Lightbox (4.3.5) */
.pdp-lightbox { position: fixed; inset: 0; z-index: var(--z-modal); }
.pdp-lightbox__veil { position: absolute; inset: 0; background: var(--glass-white-80); opacity: 0; transition: opacity .3s var(--ease); }
.pdp-lightbox__box {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 5px 5px;
  opacity: 0; transform: scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pdp-lightbox.is-open .pdp-lightbox__veil { opacity: 1; }
.pdp-lightbox.is-open .pdp-lightbox__box { opacity: 1; transform: none; }
.pdp-lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 25px; pointer-events: auto; }
.pdp-lightbox__count { display: flex; align-items: baseline; flex-wrap: wrap; font-size: 18px; line-height: 1; }
.pdp-lightbox__caption { margin-left: var(--space-4); font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--c-ink-60); }
.pdp-lightbox__caption:empty { display: none; }
.pdp-lightbox__close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -10px -10px -10px 0; color: var(--c-ink); }
.pdp-lightbox__close:hover { opacity: .6; }
.pdp-lightbox__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: pan-y; }
.pdp-lightbox__figure { margin: 0; width: 100%; height: min(100%, calc(100vh - 200px)); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pdp-lightbox__img {
  width: 100%; height: 100%; object-fit: contain; pointer-events: auto;
  user-select: none; -webkit-user-drag: none;
  transition: transform .3s ease-in-out, opacity .3s ease-in-out;
}
.pdp-lightbox__img.is-instant { transition: none; }
.pdp-lightbox__nav {
  position: absolute; top: 50%; z-index: var(--z-float); transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 25px; background: var(--c-white); color: var(--c-ink);
  pointer-events: auto;
}
.pdp-lightbox__nav--prev { left: 0; }
.pdp-lightbox__nav--next { right: 0; }
.pdp-lightbox__nav .icon { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- Add-to-basket toast (4.7.6, 05 §3.1) */
.pdp-toasts {
  position: fixed; top: 20px; right: 20px; z-index: var(--z-toast);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  max-width: calc(100vw - 40px); pointer-events: none;
}
.pdp-toast {
  display: flex; align-items: stretch; width: min(360px, calc(100vw - 40px));
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--toast-bg); color: var(--c-white); box-shadow: var(--shadow-toast);
  pointer-events: auto; opacity: 0; transform: translateX(calc(100% + 24px));
  transition: opacity var(--dur-toast) var(--ease-toast), transform var(--dur-toast) var(--ease-toast), background-color var(--dur-1) var(--ease);
}
.pdp-toast.is-in { opacity: 1; transform: none; }
.pdp-toast.is-out { opacity: 0; transform: translateX(calc(100% + 24px)); transition-timing-function: ease-in; }
.pdp-toast:hover { background: var(--toast-bg-hover); }
.pdp-toast:focus-visible { outline: 2px solid var(--glass-white-60); outline-offset: 3px; }
.pdp-toast__img { flex: 0 0 88px; min-height: 88px; padding: var(--space-2); background: var(--scrim-hero); }
.pdp-toast__img img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); background: var(--c-white); }
.pdp-toast__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 14px 12px 12px; }
.pdp-toast__row { display: flex; align-items: center; gap: var(--space-2); }
.pdp-toast__row .icon { width: 22px; height: 22px; opacity: .95; }
.pdp-toast__label { font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; }
.pdp-toast__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: var(--fs-12); line-height: 1.35; color: var(--glass-white-80);
}
@media (prefers-reduced-motion: reduce) {
  .pdp-toast, .pdp-toast.is-out { transform: none; }
  .pdp-lightbox__box { transform: none; }
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1200px) {
  .pdp-product__links { display: none; }
}

/* ≤990: aside drops below the content at full width, similar products after it */
@media (max-width: 990px) {
  .pdp {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "main" "aside" "similar";
  }
  .pdp__main { padding-right: var(--unit); margin-right: 0; padding-bottom: var(--space-16); }
  .pdp__aside-inner { position: static; padding: 65px var(--unit); }
  .pdp__similar { margin: 0; padding: 145px var(--unit) 65px; }
  .pdp-similar { margin-top: 0; }
}

/* ≤767: title above the gallery, spec list below it, thumbnail strip scrolls */
@media (max-width: 767px) {
  .pdp-product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "title" "gallery" "info";
  }
  .pdp-product__title { margin: 0 0 25px; }
  .pdp-info { margin: 0; padding-top: 30px; max-width: none; }
  .pdp-gallery__dl { right: 15px; bottom: 15px; }
  .pdp-gallery__footer { margin-top: var(--space-5); margin-right: calc(-1 * var(--unit)); }
  .pdp-gallery__thumbs { display: flex; overflow-x: auto; gap: 0; scrollbar-width: none; }
  .pdp-gallery__thumbs::-webkit-scrollbar { display: none; }
  .pdp-gallery__thumbs .pdp-gallery__thumb-item { display: block !important; flex: 0 0 55px; width: 55px; margin-right: var(--space-1); }
  .pdp-gallery__thumb::before { inset: -3px; border-width: 1px; }
  .pdp-gallery__more { display: none; }
  .pdp__aside-inner { padding: 40px var(--unit); }
  .pdp-foot { margin-top: var(--space-2); }
  .pdp-lightbox__bar { padding: 20px 15px; }
}

@media (max-width: 500px) {
  .pdp-specs__value, .pdp-desc__text { font-size: 18px; }
  .pdp__similar { padding-top: 125px; }
  .pdp-similar__slider.swiper { margin-right: calc(-1 * var(--unit)); }
  .pdp-similar__tabs { flex-direction: column; align-items: flex-start; }
  .pdp-similar__tab + .pdp-similar__tab { margin-top: 10px; }
}
