/*
Theme Name: POLE Concept Store
Theme URI: https://pole-concept-store.ru
Description: Кастомная тема POLE Concept Store — дизайн концепта A+B (порт с Medusa-витрины): пунктирные линии, дисплейная гарнитура Defectica, рукописные обводки.
Author: pole dev
Version: 0.19.2
Text Domain: pole
*/

/* Шрифты — в assets/css/pole-fonts.css (оригинальные, из концепта). */

/* ===== Tokens ===== */
:root {
  --pd-black: #000;
  --pd-white: #fff;
  --pd-ink: #111;
  --pd-gray: #767676;
  --pd-line: #ccc;
  --pd-surface: #f5f5f3;
  --pd-ease: cubic-bezier(.25, .1, .25, 1);
  --pd-nav-h: 64px;
  --font-display: "Defectica", "Inter", sans-serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--pd-black);
  background: var(--pd-white);
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 600; }

.content-container { max-width: 1440px; width: 100%; margin-inline: auto; padding-inline: 24px; }
.pd-display { font-family: var(--font-display); font-weight: 400; }
.pd-dashed-b { border-bottom: 1px dashed var(--pd-line); }
.pd-dashed-t { border-top: 1px dashed var(--pd-line); }
.text-small-regular { font-size: 12px; line-height: 20px; font-weight: 400; }
.text-ui-subtle { color: var(--pd-gray); }

/* ===== Header / nav ===== */
.pd-nav-wrap { position: sticky; top: 0; inset-inline: 0; z-index: 50; }
.pd-nav {
  position: relative;
  height: var(--pd-nav-h);
  width: 100%;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pd-nav__row { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.pd-nav__links { display: none; align-items: center; gap: 24px; }
.pd-nav__link { font-size: 15px; text-transform: lowercase; }
.pd-nav__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.pd-logo { position: absolute; left: 50%; transform: translateX(-50%); display: block; }
.pd-logo img { height: 20px; width: auto; display: block; }
.pd-nav__icons { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pd-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; cursor: pointer;
}
.pd-icon-btn img { width: 20px; height: 20px; object-fit: contain; }
.pd-icon-btn__count, .pd-cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  font-size: 10px; line-height: 16px; text-align: center;
  background: var(--pd-black); color: var(--pd-white); border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.pd-cart-count:empty, .pd-cart-count[data-count="0"] { display: none; }
.pd-burger {
  display: inline-flex; align-items: center; height: 44px; padding: 0 8px;
  background: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; text-transform: lowercase;
}
.pd-mobile-menu { border-top: 1px dashed var(--pd-line); background: var(--pd-white); }
.pd-mobile-menu[hidden] { display: none; }
.pd-mobile-menu a { display: block; padding: 14px 24px; font-size: 17px; text-transform: lowercase; border-bottom: 1px dashed var(--pd-line); }
@media (min-width: 1024px) {
  .pd-nav__links { display: flex; }
  .pd-burger, .pd-mobile-menu { display: none; }
}

/* ===== Hero (video) ===== */
.pd-hero { margin-top: calc(-1 * var(--pd-nav-h)); }
.pd-hero__video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--pd-surface); }

/* ===== ≤600px (телефон): шапка в две строки + видео во весь экран =====
   Лого уходит под строку «меню + иконки» (иначе заходит на иконки),
   иконки теснее, видео героя занимает весь экран телефона. */
@media (max-width: 600px) {
  :root { --pd-nav-h: 80px; }
  .pd-nav { height: auto; }
  .pd-nav__row { flex-wrap: wrap; height: auto; padding-top: 4px; }
  .pd-logo {
    position: static; transform: none; order: 10; flex-basis: 100%;
    display: flex; justify-content: center; padding: 2px 0 10px;
  }
  .pd-logo img { width: 100%; height: auto; }
  .pd-nav__icons { gap: 0; margin-right: -8px; }
  .pd-icon-btn { width: 40px; }
  .pd-burger { margin-left: -8px; }
  .pd-hero__video { height: 100vh; height: 100svh; aspect-ratio: auto; }
}

