/* ==========================================================================
   CMS9 · Тема "Default" — базова монохромна тема
   Переклад дизайн-макета "Базова тема CMS" у storefront-стиль.
   Токени: --accent / --radius / --font (панель Tweaks у макеті).
   Namespace .dt-* — щоб не конфліктувати з goodlook-класами на сторінках,
   які ще не переверстані (перехідний період фазового впровадження).
   ========================================================================== */

:root {
  --accent: #111111;
  --accent-contrast: #ffffff;
  --radius: 12px;
  --font: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-alt: 'Manrope', var(--font);

  --ink: #111111;
  --ink-2: #555555;
  --muted: #888888;
  --muted-2: #999999;
  --line: #e5e5e5;
  --line-2: #f0f0f0;
  --surface: #f5f5f5;
  --surface-2: #f2f2f2;
  --page-bg: #ffffff;

  --pill: 999px;
  --shadow-pop: 0 16px 44px rgba(0,0,0,.16);
  --shadow-card: 0 2px 10px rgba(0,0,0,.06);
}

/* ---- base ------------------------------------------------------------- */
.dt { font-family: var(--font); color: var(--ink); }
.dt *, .dt *::before, .dt *::after { box-sizing: border-box; }
.dt a { color: inherit; text-decoration: none; }
.dt a:hover { color: #000; }
.dt img { max-width: 100%; height: auto; display: block; }
.dt-container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.dt-hidden { display: none !important; }

/* generic pill buttons */
.dt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--pill); padding: 13px 26px; font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer; border: 1px solid transparent; line-height: 1;
  transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.dt-btn--primary { background: var(--accent); color: var(--accent-contrast); }
.dt-btn--primary:hover { opacity: .88; color: var(--accent-contrast); }
.dt-btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.dt-btn--outline:hover { background: var(--ink); color: #fff; }
.dt-btn--block { width: 100%; }
.dt-btn--lg { min-height: 50px; font-size: 13.5px; }

.dt-icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }

