/* ============================================
   Venge - Інтернет-магазин меблів
   Спільні стилі
   ============================================ */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100;
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1MmgVxIIzQ.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBBc4.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fBBc4.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBBc4.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #faf8f4;
  --bg-2: #f3efe7;
  --bg-3: #ece6da;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #44423d;
  --ink-3: #76736c;
  --line: #e6e0d3;
  --line-2: #d8d1c0;
  --accent: #0ea672;        /* emerald */
  --accent-2: #0b8a5f;
  --accent-ink: #f7f3ea;
  --terracotta: #ff6b35;    /* coral orange */
  --gold: #d08a1c;
  --price: #1a1a1a;
  --price-old: #a8a39a;
  --success: #0ea672;
  --shadow-sm: 0 1px 2px rgba(20,18,12,.04);
  --shadow-md: 0 8px 24px rgba(20,18,12,.06);
  --shadow-lg: 0 22px 60px rgba(20,18,12,.10);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --container: 1280px;
}

/* ===== Emerald theme (base) ===== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 100;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
h1 { font-size: 56px; }
h2 { font-size: 38px; }
h3 { font-size: 24px; font-weight: 300; }
h4 { font-size: 18px; font-weight: 400; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-3);
}
.muted { color: var(--ink-3); }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--ink);
  color: #d8d1c0;
  font-size: 12px;
  font-weight: 300;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar a { color: #d8d1c0; }
.topbar a:hover { color: #fff; }
.topbar-nav { display: flex; gap: 28px; }
.topbar-right { display: flex; gap: 22px; align-items: center; }
.topbar-lang { display: flex; gap: 6px; }
.topbar-lang span { color: #76736c; }
.topbar-lang .active { color: #fff; font-weight: 500; }

/* ---------- Header ---------- */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 22px 0;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo-img {
  height: 52px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.footer-logo-img {
  height: 56px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}
.logo-mark {
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
}
.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.logo-sub {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink-3);
}

.search-wrap {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 22px;
  align-items: center;
}
.search-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-weight: 300;
  font-size: 14px;
  color: var(--ink);
  padding: 10px 0;
}
.search-wrap input::placeholder { color: var(--ink-3); }
.search-btn {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 400;
}
.search-btn:hover { background: var(--accent-2); }

.header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.icon-btn .badge {
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- Nav (categories bar) ---------- */
.catnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.catnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}
.catnav a {
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.catnav a:hover, .catnav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 540px;
  padding: 60px 0;
}
.hero-text .eyebrow { margin-bottom: 18px; display: block; }
.hero-text h1 {
  font-size: 72px;
  font-weight: 100;
  margin-bottom: 24px;
  line-height: 1.05;
}
.hero-text p {
  font-size: 17px;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 460px;
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 12px; }
.hero-visual {
  position: relative;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
}
.hero-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--surface);
  padding: 14px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.hero-tag .tag-price { font-weight: 400; color: var(--accent); }
.hero-tag .tag-name { font-size: 12px; color: var(--ink-3); }

/* ---------- Promo strip ---------- */
.promo-strip {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 300;
}
.promo-strip strong { font-weight: 500; }
.promo-cart {
  background: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 400;
}
.promo-cart strong { font-weight: 700; }

