/* Store v8 — clean, photo-led catalogue. Loaded after store-base.css and store-redesign.css.
   Colours come from tokens.css (light and dark). */

body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .section-title, .catalog-page-head h1, .modal-title { font-family: var(--font-display); letter-spacing: -.025em; }
/* One grid for every row: header, menu, sections and footer share the same edges. */
.section-inner, .header-inner, .subnav-inner, .footer-inner, .hx-strip ul, .service-bar-inner {
  width: min(100% - 40px, 1280px); max-width: none; margin-inline: auto; padding-inline: 0;
}
.hx, .section, .hx-strip, .footer, .trust { padding-inline: 0 !important; }
/* The off-screen cart panel must not cast its shadow onto the page edge. */
.side-panel { box-shadow: none !important; }
.side-panel.open { box-shadow: var(--shadow-lg) !important; }
/* Category menu: scrolls sideways instead of being cut off. */
.subnav-inner { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.subnav-inner::-webkit-scrollbar { display: none; }
.snav-item { flex-shrink: 0; }
.snav-item:first-child { padding-left: 0; }

/* ── Header ─────────────────────────────────────────────────────── */
.service-bar { background: var(--surface-2); color: var(--text2); border-bottom: 1px solid var(--border); }
.service-bar a { color: var(--accent-text); }
.header { background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); box-shadow: none; }
.header-inner { min-height: 72px; gap: 28px; }
.logo-mark { border-radius: 10px; background: var(--accent); }
.logo-text { color: var(--text); }
.logo-text span { color: var(--accent); }
.header-search { max-width: 640px; }
.header-search input {
  min-height: 46px; padding-left: 46px; border-radius: 999px !important;
  background: var(--surface-2) !important; border: 1px solid transparent !important; color: var(--text);
}
.header-search input:hover { border-color: var(--border2) !important; }
.header-search input:focus { background: var(--surface) !important; border-color: var(--accent) !important; box-shadow: 0 0 0 4px var(--accent-lt); }
.header-search input::placeholder { color: var(--text3); }
.hbtn, .mob-search-btn { border-radius: 10px; color: var(--text2); }
.hbtn:hover, .mob-search-btn:hover { background: var(--surface-2); color: var(--text); }
.header-actions .theme-toggle { border-color: transparent; border-radius: 10px; }
.header-actions .theme-toggle:hover { background: var(--surface-2); }
.cart-badge { background: var(--accent); color: var(--on-accent); }
.subnav { background: var(--surface); border-bottom: 1px solid var(--border); }
.snav-item { color: var(--text2); font-weight: 600; font-size: .86rem; border-bottom: 2px solid transparent; }
.snav-item:hover { color: var(--text); }
.snav-item.active { color: var(--accent-text); border-bottom-color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-primary, .btn-outline {
  min-height: 44px; padding: 10px 20px; border-radius: 999px; gap: 8px;
  font-size: .9rem; font-weight: 600; justify-content: center;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border: 0; }
.btn-primary:hover { background: var(--accent-h); }
.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--text3); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hx { padding: clamp(28px, 4vw, 56px) 20px clamp(24px, 3vw, 40px); background: var(--bg); }
.hx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hx-kicker { margin: 0 0 18px; color: var(--accent-text); font-size: .86rem; font-weight: 650; }
.hx h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; line-height: 1.04; color: var(--text); }
.hx-lead { margin: 0 0 30px; max-width: 560px; color: var(--text2); font-size: 1.08rem; line-height: 1.65; }
.hx .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 36px; }
.intro-facts { display: flex; gap: 0; margin: 0; }
.intro-facts > div { padding: 0 28px; border-left: 1px solid var(--border); }
.intro-facts > div:first-child { padding-left: 0; border-left: 0; }
.intro-facts dt { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.intro-facts dd { margin: 0; color: var(--text3); font-size: .84rem; }

.hx-collage {
  display: grid; gap: 14px;
  grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr 0.9fr;
  height: clamp(420px, 42vw, 560px);
}
.hx-tile {
  position: relative; display: block; overflow: hidden; padding: 0;
  border-radius: var(--r); background: var(--img-well); cursor: pointer;
}
.hx-tile img {
  position: absolute; top: 8%; left: 8%; width: 84%; height: 74%;
  object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease;
}
.hx-tile span {
  position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: #0f1720; font-size: .85rem; font-weight: 650;
}
.hx-tile:hover img { transform: scale(1.04); }
.hx-tile-big { grid-row: 1 / span 2; }
.hx-tile-wide { grid-column: 1 / -1; }
.hx-tile-wide img { top: 6%; left: 26%; width: 48%; height: 82%; }

/* Benefits strip */
.hx-strip { padding: 0 20px; background: var(--bg); }
.hx-strip ul {
  list-style: none; margin: 0 auto; padding: 18px 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.hx-strip li { display: flex; align-items: center; gap: 12px; color: var(--text2); font-size: .86rem; }
.hx-strip li svg { flex-shrink: 0; color: var(--accent-text); }
.hx-strip li span { display: flex; flex-direction: column; }
.hx-strip strong { color: var(--text); font-size: .92rem; font-weight: 650; }
.hx-strip a { color: var(--text2); text-decoration: underline; text-underline-offset: 3px; }

/* ── Sections ───────────────────────────────────────────────────── */
.section { padding: clamp(44px, 6vw, 72px) 20px; background: var(--bg); }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding: 0; border: 0; }
.section-label { margin-bottom: 6px; color: var(--accent-text); font-size: .8rem; font-weight: 650; letter-spacing: 0; text-transform: none; }
.section-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; color: var(--text); }
.section-link, .text-link { color: var(--accent-text); font-weight: 650; gap: 8px; }
.section-link:hover { color: var(--accent-h); }