/* ===== Marquee ===== */
.pd-marquee { border-block: 1px dashed var(--pd-line); overflow: hidden; white-space: nowrap; padding-block: 14px; user-select: none; }
.pd-marquee__track { display: inline-flex; gap: 48px; padding-right: 48px; animation: pdScroll 26s linear infinite; }
.pd-marquee:hover .pd-marquee__track { animation-play-state: paused; }
.pd-marquee__item { font-family: var(--font-display); font-size: clamp(18px, 2vw, 28px); text-transform: lowercase; display: inline-flex; align-items: center; gap: 48px; }
.pd-marquee__item::after {
  content: "";
  display: inline-block;
  width: 27px;
  height: 14px;
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTQiIGhlaWdodD0iMjciIHZpZXdCb3g9IjAgMCA1NCAyNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuNSA4LjEyMzYyTDAuNTAwMjY1IDguMTIzNTdDOS42MDQzOSA2LjM1MzMyIDE4LjcwODUgNC41ODMwOCAyNS4xNjg3IDMuMzc2MUMzMS42MjkgMi4xNjkxIDM1LjE2OTYgMS41NzkwMSAzNy40NTcxIDEuMTQ4NThDMzkuNzQ0NyAwLjcxODE0NyA0MC42NzE5IDAuNDY1MjUzIDQwLjg5NjcgMC41MDM1N0M0Mi41MjY0IDAuNzgxMzUxIDM2LjQ1MTkgMi41ODAzNyAzMS44NTY0IDQuNDEwNjdDMjcuOTM1NyA1Ljk3MjE4IDI0LjYwOTMgNy43Nzg3NiAyMi4yNzMyIDguNzEyNDNDMTkuOTQ1MiA5LjY0Mjg4IDE3LjU0MzYgMTAuOTI4NSAxMy45NDA1IDEyLjQ1MzVDOC40Njg0MSAxNC43Njk1IDQuOTMyMDUgMTYuODA2MyA0Ljg0MTM2IDE3LjE4OTVDNC41MTE0MiAxOC41ODM2IDguMDcxNTEgMTcuMjM1NSAxNi4wOTAxIDE1LjkyNzZDMjMuNDM4NCAxNC43MjkgMzcuNDI3NyAxMi4zNDM2IDQ0Ljg0NzMgMTEuMTI3N0M1Mi4yNjY4IDkuOTExNzYgNTIuNjg4MyA5LjkxMTc2IDUyLjczNjggOS45NTM5MUM1Mi43ODUzIDkuOTk2MDYgNTIuNDQ4MSAxMC4wODA0IDQ3LjM4NTEgMTIuMTA0OEM0Mi4zMjIxIDE0LjEyOTIgMzIuNTQzNSAxOC4wOTEyIDI3LjY3NDcgMjAuMTc0NEMyMi44MDU4IDIyLjI1NzYgMjMuMTQzIDIyLjM0MTkgMjUuMjEzNCAyMi4zODUzQzMxLjA3NjEgMjIuNTA4MyAzNS45OTcyIDIyLjI2MDIgMzkuMjU4IDIyLjAwNDdDNDEuNTAyMSAyMS44Mjg5IDQ0Ljk2MzUgMjEuOTE3OSA0Ni41MzMyIDIyLjA4NjVDNDguMTAzIDIyLjI1NTEgNDcuNjgxNSAyMi41OTIzIDQ3LjE2OTMgMjIuODUwM0M0NC44ODA5IDI0LjAwMyA0Mi44MjU0IDI0Ljg5MzkgNDIuMTg0MiAyNS42MTY4QzQyLjEzMzEgMjUuOTE4MiA0Mi42Mzg5IDI2LjA4NjggNDQuNTQzMyAyNi4xNzM3QzQ2LjQ0NzYgMjYuMjYwNSA0OS43MzUzIDI2LjI2MDUgNTMuMTIyNSAyNi4yNjA1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZT0iYmxhY2siLz4KPC9zdmc+Cg==") no-repeat center / contain;
}
@keyframes pdScroll { to { transform: translateX(-50%); } }

/* ===== Events (афиша + зал искусства) ===== */
.pd-events { padding-block: clamp(18px, 2.4vw, 32px); }
.pd-events__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .pd-events__row { grid-template-columns: 1.4fr 1fr; gap: 24px; } }
.pd-event {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  min-height: 132px; padding: 20px 22px;
  border: 1px solid var(--pd-black);
  transition: background-color .3s var(--pd-ease), color .3s var(--pd-ease);
}
.pd-event:hover { background: var(--pd-black); color: var(--pd-white); }
.pd-event__title { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 26px); line-height: 1.1; text-transform: lowercase; }
.pd-event__date { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; opacity: .7; }
.pd-event--art { flex-direction: row; align-items: center; justify-content: space-between; }
.pd-event__arrow { display: inline-flex; }
.pd-event__arrow svg { width: 27px; height: 26px; }
.pd-event:hover .pd-event__arrow path { fill: var(--pd-white); }