/* ---------- Section heading ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.section-head h2 { font-size: 42px; }
.section-head .section-sub {
  color: var(--ink-3);
  font-size: 14px;
  max-width: 360px;
  margin-top: 12px;
}
.section-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.cat-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cat-tile svg {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  color: var(--accent);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
}
.cat-tile-name { font-size: 14px; font-weight: 400; color: var(--ink); margin-bottom: 4px; }
.cat-tile-count { font-size: 11px; color: var(--ink-3); }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.product-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.product-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-2);
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.badge-pill {
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.badge-pill.sale { background: var(--terracotta); }
.badge-pill.new { background: var(--accent); }
.badge-pill.hit { background: var(--gold); }

.product-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.9);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all .15s ease;
}
.product-fav:hover { background: #fff; }
.product-fav svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.product-fav.active svg { fill: var(--terracotta); stroke: var(--terracotta); }

.product-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-vendor { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.product-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  min-height: 44px;
}
.product-meta { display: flex; gap: 12px; color: var(--ink-3); font-size: 12px; align-items: center; }
.product-rating { display: flex; gap: 2px; }
.product-rating svg { width: 12px; height: 12px; fill: var(--gold); }

.product-price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: auto;
  padding-top: 6px;
}
.product-price {
  font-size: 24px;
  font-weight: 400;
  color: var(--price);
  line-height: 1.1;
}
.product-price-old {
  font-size: 13px;
  color: var(--price-old);
  text-decoration: line-through;
}
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 2px;
}
.product-actions .btn { flex: 1; }
.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.btn-icon:hover { border-color: var(--ink); }
.btn-icon svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.4; }

/* ---------- Banner / Editorial ---------- */
.editorial {
  background: var(--ink);
  color: #f7f3ea;
  padding: 80px 0;
}
.editorial h2 { color: #f7f3ea; font-weight: 100; max-width: 720px; }
.editorial .editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.editorial-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.editorial-card-img {
  aspect-ratio: 4/3;
  background: #2a2a2a;
  border-radius: var(--radius);
  overflow: hidden;
}
.editorial-card-img img { width: 100%; height: 100%; object-fit: cover; }
.editorial-card h4 { color: #f7f3ea; font-size: 22px; font-weight: 300; }
.editorial-card p { color: #b8b3a8; font-size: 14px; margin: 0; }

/* ---------- Banner ad ---------- */
.split-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.banner-card {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.banner-card.dark { background: var(--accent); color: var(--accent-ink); }
.banner-card.dark h3 { color: var(--accent-ink); }
.banner-card h3 { font-size: 28px; font-weight: 100; margin-bottom: 16px; line-height: 1.1; }
.banner-card p { font-size: 14px; margin: 0 0 22px; opacity: 0.85; }
.banner-card-img {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
}
.banner-card-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Brands ---------- */
.brands {
  background: var(--bg-2);
  padding: 60px 0;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.brand-tile {
  background: var(--surface);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  transition: background .15s ease;
}
.brand-tile:hover { background: var(--bg); color: var(--accent); }

/* ---------- USP ---------- */
.usp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.usp-item {
  padding: 32px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-right: 1px solid var(--line);
}
.usp-item:last-child { border-right: 0; }
.usp-item svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.2;
}
.usp-item h4 { font-size: 15px; font-weight: 400; margin-bottom: 4px; }
.usp-item p { color: var(--ink-3); font-size: 13px; margin: 0; }

/* ---------- Cart modal ---------- */
.cart-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,18,12,.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cart-modal-overlay.open { opacity: 1; pointer-events: auto; }
.cart-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98);
  transition: transform .25s ease;
}
.cart-modal-overlay.open .cart-modal { transform: translateY(0) scale(1); }
.cart-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border: 0; background: transparent;
  border-radius: 50%;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-modal-close:hover { background: var(--bg-2); color: var(--ink); }
.cart-modal-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.cart-modal h3 { font-size: 24px; font-weight: 300; margin-bottom: 8px; }
.cart-modal-prod { color: var(--ink-2); font-size: 15px; margin: 0 0 18px; font-weight: 400; }
.cart-modal-discount {
  background: var(--bg-2);
  border: 1px dashed var(--terracotta);
  color: var(--ink-2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 22px;
}
.cart-modal-discount strong { color: var(--terracotta); font-weight: 700; }
.cart-modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Admin order toast (демо) ---------- */
.admin-toast {
  position: fixed;
  top: 20px; right: 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  z-index: 400;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.admin-toast.show { transform: translateX(0); }
.admin-toast-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-toast strong { font-weight: 500; font-size: 14px; }
.admin-toast-sub { font-size: 12px; color: #b8b3a8; margin-top: 2px; }
.admin-toast-snd {
  margin-left: auto;
  background: rgba(255,255,255,.1);
  border: 0;
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}
.admin-toast-snd:hover { background: rgba(255,255,255,.2); }

/* ---------- Buy accent (product page) ---------- */
.modular-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  transition: background .15s ease;
}
.modular-block:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.modular-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.modular-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
}
.modular-tag svg { width: 13px; height: 13px; flex-shrink: 0; }
.modular-name { font-size: 15px; font-weight: 400; color: var(--ink); }
.modular-link { font-size: 13px; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.modular-block:hover .modular-link { text-decoration: underline; }
@media (max-width: 520px) {
  .modular-block { flex-direction: column; align-items: flex-start; }
}

.buy-discount-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px dashed var(--terracotta);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  margin-bottom: 14px;
}
.buy-discount-note strong { color: var(--terracotta); font-weight: 700; }
.buy-explain {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
  line-height: 1.5;
}
.buy-explain svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; stroke: var(--accent); fill: none; stroke-width: 1.5; }

/* ---------- Cart priority notice ---------- */
.cart-notice {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
}
.cart-notice svg { width: 24px; height: 24px; flex-shrink: 0; stroke: var(--accent-ink); fill: none; stroke-width: 1.5; }

/* ---------- Compare page ---------- */
.compare-wrap { padding: 24px 0 80px; overflow-x: auto; }
.compare-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table .row-label {
  width: 200px;
  color: var(--ink-3);
  font-weight: 400;
  background: var(--bg-2);
  white-space: nowrap;
}
.compare-prod-head {
  text-align: center;
  position: relative;
}
.compare-prod-img {
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.compare-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.compare-prod-name { font-size: 14px; font-weight: 500; margin-bottom: 6px; display: block; }
.compare-prod-price { font-size: 20px; font-weight: 400; color: var(--ink); }
.compare-remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}
.compare-remove:hover { color: var(--terracotta); }
.compare-remove svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.compare-table td.highlight { color: var(--accent); font-weight: 500; }

/* ---------- Blog / Articles ---------- */
.blog-hero {
  background: var(--bg-2);
  padding: 56px 0;
  margin-bottom: 48px;
}
.blog-hero h1 { font-size: 52px; font-weight: 200; margin-bottom: 14px; }
.blog-hero p { color: var(--ink-2); font-size: 16px; max-width: 560px; }
.blog-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.blog-tag {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-2);
}
.blog-tag:hover, .blog-tag.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.blog-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}
.blog-featured-img { aspect-ratio: 16/10; background: var(--bg-3); }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-body { padding: 20px 48px 20px 8px; }
.blog-featured-body .eyebrow { color: var(--terracotta); display: block; margin-bottom: 14px; }
.blog-featured-body h2 { font-size: 34px; font-weight: 200; margin-bottom: 16px; line-height: 1.2; }
.blog-featured-body p { color: var(--ink-2); margin-bottom: 22px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s ease;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-img { aspect-ratio: 16/10; background: var(--bg-3); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.03em; }
.blog-card-meta .cat { color: var(--terracotta); font-weight: 500; }
.blog-card h3 { font-size: 20px; font-weight: 300; line-height: 1.3; }
.blog-card p { color: var(--ink-3); font-size: 14px; margin: 0; flex: 1; }
.blog-card .read { font-size: 13px; color: var(--accent); margin-top: 4px; }

/* ---------- Article page ---------- */
.article-hero {
  max-width: none;
  margin: 0 auto;
  padding: 40px 0 32px;
  text-align: center;
}
.article-hero .eyebrow { color: var(--terracotta); display: block; margin-bottom: 18px; }
.article-hero h1 { font-size: 48px; font-weight: 200; line-height: 1.15; margin-bottom: 22px; }
.article-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}
.article-meta .author { display: flex; align-items: center; gap: 10px; }
.article-meta .author-ava {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-3);
  overflow: hidden;
}
.article-meta .author-ava img { width: 100%; height: 100%; object-fit: cover; }
.article-cover {
  max-width: none;
  margin: 0 auto 48px;
  aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body {
  max-width: none;
  margin: 0 auto;
}
.article-body p { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin: 0 0 24px; }
.article-body h2 { font-size: 30px; font-weight: 300; margin: 44px 0 18px; }
.article-body h3 { font-size: 22px; font-weight: 400; margin: 32px 0 14px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 24px; }
.article-body li { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 10px; }
.article-body img { border-radius: var(--radius); margin: 12px 0 32px; }
.article-figure { margin: 12px 0 36px; }
.article-figure img { aspect-ratio: 16/9; object-fit: cover; width: 100%; margin: 0; }
.article-figure figcaption { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 12px; }
.article-quote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 32px 0;
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.5;
}
.article-callout {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  gap: 16px;
}
.article-callout svg { width: 28px; height: 28px; flex-shrink: 0; stroke: var(--accent); fill: none; stroke-width: 1.4; }
.article-callout p { font-size: 15px; margin: 0; }
.article-share {
  max-width: none;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.article-share-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-share-tags span {
  font-size: 12px;
  padding: 6px 14px;
  background: var(--bg-2);
  border-radius: 999px;
  color: var(--ink-3);
}
.article-author-box {
  max-width: none;
  margin: 48px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.article-author-box .ava { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-3); }
.article-author-box .ava img { width: 100%; height: 100%; object-fit: cover; }
.article-author-box h4 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.article-author-box p { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ---------- Account dashboard (WooCommerce style) ---------- */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 32px 0 80px;
}
.account-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: max-content;
}
.account-nav-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
}
.account-nav-ava {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
}
.account-nav-head .nm { font-size: 15px; font-weight: 500; }
.account-nav-head .em { font-size: 12px; color: var(--ink-3); }
.account-nav ul { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.account-nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.account-nav a:hover { background: var(--bg-2); }
.account-nav a.active { background: var(--accent); color: #fff; }
.account-nav a .cnt { margin-left: auto; font-size: 11px; background: var(--bg-3); color: var(--ink-2); border-radius: 999px; padding: 1px 8px; }
.account-nav a.active .cnt { background: rgba(255,255,255,.25); color: #fff; }
.account-nav a.logout { color: var(--terracotta); }

.account-welcome {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.account-welcome h1 { font-size: 30px; font-weight: 200; margin-bottom: 10px; }
.account-welcome p { color: var(--ink-2); margin: 0; font-size: 15px; }
.account-welcome a { color: var(--accent); }

.account-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.account-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: all .18s ease;
}
.account-tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.account-tile svg { width: 40px; height: 40px; stroke: var(--accent); fill: none; stroke-width: 1.2; }
.account-tile .t-name { font-size: 15px; font-weight: 400; color: var(--ink); }
.account-tile .t-sub { font-size: 12px; color: var(--ink-3); }

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.account-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.account-stat .num { font-size: 32px; font-weight: 200; color: var(--accent); }
.account-stat .lbl { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.03em; }

.account-orders {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}
.account-orders h3 { font-size: 18px; font-weight: 400; padding: 22px 28px 0; margin: 0; }
.order-row {
  display: grid;
  grid-template-columns: 120px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.order-row:last-child { border-bottom: 0; }
.order-row .o-id { font-weight: 500; }
.order-row .o-date { color: var(--ink-3); font-size: 13px; }
.order-status {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
}
.order-status.done { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-2); }
.order-status.progress { background: #fdf0e6; color: var(--terracotta); }
.order-status.wait { background: var(--bg-3); color: var(--ink-2); }
@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav ul { flex-direction: row; overflow-x: auto; flex-wrap: nowrap; }
  .account-nav a { white-space: nowrap; }
  .account-nav-head { display: none; }
}
@media (max-width: 640px) {
  .account-tiles, .account-stats { grid-template-columns: repeat(2, 1fr); }
  .order-row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .order-row .o-items { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #c8c1b1;
  padding: 64px 0 24px;
}
.footer a { color: #c8c1b1; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 18px;
  letter-spacing: 0.04em;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-brand { font-family: 'Roboto'; font-weight: 100; font-size: 38px; color: #fff; margin-bottom: 16px; line-height: 1; }
.footer-brand .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; margin-left: 4px; vertical-align: middle; }
.footer-about { font-size: 14px; color: #a8a39a; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #76736c;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 10px; color: #c8c1b1; }
.contact-line svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; stroke: currentColor; fill: none; stroke-width: 1.4; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  padding: 18px 0;
  font-size: 12px;
  color: var(--ink-3);
}
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; color: var(--line-2); }

/* ---------- Catalog page ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 32px 0 80px;
}

.catalog-grid.no-filters {
  grid-template-columns: 1fr;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.filter-block { border-bottom: 1px solid var(--line); padding: 18px 0; }
.filter-block:first-child { padding-top: 0; }
.filter-block:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-block h5 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--ink);
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}
.filter-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.filter-check span.count { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.range-inputs { display: flex; gap: 8px; margin-bottom: 12px; }
.range-inputs input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  background: var(--bg);
  -moz-appearance: textfield;
}
.range-inputs input::-webkit-outer-spin-button,
.range-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.range-inputs input:focus { outline: none; border-color: var(--accent); }

.swatch-list { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
  cursor: pointer;
}
.swatch:hover { box-shadow: 0 0 0 1px var(--accent); }

.catalog-content { min-width: 0; }
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 18px;
}
.catalog-toolbar .count { color: var(--ink-3); font-size: 13px; }
.sort-select {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.view-toggle { display: flex; gap: 4px; }
.view-toggle button {
  width: 38px; height: 38px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.view-toggle button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.view-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.pagination a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 13px;
  color: var(--ink-2);
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Product page ---------- */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 32px 0 80px;
}
.product-gallery { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-content: start; }
.gallery-specs { grid-column: 1 / -1; margin-top: 8px; }
.gallery-specs h3 { font-size: 22px; font-weight: 300; margin-bottom: 18px; }
.gallery-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.gallery-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.gallery-spec .k { color: var(--ink-3); }
.gallery-spec .v { color: var(--ink); font-weight: 400; text-align: right; }
.gallery-spec .v a { color: var(--accent); }
@media (max-width: 640px) {
  .gallery-specs-grid { grid-template-columns: 1fr; gap: 0; }
}
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumb {
  aspect-ratio: 1/1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main {
  aspect-ratio: 1/1;
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
  font-size: 38px;
  font-weight: 200;
  margin-bottom: 12px;
}
.product-info .product-vendor-line {
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
}
.product-info .product-vendor-line strong { color: var(--ink); font-weight: 400; }
.product-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 0;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.product-price-block .price-now {
  font-size: 44px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}
.product-price-block .price-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-price-block .price-old {
  font-size: 16px;
  color: var(--price-old);
  text-decoration: line-through;
}
.product-price-block .price-save {
  background: var(--terracotta);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
}

.option-row { margin-bottom: 22px; }
.option-row .option-label {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 10px;
  display: block;
}
.color-options { display: flex; gap: 8px; }
.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 86px;
}
.color-option.active { border-color: var(--accent); background: var(--bg-2); }
.color-option .swatch-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.color-option .color-name { font-size: 11px; color: var(--ink-2); }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.qty-input {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
  align-items: center;
}
.qty-input button {
  width: 40px;
  height: 44px;
  background: transparent;
  border: 0;
  font-size: 18px;
  color: var(--ink);
}
.qty-input input {
  width: 50px;
  text-align: center;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
}
.qty-input input:focus { outline: none; }

.purchase-row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.purchase-row .btn-primary { flex: 1; }

.product-features {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
}
.product-features ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.product-features li {
  display: grid;
  grid-template-columns: 28px 130px 1fr;
  align-items: center;
  font-size: 13px;
}
.product-features li svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.4; }
.product-features li .feature-label { color: var(--ink-3); }
.product-features li .feature-value { color: var(--ink); font-weight: 400; }

.product-tabs {
  border-top: 0;
  padding-top: 0;
}
.tabs-nav { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tabs-nav button {
  background: transparent;
  border: 0;
  padding: 14px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs-nav button.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel { display: none; max-width: 820px; line-height: 1.7; color: var(--ink-2); }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { color: var(--ink-3); width: 240px; }

/* ---------- Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding: 32px 0 80px;
}
.cart-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-row {
  display: grid;
  grid-template-columns: 130px 1fr 130px 140px 40px;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row-img {
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border-radius: 6px;
  overflow: hidden;
}
.cart-row-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info .cart-name { font-size: 15px; font-weight: 400; margin-bottom: 4px; }
.cart-row-info .cart-meta { font-size: 12px; color: var(--ink-3); }
.cart-row-price { font-size: 18px; font-weight: 300; text-align: right; }
.cart-row-price-old { font-size: 12px; color: var(--price-old); text-decoration: line-through; text-align: right; }
.cart-row-remove {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-row-remove:hover { background: var(--bg-2); color: var(--terracotta); }
.cart-row-remove svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
  align-self: start;
}
.summary h3 { font-size: 22px; font-weight: 300; margin-bottom: 20px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.summary-row.total {
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 18px;
}
.promo-row { display: flex; gap: 8px; margin: 16px 0 8px; }
.promo-row input {
  flex: 1;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 300;
  background: var(--bg);
}
.promo-row input:focus { outline: none; border-color: var(--accent); }

.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state svg {
  width: 80px; height: 80px;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 1;
  margin-bottom: 24px;
}
.empty-state h2 { font-weight: 200; margin-bottom: 12px; }
.empty-state p { color: var(--ink-3); margin-bottom: 28px; }

/* ---------- Checkout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding: 32px 0 80px;
}
.checkout-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
}
.checkout-section h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.checkout-section h3 .num {
  width: 28px; height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: inherit;
  font-weight: 300;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 80px; }

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg);
}
.radio-card:hover { border-color: var(--ink); }
.radio-card input { accent-color: var(--accent); width: 18px; height: 18px; }
.radio-card.selected { border-color: var(--accent); background: var(--surface); }
.radio-card .radio-title { font-size: 14px; font-weight: 400; }
.radio-card .radio-desc { font-size: 12px; color: var(--ink-3); }
.radio-card .radio-price { margin-left: auto; font-size: 14px; font-weight: 400; }
.radio-card .radio-content { flex: 1; }
.radio-card svg { width: 28px; height: 28px; stroke: var(--ink-2); fill: none; stroke-width: 1.2; }

/* ---------- Payment ---------- */
.payment-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 560px;
  margin: 0 auto;
}
.card-preview {
  background: linear-gradient(135deg, var(--accent) 0%, var(--ink) 100%);
  border-radius: var(--radius);
  padding: 28px;
  color: #fff;
  margin-bottom: 32px;
  position: relative;
}
.card-preview .card-chip {
  width: 36px;
  height: 28px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  margin-bottom: 32px;
}
.card-preview .card-num {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}
.card-preview .card-meta { display: flex; gap: 40px; font-size: 11px; color: rgba(255,255,255,.7); text-transform: uppercase; }
.card-preview .card-meta div { font-size: 14px; color: #fff; margin-top: 4px; }
.card-preview .card-brand {
  position: absolute;
  top: 28px;
  right: 28px;
  font-weight: 100;
  font-size: 18px;
  letter-spacing: 0.06em;
}

/* ---------- Thanks page ---------- */
.thanks-card {
  max-width: 640px;
  margin: 80px auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 64px 40px;
}
.thanks-check {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.thanks-check svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.thanks-card h1 { font-weight: 200; font-size: 42px; margin-bottom: 14px; }
.thanks-card p { color: var(--ink-3); font-size: 15px; margin-bottom: 8px; }
.thanks-order {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-2);
  border-radius: 999px;
  font-size: 13px;
  margin: 14px 0 32px;
}
.thanks-actions { display: flex; gap: 12px; justify-content: center; }

/* ---------- Auth page ---------- */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  background: var(--bg);
}
.auth-side {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-side h2 { color: var(--accent-ink); font-weight: 100; font-size: 48px; max-width: 360px; line-height: 1.1; }
.auth-side p { color: rgba(247,243,234,.7); max-width: 380px; font-size: 15px; }
.auth-side ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; margin: 40px 0; }
.auth-side li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: rgba(247,243,234,.85); }
.auth-side li svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--accent-ink); fill: none; stroke-width: 1.4; }
.auth-form-wrap {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}
.auth-tabs { display: flex; gap: 4px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.auth-tabs button {
  background: transparent; border: 0;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px; font-weight: 400;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .field-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.auth-divider {
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  position: relative;
  margin: 8px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--line);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ---------- Static page ---------- */
.static-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  padding: 32px 0 80px;
}
.static-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  height: max-content;
  position: sticky;
  top: 100px;
}
.static-aside ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.static-aside a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 6px;
}
.static-aside a:hover { background: var(--bg-2); }
.static-aside a.active { background: var(--accent); color: #fff; }
.static-content { max-width: 720px; }
.static-content h1 { font-size: 48px; font-weight: 200; margin-bottom: 24px; }
.static-content h2 { font-size: 28px; font-weight: 300; margin: 40px 0 16px; }
.static-content p, .static-content li { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin: 0 0 14px; }
.static-content ul { padding-left: 22px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
}
.contact-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); font-weight: 500; margin-bottom: 16px; }
.contact-block p { font-size: 16px; margin-bottom: 8px; }
.contact-block .big { font-size: 22px; font-weight: 300; color: var(--ink); }

