/* Карточка товара (Figma «Карточка товара — редизайн»). Токены — те же, что в catalog.css
   («ArtDveri / Color»). Кнопки .ad-btn, крошки .ad-crumbs и карточки .ad-card — из catalog.css. */

.ad-pdp {
  --ad-primary: #FBB917;
  --ad-primary-hover: #EDB021;
  --ad-primary-soft: #FFF4D6;
  --ad-ink: #1C222A;
  --ad-dark: #393939;
  --ad-muted: #6A655D;
  --ad-subtle: #959EA9;
  --ad-border: #E6E6E6;
  --ad-surface: #F5F5F3;
  --ad-white: #FFFFFF;
  --ad-sale: #FF5268;
  --ad-radius-sm: 6px;
  --ad-radius-md: 10px;
  --ad-radius-lg: 16px;
  --ad-focus: 0 0 0 3px rgba(251, 185, 23, .55);

  background: var(--ad-surface);
  color: var(--ad-ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 20px;
  padding: 24px 0 64px;
}

.ad-pdp *, .ad-pdp *::before, .ad-pdp *::after { box-sizing: border-box; }
.ad-pdp h1, .ad-pdp h2, .ad-pdp p, .ad-pdp dl, .ad-pdp dd, .ad-pdp fieldset, .ad-pdp legend { margin: 0; }
.ad-pdp ul { list-style: none; margin: 0; padding: 0; }
.ad-pdp fieldset { border: 0; padding: 0; min-width: 0; }
.ad-pdp legend { padding: 0; float: none; width: auto; margin-bottom: 0; font-size: inherit; line-height: inherit; }
.ad-pdp a { color: inherit; text-decoration: none; }
.ad-pdp button { font: inherit; }
.ad-pdp :focus-visible { outline: none; box-shadow: var(--ad-focus); }
.ad-pdp .woocommerce-Price-currencySymbol { font-weight: inherit; }

.ad-pdp__container { max-width: 1440px; margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; gap: 24px; }
.ad-pdp .ad-crumbs__item[aria-current="page"] { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }

/* ---------- верх: галерея + покупка ---------- */

.ad-pdp__main { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 24px; align-items: start; }

.ad-pdp__gallery {
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 16px; padding: 32px;
  background: var(--ad-white); border-radius: var(--ad-radius-lg);
}
.ad-gallery__stage { position: relative; display: flex; align-items: center; justify-content: center; height: min(696px, 70vh); }
.ad-pdp--furniture .ad-gallery__stage { height: min(520px, 60vh); }
.ad-gallery__stage--empty { color: var(--ad-subtle); background: var(--ad-surface); border-radius: var(--ad-radius-md); }
.ad-gallery__slide { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ad-gallery__slide[hidden] { display: none; }
.ad-gallery__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ad-gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--ad-border); border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ad-ink); cursor: pointer;
}
.ad-gallery__arrow:hover { border-color: var(--ad-ink); }
.ad-gallery__arrow--prev { left: 0; }
.ad-gallery__arrow--next { right: 0; }
.ad-gallery__thumbs { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.ad-gallery__thumbs::-webkit-scrollbar { display: none; }
.ad-gallery__thumb {
  flex: 0 0 72px; height: 96px; padding: 6px; cursor: pointer;
  background: var(--ad-white); border: 1px solid var(--ad-border); border-radius: var(--ad-radius-md);
}
.ad-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ad-gallery__thumb.is-active { border: 2px solid var(--ad-primary); padding: 5px; }
.ad-gallery__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.ad-gallery__pair .ad-gallery__img { width: 100%; max-height: 620px; }

.ad-pdp__buy {
  display: flex; flex-direction: column; gap: 24px; padding: 32px; min-width: 0;
  background: var(--ad-white); border-radius: var(--ad-radius-lg);
}
.ad-pdp__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: -16px; }
.ad-tag {
  display: inline-flex; padding: 4px 8px; border-radius: var(--ad-radius-sm);
  background: var(--ad-surface); color: var(--ad-dark); font-size: 12px; line-height: 16px; font-weight: 600;
}
.ad-pdp a.ad-tag:hover { background: var(--ad-primary-soft); color: var(--ad-ink); }
.ad-pdp__title { font-size: 30px; line-height: 38px; font-weight: 700; overflow-wrap: anywhere; }

