/* Amberi Trade — vanilla, mobile-first styles. No framework.
   Brand (Amberi brandbook): Deep Burgundy #5B0907, Deep Red #A00909, Black, White. */

:root {
  --brand: #5B0907;
  --brand-dark: #3F0504;
  --red: #A00909;
  --red-soft: #F7E7E7;
  --black: #111111;
  --ink: #1C1515;
  --muted: #6F6565;
  --line: #E8E2E2;
  --soft: #F3F1F1;
  --grey: #EDEDED;
  --white: #ffffff;
  --green: #17803F;
  --orange: #B65A00;
  --max-width: 1240px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(91, 9, 7, .08);
  --shadow-lg: 0 20px 60px rgba(40, 6, 5, .2);
  --font: "Noto Sans Georgian", "Prompt", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-latin: "Prompt", "Noto Sans Georgian", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; color: var(--ink); background: var(--white); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand); color: var(--white); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-contacts { display: flex; gap: 24px; align-items: center; }
.topbar-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--white); font-size: 13px; }
.topbar-link img { width: 16px; height: 16px; }
.topbar-promo { display: none; align-items: center; gap: 8px; font-weight: 500; }
.topbar-address { display: none; }

/* Language switcher (div-based, not tracked) */
.lang-switcher { display: flex; gap: 2px; background: rgba(255,255,255,.12); border-radius: 999px; padding: 2px; }
.lang-option { cursor: pointer; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; user-select: none; color: rgba(255,255,255,.8); }
.lang-option:hover { color: var(--white); }
.lang-option.is-active { background: var(--white); color: var(--brand); }

/* ---------- Header main ---------- */
.site-header { position: relative; z-index: 50; background: var(--white); }
.header-main { border-bottom: 1px solid var(--line); }
.header-main-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.menu-toggle { cursor: pointer; padding: 6px; border-radius: var(--radius-sm); }
.brand img { width: 120px; height: auto; }
.catalog-toggle {
  display: none; align-items: center; gap: 10px; cursor: pointer; user-select: none;
  background: var(--brand); color: var(--white); font-weight: 600; font-size: 14px;
  padding: 12px 18px; border-radius: var(--radius-sm); transition: background .2s;
}
.catalog-toggle:hover { background: var(--red); }
.catalog-toggle[aria-expanded="true"] .catalog-chevron { transform: rotate(180deg); }
.catalog-chevron { transition: transform .2s; }

