/* ============================================================
   ZWAN IMPEX — Surgical & Dental Instruments
   Design system: deep petrol + warm copper, premium & unique
   ============================================================ */

:root {
  /* Brand palette */
  --petrol-900: #07272a;
  --petrol-800: #0c3b3a;
  --petrol-700: #114b4a;
  --petrol-600: #17655f;
  --petrol-500: #1f8378;
  --copper-600: #a8763c;
  --copper-500: #c0894e;
  --copper-400: #d8a06a;
  --copper-300: #e8c39a;

  /* Neutrals */
  --cream: #f7f4ec;
  --cream-2: #f1ece1;
  --paper: #fffdf8;
  --ink: #1c2422;
  --ink-soft: #43514d;
  --ink-mute: #6c7a74;
  --line: #e4ddcd;
  --line-soft: #ece6d8;

  /* Functional */
  --white: #ffffff;
  --success: #2f7d5a;
  --danger: #b4453a;

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(12, 59, 58, 0.06), 0 2px 8px rgba(12, 59, 58, 0.05);
  --shadow: 0 6px 18px rgba(12, 59, 58, 0.10), 0 2px 6px rgba(12, 59, 58, 0.06);
  --shadow-lg: 0 24px 60px rgba(7, 39, 42, 0.18), 0 8px 18px rgba(7, 39, 42, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--copper-400); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--petrol-900); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--ink-soft); }
.lead { font-size: 1.125rem; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--copper-500);
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.4rem; }
.container.narrow { max-width: var(--container-narrow); }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section.petrol { background: var(--petrol-800); color: var(--cream); }
.section.petrol h1, .section.petrol h2, .section.petrol h3 { color: var(--white); }
.section.petrol p { color: rgba(247, 244, 236, 0.78); }
.section.petrol .eyebrow { color: var(--copper-400); }
.section.darker { background: var(--petrol-900); color: var(--cream); }
.section.darker p { color: rgba(247, 244, 236, 0.75); }
.section.darker h2 { color: var(--white); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-sm { gap: 0.6rem; }
.gap { gap: 1rem; }
.mt { margin-top: 1.5rem; }
.mt-lg { margin-top: 3rem; }
.muted { color: var(--ink-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: 100px;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--copper-500); color: var(--white); box-shadow: 0 8px 20px rgba(192, 137, 78, 0.32); }
.btn-primary:hover { background: var(--copper-600); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(168, 118, 60, 0.4); }
.btn-light { background: var(--white); color: var(--petrol-800); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-dark { background: var(--petrol-800); color: var(--cream); }
.btn-dark:hover { background: var(--petrol-900); transform: translateY(-3px); }
.btn-outline { border: 1.5px solid var(--petrol-700); color: var(--petrol-800); background: transparent; }
.btn-outline:hover { background: var(--petrol-800); color: var(--cream); transform: translateY(-3px); }
.btn-outline-light { border: 1.5px solid rgba(247, 244, 236, 0.4); color: var(--cream); background: transparent; }
.btn-outline-light:hover { background: rgba(247, 244, 236, 0.1); }
.btn-ghost { color: var(--petrol-800); padding: 0.5rem 0.2rem; border-radius: 0; }
.btn-ghost:hover { color: var(--copper-600); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 236, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--petrol-700), var(--petrol-900));
  display: grid; place-items: center; color: var(--copper-400);
  box-shadow: inset 0 0 0 1px rgba(216, 160, 106, 0.25);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; display: block; }
