/* ============================================================
   CLCD Limited — Building Materials
   Industrial trade aesthetic: concrete, steel, safety orange
   ============================================================ */

:root {
  /* Structural palette */
  --ink:          #15161A;          /* near-black, body text */
  --ink-2:        #2A2C31;          /* concrete dark */
  --ink-3:        #4A4D52;          /* concrete mid */
  --mute:         #7A7D82;          /* concrete light text */
  --mute-2:       #B5B4AC;          /* warm grey */
  --line:         #DAD7CE;          /* hairlines on paper */
  --line-2:       #ECEAE2;          /* lighter divider */
  --paper:        #F2F1ED;          /* concrete paper bg */
  --paper-2:      #E8E6DD;          /* mid paper */
  --white:        #FFFFFF;

  /* Safety orange */
  --orange:       #FF5A1F;
  --orange-dk:    #DD4811;
  --orange-bg:    #FFF1E9;

  /* Status */
  --ok:           #2F7D3C;
  --ok-bg:        #E6F1E5;
  --warn:         #B86B0F;
  --warn-bg:      #FCEFD8;
  --err:          #B33124;

  /* Type */
  --ff-display:   "Inter Tight", "Archivo", system-ui, sans-serif;
  --ff-body:      "Inter", system-ui, sans-serif;
  --ff-mono:      "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Sizing */
  --container:    1320px;
  --gutter:       24px;
  --radius:       2px;          /* almost-square — industrial */
  --radius-lg:    4px;

  /* Motion */
  --t-fast: 120ms cubic-bezier(.2,.7,.3,1);
  --t-med:  220ms cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color: var(--ink); background: var(--paper); font-family: var(--ff-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; display: flex; flex-direction: column; }

main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--orange); color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ============================================================
   Typography
   ============================================================ */
.display, h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0; line-height: 1.05; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; }
h4 { font-size: 17px; letter-spacing: -0.005em; }

.eyebrow { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; margin-right: 8px; vertical-align: 2px; }

.num { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--ink-2); }
small { font-size: 12px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       height: 48px; padding: 0 22px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
       letter-spacing: 0.01em; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dk); }

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #000; }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }

.btn-line { background: var(--white); color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; text-transform: uppercase; }
.input, .select, .textarea {
  height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--white);
  border-radius: var(--radius); width: 100%; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,22,26,.08); }
.textarea { height: auto; padding: 12px 14px; min-height: 120px; resize: vertical; }
.help { font-size: 12px; color: var(--mute); }

.checkbox, .radio { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.checkbox input, .radio input { accent-color: var(--orange); width: 16px; height: 16px; }

/* ============================================================
   Top bar (utility strip)
   ============================================================ */
.topbar { background: var(--ink); color: var(--white); font-size: 12px; }
.topbar .row { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 24px; white-space: nowrap; }
.topbar .left { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.topbar .right { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.topbar a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar a:hover { color: var(--orange); }
.topbar svg { width: 14px; height: 14px; }

/* VAT toggle */
.vat-toggle { display: inline-flex; align-items: center; gap: 8px; user-select: none; }
.vat-toggle .switch { width: 36px; height: 18px; background: rgba(255,255,255,.18); border-radius: 999px; position: relative; cursor: pointer; }
.vat-toggle .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: var(--white); border-radius: 50%; transition: transform var(--t-fast); }
.vat-toggle[data-on="inc"] .switch { background: var(--orange); }
.vat-toggle[data-on="inc"] .switch::after { transform: translateX(18px); }
.vat-toggle b { color: var(--white); }
.vat-toggle .lbl { color: rgba(255,255,255,.5); font-weight: 600; font-size: 11px; letter-spacing: 0.06em; }
.vat-toggle .lbl.on { color: var(--white); }

/* ============================================================
   Header
   ============================================================ */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header .row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; height: 88px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo .mark { width: 44px; height: 44px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-family: var(--ff-display); font-weight: 900; letter-spacing: 0; font-size: 14px; border-radius: var(--radius); position: relative; overflow: hidden; }
.logo .mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange); }
.logo .word { font-family: var(--ff-display); font-weight: 900; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.logo .sub { display: block; font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--mute); margin-top: 2px; font-weight: 500; }