.search { order: 10; flex: 1 1 100%; display: flex; align-items: center; background: var(--soft); border-radius: var(--radius-sm); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.search:focus-within { border-color: var(--brand); background: var(--white); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 16px; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.search-submit { border: 0; background: none; padding: 10px 14px; cursor: pointer; }

.header-actions { display: flex; gap: 6px; margin-left: auto; }
.header-action { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.header-action:hover { background: var(--soft); }
.header-action-label { display: none; }
.icon-badge { position: relative; display: inline-flex; margin-right: 6px; }
.badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* ---------- Primary nav ---------- */
.site-nav { display: none; border-bottom: 1px solid var(--line); background: var(--white); }
.site-nav.is-open { display: block; }
.site-nav-inner { display: flex; flex-direction: column; }
.site-nav a { padding: 12px 0; font-weight: 500; font-size: 14px; border-bottom: 1px solid var(--line); }
.site-nav a:hover, .site-nav a.is-current { color: var(--red); }
.site-nav-accent { color: var(--brand); font-weight: 700 !important; }

/* ---------- Category menu (sidebar + mega) ---------- */
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-item { display: flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; padding: 13px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; transition: background .15s; }
.cat-item > span { flex: 1; }
.cat-item:hover, .cat-item.is-active { background: var(--soft); }
.cat-item.is-active { color: var(--brand); font-weight: 700; }
.cat-chev { opacity: .5; }

.cat-panel { display: none; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; align-content: start; }
.cat-panel.is-active { display: grid; }
.cat-panel a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.cat-panel a::before { content: ""; width: 34px; height: 34px; flex: none; border-radius: 6px; background: var(--soft) url("../svg/pattern-chevron-light.svg") center / 40px; }
.cat-panel a:hover { background: var(--soft); color: var(--brand); }
.cat-panel a:hover::before { background-color: var(--red-soft); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: var(--shadow-lg); border-top: 1px solid var(--line); }
.mega-inner { display: grid; grid-template-columns: 290px 1fr; gap: 24px; padding-top: 20px; padding-bottom: 24px; }
.mega .cat-panels { border-left: 1px solid var(--line); padding-left: 24px; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 20px; padding-top: 20px; }
.hero-cats { display: none; position: relative; }
.hero-cats .cat-panels {
  display: none; position: absolute; top: 0; left: calc(100% + 20px); width: calc(var(--max-width) - 330px); max-width: calc(100vw - 360px);
  min-height: 100%; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px; z-index: 20;
}
.hero-cats.is-open .cat-panels { display: block; }
/* Invisible bridge over the 20px gap so the cursor stays "inside" the menu on its way to the panel */
.hero-cats .cat-panels::before { content: ""; position: absolute; top: 0; bottom: 0; left: -20px; width: 20px; }

.slider { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px; background: var(--brand); }
.slides { position: relative; height: 100%; min-height: inherit; }
.slide { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; gap: 16px; padding: 32px 24px 56px; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide--brand { background: var(--brand) url("../svg/pattern-chevron.svg") right center / 80px; color: var(--white); }
.slide--dark { background: var(--black); color: var(--white); overflow: hidden; }
.slide--dark::before { content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%; background: var(--red); clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%); opacity: .9; }
.slide--light { background: var(--grey) url("../svg/pattern-chevron-light.svg") right center / 80px; }
.slide-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; position: relative; z-index: 2; }
.slide-kicker { font-family: var(--font-latin); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.slide-title { font-size: clamp(26px, 4.6vw, 42px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.12; max-width: 16ch; }
.slide-title em { font-style: normal; display: inline-block; margin-top: 6px; padding: 2px 12px 4px; background: var(--red); color: var(--white); }
.slide--light .slide-title em { background: var(--brand); }
.slide-sub { max-width: 42ch; font-size: 15px; opacity: .85; }

.slide-visual { position: relative; z-index: 2; }
.slide-visual--collage img { position: absolute; background: var(--white); border-radius: 18px; object-fit: contain; padding: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.slide-visual--collage .c1 { width: 42%; aspect-ratio: 1; left: 0; top: 10%; transform: rotate(-6deg); }
.slide-visual--collage .c2 { width: 38%; aspect-ratio: 1; left: 34%; top: 0; transform: rotate(4deg); z-index: 2; }
.slide-visual--collage .c3 { width: 26%; aspect-ratio: 1; right: 0; top: 30%; transform: rotate(8deg); }
.slide-visual--collage .c4 { width: 34%; aspect-ratio: 1; left: 22%; top: 46%; transform: rotate(-3deg); z-index: 3; }

.slide-visual--brands { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.brand-tile { background: var(--white); color: var(--brand); font-family: var(--font-latin); font-weight: 700; font-size: clamp(22px, 4vw, 40px); letter-spacing: .12em; padding: 26px 34px; border-radius: 16px; transform: rotate(-4deg); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.brand-tile--alt { background: var(--brand); color: var(--white); transform: rotate(5deg) translateY(20px); }

.slide-visual--delivery { display: grid; place-items: center; }
.delivery-badge { width: min(260px, 70%); aspect-ratio: 1; border-radius: 50%; background: var(--brand); display: grid; place-items: center; align-content: center; gap: 4px; box-shadow: 0 20px 50px rgba(91,9,7,.25); border: 10px solid var(--white); }
.delivery-badge img { filter: brightness(0) invert(1); }
.delivery-badge strong { font-family: var(--font-latin); font-size: 40px; font-weight: 700; color: var(--white); line-height: 1; }
.delivery-badge small { font-size: 18px; margin-left: 4px; }

.slider-dots { position: absolute; left: 24px; bottom: 20px; display: flex; gap: 8px; z-index: 5; }
.dot { width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.35); cursor: pointer; transition: width .3s, background .3s; }
.dot.is-active { width: 32px; background: var(--white); }
.slider.on-light .dot { background: rgba(91,9,7,.25); }
.slider.on-light .dot.is-active { background: var(--brand); }

/* ---------- Buttons (tracked events) & button-styled links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid transparent; cursor: pointer; font-weight: 600; font-size: 14px; padding: 13px 22px; border-radius: var(--radius-sm); transition: transform .15s, background .2s, box-shadow .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn img { width: 18px; height: 18px; }
.btn--brand { background: var(--brand); color: var(--white); }
.btn--brand:hover { background: var(--red); box-shadow: var(--shadow); }
.btn--accent { background: var(--red); color: var(--white); }
.btn--accent:hover { background: var(--brand); }
.btn--white { background: var(--white); color: var(--brand); }
.btn--white:hover { background: var(--red-soft); }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: var(--white); }
.btn--ghost { background: var(--soft); color: var(--brand); }
.btn--ghost:hover { background: var(--red-soft); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.icon-white { filter: brightness(0) invert(1); }

/* ---------- USP ---------- */
.usp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.usp-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--soft); border-radius: var(--radius); }
.usp-item img { flex: none; width: 28px; height: 28px; }
.usp-item strong { display: block; font-size: 14px; }
.usp-item p { font-size: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-top: 48px; padding-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.section-title::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 10px; background: var(--red); }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.section-link:hover { color: var(--red); }

/* Categories grid */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; min-height: 140px; padding: 20px; border-radius: var(--radius); background: var(--soft); border: 1px solid transparent; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.cat-card strong { font-size: 15px; line-height: 1.3; }
.cat-card span { font-size: 13px; color: var(--muted); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); background: var(--white); }
.cat-card--feature { grid-column: span 2; background: var(--brand) url("../svg/pattern-chevron.svg") right bottom / 80px; color: var(--white); }
.cat-card--feature img { filter: brightness(0) invert(1); }
.cat-card--feature strong { font-size: 22px; font-weight: 800; text-transform: uppercase; }
.cat-card--feature span { color: rgba(255,255,255,.8); }
.cat-card--feature:hover { background-color: var(--red); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media { display: block; flex: none; aspect-ratio: 1; background: var(--white); padding: 16px; }
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.wish { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.wish:hover, .wish.is-active { background: var(--red-soft); }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; border-top: 1px solid var(--line); }
.product-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.product-name { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-name a:hover { color: var(--red); }
.product-desc { display: none; font-size: 13px; color: var(--muted); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--green); }
.stock--low { color: var(--orange); }
.stock--out { color: var(--red); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--font-latin); font-size: 18px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.price small { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }
.add-cart { flex: none; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 0; background: var(--brand); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .15s; }
.add-cart:hover { background: var(--red); transform: scale(1.05); }
.add-cart:disabled { background: var(--line); cursor: not-allowed; transform: none; }

/* Services band */
.services-band { margin-top: 56px; background: var(--brand) url("../svg/pattern-chevron.svg") right center / 80px; color: var(--white); position: relative; overflow: hidden; }
.services-inner { position: relative; z-index: 2; display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.services-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.services-copy h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; text-transform: uppercase; max-width: 18ch; line-height: 1.15; }
.services-copy h2 em { font-style: normal; display: inline-block; margin-top: 6px; padding: 0 10px 4px; background: var(--red); }
.services-copy > p:not(.eyebrow) { color: rgba(255,255,255,.85); max-width: 52ch; }
.services-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.link-light { color: var(--white); font-weight: 600; font-size: 14px; }
.link-light:hover { text-decoration: underline; }
.eyebrow { font-family: var(--font-latin); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.eyebrow--brand { color: var(--red); }
.service-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.service-chips a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.25); font-size: 13px; font-weight: 500; transition: background .2s, color .2s; }
.service-chips a:hover { background: var(--white); color: var(--brand); border-color: var(--white); }

/* Brands */
.brands-grid { display: grid; gap: 16px; }
.brand-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.brand-logo { align-self: flex-start; font-family: var(--font-latin); font-size: 30px; font-weight: 700; letter-spacing: .14em; color: var(--brand); padding: 10px 18px; background: var(--soft); border-radius: var(--radius-sm); }
.brand-logo--alt { background: var(--brand); color: var(--white); }
.brand-card p { color: var(--muted); max-width: 60ch; }
.brand-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------- Inner page head / breadcrumbs ---------- */
.page-head { background: var(--soft) url("../svg/pattern-chevron-light.svg") right center / 80px; border-bottom: 1px solid var(--line); }
.page-head-inner { padding-top: 28px; padding-bottom: 28px; display: grid; gap: 10px; }
.page-head h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; text-transform: uppercase; }
.page-head p { color: var(--muted); max-width: 70ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span[aria-hidden] { opacity: .5; }
.page-head--brand { background: var(--brand) url("../svg/pattern-chevron.svg") right center / 80px; color: var(--white); border: 0; }
.page-head--brand p, .page-head--brand .breadcrumbs { color: rgba(255,255,255,.8); }

/* ---------- Product listing ---------- */
.listing { display: grid; gap: 24px; padding-top: 24px; }
.filters { display: none; flex-direction: column; gap: 20px; }
.filters.is-open { display: flex; }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; }
.filter-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filter-group h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.filter-option input { width: 18px; height: 18px; accent-color: var(--brand); }
.filter-option .count { margin-left: auto; color: var(--muted); font-size: 12px; }
.price-range { display: flex; gap: 8px; }
.price-range input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.toolbar-count { color: var(--muted); font-size: 14px; }
.select { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 14px; background: var(--white); color: var(--ink); }
.chips-active { display: flex; flex-wrap: wrap; gap: 8px; }
.empty-state { padding: 48px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Product detail ---------- */
.pdp { display: grid; gap: 28px; padding-top: 24px; }
.gallery { display: grid; gap: 12px; }
.gallery-main { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; }
.thumb { width: 76px; height: 76px; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 6px; cursor: pointer; background: var(--white); }
.thumb.is-active { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { display: flex; flex-direction: column; gap: 14px; }
.pdp-info h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.pdp-meta a { color: var(--brand); font-weight: 600; }
.pdp-price { font-family: var(--font-latin); font-size: 32px; font-weight: 700; color: var(--brand); }
.pdp-price small { font-family: var(--font); font-size: 15px; color: var(--muted); font-weight: 500; }
.pdp-short { color: var(--muted); }
.pdp-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty-step { width: 44px; height: 48px; display: grid; place-items: center; cursor: pointer; font-size: 20px; user-select: none; }
.qty-step:hover { background: var(--soft); }
.qty input { width: 56px; height: 48px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-buy .btn { flex: 1; min-width: 180px; }
.pdp-wish { flex: 0 0 auto !important; min-width: 0 !important; padding: 0 14px; }
.pdp-perks { display: grid; gap: 8px; padding: 16px; background: var(--soft); border-radius: var(--radius); font-size: 13px; }
.pdp-perks div { display: flex; gap: 10px; align-items: center; }
.pdp-perks img { width: 20px; height: 20px; }
.pdp-tabs { margin-top: 40px; }
.pdp-desc h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
.pdp-desc p + p { margin-top: 10px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 40%; color: var(--muted); font-weight: 500; background: var(--soft); }

/* Service annotation under every product description */
.service-note { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--brand) url("../svg/pattern-chevron.svg") right center / 80px; color: var(--white); }
.service-note-text { display: flex; gap: 14px; align-items: flex-start; }
.service-note-text img { width: 34px; height: 34px; flex: none; filter: brightness(0) invert(1); }
.service-note strong { display: block; font-size: 16px; }
.service-note p { color: rgba(255,255,255,.85); font-size: 14px; }

/* ---------- Text / content pages ---------- */
.content { display: grid; gap: 32px; padding-top: 32px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3D3434; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-left: 4px solid var(--red); background: var(--red-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.callout img { width: 28px; flex: none; }
.callout strong { display: block; color: var(--brand); }
.side-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.side-card h3 { font-size: 16px; font-weight: 700; }
.info-cards { display: grid; gap: 12px; }
.info-card { padding: 22px; border-radius: var(--radius); background: var(--soft); display: grid; gap: 8px; }
.info-card img { width: 34px; height: 34px; }
.info-card strong { font-size: 17px; }
.info-card p { color: var(--muted); font-size: 14px; }
.big-num { font-family: var(--font-latin); font-size: 34px; font-weight: 700; color: var(--brand); line-height: 1; }

/* FAQ (native details/summary — not tracked) */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] { border-color: var(--brand); }
.faq .faq-a { padding: 0 20px 18px; color: var(--muted); }

/* Services page */
.services-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.service-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: box-shadow .2s, transform .2s; scroll-margin-top: 20px; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card:target { outline: 3px solid var(--red); }
.service-media { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
/* amberi.ge service images are 1065×1208 cards: photo at x 12.8–88.3%, y 9.3–92.4%, plus white margins and a
   burgundy block. Scale and offset (margins in % of width) so only the photo fills the 16:10 frame edge to edge. */
.service-media { position: relative; }
.service-media img { position: absolute; left: -21.8%; top: 0; width: 142%; max-width: none; height: auto; margin-top: -50.7%; object-fit: initial; }
.service-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-body h3 { font-size: 16px; font-weight: 700; }
.service-body p { font-size: 14px; color: var(--muted); }
.service-body .service-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; }
.service-links a { color: var(--brand); }
.service-links a:hover { color: var(--red); }
.text-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--red); font-weight: 600; font-size: 14px; }
.text-btn:hover { text-decoration: underline; }

/* About */
.about-hero { display: grid; gap: 28px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { padding: 22px; border-radius: var(--radius); background: var(--soft); display: grid; gap: 6px; }
.stat span { font-size: 13px; color: var(--muted); }
.group-card { display: grid; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.group-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%); opacity: .9; }
.group-card > * { position: relative; z-index: 1; }
.group-card img { width: 150px; }
.group-card p { color: rgba(255,255,255,.8); }

/* Contact */
.contact-grid { display: grid; gap: 24px; padding-top: 32px; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--soft); }
.contact-item img { width: 26px; height: 26px; flex: none; }
.contact-item small { display: block; color: var(--muted); font-size: 12px; }
.contact-item strong, .contact-item .footer-link { font-size: 15px; font-weight: 600; color: var(--ink); }
.map { border: 0; width: 100%; min-height: 320px; border-radius: var(--radius); background: var(--soft); }

/* Forms (shared) */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-size: 14px; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); color: var(--ink); outline: none; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); background: var(--white); }
.form .is-invalid { border-color: var(--red); background: var(--red-soft); }
.form-row { display: grid; gap: 14px; }
.form-success { display: flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 12px !important; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500 !important; font-size: 14px !important; }
.radio-card input { width: 18px !important; height: 18px; margin-top: 2px; accent-color: var(--brand); padding: 0 !important; }
.radio-card small { display: block; color: var(--muted); font-weight: 400; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--red-soft); }
.check { display: flex !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; }
.check input { width: 18px !important; height: 18px; accent-color: var(--brand); padding: 0 !important; }
.check a { color: var(--brand); text-decoration: underline; }