/* ---------- Misc placeholders for images ---------- */
.ph {
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,.03) 0 6px,
      transparent 6px 14px),
    var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-family: 'Roboto Mono', monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 12px;
}

/* ---------- Floating contact button ---------- */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--accent);
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  transition: transform .15s ease;
}
.fab:hover { transform: scale(1.05); color: #fff; }
.fab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ---------- Mobile menu ---------- */
.mobile-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  padding: 0;
}
.mobile-toggle svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.6; }

.mobile-drawer {
  position: fixed;
  top: 0; bottom: 0; right: 0;
  width: min(86vw, 380px);
  background: var(--bg);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(20,18,12,.45);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-drawer-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-drawer-close {
  width: 40px; height: 40px;
  border: 0; background: transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-drawer-close:hover { background: var(--bg-2); }
.mobile-drawer-close svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.5; }

.mobile-drawer-section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer-section h6 {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.mobile-drawer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer-section a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}
.mobile-drawer-section a:hover { color: var(--accent); }

/* ---------- Responsive (very basic) ---------- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-text h1 { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .editorial-grid, .editorial .editorial-grid, .split-banner, .usp { grid-template-columns: 1fr; }
  .usp-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-page, .cart-layout, .checkout-layout, .auth-wrap, .static-layout { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid { grid-template-columns: 1fr; }
  .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .static-aside { position: static; }
}

@media (max-width: 900px) {
  .topbar { display: none; }
  .catnav { display: none; }
  .promo-strip { font-size: 11px; padding: 10px 16px; }

  .header { position: sticky; top: 0; padding-top: 8px; }
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo search toggle"
      "actions actions actions";
    gap: 12px 14px;
    padding: 14px 0;
    align-items: center;
  }
  .logo { grid-area: logo; min-width: 0; }
  .logo-img { height: 38px; max-width: none; flex-shrink: 0; }
  .logo-sub { display: none; }
  .search-wrap {
    grid-area: search;
    padding: 3px 3px 3px 14px;
    max-width: 66%;
    justify-self: end;
    margin-right: 6px;
  }
  .search-wrap input { padding: 8px 0; font-size: 12px; min-width: 0; }
  .search-btn { padding: 7px 12px; font-size: 11px; }
  .search-btn span { display: none; }
  .mobile-toggle { grid-area: toggle; display: inline-flex; }

  .header-actions {
    grid-area: actions;
    justify-content: space-around;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    gap: 0;
  }
  .header-actions .icon-btn {
    flex: 1;
    padding: 6px 4px;
    font-size: 10px;
  }
  .header-actions .icon-btn .badge {
    top: -2px;
    right: 50%;
    margin-right: -20px;
  }
}

@media (min-width: 901px) {
  .mobile-drawer, .mobile-drawer-overlay { display: none !important; }
}

@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid, .editorial .editorial-grid { grid-template-columns: 1fr; }
  .product-grid,
  .product-grid.cols-3,
  .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .catalog-grid { gap: 24px; }
  .product-body { padding: 14px 14px 18px; }
  .product-name { font-size: 14px; min-height: 38px; }
  .product-price { font-size: 20px; }
  .hero-text h1 { font-size: 32px; }
  .hero-text p { font-size: 15px; }
  .hero-text { padding: 0 14px; }
  .hero-inner { padding: 40px 0; min-height: 0; gap: 24px; }
  .hero-visual { height: 260px; }
  .hero-cta { flex-wrap: wrap; }
  .hero-cta .btn { flex: 1; min-width: 140px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-row {
    grid-template-columns: 90px 1fr 36px;
    gap: 14px;
    grid-template-areas:
      "img info remove"
      "img qty qty"
      "img price price";
  }
  .cart-row-img { grid-area: img; }
  .cart-row-info { grid-area: info; }
  .cart-row .qty-input { grid-area: qty; justify-self: start; }
  .cart-row > div:nth-of-type(3) { grid-area: price; text-align: left; }
  .cart-row .cart-row-remove { grid-area: remove; align-self: start; }
  .product-tabs .tabs-nav { gap: 18px; overflow-x: auto; }
  .checkout-section { padding: 22px 18px; }
  .payment-card { padding: 24px; }
  .auth-form-wrap, .auth-side { padding: 40px 24px; }
  .auth-side { padding: 40px 24px 28px; }
  .auth-side h2 { font-size: 32px; }
  .thanks-card { padding: 40px 22px; margin: 32px auto; }
  .thanks-card h1 { font-size: 30px; }
  .static-aside { position: static; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 24px 24px 28px; }
  .blog-featured-body h2 { font-size: 26px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 34px; }
  .article-hero h1 { font-size: 32px; }
  .article-meta { flex-direction: column; gap: 12px; }
  .article-body p, .article-body li { font-size: 16px; }
}

/* ---------- Real homepage banner images ---------- */
.banner-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Elegant placeholder for articles without images ---------- */
.venge-article-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  background:
    radial-gradient(circle at 82% 18%, rgba(16, 170, 116, .34) 0 44px, transparent 45px),
    linear-gradient(135deg, rgba(250, 248, 244, .08), rgba(16, 170, 116, .18)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 8px, transparent 8px 18px),
    #222;
  color: #f7f3ea;
  text-align: center;
  border: 1px solid rgba(247, 243, 234, .12);
}
.venge-article-placeholder::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(247, 243, 234, .12);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}
.venge-article-placeholder svg {
  width: 92px;
  max-width: 38%;
  height: auto;
  fill: none;
  stroke: rgba(247, 243, 234, .72);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.venge-article-placeholder span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, .78);
}
.blog-featured-img.venge-article-placeholder {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-card-img.venge-article-placeholder {
  min-height: 220px;
}
.editorial-card-img.venge-article-placeholder {
  min-height: 0;
}


/* Hero product carousel */
.hero-carousel { position: relative; }
.hero-carousel .hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
  color: inherit;
  text-decoration: none;
}
.hero-carousel .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-carousel .hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-carousel .price, .hero-carousel .amount { color: var(--accent); font-weight: 400; }
.hero-carousel .hero-tag { pointer-events: none; }