/* цена */
.ad-pprice {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 32px; padding: 16px 20px;
  background: var(--ad-surface); border-radius: var(--ad-radius-md);
}
.ad-pprice__main, .ad-pprice__extra { display: flex; flex-direction: column; gap: 4px; }
.ad-pprice__label { font-size: 12px; line-height: 16px; color: var(--ad-muted); }
.ad-pprice__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ad-pprice__value { font-size: 32px; line-height: 40px; font-weight: 700; white-space: nowrap; }
.ad-pprice__value--sale { color: var(--ad-sale); }
.ad-pprice__old { color: var(--ad-subtle); font-weight: 500; white-space: nowrap; }
.ad-pprice__badge { padding: 2px 6px; border-radius: var(--ad-radius-sm); background: var(--ad-sale); color: var(--ad-white); font-size: 12px; line-height: 16px; font-weight: 600; }
.ad-pprice__old[hidden], .ad-pprice__badge[hidden] { display: none; }
.ad-pprice__secondary { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ad-dark); white-space: nowrap; }
.ad-pprice__komplekt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; text-align: right; }
.ad-pprice__komplekt-text { font-size: 12px; line-height: 16px; color: var(--ad-muted); }
.ad-pdp button.ad-link { padding: 0; background: none; border: 0; cursor: pointer; color: var(--ad-ink); }

/* опции: цвета, размеры */
.ad-option { display: flex; flex-direction: column; gap: 12px; }
.ad-option__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ad-option__title { font-weight: 600; }
.ad-option__value { color: var(--ad-muted); }
.ad-option__swatches { display: grid; grid-template-columns: repeat(auto-fill, 76px); gap: 16px 12px; }
.ad-swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 76px; text-align: center; }
.ad-swatch__img {
  display: block; width: 64px; height: 64px; overflow: hidden;
  border-radius: var(--ad-radius-md); background: var(--ad-surface); box-shadow: 0 0 0 1px var(--ad-border);
  transition: box-shadow .15s ease;
}
.ad-swatch__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-swatch__name { font-size: 12px; line-height: 16px; color: var(--ad-muted); overflow-wrap: anywhere; }
.ad-swatch:hover .ad-swatch__img { box-shadow: 0 0 0 1px var(--ad-ink); }
.ad-swatch.is-active .ad-swatch__img { box-shadow: 0 0 0 2px var(--ad-primary); }
.ad-swatch.is-active .ad-swatch__name { color: var(--ad-ink); font-weight: 600; }

/* Модель: стекло, которого нет в выбранном цвете (клик сменит цвет), «Без стекла», разница в цене */
.ad-swatch.is-unavailable .ad-swatch__img { position: relative; }
.ad-swatch.is-unavailable .ad-swatch__img img { opacity: .35; }
.ad-swatch.is-unavailable .ad-swatch__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--ad-subtle) calc(50% - 1px), var(--ad-subtle) calc(50% + 1px), transparent calc(50% + 1px));
}
.ad-swatch.is-unavailable .ad-swatch__name { color: var(--ad-subtle); }
.ad-swatch.is-empty .ad-swatch__img { display: flex; align-items: center; justify-content: center; background: var(--ad-white); color: var(--ad-dark); }
.ad-option__hint { font-size: 12px; line-height: 16px; color: var(--ad-subtle); }
.ad-option__all { display: none; }

.ad-vnotice {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 12px 16px; border-radius: var(--ad-radius-md); background: var(--ad-primary-soft); color: var(--ad-dark);
}
.ad-vnotice__undo { font-weight: 600; color: var(--ad-ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ad-vnotice__undo:hover { color: var(--ad-dark); }

/* «Нет в наличии» (макет «Нет в наличии», N1/N3) */
.ad-stock { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 13px; line-height: 18px; color: var(--ad-muted); }
.ad-stock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ad-subtle); flex: none; }
.ad-stock__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ad-dark); }
.ad-pprice--muted .ad-pprice__value,
.ad-pprice--muted .ad-pprice__secondary { color: var(--ad-muted); }
.ad-stocknote { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: var(--ad-radius-md); background: var(--ad-surface); }
.ad-stocknote__text { margin: 0; font-size: 14px; line-height: 20px; color: var(--ad-dark); }
.ad-stocknote__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-stocknote__chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--ad-border); border-radius: 999px; background: var(--ad-white); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ad-ink); text-decoration: none; transition: border-color .15s ease; }
.ad-stocknote__chip:hover { border-color: var(--ad-ink); }
.ad-stocknote__chip:focus-visible { outline: none; box-shadow: var(--ad-focus); }
.ad-stocknote__chip--more { color: var(--ad-muted); }
.ad-pdp__cta-hint { margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--ad-muted); }