/* ---------- Cart / wishlist ---------- */
.cart-layout { display: grid; gap: 24px; padding-top: 24px; }
.cart-list { display: grid; gap: 12px; align-content: start; }
.cart-row { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); align-items: center; }
.cart-row img { width: 80px; height: 80px; object-fit: contain; }
.cart-row-info { display: grid; gap: 6px; }
.cart-row-info a { font-weight: 600; font-size: 14px; }
.cart-row-info a:hover { color: var(--red); }
.cart-row-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cart-row .qty-step, .cart-row .qty input { height: 38px; }
.cart-row .qty-step { width: 36px; }
.cart-row .qty input { width: 44px; }
.remove { cursor: pointer; font-size: 13px; color: var(--muted); text-decoration: underline; }
.remove:hover { color: var(--red); }
.summary { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; background: var(--white); }
.summary h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.summary-total { font-size: 18px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); }
.summary-total span:last-child { font-family: var(--font-latin); color: var(--brand); }
.progress { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.progress-bar { height: 100%; background: var(--red); width: 0; transition: width .4s; }
.progress-note { font-size: 13px; color: var(--muted); }
.checkout { margin-top: 8px; padding: 22px; border-radius: var(--radius); background: var(--soft); }
.checkout h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; margin-bottom: 16px; }
.checkout .form input, .checkout .form select, .checkout .form textarea { background: var(--white); }

