/* ==========================================================================
   Shop website stylesheet
   Sections: tokens / reset / layout / header / buttons / cards / forms /
             home / catalogue / product / cart / checkout / footer / responsive
   ========================================================================== */

/* --- Design tokens -------------------------------------------------------- */
:root {
  color-scheme: light;
  --accent:        #2f5cff;
  --accent-dark:   #1e42cc;
  --accent-soft:   #eaefff;
  --mint:          #00b894;
  --mint-soft:     #e2f7f1;
  --amber:         #b76e00;
  --amber-soft:    #fff3e0;
  --danger:        #d63b3b;
  --danger-soft:   #fdecec;

  --bg:            #f6f7fb;
  --surface:       #ffffff;
  --surface-2:     #f0f2f8;
  --ink:           #10162a;
  --ink-2:         #4a5268;
  --ink-3:         #79809a;
  --line:          #e3e6ef;
  --topbar-bg:     #10162a;
  --toast-bg:      #10162a;

  --radius:        7.5px;
  --radius-sm:     4.5px;
  --radius-lg:     11.25px;
  --radius-pill:   11.25px;
  --shadow:        0 1px 2px rgba(16, 22, 42, .05), 0 8px 24px rgba(16, 22, 42, .06);
  --shadow-lg:     0 2px 6px rgba(16, 22, 42, .06), 0 18px 46px rgba(16, 22, 42, .12);
  --maxw:          1180px;
  --header-h:      68px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --accent:      #6b8bff;
  --accent-dark: #8aa3ff;
  --accent-soft: #1b2445;
  --mint:        #35d6ac;
  --mint-soft:   #10322a;
  --amber:       #e5a33d;
  --amber-soft:  #33270f;
  --danger:      #ff6b6b;
  --danger-soft: #3a1c1c;

  --bg:          #0c0f1a;
  --surface:     #141926;
  --surface-2:   #1b2130;
  --ink:         #eef1f8;
  --ink-2:       #b3bacb;
  --ink-3:       #838ba3;
  --line:        #262d3f;
  --topbar-bg:   #070a12;
  --toast-bg:    #262d3f;
  --shadow:      0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg:   0 2px 6px rgba(0, 0, 0, .45), 0 18px 46px rgba(0, 0, 0, .45);
}

/* Follow the device setting until the visitor chooses a theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --accent:      #6b8bff;
    --accent-dark: #8aa3ff;
    --accent-soft: #1b2445;
    --mint:        #35d6ac;
    --mint-soft:   #10322a;
    --amber:       #e5a33d;
    --amber-soft:  #33270f;
    --danger:      #ff6b6b;
    --danger-soft: #3a1c1c;

    --bg:          #0c0f1a;
    --surface:     #141926;
    --surface-2:   #1b2130;
    --ink:         #eef1f8;
    --ink-2:       #b3bacb;
    --ink-3:       #838ba3;
    --line:        #262d3f;
    --topbar-bg:   #070a12;
    --toast-bg:    #262d3f;
    --shadow:      0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg:   0 2px 6px rgba(0, 0, 0, .45), 0 18px 46px rgba(0, 0, 0, .45);
  }
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* Layout rules such as display:grid must not reveal hidden cart/checkout sections. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[data-icon] { display: inline-flex; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* --- Layout --------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--ink-2); margin: 0; max-width: 56ch; }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6em;
}
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* --- Header --------------------------------------------------------------- */
.topbar { background: var(--topbar-bg); color: #fff; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-links { display: flex; gap: 18px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-main { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 5.25px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  display: grid; place-items: center; color: #fff;
}
.brand-mark svg { width: 19px; height: 19px; }