/* пока грузится соседний вариант */
.ad-pdp.is-switching .ad-pdp__buy, .ad-pdp.is-switching .ad-pdp__gallery { opacity: .55; transition: opacity .15s ease .1s; pointer-events: none; }

.ad-vsheet__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; padding-top: 16px; }
.ad-vsheet__grid .ad-swatch { width: auto; }

.ad-option__sizes { display: flex; flex-wrap: wrap; gap: 12px; }
.ad-size { position: relative; cursor: pointer; }
.ad-size__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-size__label {
  display: inline-flex; padding: 8px 16px; border-radius: var(--ad-radius-md);
  background: var(--ad-white); box-shadow: inset 0 0 0 1px var(--ad-border); font-weight: 500; white-space: nowrap;
  transition: box-shadow .15s ease, background-color .15s ease;
}
.ad-size:hover .ad-size__label { box-shadow: inset 0 0 0 1px var(--ad-ink); }
.ad-size__input:checked + .ad-size__label { background: var(--ad-primary-soft); box-shadow: inset 0 0 0 2px var(--ad-primary); }
.ad-size__input:focus-visible + .ad-size__label { box-shadow: inset 0 0 0 2px var(--ad-primary), var(--ad-focus); }

/* кнопки */
.ad-pdp__form { margin: 0; }
.ad-pdp__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ad-pdp__cta .ad-btn { min-height: 48px; }
.ad-pdp__cart { flex: 1 1 220px; }
.ad-pdp .single_add_to_cart_button.loading { opacity: .6; pointer-events: none; }

/* ключевые характеристики в правой колонке (входные, фурнитура) */
.ad-pdp__key-specs { display: flex; flex-direction: column; gap: 4px; }
.ad-pdp__h3 { font-size: 18px; line-height: 24px; font-weight: 600; margin-bottom: 4px; }
.ad-pdp__key-specs .ad-link { align-self: flex-start; margin-top: 8px; }

/* таблица характеристик */
.ad-specs { display: flex; flex-direction: column; }
.ad-specs__row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ad-border); }
.ad-specs dt { color: var(--ad-muted); font-weight: 400; }
.ad-specs dd { font-weight: 500; overflow-wrap: anywhere; }

/* преимущества */
.ad-benefits { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.ad-benefits__item { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ad-dark); }
.ad-benefits__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ad-primary-soft); color: var(--ad-ink); }
.ad-benefits__icon img { width: 16px; height: 16px; object-fit: contain; }

/* ---------- описание / комплект поставки / характеристики ---------- */

.ad-pdp__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 24px; align-items: start; }
.ad-pdp__info-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ad-pdp__info-col:only-child { grid-column: 1 / -1; }
.ad-section { padding: 32px; background: var(--ad-white); border-radius: var(--ad-radius-lg); }
.ad-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: default; }
.ad-section__head::-webkit-details-marker { display: none; }
.ad-section__head .ad-icon { display: none; transition: transform .2s ease; }
.ad-section[open] .ad-section__head .ad-icon { transform: rotate(180deg); }
.ad-section__title { font-size: 24px; line-height: 32px; font-weight: 700; }
.ad-section__body { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ad-pdp__text { color: var(--ad-dark); }
.ad-pdp__text p + p { margin-top: 12px; }
.ad-pdp__text ul { list-style: disc; padding-left: 20px; }
.ad-pdp__muted { color: var(--ad-muted); }
.ad-delivery { display: flex; flex-direction: column; gap: 8px; }
.ad-delivery li { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }
.ad-pdp__note { padding: 12px 16px; border-radius: var(--ad-radius-md); background: var(--ad-primary-soft); font-size: 12px; line-height: 16px; color: var(--ad-dark); }
.ad-pdp__construct { display: block; width: 100%; height: auto; margin-top: 8px; }

/* ---------- похожие товары ---------- */

.ad-pdp__similar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ad-pdp__similar-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ad-pdp__similar-nav { display: flex; gap: 8px; }
.ad-pdp__similar-nav .ad-icon-btn:disabled { opacity: .4; cursor: default; }
.ad-pdp__similar-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.ad-pdp__similar-track::-webkit-scrollbar { display: none; }
.ad-pdp__similar-track .ad-card { scroll-snap-align: start; }
.ad-pdp .ad-card__img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8px; }
.ad-pdp .ad-card__placeholder { color: var(--ad-subtle); }