/* Account */
.auth { display: grid; gap: 20px; padding-top: 32px; max-width: 900px; }
.auth-box { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.auth-box h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--black); color: rgba(255,255,255,.72); font-size: 14px; }
.footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 320px; }
.footer-brand > img { width: 150px; }
.footer-group { display: inline-flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand); color: var(--white); font-size: 12px; font-weight: 500; }
.footer-group img { width: 120px; }
.footer-group:hover { background: var(--red); }
.site-footer h3 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover, .site-footer .footer-link:hover { color: var(--white); text-decoration: underline; }
.footer-link { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-size: 14px; text-align: left; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 18px; font-size: 13px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30,5,4,.6); backdrop-filter: blur(3px); }
.modal-box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-lg); border-top: 6px solid var(--red); animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-box h2 { font-size: 22px; font-weight: 800; text-transform: uppercase; margin: 6px 0 8px; }
.modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.modal-close { position: absolute; top: 14px; right: 14px; cursor: pointer; padding: 6px; border-radius: 50%; }
.modal-close:hover { background: var(--soft); }
.modal-product { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--soft); border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 10px; background: var(--black); color: var(--white); padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; border-left: 4px solid var(--red); }
.toast img { filter: brightness(0) invert(1); }

/* ================= Breakpoints ================= */
@media (min-width: 640px) {
  .topbar-address { display: inline-flex; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card--feature { grid-column: span 3; }
  .header-action-label { display: inline; }
  .brands-grid { grid-template-columns: 1fr 1fr; }
  .product-desc { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .radio-cards { grid-template-columns: 1fr 1fr; }
  .cart-row { grid-template-columns: 96px 1fr; }
  .cart-row img { width: 96px; height: 96px; }
  .service-note { flex-direction: row; align-items: center; justify-content: space-between; }
  .service-note .btn { flex: none; }
  .auth { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .topbar-promo { display: inline-flex; }
  .menu-toggle { display: none; }
  .brand img { width: 150px; }
  .catalog-toggle { display: inline-flex; }
  .search { order: 0; flex: 1 1 auto; max-width: 420px; }
  .header-main-inner { flex-wrap: nowrap; gap: 20px; }
  .site-nav { display: block; }
  .site-nav-inner { flex-direction: row; gap: 28px; }
  .site-nav a { border-bottom: 0; padding: 12px 0; }
  .site-nav-accent { margin-left: auto; }

  .hero { grid-template-columns: 290px 1fr; }
  .hero-cats { display: block; }
  .slider { min-height: 460px; }
  .slide { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; align-items: center; padding: 40px 48px 64px; }
  .slide-visual { height: 100%; }
  .slide-visual--collage { height: 360px; }
  .slider-dots { left: 48px; bottom: 24px; }

  .usp { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .listing .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-card--feature { grid-column: span 1; grid-row: span 2; }
  .services-inner { grid-template-columns: 1.1fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 72px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

  .listing { grid-template-columns: 270px 1fr; }
  .filters { display: flex; }
  .filter-toggle { display: none; }
  .pdp { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .content { grid-template-columns: 1fr 340px; align-items: start; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .info-cards { grid-template-columns: repeat(3, 1fr); }
  .about-hero { grid-template-columns: 1.2fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr 380px; align-items: start; }
  .summary { position: sticky; top: 16px; }
}

@media (max-width: 959px) { .mega { display: none !important; } }

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

/* Brand page chips on a light background */
.service-chips--light span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 500; color: var(--brand); font-family: var(--font-latin); }

/* Account: view switch links (div-based, not tracked) */
.auth-link { cursor: pointer; justify-self: start; font-size: 13px; font-weight: 600; color: var(--red); }
.auth-link:hover { text-decoration: underline; }
.auth-note { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }
[data-auth-view] h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; margin-bottom: 16px; }

/* Required-field marker on form labels (checkbox consent labels excluded) */
.form label:not(.check):not(.radio-card):has(> [required]) > span[data-lang]::after { content: " *"; color: var(--red); font-weight: 700; }
.checkout-notice { margin-bottom: 18px; background: var(--white); }
.checkout-notice a { color: var(--red); text-decoration: underline; }
.checkout-notice p { font-size: 13px; color: var(--muted); }

/* ---------- Signed-in header ---------- */
.header-action.is-auth .header-action-label { font-weight: 700; color: var(--brand); }
.header-action.is-auth img { filter: none; }

/* ---------- Cabinet ---------- */
.cabinet { display: grid; gap: 24px; padding-top: 24px; }
.cab-side { display: grid; gap: 16px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.cab-user { display: flex; gap: 12px; align-items: center; }
.cab-user strong { display: block; }
.cab-user small { color: var(--muted); font-size: 13px; word-break: break-all; }
.cab-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--red-soft); display: grid; place-items: center; }
.cab-nav { display: flex; gap: 6px; overflow-x: auto; }
.cab-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; white-space: nowrap; }
.cab-link:hover { background: var(--soft); }
.cab-link.is-active { background: var(--brand); color: var(--white); }
.cab-link.is-active img { filter: brightness(0) invert(1); }
.cab-main { min-width: 0; }
.cab-panel { display: grid; gap: 16px; align-content: start; }
.cab-panel h2, .cab-h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; }
.cab-h2 { margin: 28px 0 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.order-table th, .order-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.order-table th { background: var(--soft); font-weight: 600; color: var(--muted); font-size: 13px; }
.order-table tr:last-child td { border-bottom: 0; }
.order-table td a:not(.section-link) { font-weight: 600; color: var(--brand); }
.order-table .price { font-size: 15px; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status--received { background: #EAF1FB; color: #1F4F8F; }
.status--processing { background: #FFF4E0; color: var(--orange); }
.status--shipping { background: var(--red-soft); color: var(--red); }
.status--delivered { background: #E5F4EA; color: var(--green); }
.status--cancelled { background: var(--soft); color: var(--muted); }
.address-list { display: grid; gap: 12px; }
.address-card { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 4px; font-size: 14px; }
.address-card.is-default { border-color: var(--brand); }
.address-card p { color: var(--muted); }
.tag { position: absolute; top: 14px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: var(--white); font-size: 11px; font-weight: 700; }
.address-form { margin-top: 8px; padding: 20px; border-radius: var(--radius); background: var(--soft); }
.address-form h3 { font-size: 16px; font-weight: 700; }
.address-form input { background: var(--white) !important; }

/* ---------- Order detail / success ---------- */
.order-head { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 18px 20px; border-radius: var(--radius); background: var(--soft); margin-bottom: 16px; }
.order-head small { display: block; color: var(--muted); font-size: 12px; }
.order-head strong { font-family: var(--font-latin); font-size: 17px; }
.order-lines { display: grid; gap: 10px; }
.order-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.order-line img { width: 56px; height: 56px; object-fit: contain; }
.order-line small { color: var(--muted); }
.order-line .price { font-size: 15px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 18px; }
.timeline li { position: relative; display: grid; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--line); border: 3px solid var(--white); }
.timeline li.is-done::before { background: var(--green); }
.timeline small { color: var(--muted); }

.result { display: grid; justify-items: center; text-align: center; gap: 16px; padding-top: 56px; max-width: 720px; }
.result h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; text-transform: uppercase; }
.result-lead { color: var(--muted); max-width: 56ch; }
.result-lead strong { color: var(--brand); font-family: var(--font-latin); }
.result-icon { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; }
.result-icon--ok { background: #E5F4EA; }
.result-icon--fail { background: var(--red); }
.result-card { width: 100%; text-align: left; display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.next-steps { width: 100%; text-align: left; margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.next-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; background: var(--soft); border-radius: var(--radius-sm); font-size: 14px; }
.next-steps li::before { content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-weight: 700; font-family: var(--font-latin); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.big-404 { font-family: var(--font-latin); font-size: clamp(96px, 20vw, 180px); font-weight: 700; line-height: 1; color: var(--brand); letter-spacing: -.04em; }
.big-404 span { color: var(--red); }
.search--big { order: 0; width: 100%; max-width: 520px; }
.chips-404 { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips-404 a { padding: 8px 14px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 500; }
.chips-404 a:hover { background: var(--brand); color: var(--white); }

@media (min-width: 640px) {
  .address-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .cabinet { grid-template-columns: 270px 1fr; align-items: start; }
  .cab-nav { flex-direction: column; overflow: visible; }
  .cab-side { position: sticky; top: 16px; }
}

/* Checkout reminder (after add to cart) */
.nudge { position: fixed; z-index: 110; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 44px 16px 18px; border-radius: var(--radius); background: var(--brand) url("../svg/pattern-chevron.svg") right center / 80px; color: var(--white); box-shadow: var(--shadow-lg); animation: pop .3s ease-out; }
.nudge-icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--red); flex: none; }
.nudge-text { flex: 1; min-width: 180px; display: grid; gap: 2px; font-size: 14px; }
.nudge-text strong { font-size: 15px; }
.nudge-text span { color: rgba(255,255,255,.85); }
.nudge .btn { flex: none; }
.nudge-close { position: absolute; top: 6px; right: 10px; cursor: pointer; font-size: 24px; line-height: 1; padding: 4px 6px; color: rgba(255,255,255,.8); }
.nudge-close:hover { color: var(--white); }
@media (min-width: 640px) { .nudge { left: auto; right: 24px; bottom: 24px; max-width: 460px; } }

/* Nav offer links (ფასდაკლება / ექსკლუზივი) — right side of the main nav */
.nav-offer { display: inline-flex; align-items: center; gap: 6px; color: var(--red) !important; font-weight: 700 !important; white-space: nowrap; }
.nav-offer--sale::before { content: "%"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; }
.nav-offer--excl::before { content: "★"; font-size: 15px; }
.nav-offer:hover, .nav-offer.is-current { color: var(--brand) !important; }
.header-action--icon { padding: 8px 10px; }
.header-action--icon .icon-badge { margin-right: 0; }

/* Product badges and sale price */
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.badge-tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; font-family: var(--font-latin); }
.badge-tag--sale { background: var(--red); color: var(--white); }
.badge-tag--excl { background: var(--black); color: var(--white); font-family: var(--font); }
.old-price { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.pdp-price .old-price { display: inline; font-size: 18px; margin-right: 10px; }
.pdp-price .badge-tag { vertical-align: middle; font-size: 13px; }

/* Mega/sidebar subcategories in 3 columns like the client's mockup */
@media (min-width: 960px) { .cat-panel { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Mobile catalog drawer (< 960px) ---------- */
@media (max-width: 959px) {
  .site-nav, .site-nav.is-open { display: none; }
  /* second header row: [კატალოგი] [search……] */
  .header-main-inner::before { content: ""; order: 8; flex-basis: 100%; height: 0; }
  .catalog-toggle { display: inline-flex; order: 9; padding: 11px 14px; gap: 8px; font-size: 13px; }
  .catalog-toggle .catalog-chevron { display: none; }
  .search { flex: 1 1 0; min-width: 0; }
  .search input { padding: 12px 8px 12px 12px; font-size: 13px; }
  .search-submit { padding: 10px; }
}
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(30,5,4,.55); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: var(--white); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .28s ease; box-shadow: var(--shadow-lg); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.drawer-head > img { width: 112px; height: auto; }
.drawer-x img { width: 22px; height: 22px; }
.drawer-x { cursor: pointer; padding: 8px; border-radius: 50%; }
.drawer-x:hover { background: var(--soft); }
.drawer-views { position: relative; flex: 1; overflow: hidden; }
.drawer-view { position: absolute; inset: 0; overflow-y: auto; padding: 8px 16px 24px; background: var(--white); transform: translateX(100%); transition: transform .28s ease; visibility: hidden; }
.drawer-view.is-active { transform: none; visibility: visible; }
.drawer-view.is-behind { transform: translateX(-30%); visibility: visible; }
.drawer-label { margin: 16px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer-list { display: grid; }
.drawer-row, .drawer-link { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; cursor: pointer; user-select: none; }
.drawer-row > span { flex: 1; }
.drawer-row:active, .drawer-link:active { background: var(--soft); }
.drawer-chev { margin-left: auto; opacity: .55; }
.drawer-link { font-weight: 400; }
.drawer-back { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 4px; padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; }
.drawer-title { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 4px; border-radius: var(--radius-sm); background: var(--brand) url("../svg/pattern-chevron.svg") right center / 60px; color: var(--white); font-size: 16px; }
.drawer-title img { filter: brightness(0) invert(1); }
.drawer-all { display: block; padding: 14px 6px; font-size: 14px; font-weight: 700; color: var(--red); border-bottom: 1px solid var(--line); }
.drawer-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.drawer-offer { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; }
.drawer-offer--sale { background: var(--red); color: var(--white); }
.drawer-offer--sale::before { content: "%"; }
.drawer-offer--excl { background: var(--black); color: var(--white); }
.drawer-offer--excl::before { content: "★"; }
.drawer-call { margin-top: 20px; }
@media (min-width: 960px) { .drawer { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .drawer-panel, .drawer-view, .drawer-backdrop { transition: none; } }

/* ---------- Product listing: view switcher (grid / small / list) ---------- */
.view-switch { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.view-opt { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; cursor: pointer; opacity: .55; }
.view-opt:hover { background: var(--soft); opacity: 1; }
.view-opt.is-active { background: var(--red-soft); opacity: 1; }
.view-opt img { width: 20px; height: 20px; }
.toolbar .select { margin-left: auto; }


/* SMALL — compact tiles, more per row */
.listing .product-grid.view-small { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.view-small .product-media { padding: 8px; }
.view-small .product-body { padding: 8px 10px 10px; gap: 4px; }
.view-small .product-cat, .view-small .product-desc, .view-small .stock { display: none; }
.view-small .product-name { font-size: 12px; min-height: 2.7em; }
.view-small .price { font-size: 14px; }
.view-small .price small, .view-small .old-price { display: none; }
.view-small .add-cart { width: 32px; height: 32px; }
.view-small .add-cart img { width: 16px; height: 16px; }
.view-small .wish { width: 28px; height: 28px; top: 6px; right: 6px; }
.view-small .wish img { width: 15px; height: 15px; }
.view-small .badges { top: 6px; left: 6px; }
.view-small .badge-tag { font-size: 10px; padding: 2px 6px; }

/* LIST — rows with a small image */
.listing .product-grid.view-list { grid-template-columns: 1fr; gap: 10px; }
.view-list .product-card { display: grid; grid-template-columns: 104px 1fr; align-items: stretch; }
.view-list .product-card:hover { transform: none; }
.view-list .product-media { aspect-ratio: 1; align-self: center; padding: 10px; }
.view-list .product-body { border-top: 0; border-left: 1px solid var(--line); padding: 12px 52px 12px 14px; }
.view-list .product-name { min-height: 0; -webkit-line-clamp: 2; }
.view-list .product-foot { padding-top: 4px; }
.view-list .badges { top: 6px; left: 6px; }
.view-list .badge-tag { font-size: 10px; padding: 2px 6px; }

@media (min-width: 640px) {
  .listing .product-grid.view-small { grid-template-columns: repeat(4, 1fr); }
  .view-list .product-card { grid-template-columns: 160px 1fr; }
  .view-list .product-body { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "cat foot" "name foot" "desc foot" "stock foot"; column-gap: 24px; align-content: center; padding-right: 56px; }
  .view-list .product-cat { grid-area: cat; }
  .view-list .product-name { grid-area: name; font-size: 15px; }
  .view-list .product-desc { grid-area: desc; display: block; }
  .view-list .stock { grid-area: stock; }
  .view-list .product-foot { grid-area: foot; flex-direction: column; align-items: flex-end; justify-content: center; margin: 0; padding: 0; gap: 10px; }
}
@media (min-width: 960px) {
  .listing .product-grid.view-small { grid-template-columns: repeat(5, 1fr); gap: 10px; }
}

/* Infinite scroll loader */
.load-more { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px 0 8px; color: var(--muted); font-size: 14px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--red-soft); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-done { text-align: center; padding: 28px 0 8px; color: var(--muted); font-size: 13px; }
.product-card.is-new { animation: fadeUp .35s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