/* ===== Section headings ===== */
.pd-section { padding-block: clamp(40px, 5vw, 72px); }
.pd-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.pd-section__title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 56px); line-height: 1; text-transform: lowercase; font-weight: 400; margin: 0; }
.pd-link-more { font-size: 12px; line-height: 20px; text-decoration: underline; text-underline-offset: 4px; }
.pd-link-more:hover { text-decoration: none; }

/* ===== Halls (категории) ===== */
.pd-halls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); padding-top: clamp(10px, 1.4vw, 18px); }
@media (min-width: 768px) { .pd-halls { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pd-hall {
  position: relative; padding: clamp(18px, 2.4vw, 32px); aspect-ratio: 5 / 3;
  display: flex; flex-direction: column; justify-content: space-between;
}
.pd-hall:hover, .pd-hall:focus-visible { color: var(--pd-white); }
.pd-hall__idx { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .5; }
.pd-hall__name { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 34px); line-height: 1.05; text-transform: lowercase; font-weight: 400; }
/* текст над кривой заливкой */
.pd-hall__idx, .pd-hall__name { position: relative; z-index: 1; }
/* кривая обводка (svg рисует js по фактическим размерам ячейки);
   заливка по наведению — тот же контур, а не прямоугольник */
.pd-hall__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.pd-hall__fill { opacity: 0; transition: opacity .3s var(--pd-ease); }
.pd-hall:hover .pd-hall__fill,
.pd-hall:focus-visible .pd-hall__fill { opacity: 1; }
/* ≤400px: длинные слова в капс-шрифте не влезают в 2 колонки — уменьшаем кегль
   (аудит мобильного адаптива 20.10: грид раздувал страницу на 47px при 320px) */
@media (max-width: 400px) { .pd-hall__name { font-size: 14px; } }

/* ===== Product card ===== */
.pd-card { position: relative; display: block; }
.pd-card__outline {
  /* Обводка вынесена за контент карточки: между штрихом и
     картинкой/текстом остаётся небольшой воздух (~10px). */
  position: absolute; left: -10px; top: -10px; width: calc(100% + 20px); height: calc(100% + 20px); z-index: 2;
  opacity: 0; transition: opacity .35s var(--pd-ease); pointer-events: none;
}
.pd-card__media { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; margin-bottom: 8px; }
.pd-card__media img { width: 100%; height: 100%; object-fit: contain; }
.pd-card__inner { display: block; transition: transform .35s var(--pd-ease); }
.pd-card:hover .pd-card__inner,
.pd-card:focus-visible .pd-card__inner { transform: scale(0.97); }
.pd-card:hover .pd-card__outline,
.pd-product:hover .pd-card__outline,
.pd-card:focus-visible .pd-card__outline { opacity: 1; }
.pd-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 6px 14px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--pd-black); color: var(--pd-white);
}
.pd-card__title {
  display: block; font-family: var(--font-display);
  font-size: 14px; line-height: 1.3; letter-spacing: .01em;
}
.pd-card__brand { display: block; font-size: 12px; color: var(--pd-gray); margin-top: 2px; }
.pd-card__price {
  display: block; margin-top: 4px;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.pd-card__price del { color: var(--pd-gray); font-weight: 400; margin-right: 6px; }
.pd-card__price ins { text-decoration: none; }

/* ===== Arrivals grid ===== */
.pd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 1024px) { .pd-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; } }