/* ---------- липкая панель (телефон) ---------- */

.ad-pdp__sticky { display: none; }

/* ---------- окно «Изменить комплект» ---------- */

.ad-kdrawer { position: fixed; inset: 0; z-index: 1200; }
.ad-kdrawer[hidden] { display: none; }
.ad-kdrawer__backdrop { position: absolute; inset: 0; background: rgba(28, 34, 42, .55); opacity: 0; transition: opacity .2s ease; }
.ad-kdrawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(600px, 100%);
  display: flex; flex-direction: column; background: var(--ad-white); color: var(--ad-ink);
  transform: translateX(100%); transition: transform .25s cubic-bezier(.32, .72, 0, 1);
}
.ad-kdrawer.is-open .ad-kdrawer__backdrop { opacity: 1; }
.ad-kdrawer.is-open .ad-kdrawer__panel { transform: none; }
.ad-kdrawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 32px; border-bottom: 1px solid var(--ad-border); }
.ad-kdrawer__title { font-size: 24px; line-height: 32px; font-weight: 700; }
.ad-kdrawer__sub { font-size: 12px; line-height: 16px; color: var(--ad-muted); margin-top: 4px; }
.ad-kdrawer__close { flex-shrink: 0; border-radius: 50%; background: var(--ad-surface); border-color: var(--ad-surface); }
.ad-kdrawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 32px 16px; }
.ad-kdrawer__group { padding: 16px 0 4px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ad-muted); }
.ad-kdrawer__foot { display: flex; flex-direction: column; gap: 16px; padding: 24px 32px; border-top: 1px solid var(--ad-border); }
.ad-kdrawer__total { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; }
.ad-kdrawer__total b { font-size: 24px; line-height: 32px; font-weight: 700; }
.ad-kdrawer__error { color: var(--ad-sale); font-size: 12px; line-height: 16px; font-weight: 600; }
.ad-kdrawer__error[hidden] { display: none; }
.ad-kdrawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-kdrawer__actions .ad-btn { min-height: 48px; }

.ad-krow { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ad-border); }
.ad-krow:has(.ad-krow__thumb) { grid-template-columns: 48px minmax(0, 1fr) auto 96px; }
.ad-krow__thumb { width: 48px; height: 48px; border-radius: var(--ad-radius-sm); box-shadow: inset 0 0 0 1px var(--ad-border); overflow: hidden; background: var(--ad-white); }
.ad-krow__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ad-krow__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ad-krow__title { font-weight: 600; overflow-wrap: anywhere; }
.ad-krow__unit { font-size: 12px; line-height: 16px; color: var(--ad-muted); }
.ad-krow__sum { font-weight: 600; text-align: right; white-space: nowrap; }
.ad-krow.is-empty .ad-krow__text, .ad-krow.is-empty .ad-krow__sum { opacity: .7; }

.ad-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ad-border); border-radius: var(--ad-radius-md); background: var(--ad-white); }
.ad-stepper__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; background: none; color: var(--ad-ink); cursor: pointer; border-radius: var(--ad-radius-md); }
.ad-stepper__btn:hover { background: var(--ad-surface); }
.ad-stepper__btn:disabled { color: var(--ad-subtle); cursor: default; background: none; }
.ad-stepper__input { width: 48px; height: 36px; border: 0; background: none; text-align: center; font: inherit; font-weight: 600; color: var(--ad-ink); padding: 0; }

/* ---------- адаптив ---------- */

@media (max-width: 1279.98px) {
  .ad-pdp__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ad-pdp__info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ad-pdp__similar-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
}

@media (max-width: 1023.98px) {
  .ad-pdp__container { padding: 0 24px; }
  .ad-pdp__main, .ad-pdp__info { grid-template-columns: minmax(0, 1fr); }
  .ad-pdp__gallery { position: static; }
  .ad-gallery__stage { height: 520px; }
  .ad-pdp__similar-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}

