/*
 * СИЛАЧ — магазин: каталог, товар, кошик, оформлення, подяка, кабінет.
 *
 * Перша частина — компоненти макетів v2 (design/v2/assets/sylach.css, розділи,
 * яких немає в спільному sylach.css). Друга — доповнення під розмітку
 * WordPress і WooCommerce: поля форм, повідомлення, радіокнопки-перемикачі.
 * Токени (кольори, шрифти, відступи) — з sylach.css.
 */

/* ===== Компоненти макетів v2 ===== */
/* Каталог */
.catalog { display: grid; grid-template-columns: 264px 1fr; gap: 32px; align-items: start; padding-bottom: 56px; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 20px; position: sticky; top: 176px; }
.filters fieldset { border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; margin: 0; }
.filters legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.filters legend + * { clear: both; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.check small { margin-left: auto; color: var(--muted); font-size: 13px; }
.more-link { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 600; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.range input { width: 100%; min-height: 44px; border: 1px solid var(--control); border-radius: var(--radius-s); padding: 0 10px; background: #fff; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .applied { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.applied .chip { min-height: 34px; padding: 0 10px 0 14px; font-size: 13.5px; }
.applied .chip svg { width: 16px; height: 16px; }
.applied button.clear { background: none; border: 0; font-size: 14px; font-weight: 600; text-decoration: underline; padding: 6px; }
.mobile-tools { display: none; }
@media (max-width: 1099px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; }
  .mobile-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: sticky; top: 120px; z-index: 5; background: var(--paper); padding: 8px 0; }
  .toolbar .sort-d { display: none; }
}

/* Сторінка товару */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding: 8px 0 48px; align-items: start; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; position: sticky; top: 176px; }
.gallery .thumbs { display: grid; gap: 10px; align-content: start; }
.gallery .thumbs button { width: 76px; height: 76px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.gallery .thumbs button[aria-pressed="true"] { border: 2px solid var(--ink); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery .main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; padding: 28px; display: grid; place-items: center; position: relative; }
.gallery .main img { max-height: 100%; object-fit: contain; }
.gallery .main figcaption { position: absolute; left: 16px; bottom: 12px; font-size: 13px; color: var(--muted); }
.buybox .brand-link { font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.buybox h1 { font-size: clamp(28px, 3vw, 38px); margin: 8px 0 10px; }
.buybox .sub { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.buybox .price-row { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 6px; flex-wrap: wrap; }
.buybox .price { font-size: 38px; }
.opt { margin-top: 22px; }
.opt .opt-label { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 10px; }
.opt .opt-label b { font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; font-size: 14.5px; font-weight: 500; line-height: 1.25; text-align: left; }
.swatch:hover { border-color: var(--ink); }
.swatch[aria-pressed="true"] { border: 2px solid var(--ink); padding: 7px 13px; font-weight: 600; }
.swatch[aria-disabled="true"] { color: #8F948A; background: var(--paper); text-decoration: line-through; text-decoration-color: #B8BCB1; cursor: not-allowed; }
.swatch .p { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; text-decoration: none; }
.qty { display: inline-grid; grid-template-columns: 44px 52px 44px; height: 56px; border: 1px solid var(--control); border-radius: var(--radius-s); background: #fff; }
.qty button { border: 0; background: none; display: grid; place-items: center; }
.qty button svg { width: 18px; height: 18px; }
.qty input { border: 0; text-align: center; font-weight: 600; width: 100%; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 24px; }
.service { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.service li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.service li:first-child { border-top: 0; }
.service svg { width: 22px; height: 22px; }
.service b { display: block; }
.service span { color: var(--muted); font-size: 13.5px; }
.service ul { list-style: none; margin: 0; padding: 0; }
.pdp-nav { position: sticky; top: 124px; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.pdp-nav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pdp-nav a { padding: 16px 14px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
.pdp-nav a:hover { border-bottom-color: var(--divider); }
.pdp-nav a.is-current { border-bottom-color: var(--accent); }
.pdp-sections { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 40px 0 16px; }
.pdp-sections section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 200px; }
.pdp-sections section:last-child { border-bottom: 0; }
.pdp-sections h2 { font-size: 26px; margin-bottom: 16px; }
.prose { font-size: 17px; line-height: 1.65; max-width: 720px; }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 16px; }
.label-img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; max-width: 520px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 200px; display: grid; gap: 12px; }
.side-card .mini { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.side-card .mini img { width: 64px; height: 64px; object-fit: contain; background: #fff; }
.sticky-buy { display: none; }
@media (max-width: 1099px) {
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery .thumbs { order: 2; grid-auto-flow: column; justify-content: start; }
  .pdp-sections { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .pdp-nav { top: 112px; }
}
@media (max-width: 767px) {
  .gallery .main { padding: 16px; }
  .buybox .price { font-size: 32px; }
  .buy-row { grid-template-columns: 1fr; }
  .buy-row .qty { display: none; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; box-shadow: 0 -6px 20px rgba(32,34,31,.08); }
  .sticky-buy .price { font-size: 22px; }
  .sticky-buy small { display: block; font-size: 12px; color: var(--muted); }
  .sticky-buy .btn { flex: 1; }
  body.has-sticky { padding-bottom: 84px; }
}

/* Кошик і оформлення */
.steps { display: flex; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; font-size: 14px; flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.steps li::after { content: ""; width: 24px; height: 1px; background: var(--divider); margin-left: 4px; }
.steps li:last-child::after { display: none; }
.steps .n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--divider); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.steps [aria-current] { color: var(--ink); font-weight: 600; }
.steps [aria-current] .n { background: var(--accent); border-color: var(--accent); }
.steps .done .n { background: var(--ink); color: #fff; border-color: var(--ink); }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-bottom: 56px; }
.lines { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px; border-top: 1px solid var(--line); align-items: start; }
.line:first-child { border-top: 0; }
.line img { width: 96px; height: 96px; object-fit: contain; background: #fff; }
.line h3 { font-size: 16.5px; }
.line .var { font-size: 14px; color: var(--muted); margin: 4px 0 12px; }
.line .ctrl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.line .qty { height: 44px; grid-template-columns: 40px 44px 40px; }
.line .remove { background: none; border: 0; color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.line .remove svg { width: 18px; height: 18px; }
.line .remove:hover { color: var(--ink); text-decoration: underline; }
.line .sum { text-align: right; }
.line .sum .price { font-size: 19px; }
.line .sum small { display: block; color: var(--muted); font-size: 13px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 176px; }
.summary h2 { font-size: 22px; margin-bottom: 16px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary .total { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.summary .total b { font-size: 17px; }
.summary .total .price { font-size: 28px; }
.summary .btn { margin-top: 18px; }
.summary .fine { font-size: 13px; color: var(--muted); margin-top: 12px; }
.summary .items { display: grid; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary .items .it { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.summary .items img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); }
.summary .items small { color: var(--muted); display: block; }
.trust-list { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.trust-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.trust-list svg { width: 20px; height: 20px; color: var(--success); }
.cart-page { grid-template-areas: "lines summary" "extra summary"; row-gap: 32px; }
.cart-lines { grid-area: lines; } .cart-extra { grid-area: extra; } .cart-summary { grid-area: summary; align-self: start; }
@media (max-width: 1099px) { .cart { grid-template-columns: 1fr; } .cart-page { grid-template-areas: "lines" "summary" "extra"; row-gap: 24px; } .summary { position: static; } }
@media (max-width: 767px) { .line { grid-template-columns: 72px 1fr; padding: 16px; gap: 14px; } .line img { width: 72px; height: 72px; } .line .sum { grid-column: 2; text-align: left; } }

.checkout-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.checkout-head .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.checkout-head .secure { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.checkout-head .secure svg { width: 18px; height: 18px; }
.checkout-head .logo { order: 0; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.form-card h2 { font-size: 21px; display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.form-card h2 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { min-height: 52px; border: 1px solid var(--control); border-radius: var(--radius-s); background: #fff; padding: 0 14px; font-size: 16px; }
.field textarea { padding: 12px 14px; min-height: 88px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); }
.field.has-error input, .field.has-error select { border: 2px solid var(--error); background: var(--error-soft); }
.field .err { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--error); font-weight: 600; }
.field .err svg { width: 16px; height: 16px; }
.radio-cards { display: grid; gap: 10px; }
.rc { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.rc:has(input:checked) { border: 2px solid var(--ink); padding: 13px 15px; }
.rc input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.rc { font-weight: 400; }
.rc b { display: block; font-size: 15.5px; font-weight: 600; }
.rc span { font-size: 13.5px; color: var(--muted); }
.rc .tag { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.fields-inner { margin-top: 16px; }
@media (max-width: 767px) { .fields { grid-template-columns: 1fr; } .form-card { padding: 18px; } }

/* Підтвердження й кабінет */
.done-hero { text-align: center; padding: 40px 0 24px; }
.done-hero .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.done-hero .ok svg { width: 32px; height: 32px; }
.done-hero p { color: var(--muted); font-size: 17px; margin-top: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.timeline li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.timeline .n { font-family: var(--font-head); font-weight: 800; font-size: 14px; background: var(--accent); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px; }
.timeline b { display: block; margin-bottom: 4px; }
.timeline span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 767px) { .timeline { grid-template-columns: 1fr; } }
.account { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-bottom: 56px; align-items: start; }
.acc-nav { list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.acc-nav a { display: flex; justify-content: space-between; padding: 12px 12px; border-radius: var(--radius-s); text-decoration: none; font-weight: 500; }
.acc-nav a:hover { background: var(--paper); }
.acc-nav a[aria-current] { background: var(--paper-2); font-weight: 700; }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.order header { display: grid; grid-template-columns: 1fr 1fr 1.3fr 1fr; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.order header small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
.order header b { font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status svg { width: 16px; height: 16px; }
.status.shipped { background: var(--accent-soft); }
.status.delivered { background: var(--success-soft); color: var(--success); }
.order .items { display: flex; gap: 10px; padding: 16px 20px; flex-wrap: wrap; align-items: center; }
.order .items img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); }
.order footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); background: #FCFCF9; border-radius: 0 0 var(--radius) var(--radius); }
.ttn { font-size: 14px; }
.ttn a { font-weight: 600; }
@media (max-width: 1099px) { .account { grid-template-columns: 1fr; } .acc-nav { display: flex; overflow-x: auto; } .acc-nav a { white-space: nowrap; } }
@media (max-width: 767px) { .order header { grid-template-columns: 1fr 1fr; } }

/* Додано в кошик */
.added { position: fixed; inset: 0; z-index: 80; }
.added[hidden] { display: none; }
.added-backdrop { position: absolute; inset: 0; background: rgba(32, 34, 31, .45); }
.added-panel { position: absolute; right: 16px; top: 16px; width: min(420px, calc(100vw - 32px)); background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 20px; display: grid; gap: 16px; }
.added-head { display: flex; justify-content: space-between; align-items: center; }
.added-head h2 { font-size: 20px; display: flex; gap: 8px; align-items: center; color: var(--success); }
.added-head h2 svg { width: 22px; height: 22px; }
.added-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: var(--paper); border-radius: var(--radius); }
.added-item img { width: 72px; height: 72px; object-fit: contain; background: #fff; }
.added-item b { display: block; font-size: 15px; line-height: 1.3; }
.added-item small { color: var(--muted); font-size: 13.5px; }
.added-item .price { font-size: 18px; }
.added-actions { display: grid; gap: 8px; }
.added-x { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.added-x > b { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 767px) { .added-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; border-radius: 16px 16px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); } }

/* Фільтри на телефоні — нижня панель */
.sheet-head { display: none; }
.sort-m { position: relative; display: block; }
/* Сортування на телефоні: вигляд кнопки «Фільтри», а поверх — прозорий нативний select (системний список із повними назвами). */
.sort-m .btn { width: 100%; padding: 0 12px; }
.sort-m .btn > span { overflow: hidden; text-overflow: ellipsis; }
.sort-m .select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
@media (hover: hover) { .sort-m:hover .btn { background: var(--ink); color: #fff; } }
.sort-m:has(.select:focus-visible) .btn { outline: 2px solid var(--focus); outline-offset: 3px; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 64; background: rgba(32, 34, 31, .45); }
.sheet-backdrop[hidden] { display: none; }
@media (max-width: 1099px) {
  .filters.is-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 65; max-height: 86vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 0 20px 20px; }
  .filters.is-sheet .sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); padding: 12px 0; border-bottom: 1px solid var(--line); z-index: 1; }
  .filters.is-sheet .sheet-head b { font-family: var(--font-head); font-size: 20px; }
  .filters.is-sheet > .btn { position: sticky; bottom: 0; }
  .check { min-height: 44px; }
}

/* Оформлення: помилки й підсумок на телефоні */
.err-summary { background: var(--error-soft); border: 2px solid var(--error); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.err-summary b { display: flex; align-items: center; gap: 8px; color: var(--error); }
.err-summary b svg { width: 20px; height: 20px; }
.err-summary ul { margin: 6px 0 0; padding-left: 28px; }
.err-summary a { color: var(--error); font-weight: 600; }
.m-summary { display: none; }
@media (max-width: 1099px) {
  .m-summary { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
  .m-summary summary { list-style: none; display: grid; grid-template-columns: 1fr auto 20px; gap: 10px; align-items: center; padding: 14px 16px; cursor: pointer; font-weight: 600; min-height: 52px; }
  .m-summary summary::-webkit-details-marker { display: none; }
  .m-summary summary svg { width: 20px; height: 20px; transition: transform .15s; }
  .m-summary[open] summary svg { transform: rotate(180deg); }
  .m-summary .items { display: grid; gap: 12px; padding: 0 16px 16px; }
  .m-summary .it { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
  .m-summary .it img { width: 48px; height: 48px; object-fit: contain; }
  .m-summary .it small { display: block; color: var(--muted); }
}

.src-note { font-size: 14px; color: var(--muted); }
.reviews-empty { background: var(--surface); border: 1px dashed var(--divider); border-radius: var(--radius); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15.5px; }
.reviews-empty p { max-width: 560px; }

.cart > *, .account > * { min-width: 0; }

@media (max-width: 480px) { .checkout-head .secure { display: none; } }
.steps li.done a { display: inline-flex; align-items: center; gap: inherit; color: inherit; min-height: 44px; }
.acc-nav a { gap: 8px; }
/* Відгуки: форма для всіх відвідувачів, модерація */
.review-form { margin-top: 14px; }
.review-form > summary { list-style: none; display: inline-flex; }
.review-form > summary::-webkit-details-marker { display: none; }
.review-form form { margin-top: 16px; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 720px; }
.rating { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.rating legend { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.rating label { position: relative; }
.rating input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rating span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--control); border-radius: 50%; font-weight: 700; background: #fff; }
.rating input:checked + span { background: var(--accent); border-color: var(--ink); }
.rating input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.note-legal b { display: block; margin-bottom: 2px; }
@media (max-width: 767px) { .review-form .fields { grid-template-columns: 1fr; } }
/* ===== Доповнення під WordPress і WooCommerce ===== */

/* Загальне */
.h1-count { font: 500 18px var(--font-body); color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.page-head .lead p { margin: 0; }
.page-head .lead a { color: var(--ink); }
.sub-chips { margin-top: 20px; }
/* Телефон: багато підрубрик — одна стрічка з гортанням замість «стіни» чіпів над товарами. */
@media (max-width: 767px) {
  .sub-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--pad, 20px)); padding: 2px var(--pad, 20px); scroll-padding-inline: var(--pad, 20px); scrollbar-width: none; overscroll-behavior-x: contain; }
  .sub-chips::-webkit-scrollbar { display: none; }
  .sub-chips .chip { flex: none; }
}
.muted { color: var(--muted); }
.shop-notices:empty { display: none; }
.shop-notices { display: grid; gap: 10px; margin: 0 0 20px; }
.shop-notices > .woocommerce-notices-wrapper:empty { display: none; }
.note-ok { background: var(--success-soft); color: var(--success); }
.note-ok svg { color: var(--success); }
.note a { color: inherit; font-weight: 600; }
.woocommerce-message, .woocommerce-info { align-items: flex-start; }
.woocommerce-message .button, .woocommerce-info .button, .note .button { display: inline; min-height: 0; padding: 0; margin: 0 6px 0 0; background: none !important; border: 0; color: inherit !important; font: inherit; font-weight: 700; text-decoration: underline; }
.account-body > p { margin-top: 16px; }
.account-body .woocommerce-address-fields, .account-body form > h2, .account-body > h2 { margin-top: 0; }
.account-body form > h2, .account-body > h2 { font-size: 22px; margin-bottom: 16px; }
.shop-paused-note { margin-top: 16px; }
.woocommerce-error.err-summary { list-style: none; }
/* Іконки повідомлень WooCommerce — масками (SVG у повідомленнях WooCommerce вирізає kses). */
.err-summary > b::before, .woocommerce-message.note::before, .woocommerce-info.note::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--sy-icon) center / contain no-repeat; mask: var(--sy-icon) center / contain no-repeat; }
.err-summary > b::before { --sy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E"); }
.woocommerce-message.note::before { --sy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); margin-top: 2px; }
.woocommerce-info.note::before { --sy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E"); margin-top: 2px; }
.err-summary:focus { outline: 2px solid var(--focus); outline-offset: 3px; }
.err-summary ul { list-style: disc; }
.err-summary li { margin: 4px 0; }
.woocommerce-NoticeGroup:empty { display: none; }
.woocommerce-NoticeGroup [role="alert"] > .err-summary { margin-bottom: 16px; }
button.more-link { background: none; border: 0; padding: 8px 0; color: var(--ink); text-decoration: underline; cursor: pointer; min-height: 44px; }
.pending { color: var(--muted); font-style: italic; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Каталог */
.catalog-main { min-width: 0; }
.filters .more-values[hidden] { display: none; }
.filters .price-set { border-bottom: 0; }
.filters > .btn { margin-top: 4px; }
.filters .sheet-head .icon-btn { min-width: 44px; }
.applied a.clear { font-size: 14px; font-weight: 600; text-decoration: underline; padding: 10px 6px; }
.applied .chip { text-decoration: none; }
@media (min-width: 1100px) { .toolbar .sort-d { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; } }
.filters fieldset > :not(legend) { clear: both; }
.toolbar .applied:empty { display: none; }
.toolbar:has(.applied:empty) { justify-content: flex-end; }
.product-grid.is-loading { opacity: .55; transition: opacity .15s; }
.catalog.is-loading .product-grid { opacity: .55; }
.pager .btn { min-width: 220px; }
.pager .btn[aria-busy="true"] { opacity: .6; }
.shop-seo .seo-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.shop-seo .seo-cols.has-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.shop-seo h2 { margin-bottom: 16px; }
.shop-seo .seo-text p { color: var(--muted); margin-bottom: 12px; }
.shop-seo .seo-text h3 { font-size: 19px; margin: 20px 0 10px; }
.shop-seo .faq details > div p { margin-bottom: 8px; }
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1099px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .shop-seo .seo-cols.has-faq { grid-template-columns: 1fr; gap: 28px; } ul.products { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* Картка: кнопка «У кошик» — форма */
.pcard .add-form { position: relative; z-index: 1; margin: 0; }
.pcard .add[aria-busy="true"] { opacity: .6; cursor: progress; }
.pcard .add.is-added { background: var(--success); color: #fff; }

/* Сторінка товару */
.gallery.is-single { grid-template-columns: minmax(0, 1fr); }
.gallery .main { margin: 0; }
.gallery .thumbs button { cursor: pointer; }
.gallery .thumbs button:hover { border-color: var(--ink); }
.buybox .brand-link:hover { text-decoration: underline; color: var(--ink); }
.buybox .price-row .price-old { font-size: 18px; margin-right: 10px; }
.buybox .note { margin-top: 20px; }
.buy-form { margin: 0; }
.opt-count { color: var(--muted); }
.swatch { position: relative; display: inline-block; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.swatch:has(input:checked) { border: 2px solid var(--ink); padding: 7px 13px; font-weight: 600; }
.swatch:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.swatch:has(input:disabled) { color: #6F746B; background: var(--paper); text-decoration: line-through; text-decoration-color: #9DA296; cursor: not-allowed; border-style: dashed; }
.swatch:has(input:disabled) .p { text-decoration: none; }
.buy-row .btn[disabled] { cursor: not-allowed; }
.qty input { -moz-appearance: textfield; }
.pdp-sections.no-aside { grid-template-columns: minmax(0, 1fr); }
.pdp-sections { padding-bottom: 48px; }
.pdp-main { min-width: 0; }
.prose .muted { color: var(--muted); }
.prose .note { margin: 16px 0; font-size: 15px; }
.spec caption { text-align: left; }
.spec td a { font-weight: 500; }
.side-card .side-h { font-size: 17px; }
.side-card .mini { text-decoration: none; }
.side-card .mini small { color: var(--muted); display: block; font-size: 13px; }
.side-card .mini b { display: block; font-size: 14.5px; line-height: 1.3; }
.side-card .mini .price { font-size: 16px; }
.side-card .mini:hover b { text-decoration: underline; }
.side-card .btn { justify-self: start; }
.shop-alternatives .section-head, .shop-related .section-head { margin-bottom: 20px; }

/* Відгуки */
.reviews-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 15.5px; }
.stars { color: #8A6A00; letter-spacing: 2px; font-size: 18px; line-height: 1; }
.reviews-list { list-style: none; margin: 0 0 8px; padding: 0; }
.review { border-top: 1px solid var(--line); padding: 16px 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; font-size: 15px; }
.review-head time { color: var(--muted); font-size: 13.5px; }
.review-text p { margin: 0 0 8px; max-width: 720px; }
#vidguky .note-ok { margin-bottom: 14px; }
.review-form .field input, .review-form .field textarea { width: 100%; }
.review-form .hint { font-size: 13px; color: var(--muted); }

/* «Додано в кошик» */
.added-head h2:focus { outline: none; }
.added-head h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.added-x .rail-mini { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; text-decoration: none; }
.added-x .rail-mini img { width: 52px; height: 52px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); }
.added-x .rail-mini b { display: block; font-size: 14px; line-height: 1.3; }
.added-x .rail-mini small { color: var(--muted); font-size: 13px; }
.added-x .rail-mini:hover b { text-decoration: underline; }

/* Кошик */
.cart-head .steps { margin-bottom: 20px; }
.line-img { display: block; }
.line h3 a { text-decoration: none; }
.line h3 + .ctrl { margin-top: 12px; } /* простий товар без рядка варіанта: відступ як у .var, інакше назва й кнопки кількості впритул (target-size) */
.line h3 a:hover { text-decoration: underline; }
.line .stock { margin: 0 0 10px; }
.line.is-unavailable .line-img img { opacity: .5; }
.line .qty input { font-size: 16px; }
.cart-actions { padding: 0 20px 20px; }
.cart-actions[hidden] { display: none; }
.cart-lines.is-busy { opacity: .6; transition: opacity .15s; }
.cart-extra h2 { font-size: 22px; margin: 0 0 16px; }
.cart-blocked { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; color: var(--error); font-weight: 600; font-size: 14.5px; }
.cart-blocked svg { width: 20px; height: 20px; flex: none; }
.summary .promo { margin-top: 14px; font-size: 14.5px; }
.summary .promo summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.promo-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.promo-form input { min-height: 48px; border: 1px solid var(--control); border-radius: var(--radius-s); padding: 0 12px; background: #fff; }
.promo-form .btn { margin: 0; }
.cart-empty { margin: 0 0 56px; padding: 40px 24px; }
.cart-empty .btn { margin-top: 6px; }
.cart-empty .chips { justify-content: center; margin-top: 8px; }

/* Оформлення */
.is-checkout-flow { background: var(--paper); }
.checkout-page-head .steps, .cart-head .steps { margin-bottom: 20px; }
.sy-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-bottom: 56px; }
.checkout-main { min-width: 0; }
.is-checkout-flow .summary { top: 24px; }
.checkout-summary h2 { font-size: 22px; margin-bottom: 16px; }
.checkout-summary .place-order { margin-top: 18px; }
.checkout-summary .place-order .btn { margin-top: 0; }
.checkout-head .back-cart { min-height: 44px; }
.checkout-foot .container { padding: 24px 0 40px; color: var(--muted); font-size: 14px; display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; }
.checkout-foot a { color: var(--muted); }
.checkout-foot a:hover { color: var(--ink); }
@media (max-width: 767px) { .checkout-foot a { display: inline-flex; align-items: center; min-height: 44px; } }

/* Поля форм WooCommerce у стилі макета (.field) */
.form-card .fields > .form-row, .form-card .fields > .field, .woocommerce-address-fields .form-row, .woocommerce-EditAccountForm .form-row, .woocommerce-form-login .form-row, .woocommerce-ResetPassword .form-row { display: grid; gap: 6px; margin: 0; padding: 0; }
.form-card .fields > .form-row-wide, .form-card .fields > .full, .form-card .fields > .woocommerce-account-fields { grid-column: 1 / -1; }
.form-row label { font-size: 14.5px; font-weight: 600; }
.form-row label small { font-weight: 400; color: var(--muted); }
.form-row label .optional { display: none; }
.form-row .required { color: var(--error); text-decoration: none; border: 0; }
.form-row .woocommerce-input-wrapper { display: grid; gap: 6px; }
.form-row input.input-text, .form-row select, .form-row textarea, .woocommerce-address-fields input, .woocommerce-EditAccountForm input.input-text, .woocommerce-form-login input.input-text, .woocommerce-ResetPassword input.input-text { width: 100%; min-height: 52px; border: 1px solid var(--control); border-radius: var(--radius-s); background: #fff; padding: 0 14px; font-size: 16px; }
.form-row textarea { padding: 12px 14px; min-height: 88px; resize: vertical; }
.form-row .description, .fields .hint { font-size: 13px; color: var(--muted); }
.form-row.woocommerce-invalid input.input-text, .form-row.woocommerce-invalid select, .form-row input[aria-invalid="true"] { border: 2px solid var(--error); background: var(--error-soft); }
.checkout-inline-error-message { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; color: var(--error); font-weight: 600; }
.checkout-inline-error-message::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--error); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.form-row label.checkbox, .form-row.check label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-weight: 400; font-size: 15px; cursor: pointer; }
.form-row label.checkbox input, .form-row.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.form-row .hint[data-sy-no-call-note]:empty { display: none; }
.radio-cards { list-style: none; margin: 0; padding: 0; }
.radio-cards li { list-style: none; }
.rc input[name="payment_method"] { display: inline-block !important; }
.rc .tag img { max-height: 24px; width: auto; }
.payment_box { padding: 12px 16px 4px; font-size: 14.5px; }
.ship-methods { margin: 2px 0; }

/* SmartyParcel (wc-ukr-shipping): місто й відділення — у стилі полів макета */
.form-card .fields > [id^="wcus-"] { grid-column: 1 / -1; }
.wcus-checkout-fields > h3 { display: none; }
.wcus-checkout-fields > div, .wcus-checkout-fields > div > div { display: grid; gap: 12px; }
.wcus-checkout-fields .form-row { margin: 0; padding: 0; }
.wcus-checkout-fields .zen-ui-select { line-height: 1.4; }
.wcus-checkout-fields .zen-ui-select__value { display: flex; align-items: center; min-height: 52px; padding: 0 40px 0 14px !important; border: 1px solid var(--control); border-radius: var(--radius-s); background: #fff; color: var(--ink); font-size: 16px; }
.wcus-checkout-fields .zen-ui-select__value:hover { background: #fff; border-color: var(--ink); }
.wcus-checkout-fields .zen-ui-select__value > svg { right: 16px; width: 12px; height: 12px; fill: var(--ink); }
.wcus-checkout-fields .zen-ui-select__value.disabled { background: var(--paper); color: var(--muted); }
/* Плагін ставить aria-invalid порожнім полям одразу; про пропуск скаже повідомлення оформлення */
.wcus-checkout-fields .form-row input[aria-invalid="true"] { border: 1px solid var(--control); background: #fff; }
.wcus-checkout-fields label { font-size: 14.5px; font-weight: 600; }
.wcus-checkout-fields .zen-ui-select__dropdown { margin-top: 4px; border-radius: var(--radius-s); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); overflow: hidden; }
.wcus-checkout-fields .zen-ui-select__search { padding: 10px; border: 1px solid var(--line); border-bottom: 0; }
.wcus-checkout-fields .zen-ui-select__search-input { min-height: 44px; padding: 0 12px !important; border: 1px solid var(--control) !important; border-radius: var(--radius-s) !important; font-size: 16px; }
.wcus-checkout-fields .zen-ui-select__options { border: 1px solid var(--line); padding: 4px 0; }
.wcus-checkout-fields .zen-ui-select__option { padding: 11px 14px; font-size: 15px; color: var(--ink); }
.wcus-checkout-fields .zen-ui-select__option--current { background: var(--paper); font-weight: 600; }
.review-table .items { margin-bottom: 16px; }
.review-table .fine a { color: var(--muted); }
.woocommerce-terms-and-conditions-wrapper { margin-bottom: 12px; font-size: 14px; }
@media (max-width: 1099px) { .sy-checkout { grid-template-columns: 1fr; } }

/* «Дякуємо» */
.thanks { max-width: 960px; padding-bottom: 40px; }
.thanks .done-hero h1 { font-size: clamp(30px, 3.6vw, 42px); }
.thanks .order-summary, .account-body .order-summary { position: static; margin-top: 24px; }
.thanks-account { margin-top: 16px; align-items: center; flex-wrap: wrap; }
.thanks-account > span { flex: 1; min-width: 220px; }
.thanks-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.order-summary .items .it b, .order-summary dd { font-variant-numeric: tabular-nums; }

/* Кабінет */
.account-guest-body { max-width: 520px; padding-bottom: 56px; }
.account-body { min-width: 0; }
.acc-nav a span { color: var(--muted); font-weight: 600; }
.acc-nav a[aria-current] span { color: var(--ink); }
.order .order-h { font-size: 15px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin: 0; }
.order .order-h a { text-decoration: none; }
.order .order-h a:hover { text-decoration: underline; }
.order .items .muted { font-size: 14px; }
.status.wait { background: var(--paper-2); }
.status.off { background: var(--subtle); color: var(--muted); }
.orders + .note { margin-top: 8px; }
.orders-pager { display: flex; gap: 8px; margin-top: 16px; }
.account-sub { font-size: 20px; margin-bottom: 14px; }
.account-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.account-overview .empty-state { margin-top: 0; }
.order-notes { margin-top: 24px; }
.order-notes h2 { font-size: 20px; margin-bottom: 12px; }
.order-notes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order-notes li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.order-notes time { color: var(--muted); font-size: 13.5px; }
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.woocommerce-Address { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.woocommerce-Address-title h2 { font-size: 18px; }
.woocommerce-Address-title a { font-weight: 600; }
.woocommerce-Address address { font-style: normal; color: var(--ink-2); }
.woocommerce-address-fields__field-wrapper, .woocommerce-EditAccountForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.woocommerce-address-fields__field-wrapper .form-row-wide, .woocommerce-EditAccountForm .form-row-wide, .woocommerce-EditAccountForm fieldset, .woocommerce-EditAccountForm > p:last-of-type, .woocommerce-EditAccountForm .clear { grid-column: 1 / -1; }
.woocommerce-EditAccountForm fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 16px; margin: 0; }
.woocommerce-EditAccountForm legend { font-weight: 700; padding: 0 6px; }
.woocommerce-address-fields > p, .woocommerce-EditAccountForm > p:last-of-type { margin-top: 16px; }
.shop-page .button, .account-guest .button, .account-body .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-s); border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; }
.shop-page .button:hover, .account-guest .button:hover, .account-body .button:hover { background: #000; }
.woocommerce-form-login { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.woocommerce-form-login .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; margin-right: 16px; }
.woocommerce-form-login .woocommerce-form-login__rememberme input { width: 20px; height: 20px; accent-color: var(--ink); }
.woocommerce-LostPassword a { font-weight: 600; }
.account-guest h2 { font-size: 22px; margin-bottom: 14px; }
.show-password-input { background: none; border: 0; min-width: 44px; min-height: 44px; }
.password-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
@media (max-width: 767px) {
  .woocommerce-Addresses, .woocommerce-address-fields__field-wrapper, .woocommerce-EditAccountForm { grid-template-columns: 1fr; }
  .order header { gap: 12px; }
}