/* ===== Manifesto + counters ===== */
.pd-manifesto { background: var(--pd-black); color: var(--pd-white); padding-block: clamp(40px, 5vw, 72px); }
.pd-manifesto__text { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.8vw, 56px); line-height: 1.15; max-width: 20ch; margin: 0 0 36px; }
.pd-stats { display: grid; grid-template-columns: 1fr; gap: 32px; border-top: 1px dashed rgba(255, 255, 255, .25); padding-top: 32px; }
@media (min-width: 768px) { .pd-stats { grid-template-columns: repeat(3, 1fr); } }
.pd-stat__num { font-family: var(--font-display); font-size: clamp(32px, 4vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; }
.pd-stat__cap { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: #999; margin-top: 10px; }

/* ===== USP ===== */
.pd-usp {
  display: grid; grid-template-columns: 48px 1fr; gap: 8px 16px; align-items: baseline;
  padding-block: clamp(18px, 2.4vw, 30px); border-bottom: 1px dashed var(--pd-line);
  transition: padding-left .3s var(--pd-ease);
}
.pd-usp:hover { padding-left: 14px; }
.pd-usp__num { grid-row: span 2; font-size: 13px; color: var(--pd-gray); }
.pd-usp__title { font-family: var(--font-display); font-size: clamp(18px, 2vw, 28px); text-transform: lowercase; font-weight: 400; }
.pd-usp__text { font-size: 14px; font-weight: 300; color: var(--pd-ink); }
@media (min-width: 768px) { .pd-usp { grid-template-columns: 64px 1fr 1.2fr; } }

/* ===== Footer ===== */
.pd-footer { }
.pd-footer__cols { display: flex; flex-direction: column; gap: 40px; padding-block: 48px; }
@media (min-width: 768px) { .pd-footer__cols { flex-direction: row; justify-content: space-between; } }
.pd-footer__brand { max-width: 34ch; }
.pd-footer__logo { font-size: 24px; letter-spacing: .02em; text-transform: lowercase; }
.pd-footer__addr { margin-top: 16px; font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--pd-gray); }
.pd-footer__addr a:hover { text-decoration: underline; }
.pd-footer__col-title { display: block; margin-bottom: 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--pd-gray); }
.pd-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd-footer__menu a { font-size: 15px; text-transform: lowercase; }
.pd-footer__menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pd-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: 13px; color: var(--pd-gray); }
.pd-pay { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.pd-pay li { border: 1px solid var(--pd-line); padding: 4px 10px; font-size: 11px; letter-spacing: .05em; }

/* ===== Catalog / archive ===== */
.pd-archive-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 56px); line-height: 1; text-transform: lowercase; margin: clamp(18px, 2.5vw, 32px) 0 28px; }
ul.products.pd-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 0 0 40px; padding: 0; list-style: none; }
@media (min-width: 1024px) { ul.products.pd-products { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
ul.products.pd-products::before, ul.products.pd-products::after { display: none; }
ul.products.pd-products li.product { float: none; width: auto; margin: 0; padding: 0; position: relative; }
.woocommerce-result-count { color: var(--pd-gray); font-size: 13px; }
.woocommerce-pagination ul { display: flex; gap: 8px; list-style: none; padding: 0 0 40px; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--pd-line); }
.woocommerce-pagination .current { background: var(--pd-black); color: var(--pd-white); border-color: var(--pd-black); }

/* ===== PDP (карточка товара) ===== */
.pdp-scope {
  --line: var(--pd-line);
  --line-dashed: 1px dashed var(--line);
  --surface: var(--pd-surface);
  --t-fast: 180ms;
  --radius-pill: 200px;
}
.pdp-scope .breadcrumbs { font-size: 13px; color: var(--pd-gray); margin-bottom: clamp(12px, 2vw, 24px); padding-top: 20px; }
.pdp-scope .breadcrumbs a:hover { color: var(--pd-black); }
.pdp-scope .pdp { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; padding-bottom: clamp(24px, 3vw, 48px); }
@media (min-width: 900px) { .pdp-scope .pdp { grid-template-columns: 1.05fr .95fr; } }
.pdp-scope .pdp__main { aspect-ratio: 1 / 1; background: var(--surface); overflow: hidden; margin-bottom: 12px; }
.pdp-scope .pdp__main img { width: 100%; height: 100%; object-fit: contain; }
.pdp-scope .pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pdp-scope .pdp__thumb { aspect-ratio: 1 / 1; background: var(--surface); overflow: hidden; border: 1px solid transparent; padding: 0; cursor: pointer; }
.pdp-scope .pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-scope .pdp__thumb.selected { border-color: var(--pd-black); }
.pdp-scope .pdp__title { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: clamp(30px, 3.4vw, 52px); margin: 10px 0 18px; }
.pdp-scope .pdp__price { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 0 0 4px; }
.pdp-scope p.stock { font-size: 14px; margin: 0 0 14px; }
.pdp-scope .pdp__avail { font-size: 14px; margin: 0 0 14px; }
.pdp-scope .pdp__avail .pd-badge { position: static; display: inline-block; }
.pdp-scope .pdp__desc { font-size: 15px; font-weight: 300; line-height: 1.6; margin: 0 0 24px; max-width: 56ch; }
.pdp-scope .buybox { margin-bottom: 22px; }
.pdp-scope .buybox form.cart { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.pdp-scope .qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.pdp-scope .qty button { width: 44px; height: 44px; font-size: 18px; border: 0; background: none; cursor: pointer; transition: background-color var(--t-fast) var(--pd-ease), color var(--t-fast) var(--pd-ease); }
.pdp-scope .qty button:hover { background: var(--pd-black); color: var(--pd-white); }
.pdp-scope .qty input { width: 40px; text-align: center; border: 0; font-size: 15px; -moz-appearance: textfield; appearance: textfield; }
.pdp-scope .qty input::-webkit-outer-spin-button, .pdp-scope .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-scope .btn--solid {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 36px; font-size: 16px; font-weight: 500;
  border: 1px solid var(--pd-black); border-radius: 0; background: var(--pd-black); color: var(--pd-white);
  overflow: hidden; isolation: isolate; cursor: pointer; text-align: center; flex: 1;
  transition: color .35s var(--pd-ease);
}
.pdp-scope .btn--solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--pd-white); transform: translateY(101%);
  transition: transform .35s var(--pd-ease);
}
.pdp-scope .btn--solid:hover { color: var(--pd-black); }
.pdp-scope .btn--solid:hover::before { transform: translateY(0); }
.pdp-scope .btn--solid:disabled { opacity: .5; cursor: default; }
/* WooCommerce add-to-cart button inherits the same style */
.pdp-scope form.cart .single_add_to_cart_button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 36px; font-size: 16px; font-weight: 500;
  border: 1px solid var(--pd-black); border-radius: 0; background: var(--pd-black); color: var(--pd-white);
  overflow: hidden; isolation: isolate; cursor: pointer; text-align: center; flex: 1;
  transition: color .35s var(--pd-ease);
}
.pdp-scope form.cart .single_add_to_cart_button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--pd-white); transform: translateY(101%);
  transition: transform .35s var(--pd-ease);
}
.pdp-scope form.cart .single_add_to_cart_button:hover { color: var(--pd-black); }
.pdp-scope form.cart .single_add_to_cart_button:hover::before { transform: translateY(0); }
.pdp-scope form.cart .single_add_to_cart_button:disabled { opacity: .5; cursor: default; }
.pdp-scope .quantity { margin: 0 !important; float: none !important; display: inline-flex !important; }
.pdp-scope .quantity .qty { height: 52px; border: 0; font-size: 15px; }
/* strip default Woo noise on pdp */
.pdp-scope div.product form.cart .variations_button { margin: 0 0 22px; }
.pdp-scope .woocommerce-variation-price { margin-bottom: 12px; }
.pdp-scope .pdp__trust {
  list-style: none; margin: 0 0 28px; padding: 16px 0;
  border-top: var(--line-dashed); border-bottom: var(--line-dashed);
  display: grid; gap: 8px; font-size: 14px; font-weight: 300;
}
.pdp-scope .acc details { border-bottom: var(--line-dashed); }
.pdp-scope .acc summary {
  list-style: none; cursor: pointer; text-transform: uppercase; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-size: 19px; padding-block: 18px; min-height: 44px; font-weight: 400;
}
.pdp-scope .acc summary::-webkit-details-marker { display: none; }
.pdp-scope .acc summary::after { content: "+"; font-family: var(--font-ui); font-size: 22px; font-weight: 300; color: var(--pd-gray); transition: transform var(--t-fast) var(--pd-ease); }
.pdp-scope .acc details[open] summary::after { transform: rotate(45deg); }
.pdp-scope .acc__body { padding-bottom: 20px; font-size: 14px; font-weight: 300; line-height: 1.6; max-width: 60ch; }
.pdp-scope .acc__body p { margin: 0 0 10px; }
.pdp-scope .acc__body p:last-child { margin-bottom: 0; }
.pdp-scope .specs { width: 100%; border-collapse: collapse; }
.pdp-scope .specs td { padding: 7px 0; vertical-align: top; }
.pdp-scope .specs tr + tr td { border-top: var(--line-dashed); }
.pdp-scope .specs td:first-child { color: var(--pd-gray); width: 40%; }