/* section headings on light cards */
.dt-sectitle { font-size: 22px; font-weight: 600; }
.dt-sechead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 16px; }
.dt-round-nav { display: flex; gap: 8px; }
.dt-round-nav span {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.dt-linkmore { border: 1px solid #ccc; border-radius: var(--pill); padding: 8px 20px; font-size: 12px; font-weight: 500; white-space: nowrap; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.dt-header { width: 100%; background: #fff; color: var(--ink); font-family: var(--font); border-bottom: 1px solid var(--line); }
/* макет: на головній роздільник під хедером не показується (showNav=false) */
.dt-header--home { border-bottom: 0; }

.dt-topbar { background: var(--surface); }
.dt-topbar__inner { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; }
.dt-topbar__links { display: flex; gap: 22px; text-transform: uppercase; }
.dt-topbar__meta { display: flex; gap: 18px; align-items: center; }
.dt-topbar__meta .is-accent { color: var(--accent); font-weight: 600; }
.dt-topbar__meta .is-strong { font-weight: 600; }

.dt-headmain { display: flex; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.dt-logo { display: flex; align-items: center; gap: 11px; flex: none; }
.dt-logo__img { width: 44px; height: 44px; display: block; }
.dt-logo__name { font-size: 20px; font-weight: 600; letter-spacing: .24em; line-height: 1; }
.dt-logo__sub { font-size: 7.5px; font-weight: 500; letter-spacing: .4em; color: var(--muted); margin-top: 3px; }

/* catalog button + dropdown */
.dt-catalog { position: relative; flex: none; }
.dt-catalog__btn {
  display: flex; align-items: center; gap: 9px; background: var(--accent); color: #fff;
  border-radius: var(--pill); padding: 13px 22px; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; white-space: nowrap; cursor: pointer; text-transform: uppercase;
}
.dt-burger { display: flex; flex-direction: column; gap: 3px; width: 14px; }
.dt-burger span { height: 1.5px; background: currentColor; display: block; }
.dt-catalog__drop {
  position: absolute; top: calc(100% + 10px); left: 0; width: 280px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop);
  padding: 8px; opacity: 0; visibility: hidden; transition: opacity .18s ease; z-index: 30;
  font-size: 12.5px; font-weight: 400; letter-spacing: normal;
}
.dt-catalog:hover .dt-catalog__drop { opacity: 1; visibility: visible; }
.dt-catalog__item { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-radius: 8px; }
.dt-catalog__item:hover { background: var(--surface); }
.dt-catalog__item .chev { color: #bbb; font-size: 11px; }

.dt-search { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--pill); padding: 12px 20px; color: var(--muted-2); font-size: 13px; font-weight: 300; }
.dt-search input { flex: 1; border: 0; background: transparent; outline: 0; font: inherit; color: var(--ink); }

.dt-toolbar { display: flex; gap: 18px; align-items: center; flex: none; }
.dt-toolbar > * { align-self: center; }
.dt-tool { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 9.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.dt-tool svg { width: 18px; height: 18px; }

/* ТІЛЬКИ хедерний блок кошика: сторінка кошика використовує той самий
   клас .dt-cart як контейнер — глобальні height/top її ламали */
.dt-toolbar .dt-cart { position: relative; display: flex; align-items: center; height: 40px; align-self: center;
  /* пігулка стабільно сідала на 16px вище центру ряду інструментів
     (легасі-вплив на бейслайн) — компенсуємо явно */
  top: 16px; }
.dt-cart__btn { display: flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border-radius: var(--pill); padding: 11px 20px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; white-space: nowrap; cursor: pointer; text-transform: uppercase; }
/* явні розміри: легасі .cart-header__badge задає width/height/line-height,
   від чого цифра з'їжджала з центру */
.dt-cart__count {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 18px; height: 18px; padding: 0 6px; line-height: 1;
  background: #fff; color: var(--ink); border-radius: var(--pill);
  font-size: 10px; font-weight: 600; text-align: center;
}
.dt-cart__drop {
  position: absolute; top: calc(100% + 12px); right: 0; width: 308px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop);
  padding: 16px; opacity: 0; visibility: hidden; transition: opacity .18s ease; z-index: 30;
  text-align: left; font-size: 12px;
}
/* дропдаун показується лише після першого підвантаження вмісту (is-ready) */
.dt-cart.is-ready:hover .dt-cart__drop { opacity: 1; visibility: visible; }

/* mini cart (hover dropdown, макет MBHeader) */
.dt-minicart__label { font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 12px; text-transform: uppercase; }
.dt-minicart__items { display: flex; flex-direction: column; gap: 10px; }
.dt-minicart__row { display: flex; gap: 10px; align-items: center; }
.dt-minicart__thumb { width: 42px; height: 42px; border-radius: 8px; background: var(--surface-2); flex: none; overflow: hidden; }
.dt-minicart__thumb img { width: 100%; height: 100%; object-fit: contain; }
.dt-minicart__name { flex: 1; font-size: 11px; line-height: 1.4; letter-spacing: normal; font-weight: 400; text-transform: none; }
.dt-minicart__qty { color: var(--muted); white-space: nowrap; }
.dt-minicart__price { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dt-minicart__more { font-size: 10.5px; color: var(--muted); }
.dt-minicart__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; font-size: 12px; color: var(--ink-2); letter-spacing: normal; text-transform: none; font-weight: 400; }
.dt-minicart__sum { font-size: 17px; font-weight: 700; color: var(--ink); }
.dt-minicart__actions { display: flex; gap: 8px; margin-top: 12px; }
.dt-minicart__actions .dt-btn { flex: 1; padding: 9px; font-size: 11.5px; letter-spacing: normal; text-transform: none; font-weight: 500; }
.dt-minicart__empty { font-size: 12px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--ink-2); }

/* ==========================================================================
   HOME LAYOUT
   ========================================================================== */
.dt-home { display: flex; gap: 24px; padding: 24px 0; }
.dt-aside { width: 246px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.dt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 34px; }

.dt-box { border: 1px solid var(--line); border-radius: var(--radius); }
.dt-box--pad { padding: 16px; }

/* sidebar catalog vertical menu */
.dt-catnav { overflow: hidden; }
.dt-catnav__head { background: var(--accent); color: #fff; padding: 12px 16px; font-size: 12px; font-weight: 600; letter-spacing: .1em; display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.dt-catnav__item { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; font-size: 12.5px; border-top: 1px solid var(--line-2); }
.dt-catnav__item .chev { color: #ccc; font-size: 11px; }

/* sidebar widget title with accent underline */
.dt-wtitle { font-size: 12px; font-weight: 600; letter-spacing: .1em; padding-bottom: 12px; border-bottom: 2px solid var(--accent); display: inline-block; text-transform: uppercase; }
.dt-wlist { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.dt-wrow { display: flex; gap: 11px; align-items: center; }
.dt-wrow__thumb { width: 46px; height: 46px; border-radius: 8px; background: var(--surface-2); flex: none; overflow: hidden; }
.dt-wrow__title { font-size: 11.5px; line-height: 1.35; }
.dt-wrow__price { font-size: 13px; font-weight: 600; margin-top: 3px; }
.dt-wrow__old { font-size: 10.5px; color: #bbb; text-decoration: line-through; }

/* advantages list (sidebar) */
.dt-adv { display: flex; flex-direction: column; gap: 14px; }
.dt-adv__row { display: flex; align-items: center; gap: 11px; }
.dt-adv__ico { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dt-adv__ico svg { width: 15px; height: 15px; }
.dt-adv__txt { font-size: 11.5px; font-weight: 500; line-height: 1.35; }

/* news feed */
.dt-news__item { }
.dt-news__date { font-size: 10px; color: var(--muted-2); font-weight: 300; }
.dt-news__title { font-size: 11.5px; line-height: 1.4; margin-top: 3px; }

/* blog card */
.dt-blogcard__img { height: 110px; background: var(--surface); overflow: hidden; }
.dt-blogcard__body { padding: 14px 16px; }

/* hero */
.dt-hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.dt-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 48px 52px; min-height: 280px; }
.dt-hero__eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--muted); }
.dt-hero__title { font-size: 38px; font-weight: 600; line-height: 1.15; margin-top: 12px; max-width: 460px; }
.dt-hero__text { font-size: 13.5px; font-weight: 300; line-height: 1.7; color: var(--ink-2); margin-top: 12px; max-width: 380px; }
.dt-hero__cta { display: flex; gap: 14px; margin-top: 24px; align-items: center; }
.dt-hero__media { width: 270px; height: 210px; border-radius: var(--radius); overflow: hidden; flex: none; }
.dt-hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; }
.dt-hero__arrow--prev { left: 14px; }
.dt-hero__arrow--next { right: 14px; }
.dt-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.dt-dots span { width: 5px; height: 5px; border-radius: var(--pill); background: #c9c9c9; }
.dt-dots span.is-active { width: 22px; background: var(--accent); }

/* stats strip */
.dt-stats { display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 8px; }
.dt-stats__col { flex: 1; text-align: center; }
.dt-stats__num { font-size: 20px; font-weight: 600; }
.dt-stats__lbl { font-size: 11px; color: var(--muted-2); font-weight: 300; margin-top: 2px; }
.dt-stats__sep { width: 1px; background: var(--line-2); }

/* product grid */
.dt-grid { display: grid; gap: 18px; }
.dt-grid--4 { grid-template-columns: repeat(4, 1fr); }
.dt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dt-grid--cats { grid-template-columns: repeat(6, 1fr); gap: 14px; }

/* ==========================================================================
   PRODUCT CARD (MBCard)
   ========================================================================== */
.dt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.dt-card__media { position: relative; height: 180px; flex: none; }
.dt-card__media img { width: 100%; height: 100%; object-fit: contain; }
.dt-card__badge { position: absolute; top: 12px; left: 12px; color: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: .12em; border-radius: var(--pill); padding: 4px 11px; white-space: nowrap; background: #5f5f5f; text-transform: uppercase; }
.dt-card__badge--sale { background: var(--accent); }
.dt-card__badge2 { position: absolute; top: 40px; left: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 9px; font-weight: 600; letter-spacing: .12em; border-radius: var(--pill); padding: 3px 9px; }
.dt-card__fav { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.08); cursor: pointer; }
.dt-card__fav svg { width: 13px; height: 13px; }
.dt-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dt-card__title { font-size: 13.5px; font-weight: 500; line-height: 1.4; min-height: 38px; }
.dt-card__rating { display: flex; gap: 10px; align-items: center; font-size: 10px; }
.dt-card__stars { letter-spacing: 1.5px; }
.dt-card__stars .full { color: var(--ink); }
.dt-card__stars .empty { color: #d9d9d9; }
.dt-card__reviews { color: var(--muted-2); }
.dt-card__stock { font-size: 10.5px; font-weight: 500; color: var(--ink-2); }
.dt-card__stock.is-low { color: var(--accent); }
.dt-card__foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.dt-card__price { display: flex; align-items: baseline; gap: 6px; }
.dt-card__price .now { font-size: 15px; font-weight: 600; white-space: nowrap; }
.dt-card__price .old { font-size: 11px; color: #bbb; text-decoration: line-through; }
.dt-card__buy { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #ccc; display: inline-flex; align-items: center; justify-content: center; background: transparent; cursor: pointer; }
.dt-card__buy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.dt-card__buy svg { width: 14px; height: 14px; }
.dt-card__oneclick { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dt-card__oneclick:hover { color: var(--ink); }

/* language switcher: із однією активною мовою перемикач не потрібен
   (модуль language_switch все одно рендерить список з одного пункту) */
.dt-topbar__lang .lang-switch .items li:only-child { display: none; }

/* newsletter form: ajax result message */
.dt-news-bar__msg { margin-top: 10px; font-size: 12.5px; opacity: .85; }

/* cookie consent bar */
.dt-cookiebar {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 18px; max-width: 640px; width: calc(100% - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 16px 20px; z-index: 200;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease;
}
.dt-cookiebar.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dt-cookiebar__text { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.dt-cookiebar__btn { flex: none; padding: 10px 20px; font-size: 11px; }
@media (max-width: 640px) {
  .dt-cookiebar { flex-direction: column; align-items: stretch; text-align: center; }
}

/* loyalty CTA */
.dt-loyalty { border: 2px solid var(--accent); border-radius: var(--radius); padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.dt-loyalty__title { font-size: 26px; font-weight: 700; letter-spacing: .04em; }
.dt-loyalty__text { font-size: 12.5px; font-weight: 300; color: var(--ink-2); margin-top: 5px; }

/* 3 advantage cards */
.dt-advcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 13px; align-items: flex-start; }
.dt-advcard__ico { width: 36px; height: 36px; border-radius: 9px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dt-advcard__title { font-size: 13.5px; font-weight: 600; }
.dt-advcard__text { font-size: 11.5px; font-weight: 300; color: #777; line-height: 1.55; margin-top: 3px; }

/* category circles */
.dt-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.dt-cat__img { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--surface); }
.dt-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.dt-cat__name { font-size: 12px; font-weight: 500; line-height: 1.3; }
.dt-cat__count { font-size: 10.5px; font-weight: 300; color: var(--muted-2); margin-top: 2px; }

/* brands row */
.dt-brands { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.dt-brands__track { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 18px; filter: grayscale(1); }
.dt-brands__item { font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); white-space: nowrap; }

/* help CTA */
.dt-help { background: var(--surface); border-radius: var(--radius); padding: 36px 44px; display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.dt-help__title { font-size: 22px; font-weight: 600; line-height: 1.25; }
.dt-help__text { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--ink-2); margin-top: 8px; }

/* seo typo */
.dt-seo { font-size: 13px; font-weight: 300; color: var(--ink-2); line-height: 1.85; }
.dt-seo h1, .dt-seo h2 { color: var(--ink); }
.dt-seo h2 { font-size: 24px; font-weight: 600; }
.dt-seo p { margin: 12px 0 0; }
.dt-seo ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.dt-seo b { font-weight: 500; color: var(--ink); }

/* newsletter black bar */
.dt-news-bar { background: var(--accent); color: #fff; padding: 30px 0; }
.dt-news-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.dt-news-bar__title { font-size: 20px; font-weight: 600; }
.dt-news-bar__sub { font-size: 12.5px; font-weight: 300; opacity: .75; margin-top: 4px; }
.dt-news-bar__form { display: flex; background: #fff; border-radius: var(--pill); padding: 5px 5px 5px 22px; align-items: center; min-width: 380px; }
.dt-news-bar__form input { flex: 1; border: 0; background: transparent; outline: 0; color: var(--muted-2); font: 300 13px var(--font); }
.dt-news-bar__form button { background: var(--accent); color: #fff; border: 0; border-radius: var(--pill); padding: 11px 26px; font-size: 12px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; cursor: pointer; text-transform: uppercase; }

/* map */
.dt-map { height: 280px; position: relative; overflow: hidden; background: #eaeaea; }
.dt-map__grid { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg,#e0e0e0 0 1px,transparent 1px 42px), repeating-linear-gradient(90deg,#e0e0e0 0 1px,transparent 1px 42px); }
.dt-map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-100%); }
.dt-map__pin span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); }
.dt-map__card { position: absolute; left: 24px; top: 24px; background: #fff; border-radius: 10px; padding: 13px 17px; box-shadow: 0 4px 18px rgba(0,0,0,.12); font-size: 11.5px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.dt-footer { width: 100%; background: #fff; border-top: 1px solid #eee; color: var(--ink); }
.dt-footer__cols { padding: 40px 0 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; }
.dt-footer__brandtext { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.7; margin-top: 12px; max-width: 220px; }
.dt-footer__label { font-size: 9.5px; font-weight: 600; letter-spacing: .2em; color: #aaa; margin-top: 18px; }
.dt-chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dt-chip { background: var(--surface); border-radius: 5px; padding: 4px 9px; font-size: 10px; font-weight: 500; color: var(--ink-2); }
.dt-footer__coltitle { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; margin-bottom: 14px; text-transform: uppercase; }
.dt-footer__links { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; font-weight: 300; color: var(--muted); }
.dt-footer__rating-num { font-size: 26px; font-weight: 600; }
.dt-footer__bottom { background: var(--surface); margin-top: 32px; }
.dt-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; font-size: 10.5px; font-weight: 400; letter-spacing: .1em; color: var(--ink-2); }
.dt-footer__soc { display: flex; gap: 14px; font-size: 12px; color: var(--ink); }

/* breadcrumbs */
.dt-crumbs { font-size: 10.5px; font-weight: 300; color: var(--muted-2); padding: 14px 0; }
.dt-crumbs .sep { color: #ccc; }
.dt-crumbs .cur { color: var(--ink); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .dt-aside { width: 210px; }
  .dt-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .dt-grid--cats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .dt-home { flex-direction: column; }
  /* макет m-home: спершу hero/контент, сайдбарні бокси (каталог/переваги/
     лідери) — після основного контенту; каталог на мобілці і так у бургері */
  .dt-aside { width: 100%; order: 2; }
  .dt-main { order: 1; }
  .dt-aside .dt-catnav { display: none; }
  .dt-hero__media { display: none; }
  .dt-news-bar__inner { flex-direction: column; align-items: flex-start; }
  .dt-news-bar__form { min-width: 0; width: 100%; }
  .dt-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .dt-container { padding: 0 16px; }
  .dt-grid--4, .dt-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .dt-grid--cats { grid-template-columns: repeat(3, 1fr); }
  .dt-topbar, .dt-search, .dt-toolbar__labels { display: none; }
  .dt-hero__inner { padding: 28px 20px; }
  .dt-hero__title { font-size: 26px; }
  .dt-loyalty, .dt-help, .dt-advcard { flex-direction: column; align-items: flex-start; }
  .dt-footer__cols { grid-template-columns: 1fr; }
}

/* ---- integration glue: menus rendered by core nav/widget helpers -------- */
.dt-topbar__links ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.dt-topbar__links li { display: inline; }
.dt-topbar__links a { text-transform: uppercase; }
.dt-topbar__lang ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dt-topbar__lang li { display: inline; }
.dt-footer__links a { display: block; }
.dt-footer__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.dt-burger-wrap { flex: none; margin-right: 4px; }
.dt-tool__lbl { white-space: nowrap; }
@media (max-width: 1100px) { .dt-tool__lbl { display: none; } }

/* ---- fix: component link colors must beat base ".dt a{color:inherit}" (0,1,1) --- */
.dt .dt-btn--primary { color: var(--accent-contrast); }
.dt .dt-btn--primary:hover { color: var(--accent-contrast); }
.dt .dt-btn--outline { color: var(--ink); }
.dt .dt-btn--outline:hover { color: #fff; }
.dt .dt-cart__btn, .dt a.dt-cart__btn:hover { color: #fff; }

/* language switcher (dt): current flag + caret inline, dropdown below-right */
.dt-topbar__lang .dt-lang { position: relative; display: inline-flex; }
.dt-topbar__lang .dt-lang__cur { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; line-height: 1; }
.dt-topbar__lang .dt-lang__cur .caret { font-size: 8px; color: var(--muted); }
.dt-topbar__lang .dt-lang__drop { position: absolute; top: calc(100% + 8px); right: 0; min-width: 130px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-pop); padding: 4px; opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 40; }
.dt-topbar__lang .dt-lang:hover .dt-lang__drop { opacity: 1; visibility: visible; }
.dt-topbar__lang .dt-lang__item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; white-space: nowrap; text-transform: none; letter-spacing: normal; font-size: 12px; }
.dt-topbar__lang .dt-lang__item:hover { background: var(--surface); }
.dt .dt-catalog__btn { color: #fff; }
.dt .dt-catnav__head { color: #fff; }
.dt .dt-news-bar__form button { color: #fff; }
.dt .dt-card__buy:hover { color: #fff; }
.dt .dt-linkmore, .dt .dt-tool { color: var(--ink); }

/* ==========================================================================
   CATEGORY PAGE
   ========================================================================== */
.dt-cathead { display: flex; justify-content: space-between; align-items: flex-end; padding: 6px 0 18px; gap: 20px; flex-wrap: wrap; }
.dt-cattitle { font-size: 26px; font-weight: 600; margin: 0; }
.dt-catcount { font-size: 12px; font-weight: 300; color: var(--muted-2); margin-top: 3px; }
.dt-cattools { display: flex; align-items: center; gap: 14px; }
.dt-sort select, .dt-sort .form-control { border: 1px solid var(--line); border-radius: var(--pill); padding: 9px 18px; font-size: 12px; font: 400 12px var(--font); color: var(--ink); background: #fff; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.dt-viewtoggle { display: flex; gap: 6px; }
.dt-viewtoggle span { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.dt-viewtoggle span svg { width: 14px; height: 14px; }
.dt-viewtoggle span.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.dt-catlayout { display: flex; gap: 24px; padding-bottom: 40px; }
.dt-cataside { width: 244px; flex: none; display: flex; flex-direction: column; gap: 18px; }
.dt-catmain { flex: 1; min-width: 0; }

/* subnav */
.dt-subnav .sidebar-nav, .dt-subnav nav { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.dt-subnav .sidebar-nav__title { font-size: 13px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.dt-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dt-subnav a { font-size: 12.5px; color: var(--ink-2); }
.dt-subnav a:hover { color: var(--accent); }

/* smart_filter box (goodlook markup wrapped) */
.dt-filter { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 12.5px; }
.dt-filter .filter__title, .dt-filter h3, .dt-filter .filter-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.dt-filter .btn, .dt-filter button[type=submit] { display: inline-flex; align-items: center; justify-content: center; width: 100%; background: var(--accent); color: #fff; border-radius: var(--pill); padding: 11px; font-size: 12px; font-weight: 500; border: 0; cursor: pointer; margin-top: 12px; }
.dt-filter label { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 300; color: var(--ink-2); padding: 5px 0; cursor: pointer; }

/* filter result chips */
.dt-catmain .filter-results, .dt-catmain [data-filter-results] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dt-catmain .filter-results a, .dt-catmain .filter-results__item { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; border-radius: var(--pill); padding: 7px 15px; font-size: 11px; font-weight: 500; }

/* pagination (goodlook markup restyled) */
.dt-pagination { display: flex; justify-content: center; margin-top: 26px; }
.dt-pagination ul, .dt-pagination .pagination { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.dt-pagination a, .dt-pagination span, .dt-pagination li > * { min-width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink); padding: 0 6px; }
.dt-pagination .active > *, .dt-pagination a.active, .dt-pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 500; }
.dt-empty { font-size: 14px; color: var(--muted); padding: 40px 0; text-align: center; }

/* list view (toggled by JS; grid default) */
.dt-catmain[data-view="list"] .dt-grid--3 { grid-template-columns: 1fr; }

/* ---- neutralize goodlook .page__hgroup chrome (gradient band + mobile height) --- */
.page__hgroup { background: #fff !important; min-height: 0 !important; height: auto !important; padding: 0 !important; box-shadow: none !important; }
@media screen and (max-width: 767px) { .page__hgroup { background: #fff !important; height: auto !important; } }
.page__content { padding-top: 0 !important; }

/* ==========================================================================
   МОДАЛЬНІ ВІКНА (magnificPopup): єдиний dt-стиль для ВСІХ легасі-модалок
   (callback, «Купити в 1 клік», вішліст-попап, таблиця розмірів, логін…) —
   та сама мова, що й модалка кошика: біла картка, radius, кругла ✕,
   pill-поля і pill-кнопки.
   ========================================================================== */
.mfp-content .modal {
  width: 520px; max-width: 96vw; background: #fff; border-radius: var(--radius);
  padding: 0; font-family: var(--font); color: var(--ink); overflow: hidden;
}
.mfp-content .modal--lg { width: 720px; }
.mfp-content .modal__header { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 14px; border: 0; background: transparent; }
.mfp-content .modal__title { font-size: 20px; font-weight: 600; color: var(--ink); }
.mfp-content .modal__close-button {
  width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.mfp-content .modal__close-button .modal__icon { display: inline-flex; }
.mfp-content .modal__close-button .svg-icon { width: 10px; height: 10px; fill: var(--ink); }
.mfp-content .modal__content { padding: 4px 26px 12px; }
.mfp-content .modal__content-cell { padding: 0 0 10px; }
.mfp-content .modal__footer { padding: 4px 26px 22px; border: 0; background: transparent; }
.mfp-content .modal__row--flex,
.mfp-content .modal__footer .form__inner--flex { display: flex; gap: 10px; }

/* форми в модалках: підпис зверху, pill-поля */
.mfp-content .modal .form__field { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 12px; }
.mfp-content .modal .form__label { width: auto; text-align: left; align-self: flex-start; margin: 0; font-size: 11.5px; font-weight: 500; color: var(--ink); padding: 0; float: none; }
.mfp-content .modal .form__inner { width: 100%; margin: 0; float: none; }
.mfp-content .modal .form-control {
  width: 100%; border: 1px solid #ddd; border-radius: var(--pill); padding: 11px 18px;
  font: 400 12.5px var(--font); color: var(--ink); background: #fff; outline: none; box-shadow: none; height: auto;
}
.mfp-content .modal textarea.form-control { border-radius: 14px; min-height: 96px; }
.mfp-content .modal .form-control:focus { border-color: var(--accent); }
.mfp-content .modal .typo { font-size: 12.5px; font-weight: 300; color: var(--ink-2); line-height: 1.6; }

/* кнопки в модалках: btn-default → outline pill, btn-primary → чорна pill */
.mfp-content .modal .btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pill); padding: 12px 22px; font: 500 12.5px var(--font);
  cursor: pointer; text-decoration: none; border: 1px solid transparent; line-height: 1;
}
.mfp-content .modal .btn-default { background: transparent; border-color: var(--ink); color: var(--ink); }
.mfp-content .modal .btn-default:hover { background: var(--ink); color: #fff; }
.mfp-content .modal .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.mfp-content .modal .btn-primary:hover { opacity: .88; }
.mfp-content .modal .message--error { color: #b3261e; font-size: 12px; }
.mfp-content .modal .message--success { color: var(--ink); font-size: 12.5px; }
/* хрестик magnific поверх нашого хедера не потрібен */
.mfp-content .mfp-close { display: none; }

/* монохром: лічильник відгуків у картці */
.dt-card__reviews, .dt-card__reviews a { color: var(--muted); }

/* фільтр: білий фон і чорні заголовки замість легасі-блакиті */
.dt-filter, .dt-filter .filter, .dt-filter .filter__item, .dt-filter .content__sidebar-item { background: #fff; }
.dt-filter .filter__title { color: var(--ink); font-size: 12.5px; font-weight: 600; }
.dt-filter .filter-price__label { color: var(--ink-2); }
.dt-filter .filter-price__input { border: 1px solid #ddd; border-radius: 8px; padding: 8px 12px; font-size: 12px; width: 100%; background: #fff; outline: none; }
.dt-filter .filter-price__input:focus { border-color: var(--accent); }

/* слайдер ціни (jQuery UI без власного CSS): тонкий трек + круглі хендли,
   як у макеті sec-category */
.dt-filter .range-slider { padding: 16px 8px 6px; }
.dt-filter [data-range-slider].ui-slider,
.dt-filter [data-range-slider] { position: relative; height: 3px; background: var(--line); border: 0; border-radius: var(--pill); }
.dt-filter [data-range-slider] .ui-slider-range { position: absolute; top: 0; height: 3px; background: var(--accent); border-radius: var(--pill); }
.dt-filter [data-range-slider] .ui-slider-handle { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; outline: none; margin: 0; z-index: 2; }

/* картка: кнопки кошик + 1-клік поряд; серце-кнопка обраного в кружку */
.dt-card__btns { display: flex; gap: 8px; align-items: center; }
a.dt-card__buy--oneclick { color: var(--ink); }
.dt-card__fav { overflow: visible; }
.dt-card__fav { display: flex; align-items: center; justify-content: center; }
.dt-card__fav .product-actions__icon {
  display: flex; align-items: center; justify-content: center;
  width: auto; height: auto; margin: 0; line-height: 0;
}
.dt-card__fav .product-actions__icon .svg-icon { width: 14px; height: 14px; fill: var(--ink); }
.dt-card__fav .product-actions__icon.is-active .svg-icon { fill: var(--accent); }
.dt-card__fav .product-actions__link { position: absolute; inset: 0; font-size: 0; border-radius: 50%; }