/* Category tiles: same language as the hero collage */
.cx-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.cx { display: flex; flex-direction: column; gap: 12px; padding: 0; text-align: left; background: none; border: 0; cursor: pointer; color: inherit; text-decoration: none; }
.cx-img { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r); background: var(--img-well); color: #5d6875; }
.cx-img img, .cx-img svg { position: absolute; top: 12%; left: 12%; width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.cx:hover .cx-img img { transform: scale(1.06); }
.cx-text { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.cx-name { color: var(--text); font-size: .95rem; font-weight: 650; line-height: 1.3; }
.cx:hover .cx-name { color: var(--accent-text); }
.cx-count { color: var(--text3); font-size: .82rem; }

/* ── Product cards: photo tile, no frame ────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.pc {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: visible;
  background: transparent; border: 0; border-radius: 0; box-shadow: none; cursor: pointer;
}
.pc:hover { transform: none; box-shadow: none; }
.pc:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--r); }
.pc-media {
  position: relative; aspect-ratio: 1 / 1; padding: 22px; overflow: hidden;
  background: var(--img-well); border: 0; border-radius: var(--r);
}
.section-alt .pc-media { background: var(--surface); }
.section-alt .pc-media img { mix-blend-mode: normal; }
.pc-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.pc:hover .pc-media img { transform: scale(1.04); }
.pc-disc {
  position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 999px;
  background: var(--warm); color: #fff; font-size: .78rem; font-weight: 700;
}
.pc .pc-fav {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; min-width: 0; min-height: 0;
  display: grid; place-items: center; padding: 0 !important;
  border: 0 !important; border-radius: 50% !important;
  background: rgba(255, 255, 255, .95) !important; color: #4a5563;
  box-shadow: 0 1px 3px rgba(15, 23, 32, .12);
}
.pc .pc-fav:hover { color: #c0392b !important; }
.pc-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 2px 0; }
.pc-meta { margin: 0; color: var(--text3); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-title {
  margin: 0; color: var(--text); font-size: .98rem; font-weight: 600; line-height: 1.38; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em;
}
.pc:hover .pc-title { color: var(--accent-text); }
.pc-status { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .82rem; font-weight: 550; }
.pc-status span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pc-status-in { color: var(--ok-fg); }
.pc-status-pre { color: var(--warn-fg); }
.pc-status-req, .pc-status-out { color: var(--text3); }
.pc-bottom { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--text); white-space: nowrap; letter-spacing: -.02em; }
.pc-price-req { font-size: 1rem; color: var(--text2); letter-spacing: 0; }
.pc-price-old { color: var(--text3); font-size: .86rem; text-decoration: line-through; }
.pc-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: .84rem; font-weight: 600;
}
.pc-buy:hover { background: var(--accent-h); }
.pc-buy-ghost { background: transparent; color: var(--accent-text); border: 1px solid var(--border2); }
.pc-buy-ghost:hover { background: var(--accent-lt); border-color: var(--accent); }

/* ── Steps and consultation banner ──────────────────────────────── */
.section-steps { padding-top: clamp(24px, 3vw, 40px); }
.st-grid { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.st-grid li { padding: 26px; border-radius: var(--r); background: var(--surface-2); }
.st-num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%;
  background: var(--surface); color: var(--accent-text); font-family: var(--font-display); font-weight: 700;
}
.st-grid strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 1.08rem; }
.st-grid p { margin: 0; color: var(--text2); font-size: .94rem; line-height: 1.6; }
.cb {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--r) + 4px);
  background: var(--accent); color: var(--on-accent);
}
.cb-kicker { margin: 0 0 10px; opacity: .8; font-size: .9rem; font-weight: 600; }
.cb-title { margin: 0 0 12px; color: var(--on-accent); font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; line-height: 1.12; }
.cb-text { margin: 0; max-width: 520px; opacity: .88; line-height: 1.6; }
.cb-actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cb-phone {
  display: inline-flex; align-items: center; gap: 12px; color: var(--on-accent); text-decoration: none;
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.02em;
}
.cb-phone:hover { opacity: .85; }
.cb-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cb .cb-btn { background: var(--on-accent); color: var(--accent); }
.cb .cb-btn:hover { background: var(--on-accent); opacity: .9; }
.cb .cb-btn-outline { color: var(--on-accent); border-color: currentColor; background: transparent; }
.cb .cb-btn-outline:hover { background: rgba(255, 255, 255, .1); }