/* ===== Custom cursor ===== */
.pd-cursor {
  position: fixed; z-index: 100; top: 0; left: 0; width: 14px; height: 14px;
  background: var(--pd-white); border-radius: 50%; pointer-events: none;
  mix-blend-mode: difference;
  transition: width .25s var(--pd-ease), height .25s var(--pd-ease);
  display: none;
}
.pd-cursor--big { width: 56px; height: 56px; }
@media (hover: hover) and (pointer: fine) { .pd-cursor { display: block; } }

/* ===== Static pages / fallback ===== */
.pd-page { padding-block: clamp(24px, 3vw, 48px); }
.pd-page h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 48px); text-transform: lowercase; }
.pd-page__body a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Footer logo ===== */
.pd-footer__logo-img { display: block; width: 130px; height: auto; margin-bottom: 16px; }

/* ===== Woo checkout / account / totals — стиль макета ===== */
.woocommerce form .form-row label { display: block; font-size: 13px; margin-bottom: 6px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form select,
.woocommerce-input-wrapper input[type="tel"],
.woocommerce-input-wrapper input[type="email"] {
  width: 100%; padding: 13px 16px; border: 1px solid var(--pd-black); border-radius: 0;
  background: #fff; font: inherit; min-height: 48px;
}
.woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
.select2-container--default .select2-selection--single {
  border: 1px solid var(--pd-black); border-radius: 0; height: 48px; background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px; padding: 0 16px; color: var(--pd-black);
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; right: 12px; }
.select2-dropdown { border-color: var(--pd-black); border-radius: 0; }

/* Поля чекаута в две колонки: пары по смыслу (имя+фамилия, город+область,
   индекс+телефон), широкие поля — на всю строку */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}