/* --- Header search -------------------------------------------------------- */
.site-search {
  flex: 1; max-width: 660px; display: flex; align-items: stretch; height: 46px;
  border: 2px solid var(--accent); border-radius: var(--radius-pill);
  background: var(--surface); overflow: hidden;
}
.site-search:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.site-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  padding: 0 20px; font: inherit; font-size: .95rem;
}
.site-search input::placeholder { color: var(--ink-3); }
.site-search input:focus { outline: none; }
.site-search select {
  border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink-2);
  font: inherit; font-size: .87rem; padding: 0 8px 0 14px; cursor: pointer; max-width: 160px;
}
.site-search select:focus { outline: none; }
.site-search button {
  border: 0; background: var(--accent); color: #fff; padding: 0 24px;
  cursor: pointer; display: grid; place-items: center; transition: background .15s;
}
.site-search button:hover { background: var(--accent-dark); }
.site-search button svg { width: 20px; height: 20px; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 6.75px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  position: relative; transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle { flex: none; }
.theme-toggle .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-light { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-icon-dark { display: none; }

.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--surface);
}
.cart-count[hidden] { display: none !important; }
.burger { display: none; }

/* --- Nav row -------------------------------------------------------------- */
.navbar { border-top: 1px solid var(--line); background: var(--surface-2); }
.navbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 50px; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: .95rem;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-phone {
  margin-left: auto; display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.nav-phone svg { width: 18px; height: 18px; color: var(--accent); }
.nav-phone:hover { color: var(--accent); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-align: center;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-mint { background: var(--mint); color: #04241d; }
.btn-mint:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .875rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.link-arrow { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { text-decoration: underline; }

/* --- Chips / badges ------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: 6px; font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.chip-new   { background: var(--accent-soft); color: var(--accent); }
.chip-ref   { background: var(--mint-soft);   color: var(--mint); }
.chip-used  { background: var(--amber-soft);  color: var(--amber); }
.chip-out   { background: var(--danger-soft); color: var(--danger); }
.chip-line  { background: var(--surface-2);   color: var(--ink-2); }

/* --- Product cards -------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.p-card { display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s, border-color .16s; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.p-media {
  position: relative; aspect-ratio: 4 / 3; background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
}
.p-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 8px;
}
.p-media .ph { width: 42%; color: var(--ink-3); opacity: .55; }
.p-flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.p-save {
  position: absolute; top: 10px; right: 10px; background: var(--danger); color: #fff;
  padding: 4px 9px; border-radius: 5.25px; font-size: .72rem; font-weight: 700;
}
.p-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.p-brand { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.p-name { font-size: 1rem; font-weight: 650; line-height: 1.35; margin: 0; }
.p-name a:hover { color: var(--accent); }
.p-price-row { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 4px; }
.p-price { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.p-old { color: var(--ink-3); text-decoration: line-through; font-size: .9rem; }
.p-stock { font-size: .8rem; color: var(--ink-3); }
.p-stock.low { color: var(--amber); font-weight: 600; }
.p-actions { display: flex; gap: 8px; }
.p-actions .btn { flex: 1; }

/* --- Home: hero ----------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 460px at 88% -10%, color-mix(in srgb, var(--mint) 22%, transparent), transparent 60%),
    radial-gradient(900px 500px at 8% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding-block: 72px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.hero-points svg { width: 17px; height: 17px; color: var(--mint); flex: none; }

.hero-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 24px;
}
.hero-panel h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.hero-panel h3 svg { width: 20px; height: 20px; color: var(--accent); }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.price-list li:last-child { border-bottom: 0; }
.price-list b { white-space: nowrap; }
.hero-panel .note { font-size: .82rem; color: var(--ink-3); margin: 12px 0 0; }

/* --- Home: categories ----------------------------------------------------- */
.cat-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cat-card {
  padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow); display: block;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cat-icon {
  width: 48px; height: 48px; border-radius: 7.5px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-card h3 { margin-bottom: .25em; }
.cat-card p { color: var(--ink-2); font-size: .9rem; margin: 0; }

/* --- Home: services ------------------------------------------------------- */
.svc-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.svc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.svc-top { display: flex; align-items: center; gap: 12px; }
.svc-icon { width: 42px; height: 42px; border-radius: 6px; background: var(--mint-soft); color: var(--mint); display: grid; place-items: center; flex: none; }
.svc-icon svg { width: 21px; height: 21px; }
.svc h3 { margin: 0; font-size: 1.02rem; }
.svc p { color: var(--ink-2); font-size: .92rem; margin: 0; flex: 1; }
.svc-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Home: trust strip ---------------------------------------------------- */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; padding-block: 34px; }
.trust-item { display: flex; gap: 13px; align-items: flex-start; }
.trust-item svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 2px; }
.trust-item b { display: block; margin-bottom: 2px; }
.trust-item span { color: var(--ink-2); font-size: .89rem; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--mint)));
  color: #fff; border-radius: var(--radius-lg); padding: 42px 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 .3em; color: #fff; }
.cta-band p { margin: 0; opacity: .92; max-width: 54ch; }
.cta-band .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.cta-band .btn-white { background: #fff; color: #1e42cc; }
.cta-band .btn-white:hover { background: #ffd447; color: #12203f; }

/* --- Page head ------------------------------------------------------------ */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.page-head h1 { margin-bottom: .2em; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.page-head p { color: var(--ink-2); margin: 0; }
.crumbs { font-size: .84rem; color: var(--ink-3); margin-bottom: 10px; display: flex; gap: 7px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }

/* --- Catalogue layout ----------------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 262px 1fr; gap: 28px; align-items: start; padding: 32px 0 72px; }
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 16px);
}
.filters h3 { font-size: .95rem; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.f-group { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.f-group:first-of-type { border-top: 0; padding-top: 0; }
.f-group > b { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.f-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: .93rem; }
.f-opt input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; flex: none; }
.f-opt .n { margin-left: auto; color: var(--ink-3); font-size: .8rem; }
.f-range { display: flex; align-items: center; gap: 9px; }
.f-range input {
  width: 100%; padding: 9px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: .9rem;
}
.f-reset { background: none; border: 0; color: var(--accent); font-size: .82rem; font-weight: 600; cursor: pointer; padding: 0; }
.f-reset:hover { text-decoration: underline; }

.shop-toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.search-box input {
  width: 100%; padding: 11px 13px 11px 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: .94rem;
}
.search-box input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.shop-toolbar select {
  padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font-size: .92rem; cursor: pointer;
}
.result-count { color: var(--ink-2); font-size: .9rem; white-space: nowrap; }
.filter-toggle { display: none; }

.empty { text-align: center; padding: 70px 20px; color: var(--ink-2); }
.empty svg { width: 54px; height: 54px; color: var(--ink-3); opacity: .5; margin-bottom: 14px; }

/* --- Product detail ------------------------------------------------------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 32px 0 20px; align-items: start; }
.pd-media {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
  position: relative;
}
.pd-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 14px;
}
.pd-media .ph { width: 38%; color: var(--ink-3); opacity: .5; }
.pd-info h1 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-bottom: .35em; }
.pd-flags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.pd-price .now { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; }
.pd-price .was { color: var(--ink-3); text-decoration: line-through; font-size: 1.1rem; }
.pd-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 22px 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); overflow: hidden; }
.qty button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.15rem; color: var(--ink-2); }
.qty button:hover { background: var(--surface-2); color: var(--accent); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.spec-table td:first-child { color: var(--ink-3); width: 42%; }
.spec-table td:last-child { font-weight: 600; }
.pd-note { display: flex; gap: 11px; align-items: flex-start; background: var(--surface-2); border-radius: var(--radius); padding: 15px 17px; font-size: .89rem; color: var(--ink-2); margin-top: 18px; }
.pd-note svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 2px; }

/* --- Product photo gallery ------------------------------------------------ */
.pd-gallery { display: grid; gap: 12px; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 78px; height: 64px; padding: 0; border-radius: 5.25px; overflow: hidden;
  border: 2px solid var(--line); background: var(--surface-2); cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pd-thumb:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.pd-thumb.active { border-color: var(--accent); }

/* --- Cart ----------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 28px; align-items: start; padding: 32px 0 72px; }
.cart-line {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center;
  padding: 16px; border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { position: relative; width: 92px; height: 74px; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.cart-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.cart-thumb .ph { width: 44%; color: var(--ink-3); opacity: .5; }
.cart-line h4 { margin: 0 0 4px; font-size: .98rem; font-weight: 650; }
.cart-line .meta { font-size: .82rem; color: var(--ink-3); }
.cart-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-right .line-total { font-weight: 800; font-size: 1.05rem; }
.qty.small button { width: 32px; height: 34px; font-size: 1rem; }
.qty.small span { min-width: 28px; font-size: .9rem; }
.remove-btn { background: none; border: 0; color: var(--ink-3); font-size: .8rem; cursor: pointer; padding: 0; }
.remove-btn:hover { color: var(--danger); text-decoration: underline; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: .94rem; color: var(--ink-2); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 1.18rem; font-weight: 800; color: var(--ink); }
.sum-note { display: flex; gap: 10px; background: var(--mint-soft); color: var(--mint); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .84rem; font-weight: 600; margin: 14px 0; align-items: flex-start; }
.sum-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* --- Forms / checkout ----------------------------------------------------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 350px; gap: 28px; align-items: start; padding: 32px 0 72px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 20px; }
.form-card > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 700; flex: none; }
.field-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: .86rem; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: .95rem; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: .79rem; color: var(--ink-3); }
.field .err { font-size: .79rem; color: var(--danger); font-weight: 600; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.radio-cards { display: grid; gap: 12px; }
.radio-card {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px 17px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
  transition: border-color .15s, background .15s;
}
.radio-card:hover { border-color: var(--accent); }
.radio-card input { width: 19px; height: 19px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.radio-card b { display: block; margin-bottom: 2px; }
.radio-card span { font-size: .87rem; color: var(--ink-2); }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.pay-box { display: flex; gap: 13px; align-items: flex-start; background: var(--mint-soft); border: 1px solid color-mix(in srgb, var(--mint) 35%, transparent); border-radius: var(--radius); padding: 17px 19px; }
.pay-box svg { width: 24px; height: 24px; color: var(--mint); flex: none; margin-top: 2px; }
.pay-box b { display: block; margin-bottom: 3px; }
.pay-box span { font-size: .89rem; color: var(--ink-2); }

.mini-line { display: flex; justify-content: space-between; gap: 12px; font-size: .89rem; padding: 7px 0; }
.mini-line .q { color: var(--ink-3); }

/* --- Order confirmation --------------------------------------------------- */
.confirm { max-width: 620px; margin: 0 auto; text-align: center; padding: 60px 0 90px; }
.confirm-mark { width: 76px; height: 76px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); display: grid; place-items: center; margin: 0 auto 22px; }
.confirm-mark svg { width: 38px; height: 38px; }
.order-ref { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem; font-weight: 700; background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 11px 20px; margin: 6px 0 20px; }
.confirm .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* --- Contact -------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 0 72px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 21px; height: 21px; color: var(--accent); flex: none; margin-top: 3px; }
.info-list b { display: block; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.hours-row:last-child { border-bottom: 0; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); display: block; }

/* --- FAQ ------------------------------------------------------------------ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 650; padding: 17px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--ink-2); font-size: .94rem; padding-bottom: 6px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 52px 0 26px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 5px 0; }
.footer-grid a { color: var(--ink-2); font-size: .93rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--ink-2); font-size: .92rem; max-width: 40ch; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: .85rem; }

/* --- Floating WhatsApp ---------------------------------------------------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 26px rgba(37, 211, 102, .42);
  transition: transform .16s;
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 29px; height: 29px; }

/* --- Toast ---------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 130%);
  background: var(--toast-bg); color: #fff; padding: 13px 22px; border-radius: var(--radius-pill);
  font-size: .92rem; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 200;
  transition: transform .28s cubic-bezier(.2, .9, .3, 1.2); display: flex; align-items: center; gap: 9px;
  max-width: calc(100vw - 40px);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--mint); flex: none; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 52px; }
  .shop-layout, .cart-layout, .checkout-layout, .contact-layout, .pd { grid-template-columns: 1fr; }
  .summary { position: static; }
  .filters {
    position: static; display: none;
    grid-column: 1 / -1;
  }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px 18px 18px; box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: transform .24s ease; margin-left: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 12px; border-radius: var(--radius-sm); font-size: 1rem; }
  .burger { display: grid; }
  .header-actions { margin-left: auto; }
  .topbar-links { display: none; }
  .section { padding: 46px 0; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .p-body { padding: 13px 13px 15px; }
  .p-price { font-size: 1.15rem; }
  .cta-band { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .field-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-thumb { width: 72px; height: 62px; }
  .cart-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .fab { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

@media print {
  .site-header, .topbar, .site-footer, .fab, .btn, .theme-toggle { display: none !important; }
}


/* ==========================================================================
   HOME PAGE - departments rail, rotating banner, promo tiles, category tiles
   ========================================================================== */

.hero-row { padding: 24px 0 4px; }
.hero-grid { display: grid; grid-template-columns: 262px 1fr; gap: 24px; align-items: stretch; }

/* --- Departments rail ----------------------------------------------------- */
.departments {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.departments h3 {
  margin: 0; padding: 15px 20px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--accent); display: flex; align-items: center; gap: 10px;
}
.departments h3 svg { width: 17px; height: 17px; }
.departments ul { list-style: none; margin: 0; padding: 6px 0; flex: 1; }
.departments li + li { border-top: 1px solid var(--line); }
.departments ul a {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  font-size: .94rem; color: var(--ink-2); transition: background .15s, color .15s;
}
.departments ul a:hover { background: var(--accent-soft); color: var(--accent); }
.departments ul a svg { width: 19px; height: 19px; flex: none; color: var(--ink-3); }
.departments ul a:hover svg { color: var(--accent); }
.departments ul a .n { margin-left: auto; font-size: .78rem; color: var(--ink-3); }
.dept-foot { border-top: 1px solid var(--line); padding: 14px 16px; }

/* --- Rotating banner ------------------------------------------------------ */
.carousel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--ink);
}
.slides { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.slides.no-anim { transition: none; }
.slide {
  min-width: 100%; display: grid; grid-template-columns: 1.02fr .98fr; gap: 24px;
  align-items: center; padding: 44px 46px; color: #fff; min-height: 430px;
}
.slide.tone-ink  { background: linear-gradient(118deg, #0c1430 0%, #1b2b5c 58%, #27417f 100%); }
.slide.tone-blue { background: linear-gradient(118deg, #112363 0%, #2f5cff 100%); }
.slide.tone-teal { background: linear-gradient(118deg, #04352e 0%, #0a8f74 58%, #00b894 100%); }
.slide.tone-plum { background: linear-gradient(118deg, #290f3c 0%, #7b2d8e 100%); }
.slide .eyebrow { color: #ffd447; }
.slide h2 { font-size: clamp(1.65rem, 2.9vw, 2.45rem); color: #fff; margin-bottom: .35em; }
.slide p { color: rgba(255, 255, 255, .82); max-width: 44ch; font-size: 1.02rem; }
.slide .btn-white { background: #fff; color: #12203f; }
.slide .btn-white:hover { background: #ffd447; color: #12203f; }
.slide.no-art { grid-template-columns: 1fr; }
.slide-art { display: grid; place-items: center; }
.slide-art img { max-height: 340px; width: 100%; object-fit: contain; }

/* --- Baneri i reklamave --------------------------------------------------
   Kur dosja reklama/ ka figura, baneri tregon VETEM ato: pa tekst, pa ngjyra,
   pa asgje per te rregulluar. Lartesia merret nga vete figura e pare, keshtu
   reklama duket saktesisht sic e keni bere.
   ------------------------------------------------------------------------ */
.carousel.ads { aspect-ratio: 2 / 1; background: var(--surface-2); }
.carousel.ads .slides,
.carousel.ads .slide,
.carousel.ads .slide > a { height: 100%; }
.carousel.ads .slide {
  display: block; padding: 0; min-height: 0; background: none;
}
.carousel.ads .slide img {
  display: block; width: 100%; height: 100%; object-fit: contain;
}

.car-arrow {
  position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .15s;
}
.car-arrow:hover { background: rgba(255, 255, 255, .34); }
.car-arrow svg { width: 20px; height: 20px; }
.car-prev { left: 14px; }
.car-prev svg { transform: rotate(180deg); }
.car-next { right: 14px; }
.car-dots { position: absolute; left: 46px; bottom: 24px; display: flex; gap: 8px; }
.car-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .2s, background .2s;
}
.car-dots button[aria-current="true"] { width: 28px; background: #ffd447; }

/* --- Promo tiles ---------------------------------------------------------- */
.promo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); gap: 20px; padding: 26px 0 8px; }
.promo {
  display: flex; gap: 15px; align-items: flex-start; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.promo-icon { width: 46px; height: 46px; border-radius: 6.75px; display: grid; place-items: center; flex: none; }
.promo-icon svg { width: 23px; height: 23px; }
.promo.tone-mint  .promo-icon { background: var(--mint-soft);   color: var(--mint); }
.promo.tone-blue  .promo-icon { background: var(--accent-soft); color: var(--accent); }
.promo.tone-amber .promo-icon { background: var(--amber-soft);  color: var(--amber); }
.promo > div { flex: 1; min-width: 0; }
.promo h3 { font-size: 1rem; margin: 0 0 3px; }
.promo .link-arrow { white-space: nowrap; }
.promo p { font-size: .88rem; color: var(--ink-2); margin: 0 0 8px; }

/* --- Category tiles ------------------------------------------------------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 20px; }
.cat-tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px 24px;
  min-height: 196px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-tile.tone-ink  { background: linear-gradient(140deg, #0c1430, #27417f); }
.cat-tile.tone-blue { background: linear-gradient(140deg, #112363, #2f5cff); }
.cat-tile.tone-teal { background: linear-gradient(140deg, #04352e, #00b894); }
.cat-tile.tone-plum { background: linear-gradient(140deg, #290f3c, #7b2d8e); }
.tile-icon { position: absolute; right: -18px; top: -14px; opacity: .17; }
.tile-icon svg { width: 158px; height: 158px; }
.cat-tile h3, .cat-tile p, .cat-tile .link-arrow { position: relative; z-index: 1; }
.cat-tile h3 { color: #fff; font-size: 1.3rem; margin: 0 0 4px; }
.cat-tile p { margin: 0 0 10px; font-size: .88rem; color: rgba(255, 255, 255, .78); }
.cat-tile .link-arrow { color: #ffd447; font-size: .9rem; }

/* --- Repairs strip (deliberately below the shopping content) -------------- */
.repair-strip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.rs-icon {
  width: 54px; height: 54px; border-radius: 8.25px; background: var(--mint-soft); color: var(--mint);
  display: grid; place-items: center; flex: none;
}
.rs-icon svg { width: 27px; height: 27px; }
.rs-text { flex: 1; min-width: 230px; }
.rs-text h3 { margin: 0 0 4px; }
.rs-text p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.rs-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Home responsive ------------------------------------------------------ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .departments { display: none; }
  .slide { padding: 36px 34px; min-height: 380px; }
}
@media (max-width: 860px) {
  .site-search select { display: none; }
}
@media (max-width: 720px) {
  .header-main { flex-wrap: wrap; gap: 12px; padding-block: 10px; }
  .brand { margin-right: auto; }
  .site-search { order: 3; flex-basis: 100%; max-width: none; height: 44px; }
  .navbar { border: 0; background: transparent; }
  .navbar .wrap { min-height: 0; padding: 0; }
  .navbar .nav-phone { display: none; }
  .hero-row { padding-top: 14px; }
  .slide { grid-template-columns: 1fr; padding: 26px 24px 62px; min-height: 0; gap: 14px; }
  /* baneri i reklamave e mban vete raportin e figures edhe ne telefon */
  .slide-art { order: -1; }
  .slide-art img { max-height: 168px; }
  .slide p { font-size: .95rem; }
  .car-arrow { display: none; }
  .car-dots { left: 24px; bottom: 22px; }
  .cat-tile { min-height: 168px; }
  .repair-strip { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .slides { transition: none; }
  html { scroll-behavior: auto; }
}