/* Search */
.search { position: relative; max-width: 640px; width: 100%; }
.search input { width: 100%; height: 48px; padding: 0 56px 0 18px; background: var(--paper); border: 1px solid transparent; border-radius: var(--radius); transition: border-color var(--t-fast), background var(--t-fast); }
.search input:focus { outline: 0; border-color: var(--ink); background: var(--white); }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 48px; background: var(--ink); color: var(--white); border-radius: var(--radius); display: grid; place-items: center; }
.search button:hover { background: var(--orange); }
.search svg { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; color: var(--ink); position: relative; transition: color var(--t-fast); }
.icon-btn:hover { color: var(--orange); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn span { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.icon-btn .badge { position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--white); font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* Nav */
.nav { background: var(--ink); color: var(--white); }
.nav .row { display: flex; gap: 0; height: 48px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.nav .row::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; padding: 0 18px; color: rgba(255,255,255,.88); font-weight: 500; font-size: 13.5px; letter-spacing: 0.01em; white-space: nowrap; position: relative; transition: color var(--t-fast), background var(--t-fast); }
.nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav a.active { color: var(--white); }
.nav a.active::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--orange); }

/* Service strip */
.service-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.service-strip .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.service-strip .item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-right: 1px solid var(--line-2); padding-right: 16px; min-width: 0; }
.service-strip .item > div:last-child { min-width: 0; }
.service-strip .item:last-child { border-right: 0; }
.service-strip .icon { width: 36px; height: 36px; background: var(--paper); border-radius: var(--radius); display: grid; place-items: center; flex-shrink: 0; }
.service-strip svg { width: 18px; height: 18px; color: var(--ink); }
.service-strip .ttl { font-weight: 700; font-size: 13.5px; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-strip .sub { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: var(--white); margin-top: auto; }
.footer-main { padding: 64px 0 48px; }
.footer-main .row { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 48px; }
.footer h5 { font-family: var(--ff-display); font-weight: 800; font-size: 14px; color: var(--white); margin: 0 0 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(255,255,255,.65); font-size: 14px; transition: color var(--t-fast); }
.footer a:hover { color: var(--orange); }

.footer-brand .logo .mark { background: var(--white); color: var(--ink); }
.footer-brand .logo .mark::after { background: var(--orange); }
.footer-brand .logo .word { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,.65); font-size: 13.5px; line-height: 1.6; max-width: 320px; margin-top: 16px; }
.footer-brand .contacts { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.85); display: flex; flex-direction: column; gap: 6px; }
.footer-brand .contacts a:hover { color: var(--orange); }

.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-legal .row { display: flex; justify-content: space-between; gap: 24px; font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.6; }
.footer-legal .legal-text { max-width: 900px; }
.footer-legal .legal-text strong { color: rgba(255,255,255,.85); font-weight: 600; }

/* hazard stripe accent */
.stripe { height: 8px; background-image: repeating-linear-gradient(135deg, var(--orange) 0 14px, var(--ink) 14px 28px); }

/* ============================================================
   Hero
   ============================================================ */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 64px 0 72px; }