.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide,
.woocommerce-additional-fields .form-row { grid-column: 1 / -1; }
.woocommerce-billing-fields__field-wrapper [id^="billing_city_field"],
.woocommerce-billing-fields__field-wrapper [id^="billing_state_field"],
.woocommerce-billing-fields__field-wrapper [id^="billing_postcode_field"],
.woocommerce-billing-fields__field-wrapper [id^="billing_phone_field"],
.woocommerce-shipping-fields__field-wrapper [id^="shipping_city_field"],
.woocommerce-shipping-fields__field-wrapper [id^="shipping_state_field"],
.woocommerce-shipping-fields__field-wrapper [id^="shipping_postcode_field"],
.woocommerce-shipping-fields__field-wrapper [id^="shipping_phone_field"],
.woocommerce-shipping-fields__field-wrapper [id^="shipping_address_1_field"],
.woocommerce-shipping-fields__field-wrapper [id^="shipping_address_2_field"] { grid-column: auto; }
@media (max-width: 600px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* «Ваш заказ»: строки-флекс — название широкое, цена у правого края,
   доставка в одну строку со словом «Доставка» */
.checkout-layout__aside .woocommerce-checkout-review-order-table,
.checkout-layout__aside .woocommerce-checkout-review-order-table > thead,
.checkout-layout__aside .woocommerce-checkout-review-order-table > tbody,
.checkout-layout__aside .woocommerce-checkout-review-order-table > tfoot {
  display: block; width: 100%;
}
.checkout-layout__aside .woocommerce-checkout-review-order-table tr {
  display: flex; width: 100%; align-items: baseline; gap: 10px;
}
.checkout-layout__aside .woocommerce-checkout-review-order-table th,
.checkout-layout__aside .woocommerce-checkout-review-order-table td { display: block; }
.checkout-layout__aside .woocommerce-checkout-review-order-table th.product-name,
.checkout-layout__aside .woocommerce-checkout-review-order-table td.product-name { flex: 1 1 auto; }
.checkout-layout__aside .woocommerce-checkout-review-order-table th.product-total,
.checkout-layout__aside .woocommerce-checkout-review-order-table td.product-total {
  flex: 0 0 auto; text-align: right !important; white-space: nowrap;
}
.checkout-layout__aside #order_review ul#shipping_method,
.summary .cart_totals ul#shipping_method { padding-left: 0; margin: 0; list-style: none; }
.checkout-layout__aside #order_review ul#shipping_method li { border: 0; padding: 0; margin: 0; }
.checkout-layout__aside #order_review tr.shipping td { font-size: 13px; }
.checkout-layout__aside #order_review ul#shipping_method li label { font-size: 13px !important; }

/* PW Gift Card: одинаковый вид на корзине и чекауте (48px, в одну строку) */
#pwgc-redeem-form, #pwgc-redeem-gift-card-container {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px;
}
#pwgc-redeem-form { margin: 14px 0 0; }
#pwgc-redeem-form label, #pwgc-redeem-gift-card-container label {
  flex-basis: 100%; font-size: 14px; margin: 0 0 2px;
}
#pwgc-redeem-error { flex-basis: 100%; }
#pwgc-redeem-form br, #pwgc-redeem-gift-card-container br { display: none; }
#pwgc-redeem-gift-card-number {
  flex: 1 1 auto; width: auto !important; max-width: 100%;
  height: 48px !important; min-height: 48px !important; max-height: 48px !important;
  box-sizing: border-box !important;
  padding: 0 14px !important; margin: 0 !important;
  border: 1px solid var(--pd-line) !important; border-radius: 0 !important;
  background: #fff; font: inherit; font-size: 14px;
}
#pwgc-redeem-button {
  height: 48px !important; box-sizing: border-box;
  padding: 0 22px !important; margin: 0 !important;
  border: 1px solid var(--pd-black) !important; border-radius: 0 !important;
  background: var(--pd-black) !important; color: #fff !important;
  font: inherit; font-size: 14px; line-height: 1;
  cursor: pointer; display: inline-block !important;
}
#pwgc-redeem-button:hover { background: #fff; color: var(--pd-black); }