.brand-fallback { display: none; }
.brand-text { line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--petrol-900); letter-spacing: -0.01em; }
.brand-tag { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-600); font-weight: 600; }
.brand-logo { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  padding: 0.55rem 0.9rem; border-radius: 100px; color: var(--ink-soft);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--petrol-800); background: rgba(17, 75, 74, 0.07); }
.nav-links a.active { color: var(--petrol-900); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--petrol-800);
  background: rgba(17, 75, 74, 0.07); transition: background 0.25s, transform 0.25s;
}
.cart-btn:hover { background: rgba(17, 75, 74, 0.14); transform: translateY(-2px); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px;
  background: var(--copper-500); color: var(--white); border-radius: 100px;
  font-size: 0.68rem; font-weight: 700; font-family: var(--font-display);
  display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--cream);
  transform: scale(0); transition: transform 0.3s var(--ease);
}
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.35)} 100%{transform:scale(1)} }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; place-items: center; color: var(--petrol-800); background: rgba(17,75,74,0.07); }
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none;
}
.mobile-nav.open { visibility: visible; pointer-events: auto; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(7, 39, 42, 0.5); opacity: 0; transition: opacity 0.3s; }
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
  background: var(--paper); padding: 1.5rem; transform: translateX(100%);
  transition: transform 0.45s var(--ease); display: flex; flex-direction: column; gap: 0.4rem;
  box-shadow: var(--shadow-lg); overflow-y: auto;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mobile-nav a.mlink {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--petrol-900);
  padding: 0.85rem 0.8rem; border-radius: 10px; display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav a.mlink:hover { background: var(--cream-2); }
.mobile-nav a.mlink svg { width: 18px; height: 18px; color: var(--copper-600); }
.mobile-nav .btn { margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(31, 131, 120, 0.25), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(192, 137, 78, 0.14), transparent 50%),
    linear-gradient(180deg, var(--petrol-800), var(--petrol-900));
  color: var(--cream);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(247,244,236,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,244,236,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(80% 70% at 70% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(7,39,42,0.82) 0%, rgba(7,39,42,0.6) 45%, rgba(12,59,58,0.45) 100%);
  pointer-events: none;
}
.hero-particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 3;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55; pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 4; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.hero-copy { max-width: 640px; }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--copper-400); }
.hero p { color: rgba(247, 244, 236, 0.82); font-size: 1.15rem; max-width: 38ch; }
.hero .eyebrow { color: var(--copper-400); }
.hero .eyebrow::before { background: var(--copper-400); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-stats { display: flex; gap: clamp(1.4rem, 4vw, 3rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--copper-400); line-height: 1; }
.hero-stat .lbl { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247,244,236,0.65); margin-top: 0.45rem; }

/* ---------- Marquee / trust bar ---------- */
.trustbar { background: var(--petrol-900); padding: 1rem 0; border-top: 1px solid rgba(247,244,236,0.06); }
.trustbar .row { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); flex-wrap: wrap; color: rgba(247,244,236,0.7); font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.trustbar .row span { display: inline-flex; align-items: center; gap: 0.55rem; }
.trustbar .row svg { width: 18px; height: 18px; color: var(--copper-400); }

/* ---------- Section heading ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 0.9rem; font-size: 1.05rem; }
.title-stack { display: flex; flex-direction: column; gap: 0.9rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-soft); }
.card-ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(17,75,74,0.12), rgba(192,137,78,0.12));
  color: var(--petrol-700); margin-bottom: 1.1rem;
}
.card-ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }

/* Feature card (icon top) */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---------- Category showcase cards ---------- */
.cat-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cat-card:has(.cat-visual--photo) { border-color: transparent; }
.cat-visual { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--petrol-700), var(--petrol-900)); position: relative; display: grid; place-items: center; overflow: hidden; }
.cat-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(216,160,106,0.25), transparent 60%); }
.cat-visual img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform 0.6s var(--ease); }
.cat-visual svg { width: 54%; height: 54%; color: var(--copper-400); filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35)); transition: transform 0.6s var(--ease); position: relative; z-index: 1; }
.cat-card:hover .cat-visual img { transform: scale(1.06); }
.cat-card:hover .cat-visual svg { transform: scale(1.08) rotate(-4deg); }
.cat-visual--photo { background: #fff; height: 300px; min-height: 300px; max-height: 300px; aspect-ratio: auto; padding: 30px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.cat-visual--photo::after { display: none; }
.cat-visual--photo img { z-index: 0; width: auto !important; max-width: 100%; max-height: 100%; height: auto !important; object-fit: contain; object-position: center; padding: 0; }
.cat-visual--photo .cat-count { z-index: 2; }
.cat-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.cat-body h3 { margin-bottom: 0.4rem; }
.cat-body p { font-size: 0.93rem; margin-bottom: 1rem; }
.cat-link { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--copper-600); display: inline-flex; align-items: center; gap: 0.45rem; }
.cat-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.cat-card:hover .cat-link svg { transform: translateX(5px); }
.cat-count { position: absolute; top: 1rem; right: 1rem; background: rgba(255,253,248,0.92); color: var(--petrol-800); font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 100px; z-index: 2; backdrop-filter: blur(6px); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.5rem; overflow: hidden;
}
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0.8rem; right: 1rem; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: rgba(17,75,74,0.1); line-height: 1; }
.step-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--petrol-800); color: var(--copper-400); display: grid; place-items: center; margin-bottom: 1rem; }
.step-ico svg { width: 24px; height: 24px; }
.step h4 { color: var(--petrol-900); margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; }
.step-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--copper-500); transition: width 0.6s var(--ease); }
.step:hover .step-bar { width: 100%; }