.hero h1 { font-size: clamp(48px, 6.4vw, 88px); line-height: 0.94; }
.hero h1 .accent { color: var(--orange); }
.hero .lede { font-size: 17px; color: var(--ink-2); max-width: 480px; margin: 20px 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta .stat { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .stat .v { font-family: var(--ff-display); font-weight: 800; font-size: 28px; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.hero-meta .stat .l { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin-top: 6px; }

.hero-img { position: relative; aspect-ratio: 4/4.6; background: var(--paper-2); overflow: hidden; }
.hero-img > img { width: 100%; height: 100%; object-fit: cover; }
.hero-img .badge-tape { position: absolute; left: -8px; top: 32px; background: var(--orange); color: var(--white); font-family: var(--ff-display); font-weight: 800; font-size: 14px; padding: 10px 18px; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 2; }
.hero-img .tag { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: end; color: var(--white); gap: 16px; z-index: 2; }
.hero-img .tag .l { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; opacity: 0.85; }
.hero-img .tag .v { font-family: var(--ff-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; white-space: nowrap; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55) 100%); pointer-events: none; }

/* ============================================================
   Section
   ============================================================ */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head .l .eyebrow { display: block; margin-bottom: 12px; }
.section-head .r { display: flex; gap: 12px; }

/* ============================================================
   Category grid (home)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1/1.15; display: flex; flex-direction: column; padding: 18px; position: relative; overflow: hidden; transition: border-color var(--t-fast), transform var(--t-fast); }
.cat-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.cat-card .num { font-family: var(--ff-mono); font-size: 11px; color: var(--mute); letter-spacing: 0.1em; }
.cat-card .img { flex: 1; margin: 8px -18px; background: var(--paper); overflow: hidden; }
.cat-card .img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .name { font-family: var(--ff-display); font-weight: 800; font-size: 17px; line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
.cat-card .count { font-size: 12px; color: var(--mute); margin-top: 4px; }
.cat-card .arrow { position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; opacity: 0; transition: opacity var(--t-fast), background var(--t-fast); }
.cat-card .arrow svg { width: 14px; height: 14px; }
.cat-card:hover .arrow { opacity: 1; background: var(--orange); color: var(--white); }

/* ============================================================
   Product card (catalogue + featured rows)
   ============================================================ */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.products.grid-3 { grid-template-columns: repeat(3, 1fr); }
.products.grid-5 { grid-template-columns: repeat(5, 1fr); }

.prod { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: border-color var(--t-fast), box-shadow var(--t-fast); position: relative; overflow: hidden; }
.prod:hover { border-color: var(--ink); box-shadow: 0 6px 24px -8px rgba(0,0,0,.12); }
.prod-img { aspect-ratio: 1/1; background: var(--paper); position: relative; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.prod:hover .prod-img img { transform: scale(1.04); }
.prod-flag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--white); font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em; padding: 4px 8px; text-transform: uppercase; font-weight: 600; }
.prod-flag.sale { background: var(--orange); }
.prod-flag.bulk { background: var(--ok); }
.prod-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-brand { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--mute); text-transform: uppercase; }
.prod-name { font-family: var(--ff-display); font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.25; letter-spacing: -0.005em; }
.prod-spec { font-size: 12px; color: var(--mute); }
.prod-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.prod-price { display: flex; flex-direction: column; gap: 2px; }
.prod-price .p { font-family: var(--ff-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); line-height: 1; }
.prod-price .u { font-size: 11px; color: var(--mute); }
.prod-price .vat { font-size: 10px; color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; }

.add-btn { width: 40px; height: 40px; background: var(--ink); color: var(--white); border-radius: var(--radius); display: grid; place-items: center; transition: background var(--t-fast); flex-shrink: 0; }
.add-btn:hover { background: var(--orange); }
.add-btn svg { width: 18px; height: 18px; }
.add-btn.added { background: var(--ok); }

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock.low .dot { background: var(--warn); }
.stock.out .dot { background: var(--err); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--err); }

/* ============================================================
   CTA panels
   ============================================================ */
.trade-cta { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 56px 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; position: relative; overflow: hidden; }
.trade-cta h2 { color: var(--white); }
.trade-cta h2 .accent { color: var(--orange); }
.trade-cta p { color: rgba(255,255,255,.75); font-size: 16px; max-width: 460px; }
.trade-cta .stripe-side { position: absolute; right: -50px; top: -50px; bottom: -50px; width: 14px; transform: rotate(35deg); background-image: repeating-linear-gradient(0deg, var(--orange) 0 20px, transparent 20px 40px); }
.trade-cta ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.trade-cta li { display: flex; gap: 12px; font-size: 14px; }
.trade-cta li svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.crumbs { padding: 18px 0; font-size: 12.5px; color: var(--mute); letter-spacing: 0.02em; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--orange); }
.crumbs .sep { margin: 0 8px; color: var(--mute-2); }
.crumbs .here { color: var(--ink); font-weight: 500; }

/* ============================================================
   Shop layout
   ============================================================ */