/* Кнопка подтверждения заказа: белый текст всегда
   (инлайн-CSS страницы красит её в чёрный по чёрному) */
#place_order { color: #fff !important; }
#place_order:hover { color: #fff !important; }

/* Сетку чекаута держит .checkout-layout (pole-inner.css) — form.checkout гридом НЕ делаем */
form.checkout .col2-set, form.checkout .col-1, form.checkout .col-2 { width: auto !important; float: none !important; }
#order_review { border: 0; padding: 0; }
#order_review table.shop_table { width: 100%; border-collapse: collapse; border: 0; }
#order_review table.shop_table td, #order_review table.shop_table th {
  border: 0; padding: 10px 0; text-align: left; font-weight: 400;
}
#order_review table.shop_table tr + tr td { border-top: 1px dashed var(--pd-line); }
#order_review .order-total td, #order_review .order-total th { font-weight: 600; font-size: 17px; }
#place_order {
  width: 100%; min-height: 52px; margin-top: 16px;
  background: var(--pd-black); color: var(--pd-white); border: 1px solid var(--pd-black);
  font-size: 16px; font-weight: 500; cursor: pointer;
}
#place_order:hover { background: #222; }

/* Методы доставки и оплаты — карточки выбора */
ul#shipping_method li, .wc_payment_method {
  list-style: none; border: 1px dashed var(--pd-line); padding: 14px 16px; margin-bottom: 10px;
}
ul#shipping_method { margin-left: 0; }
.wc_payment_method > label { font-weight: 500; cursor: pointer; }
.payment_box { font-size: 13px; color: var(--pd-gray); margin-top: 8px; }
.woocommerce-privacy-policy-text p { font-size: 13px; color: var(--pd-gray); }

/* Таблица итогов корзины — как summary в макете */
.cart_totals table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.cart_totals td, .cart_totals th { padding: 10px 0; border: 0; text-align: left; font-weight: 400; }
.cart_totals tr + tr td, .cart_totals tr + tr th { border-top: 1px dashed var(--pd-line); }
.cart_totals .order-total td, .cart_totals .order-total th { font-weight: 600; font-size: 17px; border-top: 1px dashed var(--pd-line); }
.cart_totals .wc-proceed-to-checkout { padding: 0; }
.pd-cart-update { display: none; }
.woocommerce-message { border-top-color: var(--pd-black); }
.woocommerce-info { border-top-color: var(--pd-line); }

/* Аккаунт */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; }
.woocommerce-MyAccount-navigation li { border-bottom: 1px dashed var(--pd-line); }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 0; text-transform: lowercase; }
.woocommerce-MyAccount-navigation .is-active a { font-weight: 600; }
.woocommerce-account .woocommerce h2 { font-family: var(--font-display); font-weight: 400; }