/* vertical timeline for mobile / process page */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 0.9rem; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--copper-500), var(--petrol-600)); }
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -1.85rem; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--copper-500); }
.tl-item h4 { margin-bottom: 0.35rem; }
.tl-item p { font-size: 0.95rem; }

/* ---------- Stats band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); background: rgba(247,244,236,0.06); border: 1px solid rgba(247,244,236,0.1); }
.stat-card .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--copper-400); line-height: 1; }
.stat-card .lbl { margin-top: 0.5rem; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(247,244,236,0.7); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--petrol-700), var(--petrol-900)); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.split-media svg { width: 55%; height: 55%; color: var(--copper-400); }
.split-media .deco { position: absolute; inset: 0; background: radial-gradient(circle at 75% 15%, rgba(216,160,106,0.22), transparent 55%); }

/* checklist */
.check-list { display: grid; gap: 0.85rem; margin-top: 1.5rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.97rem; color: var(--ink-soft); }
.check-list .tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(47,125,90,0.14); color: var(--success); display: grid; place-items: center; margin-top: 2px; }
.check-list .tick svg { width: 14px; height: 14px; }
.section.petrol .check-list li { color: rgba(247,244,236,0.85); }
.section.petrol .check-list .tick { background: rgba(216,160,106,0.18); color: var(--copper-400); }

/* ---------- Certification / logos strip ---------- */
.cert-strip { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cert-chip {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.3rem; border-radius: 100px;
  background: var(--paper); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--petrol-800);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.cert-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cert-chip svg { width: 20px; height: 20px; color: var(--copper-600); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--petrol-800), var(--petrol-900));
  padding: clamp(2.4rem, 5vw, 3.8rem); color: var(--cream);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.cta-band::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(circle, rgba(216,160,106,0.2), transparent 60%); pointer-events: none; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(247,244,236,0.8); }
.cta-band .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--ink-mute); }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--copper-600); }
.crumbs .sep { color: var(--line); }
.crumbs .current { color: var(--petrol-800); font-weight: 600; }