.shop-grid { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 24px 0 72px; }
.filters { position: sticky; top: 152px; align-self: start; }
.filter-group { border-bottom: 1px solid var(--line); padding: 18px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-family: var(--ff-display); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 14px; }
.filter-group .list { display: flex; flex-direction: column; gap: 10px; }
.filter-group .ck { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.filter-group .ck input { accent-color: var(--orange); width: 15px; height: 15px; }
.filter-group .ck .ct { margin-left: auto; font-family: var(--ff-mono); font-size: 11px; color: var(--mute); }
.filter-group .ck:hover { color: var(--ink); }
.range { display: flex; align-items: center; gap: 8px; }
.range .input { height: 38px; padding: 0 10px; font-size: 13px; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.shop-toolbar .ct { font-size: 13px; color: var(--ink-2); }
.shop-toolbar .ct b { color: var(--ink); }
.shop-toolbar .ctrl { display: flex; align-items: center; gap: 12px; }
.shop-toolbar select { height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2315161A' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 12px center / 10px; appearance: none; font-size: 13px; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--ff-mono); font-size: 13px; color: var(--ink-2); transition: all var(--t-fast); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .here { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination .gap { border: 0; }

/* ============================================================
   PDP (product detail)
   ============================================================ */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 16px 0 72px; }
.gallery { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery .thumb { aspect-ratio: 1; background: var(--paper); border: 1px solid var(--line); cursor: pointer; overflow: hidden; transition: border-color var(--t-fast); }
.gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumb.active { border-color: var(--ink); }
.gallery .main { aspect-ratio: 1; background: var(--paper); border: 1px solid var(--line); overflow: hidden; position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .flag { position: absolute; top: 16px; left: 16px; background: var(--orange); color: var(--white); padding: 6px 12px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }

.pdp .info .brand { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--mute); text-transform: uppercase; }
.pdp .info h1 { font-size: clamp(28px, 3vw, 40px); margin: 12px 0 12px; line-height: 1.05; }
.pdp .info .sku { font-family: var(--ff-mono); font-size: 12px; color: var(--mute); }
.pdp .info .summary { color: var(--ink-2); margin: 16px 0 24px; font-size: 15px; }

.price-block { background: var(--paper); border-left: 3px solid var(--orange); padding: 20px 24px; margin: 24px 0; }
.price-block .row1 { display: flex; align-items: baseline; gap: 14px; }
.price-block .p { font-family: var(--ff-display); font-weight: 800; font-size: 38px; letter-spacing: -0.02em; line-height: 1; }
.price-block .u { font-size: 13px; color: var(--mute); }
.price-block .vat { font-size: 11px; color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 8px; }

.tiers { margin: 16px 0; }
.tiers-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tiers-head h4 { font-family: var(--ff-display); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }
.tiers-head small { font-size: 11px; color: var(--mute); }
.tier-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-top: 6px; font-size: 13px; }
.tier-row .qty { font-family: var(--ff-mono); font-weight: 600; }
.tier-row .price { font-family: var(--ff-display); font-weight: 800; }
.tier-row .save { font-family: var(--ff-mono); font-size: 11px; color: var(--ok); }
.tier-row.best { border-color: var(--ok); background: var(--ok-bg); }

.qty-add { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: stretch; margin: 20px 0; }
.qty { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 44px; background: var(--white); color: var(--ink); transition: background var(--t-fast); }
.qty button:hover { background: var(--paper); }
.qty input { width: 60px; height: 48px; border: 0; text-align: center; font-family: var(--ff-mono); font-weight: 600; font-size: 16px; background: var(--white); }
.qty input:focus { outline: 0; }

.specs { margin: 32px 0; }
.specs h3 { font-size: 18px; margin-bottom: 14px; }
.specs table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.specs td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--mute); width: 40%; font-weight: 500; }
.specs td:last-child { font-weight: 600; color: var(--ink); }