/* ===== PDP v2 — 1:1 с продом ===== */
.pdp-crumbs { font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--pd-gray); margin: 18px 0 26px; }
.pdp-crumbs a { color: var(--pd-gray); }
.pdp-crumbs a:hover { color: var(--pd-black); }
.pdp-crumbs span { color: var(--pd-black); }
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: clamp(32px, 4vw, 64px); }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.pdp__main { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.pdp__main img { width: 100%; height: 100%; object-fit: contain; }
.pdp__zoom { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.pdp__zoom img { width: 16px; height: 16px; }
.pdp__thumbs { display: flex; gap: 14px; margin-top: 18px; }
.pdp__thumb { position: relative; width: 110px; aspect-ratio: 1; background: #fff; border: 0; padding: 12px; cursor: pointer; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp__thumb::before { content: ""; position: absolute; inset: 0; border: 1px solid transparent; pointer-events: none; }
.pdp__thumb.selected::before { border-color: var(--pd-black); }
.pdp__titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pdp__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; margin: 0; }
.pdp__wish { flex: none; margin-top: 6px; }
.pdp__wish .jet-wishlist-button__link { display: inline-flex; padding: 4px; }
.pdp__brand { font-size: 15px; letter-spacing: .02em; text-transform: uppercase; margin: 16px 0 0; }
.pdp__price { font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; margin: 20px 0 24px; }
.pdp .buybox { margin: 0 0 26px; }
.pdp .buybox form.cart { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin: 0; }
.pdp .buybox .quantity { display: inline-flex !important; align-items: stretch; border: 1px solid var(--pd-black); margin: 0 !important; float: none !important; }
.pdp .buybox .quantity.pd-qty-hidden { display: none !important; }
.pdp .buybox .quantity button.pd-qty-btn {
  width: 50px; height: auto; min-height: 54px; border: 0; background: #fff; font-size: 18px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.pdp .buybox .quantity button.pd-qty-btn:hover { background: var(--pd-black); color: var(--pd-white); }
.pdp .buybox .quantity input.qty {
  width: 52px; height: 54px; border: 0; border-left: 1px solid var(--pd-line); border-right: 1px solid var(--pd-line);
  text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; padding: 0 !important;
  -moz-appearance: textfield; appearance: textfield; background: #fff;
}
.pdp .buybox .quantity input.qty::-webkit-inner-spin-button, .pdp .buybox .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pdp form.cart { align-items: stretch; }
.pdp form.cart .single_add_to_cart_button {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  min-height: 54px !important; height: 54px !important; padding: 0 44px !important; font-size: 15px !important; font-weight: 500 !important;
  letter-spacing: .03em !important; text-transform: uppercase !important; margin: 0 !important;
  background: var(--pd-black) !important; color: var(--pd-white) !important;
  border: 1px solid var(--pd-black) !important; border-radius: 0 !important; cursor: pointer !important;
  text-decoration: none !important; line-height: 1 !important;
}
.pdp form.cart .single_add_to_cart_button:hover { background: #1f1f1f !important; color: var(--pd-white) !important; }
.pdp form.cart .single_add_to_cart_button:disabled { opacity: .5 !important; cursor: not-allowed !important; }
/* Убрать ссылку «Посмотреть корзину» из сообщений о добавлении */
.woocommerce-message .wc-forward, .woocommerce-info .wc-forward { display: none !important; }
.pdp form.cart .variations_button { margin: 0 0 22px; }
.pdp__soldout {
  display: inline-block; padding: 10px 22px; font-size: 14px; letter-spacing: .05em;
  text-transform: uppercase; border: 1px solid var(--pd-black); margin: 0 0 26px;
}
.pdp__parts { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--pd-line); }
.pdp__parts-sum { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp__parts-link { font-size: 16px; }
.pdp__desc { font-size: 15px; line-height: 1.6; margin: 18px 0 0; max-width: 60ch; }
.pdp__desc p { margin: 0 0 10px; }
.pdp__desc strong { font-weight: 600; }
.pdp__acc { margin-top: 28px; }
.pdp-acc { border-top: 1px solid var(--pd-black); }
.pdp-acc:last-child { border-bottom: 1px solid var(--pd-black); }
.pdp-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 0 4px; font-size: 14px; letter-spacing: .05em; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc__icon { font-size: 22px; font-weight: 300; transition: transform .2s var(--pd-ease); }
.pdp-acc[open] .pdp-acc__icon { transform: rotate(45deg); }
.pdp-acc__body { padding: 2px 4px 20px; font-size: 14px; line-height: 1.6; font-weight: 300; }
.pdp-acc__body p { margin: 0 0 8px; }
.pdp-acc__body a:hover { text-decoration: underline; }

/* Похожие товары */
.pdp-related { padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 72px); border-top: 1px solid var(--pd-line); }
.pdp-related__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 48px); margin: 0 0 36px; }
.pdp-related__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
@media (min-width: 1024px) { .pdp-related__grid { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.pd-rel-card { position: relative; }
.pd-rel-card__wish { position: absolute; top: -6px; right: 0; z-index: 2; }
.pd-rel-card__wish .jet-wishlist-button__link { display: inline-flex; padding: 6px; }
.pd-rel-card__wish svg { width: 22px; height: 19px; }
.pd-rel-card__media { display: block; aspect-ratio: 1; background: #fff; margin-bottom: 14px; }
.pd-rel-card__media img { width: 100%; height: 100%; object-fit: contain; }
.pd-rel-card__price { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 5px; }
.pd-rel-card__price del { color: var(--pd-gray); margin-right: 6px; }
.pd-rel-card__price ins { text-decoration: none; }
.pd-rel-card__name { display: block; font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.35; }
.pd-rel-card__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-rel-card__brand { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--pd-gray); margin-top: 5px; }

/* Jet wishlist: состояния сердечка */
.jet-wishlist-button__state-added { display: none; }
.jet-wishlist-button__link.added .jet-wishlist-button__state-added { display: inline-flex; }
.jet-wishlist-button__link.added .jet-wishlist-button__state-normal { display: none; }
.jet-wishlist-button__icon svg { display: block; }

/* ===== Accessibility / motion ===== */
@media (prefers-reduced-motion: reduce) {
  .pd-marquee__track { animation: none; }
  .pd-cursor { display: none !important; }
  * { scroll-behavior: auto !important; }
}
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