/* Brands: popular first, the full list on request */
.section-brands { border-top: 0; padding-top: 8px; }
.section-brands #brandAZ, .section-brands #brandSearch { display: none !important; }
.section-brands.brands-open #brandAZ { display: flex !important; }
.section-brands.brands-open #brandSearch { display: block !important; }
.brands-row { display: flex; flex-wrap: wrap; gap: 10px; }
.section-brands:not(.brands-open) .brand-pill:nth-child(n+19) { display: none; }
.section-brands .section-link { cursor: pointer; }
.section-brands { border-top: 1px solid var(--border); }
.brand-pill { padding: 10px 18px; border-radius: 999px; background: var(--surface-2); border: 0; color: var(--text); font-weight: 600; min-height: 42px; }
.brand-pill:hover { background: var(--accent-lt); border-color: var(--accent); color: var(--accent-text); }
#brandSearch { border-radius: 999px !important; background: var(--surface) !important; border-color: var(--border2) !important; }

/* ── Catalogue page ─────────────────────────────────────────────── */
.catalog-page-head h1 { font-weight: 700; }
.catalog-sidebar { border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.filter-input { border-radius: 10px !important; background: var(--surface) !important; border-color: var(--border2) !important; }
.filter-reset { border-radius: 999px; background: var(--surface); }
.pag-btn { border-radius: 10px; background: var(--surface); border-color: var(--border2); color: var(--text2); }
.pag-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
#sectionCatalog .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { margin-top: clamp(24px, 4vw, 48px); padding-block: 56px 28px; background: var(--band); color: var(--band-text); border-top: 0; }
.footer-brand p { max-width: 380px; line-height: 1.6; }
.footer-brand .footer-seller { font-size: .82rem; color: var(--band-muted) !important; }
.footer-col-title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer .logo-text { color: var(--band-title); }
.footer .logo-text span { color: var(--accent); }
.footer-brand p, .footer-contact-links a, .footer-bottom p, .footer-address, .footer-brand .footer-seller { color: var(--band-text); }
.footer-col-title { color: var(--band-title); }
.footer-links a, .footer-links button { color: var(--band-text); font: inherit; font-size: .9rem; min-height: 30px; padding: 0; text-align: left; }
.footer-links { gap: 6px; }
.footer-links a:hover, .footer-links button:hover, .footer-contact-links a:hover { color: var(--accent-text); }
.footer-bottom { border-top-color: var(--band-line); }

/* ── Dialogs ────────────────────────────────────────────────────── */
.side-panel, .prod-modal, .modal, .auth-modal, .profile-card, .order-row-card { border-radius: 18px; background: var(--surface); border-color: var(--border); }
.modal-gallery, .cart-item-img, .modal-thumb { background: var(--img-well); }
.modal-buybar { background: var(--header-bg); }
.modal-avail.in-stock { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok-fg); }
.modal-avail.preorder { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn-fg); }
.modal-avail.out { background: var(--bad-bg); border-color: var(--bad-bd); color: var(--bad-fg); }
.badge-in { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok-fg); }
.badge-pre { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn-fg); }
.badge-out { background: var(--bad-bg); border-color: var(--bad-bd); color: var(--bad-fg); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hx-grid { grid-template-columns: 1fr; }
  .hx-collage { height: clamp(320px, 60vw, 460px); }
  .cx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-grid { grid-template-columns: 1fr; }
  .cb { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .cx-name { font-size: .86rem; }
  .cx-count { font-size: .76rem; }
  .prod-grid, #sectionCatalog .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .pc-media { padding: 12px; }
  .pc-title { font-size: .88rem; }
  .pc-price { font-size: 1.08rem; }
  .pc-bottom { flex-direction: column; align-items: stretch; }
  .pc-buy { width: 100%; min-height: 40px; }
}
@media (max-width: 680px) {
  .hx { padding-block: 20px 18px; }
  .section-head { flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: 6px; text-align: left; }
  .section-head > div { flex: 1 1 100%; }
  .section-head .section-link { min-height: 32px; padding: 0; }
  .hx h1 { font-size: clamp(1.9rem, 8.6vw, 2.4rem); }
  .hx-lead { font-size: 1rem; }
  .hx .hero-ctas > * { flex: 1 1 100%; }
  .intro-facts > div { padding: 0 16px; }
  .intro-facts dt { font-size: 1.3rem; }
  .hx-collage { height: 360px; gap: 8px; }
  .hx-tile span { left: 10px; bottom: 10px; font-size: .78rem; padding: 5px 10px; }
  .hx-strip ul { grid-template-columns: 1fr; gap: 12px; }
  .section { padding-block: 36px; }
  .st-grid li { padding: 20px; }
  .cb-buttons > * { flex: 1 1 100%; }
  .header-search input { border-radius: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-tile img, .cx-img img, .pc-media img { transition: none; }
}
/* Sections are separated by space, not lines. */
.section, .section-brands, .section-steps { border-top: 0 !important; border-bottom: 0 !important; }
.section-brands { padding-bottom: clamp(32px, 4vw, 48px); }

/* Compact controls: buttons support the content instead of competing with it. */
.hx .hero-ctas { margin-bottom: 32px; }
.hw-help-actions .btn-primary, .cb .btn-primary, .cb .btn-outline { min-height: 42px; }
.brand-pill { min-height: 36px; padding: 7px 15px; font-size: .86rem; }
.section-link { min-height: 36px; font-size: .88rem; }
@media (max-width: 680px) {
  .btn-primary, .btn-outline { min-height: 46px; }
}

/* v8.3: calmer scale for section titles, steps and the consultation banner */
.section-title { font-size: clamp(1.45rem, 2.1vw, 1.85rem); }
.section-head { margin-bottom: 20px; }
.st-grid { gap: 14px; margin-bottom: 14px; }
.st-grid li {
  display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; row-gap: 4px; align-items: center;
  padding: 18px 20px;
}
.st-num { width: 32px; height: 32px; margin: 0; font-size: .88rem; }
.st-grid strong { margin: 0; font-size: 1rem; }
.st-grid p { grid-column: 2; font-size: .9rem; line-height: 1.55; }
.cb { padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 40px); gap: 24px; border-radius: var(--r); }
.cb-kicker { margin-bottom: 6px; font-size: .84rem; }
.cb-title { margin-bottom: 8px; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.2; }
.cb-text { font-size: .92rem; }
.cb-actions { gap: 12px; }
.cb-phone { font-size: clamp(1.2rem, 1.8vw, 1.5rem); gap: 10px; }
.cb-phone svg { width: 18px; height: 18px; }
.cb .btn-primary, .cb .btn-outline { min-height: 40px; padding: 8px 18px; font-size: .88rem; }
.hx-strip ul { padding: 14px 0; }
.cb-text [data-setting="company_hours"], .hx-strip [data-setting], .service-bar [data-setting="company_hours"] { white-space: nowrap; }

/* Dark theme: photo wells are a muted grey (tokens.css), labels and buttons on photos switch to dark glass. */
:root[data-theme="dark"] .hx-tile span { background: rgba(26, 31, 34, .88); color: #e6eaec; }
:root[data-theme="dark"] .pc .pc-fav { background: rgba(26, 31, 34, .85) !important; color: #c9d1d5; box-shadow: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hx-tile span { background: rgba(26, 31, 34, .88); color: #e6eaec; }
  :root:not([data-theme="light"]) .pc .pc-fav { background: rgba(26, 31, 34, .85) !important; color: #c9d1d5; box-shadow: none; }
}

/* Order confirmation */
.order-done { padding: 8px 0 4px; color: var(--text2); font-size: .9rem; line-height: 1.6; }
.order-done p { margin: 0 0 12px; }
.order-done strong { color: var(--text); }
.order-done-title { color: var(--text); font-size: 1.05rem; font-weight: 800; }
.order-done-no { margin: 6px 0 14px; color: var(--accent-text); font-size: 1.4rem; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