.delivery-est { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.delivery-est h4 { font-family: var(--ff-display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px; }
.delivery-est .frm { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.delivery-est .result { margin-top: 12px; padding: 12px; background: var(--paper); font-size: 13px; display: none; }
.delivery-est .result.on { display: block; }
.delivery-est .result b { color: var(--ok); }

/* ============================================================
   Cart / Checkout
   ============================================================ */
.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; padding: 24px 0 72px; align-items: start; }
.cart-items { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto auto auto; gap: 18px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .img { aspect-ratio: 1; background: var(--paper); overflow: hidden; border-radius: var(--radius); }
.cart-item .img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .name { font-family: var(--ff-display); font-weight: 700; font-size: 15px; line-height: 1.25; }
.cart-item .brand { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.cart-item .meta { font-size: 12px; color: var(--mute); margin-top: 4px; }
.cart-item .price { font-family: var(--ff-display); font-weight: 800; font-size: 16px; }
.cart-item .remove { color: var(--mute); transition: color var(--t-fast); padding: 8px; }
.cart-item .remove:hover { color: var(--err); }
.cart-empty { padding: 80px 24px; text-align: center; color: var(--mute); }
.cart-empty svg { width: 64px; height: 64px; color: var(--line); margin-bottom: 16px; }

.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 152px; }
.summary h3 { margin: 0 0 16px; font-size: 18px; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.summary .row.tot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 700; color: var(--ink); font-family: var(--ff-display); letter-spacing: -0.01em; }
.summary .promo { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 16px 0; }

.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.pay-methods .opt { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 10px; text-align: center; cursor: pointer; font-size: 12px; font-weight: 600; transition: all var(--t-fast); }
.pay-methods .opt.active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.pay-methods .opt:hover:not(.active) { border-color: var(--ink-3); }

/* ============================================================
   Account
   ============================================================ */
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 24px 0 72px; align-items: start; }
.acc-nav { display: flex; flex-direction: column; gap: 2px; }
.acc-nav a { padding: 12px 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); border-radius: var(--radius); display: flex; align-items: center; gap: 10px; }
.acc-nav a:hover { background: var(--paper); }
.acc-nav a.active { background: var(--ink); color: var(--white); }
.acc-nav svg { width: 16px; height: 16px; }

.acc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.acc-card + .acc-card { margin-top: 16px; }
.acc-card h2 { font-size: 22px; margin-bottom: 4px; }
.acc-card .sub { color: var(--mute); font-size: 13.5px; margin-bottom: 24px; }

.order-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 24px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.order-row + .order-row { margin-top: 10px; }
.order-row .id { font-family: var(--ff-mono); font-size: 13px; font-weight: 600; }
.order-row .date { font-size: 12.5px; color: var(--mute); }
.order-row .items { font-size: 13px; color: var(--ink-2); }
.order-row .tot { font-family: var(--ff-display); font-weight: 800; font-size: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.muted { background: var(--paper); color: var(--ink-3); }

.auth-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tabs button { padding: 14px 20px; font-weight: 600; font-size: 14px; color: var(--mute); border-bottom: 2px solid transparent; }
.auth-tabs button.active { color: var(--ink); border-bottom-color: var(--orange); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding: 32px 0 72px; align-items: start; }
.contact-info .item { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .icon { width: 44px; height: 44px; background: var(--ink); color: var(--white); border-radius: var(--radius); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .icon svg { width: 20px; height: 20px; }
.contact-info h4 { font-family: var(--ff-display); font-weight: 800; font-size: 15px; margin: 0 0 4px; }
.contact-info .v { font-size: 14px; color: var(--ink-2); }
.contact-info .v a:hover { color: var(--orange); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-form h2 { margin-bottom: 6px; }
.contact-form .sub { color: var(--mute); margin-bottom: 24px; }
.frm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.frm-stack { display: grid; gap: 16px; }

/* ============================================================
   Toasts
   ============================================================ */
.toast-host { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: var(--white); padding: 14px 18px; border-radius: var(--radius); font-size: 14px; display: flex; align-items: center; gap: 10px; border-left: 3px solid var(--orange); min-width: 280px; animation: toastIn .25s cubic-bezier(.2,.7,.3,1); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.ok { border-left-color: var(--ok); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } }

/* ============================================================
   Page header (non-home)
   ============================================================ */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 36px 0; }
.page-head h1 { font-size: clamp(32px, 4vw, 52px); }
.page-head .sub { color: var(--ink-3); font-size: 15px; margin-top: 8px; max-width: 720px; }

/* ============================================================
   Misc utility
   ============================================================ */
.hidden { display: none !important; }
.grow { flex: 1; }
.row { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.text-mute { color: var(--mute); }
.text-orange { color: var(--orange); }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }

/* Form rows */
.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Spec badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.badge { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; background: var(--paper); color: var(--ink-2); border-radius: var(--radius); font-weight: 600; }
.badge.bs { background: var(--ink); color: var(--white); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .products.grid-5 { grid-template-columns: repeat(4, 1fr); }
  .shop-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .cart-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .trade-cta { grid-template-columns: 1fr; padding: 40px; gap: 28px; }
  .footer-main .row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .service-strip .row { grid-template-columns: repeat(2, 1fr); }
  .service-strip .item:nth-child(2) { border-right: 0; }
}
@media (max-width: 720px) {
  .header .row { grid-template-columns: auto auto; gap: 12px; height: 72px; }
  .header .search { grid-column: 1/-1; order: 3; max-width: none; }
  .header .row { display: flex; flex-wrap: wrap; padding: 12px 0; height: auto; }
  .topbar .row { font-size: 11px; }
  .topbar .left a span, .topbar .right a span { display: none; }
  .hero h1 { font-size: 44px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products.grid-5 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .thumbs { flex-direction: row; }
  .frm-grid-2 { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; gap: 12px; }
  .cart-item .price, .cart-item .qty, .cart-item .remove { grid-column: 2; justify-self: start; margin-top: 4px; }
  .order-row { grid-template-columns: 1fr 1fr; }
  .footer-main .row { grid-template-columns: 1fr; }
  .footer-legal .row { flex-direction: column; gap: 12px; }
  .service-strip .row { grid-template-columns: 1fr; }
  .service-strip .item { border-right: 0; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
}