/* ---------- Page header ---------- */
.page-header {
  position: relative; overflow: hidden; color: var(--cream);
  background: linear-gradient(180deg, var(--petrol-800), var(--petrol-900));
  padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-header::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(247,244,236,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(247,244,236,0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 80% at 80% 10%, #000 20%, transparent 80%); }
.page-header h1 { color: var(--white); position: relative; }
.page-header p { color: rgba(247,244,236,0.8); position: relative; max-width: 60ch; margin-top: 0.8rem; }
.page-header .crumbs { position: relative; margin-bottom: 1rem; color: rgba(247,244,236,0.7); }
.page-header .crumbs a { color: rgba(247,244,236,0.8); }
.page-header .crumbs .current { color: var(--copper-400); }

/* ---------- Product catalog ---------- */
.cat-layout { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 4vw, 2.6rem); align-items: start; }
.cat-side { position: sticky; top: 96px; }
.cat-side h4 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.8rem; }
.filter-list { display: flex; flex-direction: column; gap: 0.2rem; }
.filter-link {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.7rem 0.9rem; border-radius: 10px; color: var(--ink-soft);
  font-size: 0.93rem; font-weight: 500; transition: background 0.25s, color 0.25s;
}
.filter-link:hover { background: var(--cream-2); color: var(--petrol-800); }
.filter-link.active { background: var(--petrol-800); color: var(--cream); }
.filter-link.active .pill { background: rgba(216,160,106,0.3); color: var(--copper-300); }
.filter-link .pill { font-size: 0.72rem; font-family: var(--font-display); font-weight: 600; color: var(--ink-mute); background: var(--cream-2); padding: 0.1rem 0.5rem; border-radius: 100px; }
.filter-link.sub { padding-left: 1.8rem; font-size: 0.88rem; }
.filter-group { padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0.9rem; border-radius: 10px; cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--petrol-900); }
.filter-head:hover { background: var(--cream-2); }
.filter-head .chev { transition: transform 0.3s; width: 18px; height: 18px; }
.filter-head .chev svg { width: 100%; height: 100%; }
.filter-group.collapsed .chev { transform: rotate(-90deg); }
.filter-group.collapsed .filter-sub { display: none; }
.filter-sub { padding-bottom: 0.4rem; }

/* Toolbar */
.cat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.cat-toolbar .count { font-size: 0.9rem; color: var(--ink-mute); }
.cat-toolbar .count b { color: var(--petrol-800); font-family: var(--font-display); }
.search-box { position: relative; flex: 1; max-width: 320px; }
.search-box svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-mute); }
.search-box input { width: 100%; padding: 0.7rem 0.9rem 0.7rem 2.5rem; border-radius: 100px; border: 1px solid var(--line); background: var(--paper); font-size: 0.9rem; transition: border-color 0.25s, box-shadow 0.25s; }
.search-box input:focus { border-color: var(--copper-500); box-shadow: 0 0 0 4px rgba(192,137,78,0.12); outline: none; }