@media (max-width: 767.98px) {
  .ad-pdp { padding: 12px 0 96px; }
  .ad-pdp__container { padding: 0 16px; gap: 16px; }
  .ad-pdp .ad-crumbs__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .ad-pdp .ad-crumbs__list::-webkit-scrollbar { display: none; }
  .ad-pdp .ad-crumbs__item[aria-current="page"] { display: none; }

  .ad-pdp__gallery { padding: 16px; }
  .ad-gallery__stage { height: 400px; }
  .ad-gallery__arrow { display: none; }
  .ad-gallery__thumbs { justify-content: center; gap: 8px; }
  .ad-gallery__thumb { flex: 0 0 auto; width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--ad-border); }
  .ad-gallery__thumb img { display: none; }
  .ad-gallery__thumb.is-active { width: 20px; padding: 0; border: 0; border-radius: 4px; background: var(--ad-primary); }
  .ad-gallery__pair .ad-gallery__img { max-height: 380px; }

  .ad-pdp__buy { padding: 16px; gap: 20px; }
  .ad-pdp__tags { margin-bottom: -12px; }
  .ad-pdp__title { font-size: 22px; line-height: 28px; }
  .ad-pprice { padding: 12px 16px; gap: 8px 24px; }
  .ad-pprice__value { font-size: 24px; line-height: 32px; }
  .ad-pprice__komplekt { width: 100%; align-items: flex-start; text-align: left; margin-left: 0; }
  .ad-option__swatches { display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .ad-option__swatches::-webkit-scrollbar { display: none; }
  .ad-swatch { flex: 0 0 76px; scroll-snap-align: start; }
  .ad-option__head { flex-wrap: nowrap; }
  .ad-option__value, .ad-option__hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ad-option__hint { display: none; }
  .ad-option__all {
    display: inline-flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; padding: 0;
    background: none; border: 0; cursor: pointer; color: var(--ad-ink);
    font-size: 12px; line-height: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  }
  .ad-vsheet .ad-kdrawer__panel { height: auto; max-height: 92vh; }
  .ad-vnotice { font-size: 12px; line-height: 16px; }
  .ad-option__sizes { gap: 8px; }
  .ad-pdp__cta { flex-direction: column; }
  .ad-pdp__cta .ad-btn { width: 100%; flex: none; }
  .ad-benefits { flex-direction: column; gap: 8px; }
  .ad-specs__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }

  .ad-section { padding: 16px; }
  .ad-section__head { cursor: pointer; }
  .ad-section__head .ad-icon { display: block; }
  .ad-section__title { font-size: 18px; line-height: 24px; font-weight: 600; }
  .ad-pdp__info { gap: 0; background: var(--ad-white); border-radius: var(--ad-radius-lg); }
  .ad-pdp__info-col { gap: 0; }
  .ad-pdp__info .ad-section { border-radius: 0; background: none; }
  .ad-pdp__info .ad-section + .ad-section, .ad-pdp__info-col + .ad-pdp__info-col .ad-section { border-top: 1px solid var(--ad-border); }

  .ad-pdp__similar-nav { display: none; }
  .ad-pdp__similar-track { grid-auto-columns: 44%; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }

  .ad-pdp__sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--ad-white); box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
    transform: translateY(110%); transition: transform .2s ease;
  }
  .ad-pdp__sticky.is-visible { transform: none; }
  .ad-pdp__sticky-price { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .ad-pdp__sticky-value { font-size: 18px; line-height: 24px; font-weight: 700; white-space: nowrap; }
  .ad-pdp__sticky-price.is-muted .ad-pdp__sticky-value { color: var(--ad-muted); }
  .ad-stocknote__chip { min-height: 40px; }

  .ad-kdrawer__panel { top: auto; height: min(92vh, 100%); width: 100%; border-radius: var(--ad-radius-lg) var(--ad-radius-lg) 0 0; transform: translateY(100%); }
  .ad-kdrawer__head { padding: 16px; }
  .ad-kdrawer__title { font-size: 20px; line-height: 28px; }
  .ad-kdrawer__body { padding: 0 16px 16px; }
  .ad-kdrawer__foot { padding: 16px; gap: 12px; }
  .ad-kdrawer__actions { grid-template-columns: 1fr; }
  .ad-krow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .ad-krow:has(.ad-krow__thumb) { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .ad-krow__sum { grid-column: -2 / -1; }
  .ad-krow .ad-stepper { grid-column: -2 / -1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ad-pdp *, .ad-pdp *::before, .ad-pdp *::after { transition: none !important; }
}