/* Replace legacy gray WordPress blog placeholder thumbnails with a themed CSS placeholder. */
.editorial-card-img:has(img[src*="wood-blog-placeholder"]),
.blog-card-img:has(img[src*="wood-blog-placeholder"]),
.blog-featured-img:has(img[src*="wood-blog-placeholder"]) {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(18, 166, 112, .22) 0 42px, transparent 43px),
    linear-gradient(135deg, #252a24 0%, #1a1d1a 52%, #0f1110 100%);
  border: 1px solid rgba(247, 243, 234, .12);
}
.editorial-card-img:has(img[src*="wood-blog-placeholder"]) img,
.blog-card-img:has(img[src*="wood-blog-placeholder"]) img,
.blog-featured-img:has(img[src*="wood-blog-placeholder"]) img {
  opacity: 0 !important;
  visibility: hidden !important;
}
.editorial-card-img:has(img[src*="wood-blog-placeholder"])::before,
.blog-card-img:has(img[src*="wood-blog-placeholder"])::before,
.blog-featured-img:has(img[src*="wood-blog-placeholder"])::before {
  content: "VENGE";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: .16em;
  color: rgba(247, 243, 234, .72);
}
.editorial-card-img:has(img[src*="wood-blog-placeholder"])::after,
.blog-card-img:has(img[src*="wood-blog-placeholder"])::after,
.blog-featured-img:has(img[src*="wood-blog-placeholder"])::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(247, 243, 234, .12);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}