/* Product grid */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-soft); }
.product-thumb { height: 200px; min-height: 200px; max-height: 200px; padding: 15px; box-sizing: border-box; background: #fff; display: flex !important; align-items: center; justify-content: center; position: relative; border-bottom: 1px solid var(--line); overflow: hidden; text-decoration: none; }
.product-thumb svg { width: 46%; height: 46%; color: var(--petrol-700); transition: transform 0.5s var(--ease); }
.product-card:hover .product-thumb svg { transform: scale(1.08) rotate(-3deg); }
.product-thumb .code-tag { position: absolute; top: 0.7rem; left: 0.7rem; font-family: var(--font-display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; color: var(--petrol-700); background: rgba(255,253,248,0.85); padding: 0.2rem 0.55rem; border-radius: 100px; border: 1px solid var(--line); }
.product-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-body h4 { font-size: 1.02rem; margin-bottom: 0.35rem; color: var(--petrol-900); }
.product-body .cat-label { font-size: 0.76rem; color: var(--copper-600); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.5rem; }
.product-body p { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-actions { margin-top: auto; display: flex; gap: 0.5rem; align-items: center; }
.product-actions .view { flex: 1; }
.btn-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem 0.9rem; border-radius: 100px; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  background: var(--petrol-800); color: var(--cream); transition: background 0.25s, transform 0.25s; flex-shrink: 0;
}
.btn-add:hover { background: var(--petrol-900); transform: translateY(-2px); }
.btn-add svg { width: 15px; height: 15px; }
.btn-add.added { background: var(--success); }
.empty-state { grid-column: 1/-1; text-align: center; padding: 4rem 1rem; color: var(--ink-mute); }
.empty-state svg { width: 56px; height: 56px; color: var(--line); margin: 0 auto 1rem; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 2.5rem; }
.pagination .page-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.45rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.9rem; border-radius: 100px; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; border: 1px solid var(--line); background: var(--paper); color: var(--petrol-800); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.pagination a:hover { background: var(--petrol-800); color: var(--cream); border-color: var(--petrol-800); }
.pagination .current { background: var(--petrol-800); color: var(--cream); border-color: var(--petrol-800); }
.pagination .disabled { opacity: 0.45; cursor: not-allowed; }
.pagination .page-ellipsis { border-color: transparent; background: transparent; }
.pagination svg { width: 14px; height: 14px; }

/* ---------- Product detail ---------- */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "code code"
    "gallery info";
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.pd-code { grid-area: code; margin: 0; }
.pd-gallery {
  grid-area: gallery;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  height: 400px;
  min-height: 400px;
  max-height: 400px;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 96px;
  cursor: zoom-in;
}
.pd-gallery .product-img-wrap { overflow: hidden; cursor: zoom-in; }
.pd-gallery .product-img,
.pd-gallery .product-ph {
  transition: transform 0.35s var(--ease);
  will-change: transform;
}
.pd-gallery.is-zooming { cursor: zoom-out; }
.pd-gallery.is-zooming .product-img-wrap { cursor: zoom-out; }
.pd-info { grid-area: info; }
.pd-gallery svg { width: 60%; height: 60%; color: var(--petrol-700); }
.pd-gallery .badge-steel { position: absolute; top: 1.2rem; left: 1.2rem; background: var(--petrol-800); color: var(--copper-400); font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 0.8rem; border-radius: 100px; }
.pd-info .code,
.pd-code { font-family: var(--font-display); color: var(--copper-600); font-weight: 600; letter-spacing: 0.06em; font-size: 0.85rem; }
.pd-info h1 { margin: 0 0 1rem; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.pd-info .desc { font-size: 1.02rem; margin-bottom: 1.6rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.spec-table th, .spec-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spec-table th { width: 42%; color: var(--ink-mute); font-weight: 600; font-family: var(--font-display); }
.spec-table td { color: var(--ink); font-weight: 500; }
.pd-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); overflow: hidden; }
.qty button { width: 42px; height: 44px; display: grid; place-items: center; color: var(--petrol-800); }
.qty button:hover { background: var(--cream-2); }
.qty input { width: 48px; height: 44px; text-align: center; border: 0; background: transparent; font-family: var(--font-display); font-weight: 600; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-meta { margin-top: 1.8rem; display: grid; gap: 0.7rem; }
.pd-meta .row { display: flex; gap: 0.6rem; align-items: center; font-size: 0.9rem; color: var(--ink-soft); }
.pd-meta .row svg { width: 18px; height: 18px; color: var(--copper-600); flex-shrink: 0; }
.related { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* ---------- Cart / inquiry ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.cart-items { display: grid; gap: 1rem; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.cart-row .cr-thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--cream-2); display: grid; place-items: center; }
.cart-row .cr-thumb svg { width: 36px; height: 36px; color: var(--petrol-700); }
.cart-row .cr-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.cart-row .cr-name { font-family: var(--font-display); font-weight: 600; color: var(--petrol-900); font-size: 0.98rem; }
.cart-row .cr-name small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-mute); font-size: 0.78rem; }
.qty-sm { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); overflow: hidden; }
.qty-sm button { width: 30px; height: 32px; display: grid; place-items: center; color: var(--petrol-800); }
.qty-sm button:hover { background: var(--cream-2); }
.qty-sm span { min-width: 30px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.cr-remove { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--danger); background: rgba(180,69,58,0.08); transition: background 0.25s; }
.cr-remove:hover { background: rgba(180,69,58,0.16); }
.cr-remove svg { width: 16px; height: 16px; }
.cart-summary { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.cart-summary h3 { margin-bottom: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.93rem; }
.summary-row.total { border-bottom: 0; padding-top: 1.1rem; margin-top: 0.4rem; border-top: 2px solid var(--petrol-800); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--petrol-900); }
.summary-row.total .v { color: var(--copper-600); }
.empty-cart { text-align: center; padding: 4rem 1rem; }
.empty-cart svg { width: 64px; height: 64px; color: var(--line); margin: 0 auto 1.2rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1/-1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--petrol-900); }
.field label .req { color: var(--copper-600); }
.field input, .field textarea, .field select {
  padding: 0.8rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
  transition: border-color 0.25s, box-shadow 0.25s; font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--copper-500); box-shadow: 0 0 0 4px rgba(192,137,78,0.12); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ink-mute); margin-top: 0.8rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.form-note svg { width: 16px; height: 16px; color: var(--copper-600); flex-shrink: 0; margin-top: 2px; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm); }

/* alert */
.alert { padding: 1rem 1.2rem; border-radius: 12px; display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.93rem; }
.alert.success { background: rgba(47,125,90,0.1); color: var(--success); border: 1px solid rgba(47,125,90,0.25); }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert[hidden] { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.info-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.info-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--petrol-800); color: var(--copper-400); display: grid; place-items: center; flex-shrink: 0; }
.info-card .ico svg { width: 22px; height: 22px; }
.info-card h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.info-card p { font-size: 0.9rem; }
.info-card a { color: var(--copper-600); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-900); color: rgba(247,244,236,0.75); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(247,244,236,0.1); }
.footer-brand .brand-name { color: var(--white); }
.brand-logo-footer { height: 50px; width: auto; display: block; }
.footer-brand p { color: rgba(247,244,236,0.65); font-size: 0.9rem; margin-top: 1rem; max-width: 34ch; }
.footer-col h5 { color: var(--white); font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { color: rgba(247,244,236,0.7); font-size: 0.9rem; transition: color 0.25s; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-col a:hover { color: var(--copper-400); }
.footer-col a svg { width: 14px; height: 14px; opacity: 0; transform: translateX(-4px); transition: opacity 0.25s, transform 0.25s; }
.footer-col a:hover svg { opacity: 1; transform: translateX(0); }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; margin-bottom: 0.8rem; color: rgba(247,244,236,0.8); }
.footer-contact svg { width: 18px; height: 18px; color: var(--copper-400); flex-shrink: 0; margin-top: 3px; }
.social-row { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social-row a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(247,244,236,0.07); color: var(--cream); transition: background 0.25s, transform 0.25s; }
.social-row a:hover { background: var(--copper-500); transform: translateY(-3px); }
.social-row svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0; font-size: 0.85rem; color: rgba(247,244,236,0.55); }
.footer-bottom a:hover { color: var(--copper-400); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 0.6rem; align-items: center; pointer-events: none; }
.toast { background: var(--petrol-900); color: var(--cream); padding: 0.85rem 1.3rem; border-radius: 100px; font-size: 0.9rem; font-family: var(--font-display); font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.6rem; transform: translateY(20px); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 18px; height: 18px; color: var(--copper-400); }

/* ---------- Product images — listing & detail, centered ---------- */
.product-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}
.product-img,
.product-ph,
.product-img-wrap img,
.product-thumb img,
.pd-gallery img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  height: auto !important;
  object-fit: contain;
  object-position: center;
}
.product-card:hover .product-img,
.product-card:hover .product-ph,
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .brand-logo { height: 40px; }
  .split, .split.reverse .split-media { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .cat-layout { grid-template-columns: 1fr; }
  .cat-side { position: static; }
  .pd-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "code"
      "gallery"
      "info";
  }
  .pd-gallery { position: static; max-width: 100%; margin-inline: 0; height: 400px; min-height: 400px; max-height: 400px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .cart-row { grid-template-columns: 56px 1fr auto; grid-template-areas: "thumb name remove" "thumb qty qty"; row-gap: 0.6rem; }
  .cart-row .cr-thumb { grid-area: thumb; }
  .cart-row .cr-name { grid-area: name; }
  .cart-row .cr-remove { grid-area: remove; }
  .cart-row .qty-sm { grid-area: qty; justify-self: start; }
  .cart-row .cr-price { display: none; }
  .product-actions { flex-direction: column; align-items: stretch; }
  .product-actions .view { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pd-actions { flex-direction: column; align-items: stretch; }
  .pd-actions .btn { width: 100%; }
}
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; }
  .brand-logo { height: 34px; }
}