/* Full multi-level catalog inside mobile drawer */
.mobile-drawer-catalog .mobile-catalog-menu,
.mobile-drawer-catalog .mobile-catalog-menu ul,
.mobile-drawer-catalog .venge-menu,
.mobile-drawer-catalog .venge-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-drawer-catalog .mobile-catalog-menu,
.mobile-drawer-catalog .venge-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer-catalog li { margin: 0; }
.mobile-drawer-catalog a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
.mobile-drawer-catalog .sub-menu,
.mobile-drawer-catalog .children {
  display: block;
  margin: 0 0 6px 12px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--line);
}
.mobile-drawer-catalog .sub-menu a,
.mobile-drawer-catalog .children a {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.mobile-drawer-catalog .sub-menu .sub-menu a,
.mobile-drawer-catalog .children .children a {
  font-size: 13px;
  color: var(--ink-3);
}
.mobile-drawer-catalog .menu-item-has-children > a::after,
.mobile-drawer-catalog .cat-parent > a::after {
  content: '›';
  color: var(--ink-3);
  transform: rotate(90deg);
  font-size: 16px;
  line-height: 1;
}

/* Mobile width hard fix: prevent off-canvas and product content from escaping viewport */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  .header-inner,
  .catalog-grid,
  .catalog-content,
  .product-page,
  .product-summary,
  .product-gallery,
  .single-product .summary,
  .single-product div.product,
  .woocommerce div.product {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .mobile-drawer {
    left: auto !important;
    right: 0 !important;
    width: min(92vw, 360px) !important;
    max-width: calc(100vw - 16px) !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .mobile-drawer-head,
  .mobile-drawer-section {
    box-sizing: border-box;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .mobile-drawer-close {
    flex: 0 0 40px;
    margin-left: 12px;
  }

  .mobile-drawer a,
  .mobile-drawer li,
  .mobile-drawer-section,
  .mobile-drawer-catalog a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .product-page img,
  .product-gallery img,
  .woocommerce div.product img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 640px) {
  .catalog-content,
  .catalog-products,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products.product-grid,
  ul.product-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .catalog-content .product-grid,
  .catalog-products .product-grid,
  .woocommerce ul.products.product-grid,
  .woocommerce-page ul.products.product-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .catalog-content .product-card,
  .catalog-products .product-card,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    box-sizing: border-box;
  }

  .catalog-content .product-card .product-image,
  .catalog-products .product-card .product-image {
    width: 100%;
  }
}

/* Mobile drawer: original accordion layout, no always-open nested tree */
.mobile-catalog-accordion { width: 100%; max-width: 100%; }
.mobile-catalog-accordion .m-acc { border-bottom: 1px solid var(--line); }
.mobile-catalog-accordion .m-acc-head {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 14px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-align: left;
}
.mobile-catalog-accordion .m-acc-head span { min-width: 0; overflow-wrap: anywhere; }
.mobile-catalog-accordion .m-acc-head svg { transition: transform .2s ease; opacity: .6; flex-shrink: 0; }
.mobile-catalog-accordion .m-acc.open .m-acc-head { color: var(--accent); }
.mobile-catalog-accordion .m-acc.open .m-acc-head svg { transform: rotate(180deg); }
.mobile-catalog-accordion .m-acc-body {
  display: none;
  flex-direction: column;
  padding: 0 0 12px 12px;
  gap: 2px;
}
.mobile-catalog-accordion .m-acc.open .m-acc-body { display: flex; }
.mobile-catalog-accordion .m-acc-body a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.mobile-catalog-accordion .m-acc-body a:hover { color: var(--accent); }
.mobile-catalog-accordion .m-acc-all { color: var(--accent) !important; font-weight: 500; }
.mobile-catalog-accordion .m-acc-sale {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.mobile-catalog-accordion .m-acc-sale:last-child { border-bottom: 0; }
.mobile-catalog-accordion .m-acc-sale[href*="sale"],
.mobile-catalog-accordion .m-acc-sale[href*="rozprod"],
.mobile-catalog-accordion .m-acc-sale[href*="rasprod"] { color: var(--terracotta); font-weight: 500; }
.mobile-catalog-accordion .m-acc-depth-1 { padding-left: 14px !important; font-size: 13px !important; color: var(--ink-3) !important; }
.mobile-catalog-accordion .m-acc-depth-2 { padding-left: 28px !important; font-size: 13px !important; color: var(--ink-3) !important; }

.mobile-drawer-catalog .mobile-catalog-menu,
.mobile-drawer-catalog .mobile-catalog-menu ul,
.mobile-drawer-catalog .venge-menu,
.mobile-drawer-catalog .venge-menu ul { display: none !important; }
.mobile-drawer-catalog a::after { content: none !important; }

@media (max-width: 900px) {
  .mobile-drawer {
    width: min(86vw, 380px) !important;
    max-width: calc(100vw - 16px) !important;
    right: 0 !important;
    left: auto !important;
    overflow-x: hidden !important;
  }
  .mobile-drawer-head { padding: 22px 24px !important; }
  .mobile-drawer-section { padding: 18px 24px !important; }
  .mobile-drawer-close { margin-left: auto !important; flex: 0 0 40px !important; }
  .catalog-toolbar { width: 100% !important; max-width: 100% !important; display: grid !important; grid-template-columns: auto minmax(0,1fr) auto !important; gap: 10px !important; align-items: center !important; }
  .catalog-toolbar .woocommerce-result-count { min-width: 0 !important; }
  .catalog-toolbar .woocommerce-ordering, .catalog-toolbar form.woocommerce-ordering { min-width: 0 !important; max-width: 100% !important; }
  .catalog-toolbar select, .woocommerce-ordering select { width: 100% !important; min-width: 0 !important; }
}

@media (max-width: 640px) {
  .catalog-content, .catalog-products, .catalog-content .product-grid, .catalog-products .product-grid, .woocommerce ul.products, .woocommerce-page ul.products {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  .catalog-content .product-card, .catalog-products .product-card, .woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Mobile drawer language switcher: override desktop dark-topbar colors */
.mobile-lang-switcher .topbar-lang {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
}
.mobile-lang-switcher .topbar-lang a,
.mobile-lang-switcher .topbar-lang span {
  display: inline-flex !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  color: var(--ink) !important;
  text-decoration: none !important;
}
.mobile-lang-switcher .topbar-lang a:hover {
  color: var(--accent) !important;
}
.mobile-lang-switcher .topbar-lang .active {
  color: var(--accent) !important;
  font-weight: 600 !important;
}
.mobile-lang-switcher .topbar-lang span[aria-hidden="true"] {
  color: var(--ink-3) !important;
  font-weight: 400 !important;
}

/* Product gallery: main image clickable, thumbnails under it */
.product-gallery {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  align-content: start;
}
.gallery-main {
  order: 1;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  display: block;
}
.gallery-thumbs {
  order: 2;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100% !important;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.gallery-thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  aspect-ratio: auto;
}
.gallery-specs { order: 3; grid-column: auto !important; }
.product-lightbox[hidden] { display: none !important; }
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(20,18,16,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 72px;
}
.product-lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.product-lightbox-close,
.product-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.92);
  color: #1a1a1a;
  cursor: pointer;
  line-height: 1;
}
.product-lightbox-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 34px;
}
.product-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 42px;
}
.product-lightbox-prev { left: 24px; }
.product-lightbox-next { right: 24px; }
@media (max-width: 640px) {
  .product-gallery {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: visible !important;
  }
  .gallery-thumb {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
  .product-lightbox { padding: 56px 14px; }
  .product-lightbox-nav { width: 42px; height: 42px; font-size: 34px; }
  .product-lightbox-prev { left: 10px; }
  .product-lightbox-next { right: 10px; }
}


/* Fix single product mobile gallery, buttons and breadcrumbs */
.crumbs .crumb-sep,
.crumbs span { margin: 0 8px; color: var(--line-2); }
.product-gallery .gallery-main {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  line-height: 0;
}
.product-gallery .gallery-main img[data-main-img] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
}
.product-gallery .gallery-thumbs {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.purchase-row {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.purchase-row .btn-icon,
.purchase-row .venge-compare-native-single,
.purchase-row .venge-compare-native-single > * {
  flex: 0 0 52px !important;
  width: 52px !important;
  max-width: 52px !important;
  min-width: 52px !important;
}
@media (max-width: 720px) {
  .product-page {
    overflow-x: hidden !important;
  }
  .product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .product-gallery .gallery-main {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  .product-gallery .gallery-main img[data-main-img] {
    margin: 0 auto !important;
  }
  .purchase-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .purchase-row .btn-primary,
  .purchase-row .venge-oneclick-open {
    flex: 1 1 calc(50% - 5px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(50% - 5px) !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    white-space: nowrap !important;
  }
  .purchase-row .btn-icon,
  .purchase-row .venge-compare-native-single {
    flex: 0 0 52px !important;
    margin-top: 0 !important;
  }
}
@media (max-width: 380px) {
  .purchase-row .btn-primary,
  .purchase-row .venge-oneclick-open {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
}
.venge-oneclick-error { margin: -4px 0 12px; padding: 10px 12px; border: 1px solid rgba(255, 92, 49, .35); border-radius: 10px; background: rgba(255, 92, 49, .08); color: #c34524; font-size: 13px; line-height: 1.35; }

/* Product characteristics block fix */
.product-gallery .gallery-specs{
  width:100%;
  max-width:100%;
  margin-top:24px;
  box-sizing:border-box;
}
.product-gallery .gallery-specs h3{
  margin:0 0 18px;
  font-size:26px;
  line-height:1.25;
  font-weight:300;
  color:var(--ink);
}
.product-gallery .gallery-specs-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:40px;
  row-gap:0;
  width:100%;
}
.product-gallery .gallery-spec{
  display:grid;
  grid-template-columns:minmax(120px,42%) minmax(0,1fr);
  align-items:center;
  gap:18px;
  min-height:52px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:14px;
  line-height:1.35;
  box-sizing:border-box;
}
.product-gallery .gallery-spec .k{
  min-width:0;
  color:var(--ink-3);
}
.product-gallery .gallery-spec .v{
  min-width:0;
  color:var(--ink);
  font-weight:400;
  text-align:right;
  overflow-wrap:anywhere;
}
.product-gallery .gallery-spec .v a{
  color:var(--accent);
  text-decoration:none;
}
@media (max-width:900px){
  .product-gallery .gallery-specs{margin-top:18px;}
  .product-gallery .gallery-specs-grid{grid-template-columns:1fr;column-gap:0;}
  .product-gallery .gallery-spec{grid-template-columns:minmax(120px,45%) minmax(0,1fr);}
}
@media (max-width:420px){
  .product-gallery .gallery-spec{grid-template-columns:minmax(100px,42%) minmax(0,1fr);gap:12px;font-size:13px;}
  .product-gallery .gallery-specs h3{font-size:24px;}
}


/* Hide compare icon/text in product cards */
.wcboost-products-compare-button__icon,
.wcboost-products-compare-button__text{
display:none!important;
}

/* Smart AJAX search */
.search-wrap{position:relative;}
.smart-search-results{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 8px);
  z-index:1000;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(30,25,20,.12);
  padding:8px;
  max-height:430px;
  overflow:auto;
}
.smart-search-item{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:9px;
  border-radius:14px;
  color:var(--ink);
  text-decoration:none;
}
.smart-search-item:hover{background:var(--bg-2);}
.smart-search-item img{width:54px;height:54px;object-fit:contain;border-radius:10px;background:#fff;}
.smart-search-title{font-size:14px;line-height:1.25;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.smart-search-meta{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--ink-3);}
.smart-search-price{color:var(--ink);font-weight:500;}
.smart-search-empty{padding:14px 16px;font-size:13px;color:var(--ink-3);}
/* Cached prefix results shown while the exact answer is still loading. */
.smart-search-results.is-stale{opacity:.55;}
.smart-search-results{transition:opacity .12s ease;}

/* Variable product quantity layout: same as simple products */
.single-product .venge-woo-addtocart .woocommerce-variation-add-to-cart{align-items:flex-start!important;}
.single-product .venge-variable-qty-label{flex:0 0 auto!important;margin:0!important;height:44px!important;display:inline-flex!important;align-items:center!important;}
.single-product .venge-woo-addtocart .woocommerce-variation-add-to-cart .quantity{margin:0 0 12px 0!important;}
.single-product .venge-woo-addtocart .woocommerce-variation-add-to-cart:has(.venge-variable-qty-label) button.single_add_to_cart_button{margin-top:56px!important;}
.single-product .venge-variable-actions{margin-top:56px!important;}
.buy-explain{margin-top:20px;}

/* FIX: variable product quantity/buttons layout copied from simple product */
.single-product .venge-woo-addtocart .woocommerce-variation-add-to-cart{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
.single-product .venge-woo-addtocart .venge-variable-qty-label{
  order:1!important;
  flex:0 0 auto!important;
  margin:0!important;
  height:44px!important;
  display:inline-flex!important;
  align-items:center!important;
  font-size:13px!important;
  font-weight:400!important;
  color:var(--ink-3)!important;
}
.single-product .venge-woo-addtocart .woocommerce-variation-add-to-cart .quantity,
.single-product .venge-woo-addtocart .woocommerce-variation-add-to-cart .qty-input{
  order:2!important;
  flex:0 0 auto!important;
  margin:0!important;
}
.single-product .venge-woo-addtocart .venge-variable-qty-break{
  order:3!important;
  display:block!important;
  flex:0 0 100%!important;
  width:100%!important;
  max-width:100%!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
}
.single-product .venge-woo-addtocart .woocommerce-variation-add-to-cart button.single_add_to_cart_button,
.single-product .venge-woo-addtocart .woocommerce-variation-add-to-cart .single_add_to_cart_button{
  order:4!important;
  flex:0 1 220px!important;
  width:220px!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
}
.single-product .venge-woo-addtocart .venge-variable-actions{
  order:5!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex:0 1 auto!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  box-sizing:border-box!important;
  pointer-events:auto!important;
}
.single-product .venge-woo-addtocart .venge-variable-actions .venge-oneclick-open{
  flex:0 1 170px!important;
  width:170px!important;
  min-width:0!important;
  max-width:100%!important;
  height:58px!important;
  margin:0!important;
}
.single-product .venge-woo-addtocart .venge-variable-actions .btn-icon{
  flex:0 0 52px!important;
  width:52px!important;
  min-width:52px!important;
  height:52px!important;
  margin:0!important;
}
.buy-explain{margin-top:20px!important;}
@media (max-width:640px){
  .single-product .venge-woo-addtocart .woocommerce-variation-add-to-cart button.single_add_to_cart_button,
  .single-product .venge-woo-addtocart .woocommerce-variation-add-to-cart .single_add_to_cart_button,
  .single-product .venge-woo-addtocart .venge-variable-actions .venge-oneclick-open{
    flex:1 1 calc(50% - 6px)!important;
    width:auto!important;
  }
  .single-product .venge-woo-addtocart .venge-variable-actions{flex:1 1 100%!important;width:100%!important;}
}
