/* =========================================================
   LockTech Solutions - marketing site styles
   Static, no build step.
   Design language: Apple (apple.com/mac) - light, spacious,
   centered typography, SF system fonts, rounded bento tiles,
   thin translucent nav, blue text-links with chevrons.
   Brand accent kept as LockTech petrol blue.
   ========================================================= */

:root {
  /* Schlage-inspired light surfaces */
  --bg: #ffffff;
  --bg-alt: #f5f5f5;   /* Schlage light gray */
  --surface: #ffffff;
  --tint: #ebf9fc;     /* pale Schlage-blue accent band */
  --text: #2b2f33;     /* neutral dark gray body */
  --muted: #5f6468;    /* Schlage secondary gray */
  --line: #d9dcde;     /* hairline */
  --line-soft: rgba(0, 55, 103, 0.08);

  /* Schlage brand blue + deep navy */
  --brand: #0072bc;
  --brand-hover: #005a94;
  --brand-link: #0072bc;
  --navy: #003767;     /* Schlage deep navy for headings/footer */
  --gold: #b8860b;     /* stars/badges */

  --radius: 10px;
  --radius-lg: 16px;
  --radius-sm: 6px;
  --shadow: 0 8px 30px rgba(0, 55, 103, 0.08);
  --shadow-lift: 0 16px 40px rgba(0, 55, 103, 0.14);
  --container: 1180px; /* Schlage wide content width */

  --font: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1, h2, h3 { color: var(--navy); }

a { color: inherit; text-decoration: none; }

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

/* Small colored overline (Apple product-name style) */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

/* Highlighted words in headlines - solid brand color, no gradient */
.grad {
  color: var(--brand);
  -webkit-background-clip: initial;
  background-clip: initial;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 980px;              /* pill */
  font-weight: 600;
  font-size: 1.0625rem;              /* ~17px */
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, opacity 0.22s ease;
}
/* Filled blue (Apple "Buy") */
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-hover); }

/* Secondary = Apple blue text-link with chevron (no fill) */
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--brand-link);
  padding-left: 6px;
  padding-right: 6px;
}
.btn-ghost::after {
  content: "\203A";                  /* › */
  font-size: 1.15em;
  line-height: 0;
  margin-left: 1px;
  transform: translateY(1px);
}
.btn-ghost:hover { text-decoration: underline; }

.btn-sm { padding: 6px 15px; font-size: 0.875rem; border-radius: 980px; }
.btn-block { width: 100%; padding: 14px 22px; }

/* ---------- Header (Apple global nav) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
/* Near-full-width bar: brand left, nav centered, utilities right. */
.site-header .container.header-inner { max-width: 1480px; }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 66px;
}
.header-inner .brand { justify-self: start; }
.header-inner .nav { justify-self: center; }
.header-utils { justify-self: end; }
/* Sit the light wordmark on a petrol-blue chip so its real colors
   (white "LOCK" + gold "TECH") stay legible on the white nav. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  padding: 7px 14px;
  border-radius: 10px;
}
.brand-logo {
  height: 24px;
  width: auto;
  display: block;
}
.brand-text { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-text span { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.nav a:hover { color: var(--brand); }
.nav .nav-cta-mobile { display: none; }

/* ---- Header right-side utilities (Schlage-style) ---- */
.header-utils {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }
.where-to-buy { font-weight: 700; }
.util-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.util-icon:hover { background: var(--tint); color: var(--brand); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero (Apple centered) ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; text-align: left; }
.hero-glow { display: none; }        /* Apple heroes have no colored glow */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  position: relative;
}
.hero-copy { max-width: 620px; margin: 0; }
.hero .eyebrow { color: var(--brand); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 14px;
}
.lead {
  color: var(--text);
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  font-weight: 400;
  line-height: 1.3;
  max-width: 46ch;
  margin: 0 0 26px;
}
.hero-actions { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 28px; }
.hero-badges { display: flex; align-items: center; justify-content: flex-start; gap: 16px; color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 8px; }
.rating strong { color: var(--text); }
.stars { color: var(--gold); letter-spacing: 1px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: 0.5; }

/* Hero showcase card - sits beside the copy on desktop, below it on mobile */
.hero-card {
  max-width: 400px;
  width: 100%;
  margin: 0;
  justify-self: end;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: left;
}
.hero-logo { width: 100%; max-width: none; height: auto; display: block; margin: 0 0 18px; border-radius: 18px; }
.hero-card-title { font-weight: 600; font-size: 1.2rem; margin-bottom: 5px; }
.hero-card-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.hero-card-list { list-style: none; display: grid; gap: 10px; text-align: left; margin: 0; padding: 0; }
.hero-card-list li { padding-left: 26px; position: relative; color: var(--text); font-size: 0.95rem; }
.hero-card-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---------- Specialties strip (Apple bento tiles) ---------- */
.specialties { background: var(--bg); padding: 22px 0 8px; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec-item {
  padding: 26px 22px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  text-align: center;
}
.spec-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.spec-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 600; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1.1rem; line-height: 1.45; }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product-thumb {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
/* Branded placeholder */
.ph-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  background: var(--bg-alt);
  color: var(--brand);
}
.ph-fallback svg { opacity: 0.5; }
.ph-tag { position: absolute; bottom: 10px; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.product-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat-tag { font-size: 0.68rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.product-name { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: inherit; text-decoration: none; }
a.product-name:hover { color: var(--brand-link); }
.product-note { color: var(--muted); font-size: 0.84rem; }
.product-price { color: var(--text); font-weight: 600; font-size: 1.15rem; margin-top: auto; padding-top: 4px; }
.enquire-price { color: var(--brand); font-size: 1rem; }

/* Product card actions: View details + Enquire */
.product-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-actions .product-enquire { grid-column: 1 / -1; }
.product-details-btn {
  padding: 11px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, border-color 0.18s;
}
a.product-details-btn { text-decoration: none; }
.product-details-btn:hover { background: var(--bg-alt); border-color: var(--muted); }

/* ---------- Quick View modal ---------- */
.pd-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.pd-modal[hidden] { display: none; }
.pd-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 20, 28, 0.55); backdrop-filter: blur(3px); animation: pdFade 0.18s ease; }
.pd-modal-panel {
  position: relative; z-index: 1;
  width: min(680px, 100%); max-height: min(88vh, 780px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  animation: pdRise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pd-modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-size: 1.35rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background 0.15s;
}
.pd-modal-close:hover { background: var(--bg-alt); }
.pd-modal-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.pd-modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pd-modal-content { padding: 22px 28px 26px; display: flex; flex-direction: column; gap: 8px; }
.pd-modal-content h3 { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.pd-modal-price { margin: 2px 0 6px; }
.pd-modal-price .product-price { font-size: 1.3rem; }
.pd-modal-content .pd-body { margin-top: 4px; }
.pd-modal-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pd-modal-actions .btn { flex: 1; min-width: 140px; text-align: center; }
body.pd-modal-open { overflow: hidden; }
@keyframes pdFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pdRise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Cursor-follow zoom (reusable) */
.zoomable { cursor: zoom-in; overflow: hidden; }
.zoomable img { transition: transform 0.15s ease; will-change: transform; }
.zoomable.is-zoom { cursor: zoom-out; }
.zoomable.is-zoom img { transform: scale(2.4); transition: transform 0.05s linear; }
.zoomable.is-zoom .pd-zoom-hint { opacity: 0; }
.pd-zoom-hint {
  position: absolute; bottom: 12px; right: 14px; z-index: 2;
  padding: 5px 10px; border-radius: 980px;
  background: rgba(15, 20, 28, 0.62); color: #fff;
  font-size: 0.72rem; letter-spacing: 0.02em; pointer-events: none;
  transition: opacity 0.15s ease;
}

.pd-body { padding: 8px 0 4px; display: flex; flex-direction: column; gap: 14px; }
.pd-desc { color: var(--muted); font-size: 0.86rem; line-height: 1.5; margin: 0; }
.pd-heading { display: block; font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 7px; }
.pd-specs { margin: 0; }
.pd-spec { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.pd-spec:last-child { border-bottom: none; }
.pd-spec dt { color: var(--muted); font-size: 0.82rem; }
.pd-spec dd { margin: 0; text-align: right; font-size: 0.82rem; font-weight: 600; }
/* Grouped / structured specs (modal + product page share this) */
.pd-specs-groups { display: grid; gap: 12px; }
.spec-group-title { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text); margin-bottom: 4px; }
.spec-table { margin: 0; display: grid; gap: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.spec-row:last-child { border-bottom: none; }
.spec-row dt { color: var(--muted); font-size: 0.82rem; }
.spec-row dd { margin: 0; text-align: right; font-size: 0.82rem; font-weight: 600; }
.pd-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.pd-list li { font-size: 0.84rem; color: var(--text); line-height: 1.4; }
.pd-vary { display: block; margin-top: 8px; font-size: 0.76rem; color: var(--muted); font-style: italic; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chip { font-size: 0.76rem; padding: 4px 10px; border-radius: 980px; border: 1px solid var(--line); color: var(--muted); background: var(--bg-alt); }
.pd-note { margin: 0; font-size: 0.8rem; color: var(--muted); font-style: italic; }

/* Category filter pills (Apple-style light chips) */
.product-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-pill {
  padding: 8px 16px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.18s;
}
.filter-pill:hover { border-color: var(--muted); }
.filter-pill.active { background: var(--text); color: #fff; border-color: var(--text); font-weight: 500; }

/* SHARP exclusive-distributor highlight */
.sharp-highlight {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  margin-bottom: 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.sharp-badge {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
}
.sharp-highlight strong { display: block; margin-bottom: 2px; }
.sharp-highlight span { color: var(--muted); font-size: 0.92rem; }

/* Why LockTech trust band */
.trust-band { padding: 60px 0; background: var(--tint); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { text-align: center; }
.trust-num { display: block; font-weight: 600; font-size: 2rem; color: var(--text); letter-spacing: -0.02em; }
.trust-label { color: var(--muted); font-size: 0.95rem; }

.product-enquire {
  width: 100%;
  padding: 11px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand-link);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.product-enquire:hover { background: var(--bg-alt); border-color: var(--muted); }

.placeholder-note, .inline-note, .form-note { color: var(--muted); font-size: 0.88rem; }
.placeholder-note { margin-top: 30px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); }
.inline-note { font-style: italic; opacity: 0.9; }

/* ---------- Services (bento tiles) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.service-icon { font-size: 2.2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 1rem; line-height: 1.45; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.about-quote {
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--text);
  border-left: 3px solid var(--brand);
  padding-left: 24px;
  margin: 10px 0 16px;
  font-weight: 400;
}
.about-source { color: var(--muted); font-weight: 500; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.stat-num { display: block; font-weight: 600; font-size: 1.6rem; color: var(--text); letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 48px; }
.contact-info .section-head, .contact-info { text-align: left; }
.contact-list { list-style: none; display: grid; gap: 22px; margin: 24px 0 30px; }
.contact-list li { display: flex; gap: 14px; }
.ci-icon { font-size: 1.3rem; }
.contact-list strong { display: block; margin-bottom: 2px; }
.contact-list p { color: var(--muted); }
.contact-list a { color: var(--brand-link); }
.contact-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

.contact-form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 4px; }
.contact-form label { display: block; margin-top: 18px; }
.contact-form label span { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 119, 163, 0.18); }
.contact-form button { margin-top: 22px; }
.form-feedback { margin-top: 12px; font-size: 0.9rem; color: var(--brand-link); min-height: 1.2em; }

/* Honeypot spam field - visually removed but present in the DOM for bots. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer (Apple light footer) ---------- */
.site-footer { background: var(--navy); border-top: none; padding: 56px 0 30px; color: rgba(255, 255, 255, 0.72); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-logo { height: 34px; width: auto; display: block; opacity: 1; }
.site-footer .footer-inner { border-bottom-color: rgba(255, 255, 255, 0.16); }
.site-footer .footer-brand p { color: rgba(255, 255, 255, 0.66); }
.site-footer .footer-social a { color: rgba(255, 255, 255, 0.82); border-color: rgba(255, 255, 255, 0.28); }
.site-footer .footer-social a:hover { color: #fff; border-color: #fff; }
.site-footer .footer-contact h4 { color: #fff; }
.site-footer .footer-contact li,
.site-footer .footer-contact a,
.site-footer .footer-nav a { color: rgba(255, 255, 255, 0.7); }
.site-footer .footer-contact a:hover,
.site-footer .footer-nav a:hover { color: #fff; }
.site-footer .footer-bottom { color: rgba(255, 255, 255, 0.55); }
.footer-brand p { color: var(--muted); margin-top: 12px; font-size: 0.92rem; max-width: 34ch; }
.footer-brand { max-width: 320px; }

/* Footer social icons */
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface); color: var(--muted);
  transition: color 0.18s, border-color 0.18s, transform 0.18s;
}
.footer-social a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }

/* Footer contact column */
.footer-contact h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.footer-contact ul { list-style: none; display: grid; gap: 9px; }
.footer-contact li { color: var(--muted); font-size: 0.9rem; line-height: 1.45; max-width: 34ch; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--text); text-decoration: underline; }

.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: var(--muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Privacy notice + form consent line ---------- */
.form-consent { margin: 10px 0 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.form-consent a { color: var(--brand); text-decoration: underline; }
.legal { max-width: 760px; padding-block: 24px 56px; line-height: 1.65; }
.legal h1 { margin: 0 0 12px; }
.legal h2 { margin: 32px 0 8px; font-size: 1.2rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand); text-decoration: underline; }
.legal-lead { font-size: 1.05rem; }
.legal-updated { margin-top: 40px; font-size: 0.85rem; color: var(--muted); }
.draft-banner { margin: 0 0 24px; padding: 12px 16px; border-radius: 10px; background: #fff7e0; border: 1px solid #f1b129; color: #5c4400; font-size: 0.9rem; }
.draft-inline { color: #8a6500; font-style: italic; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; color: var(--muted); font-size: 0.8rem; }
.footer-disclaimer { opacity: 0.85; max-width: 46ch; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 820px; margin: 0 auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-card { margin: 0 auto; justify-self: center; }
}

@media (max-width: 900px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .sharp-highlight { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
}

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .nav {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 15px 22px; border-top: 1px solid var(--line-soft); }
  .nav .nav-cta-mobile { display: block; margin: 12px 22px; text-align: center; }
  .header-utils { display: none; }
  .nav-toggle { display: flex; }
  .nav-item.has-dropdown { flex-direction: column; align-items: stretch; }
  .nav-top::after { display: none; }
  .nav-dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; background: transparent; border: 0; border-radius: 0;
    box-shadow: none; padding: 0;
  }
  .nav-dropdown a { padding: 12px 22px 12px 40px; border-top: 1px solid var(--line-soft); border-radius: 0; font-weight: 400; }
  .nav-dropdown-all { padding-left: 22px !important; }
  .spec-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Product pages (/products/<slug>/) + 404
   ========================================================= */
.product-page { padding-top: 20px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); margin: 8px 0 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--text); font-weight: 500; }

.pp-hero { padding: 8px 0 56px; }
.pp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.pp-gallery { position: sticky; top: 90px; }
.pp-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: #fff;
  overflow: hidden;
}
.pp-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pp-main .ph-fallback { position: absolute; inset: 0; }

/* --- Gallery: stage + carousel arrows + expand + thumbnails --- */
.pp-stage { position: relative; }
.pp-expand {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); color: var(--brand);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: background 0.15s ease, transform 0.15s ease;
}
.pp-expand:hover { background: #fff; transform: scale(1.06); }
.pp-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.16); transition: background 0.15s ease, transform 0.15s ease;
}
.pp-nav:hover { background: #fff; }
.pp-prev { left: 10px; }
.pp-next { right: 10px; }
@media (hover: hover) { .pp-nav:hover { transform: translateY(-50%) scale(1.06); } }

.pp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pp-thumb {
  width: 66px; height: 66px; padding: 0; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--line-soft); background: #fff; cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb:hover { transform: translateY(-1px); }
.pp-thumb.is-active { border-color: var(--brand); }

/* --- Fullscreen lightbox --- */
.pp-lightbox {
  position: fixed; inset: 0; z-index: 1300; display: none;
  align-items: center; justify-content: center; padding: 4vmin;
  background: rgba(10,12,16,0.92); backdrop-filter: blur(2px);
}
.pp-lightbox.open { display: flex; animation: pdFade 0.2s ease; }
.pp-lb-stage {
  margin: 0; max-width: 92vw; max-height: 88vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center; cursor: zoom-in;
}
.pp-lb-stage img { max-width: 92vw; max-height: 88vh; object-fit: contain; transition: transform 0.12s ease; will-change: transform; }
.pp-lb-stage.is-zoom { cursor: zoom-out; }
.pp-lb-stage.is-zoom img { transform: scale(2.4); transition: transform 0.05s linear; }
.pp-lb-close {
  position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(255,255,255,0.14); color: #fff;
  font-size: 1.8rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.pp-lb-close:hover { background: rgba(255,255,255,0.28); }
.pp-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px;
  border-radius: 50%; border: none; cursor: pointer; color: #fff;
  background: rgba(255,255,255,0.14); display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.pp-lb-nav:hover { background: rgba(255,255,255,0.28); }
.pp-lb-prev { left: 3vmin; }
.pp-lb-next { right: 3vmin; }
.pp-lb-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.9rem; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.14); padding: 5px 14px; border-radius: 980px;
}
@media (max-width: 620px) { .pp-lb-nav { width: 42px; height: 42px; } }

.pp-intro { display: flex; flex-direction: column; gap: 10px; }
.pp-intro h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 2px 0; }
.pp-price .product-price { font-size: 1.6rem; }
.pp-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.5; margin: 6px 0 4px; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 4px; }
.pp-quick { list-style: none; display: grid; gap: 0; margin-top: 14px; border-top: 1px solid var(--line-soft); }
.pp-quick li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.pp-quick strong { color: var(--text); font-weight: 600; }
.pp-quick span { color: var(--muted); text-align: right; }

.pp-section { max-width: 860px; }
.pp-head { text-align: left; margin: 0 0 24px; max-width: none; }
.pp-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.pp-specs { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 6px 18px; background: var(--surface); }
.pp-specs .pd-spec { padding: 13px 0; font-size: 0.95rem; }
/* Grouped specs on the product page: cards per category */
.pp-specs-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.pp-specs-groups .spec-group { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 20px; background: var(--surface); }
.pp-specs-groups .spec-group-title { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 8px; }
.pp-specs-groups .spec-row { padding: 11px 0; font-size: 0.95rem; }
.pp-specs-groups .spec-row dt { font-size: 0.9rem; }
.pp-specs-groups .spec-row dd { font-size: 0.9rem; }
.pp-features { columns: 2; column-gap: 40px; padding-left: 18px; }
.pp-features li { font-size: 0.95rem; margin-bottom: 8px; break-inside: avoid; }
.pp-chips { gap: 10px; }
.pp-chips .pd-chip { font-size: 0.9rem; padding: 8px 16px; }

/* Social proof / testimonials */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proof-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 26px 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface);
}
.proof-card .stars { color: #f5a623; letter-spacing: 2px; }
.proof-card strong { font-size: 1.5rem; font-weight: 600; }
.proof-card span { color: var(--muted); font-size: 0.9rem; }
.pp-center { text-align: center; margin-top: 22px; }

/* Related products */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.related-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.related-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.related-thumb .product-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.related-name { font-weight: 600; font-size: 0.95rem; padding: 10px 14px 0; }
.related-card .product-price { font-size: 1rem; padding: 0 14px 14px; }

/* CTA band */
.pp-cta { background: var(--bg-alt); border-top: 1px solid var(--line-soft); padding: 56px 0; }
.pp-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.pp-cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin-bottom: 6px; }
.pp-cta-inner p { color: var(--muted); max-width: 46ch; }
.pp-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 404 */
.notfound { text-align: center; max-width: 560px; margin: 0 auto; padding: 60px 0 40px; }
.notfound .nf-code { display: block; font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; letter-spacing: -0.03em; color: var(--brand); line-height: 1; }
.notfound h1 { font-size: 1.9rem; font-weight: 600; margin: 8px 0 10px; }
.notfound p { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.notfound .pp-actions { justify-content: center; }

@media (max-width: 860px) {
  .pp-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .pp-gallery { position: static; }
  .proof-grid { grid-template-columns: 1fr; }
  .pp-features { columns: 1; }
}


/* =========================================================
   Mr Lock - AI assistant widget
   ========================================================= */
.ml-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 1200;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border: none; cursor: pointer;
  background: var(--brand); color: #fff; border-radius: 980px;
  font: inherit; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(26,119,163,0.35);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ml-launcher:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(26,119,163,0.42); }
.ml-launcher svg { flex: none; color: #f7d36b; } /* logo gold fingerprint */
.ml-avatar svg { color: #f7d36b; }
@media (max-width: 480px) { .ml-launcher span { display: none; } .ml-launcher { padding: 14px; } }

.ml-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 1201;
  width: min(384px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ml-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.ml-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--brand); color: #fff; }
.ml-head-id { display: flex; align-items: center; gap: 10px; }
.ml-avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.ml-head strong { display: block; font-size: 0.98rem; line-height: 1.1; }
.ml-head small { font-size: 0.72rem; opacity: 0.85; }
.ml-close { background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: 0.85; padding: 0 4px; }
.ml-close:hover { opacity: 1; }

.ml-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt, #f5f5f7); }
.ml-msg { display: flex; }
.ml-msg.ml-user { justify-content: flex-end; }
.ml-bubble { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: 0.9rem; line-height: 1.45; white-space: normal; word-wrap: break-word; }
.ml-assistant .ml-bubble { background: var(--surface); color: var(--text); border: 1px solid var(--line-soft); border-bottom-left-radius: 5px; }
.ml-user .ml-bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.ml-bubble a { color: var(--brand-link); font-weight: 600; }
.ml-user .ml-bubble a { color: #fff; text-decoration: underline; }
.ml-bubble ul { margin: 6px 0 2px; padding-left: 18px; }
.ml-bubble li { margin: 2px 0; }

.ml-typing { display: inline-flex; gap: 4px; align-items: center; }
.ml-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: mlBlink 1.2s infinite ease-in-out both; }
.ml-typing span:nth-child(2) { animation-delay: 0.18s; }
.ml-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes mlBlink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.ml-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 4px; }
.ml-chip { font: inherit; font-size: 0.78rem; padding: 6px 11px; border-radius: 980px; border: 1px solid var(--line); background: var(--surface); color: var(--brand); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.ml-chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.ml-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.ml-input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 980px; font: inherit; font-size: 0.9rem; outline: none; background: var(--bg-alt, #f5f5f7); }
.ml-input:focus { border-color: var(--brand); background: var(--surface); }
.ml-send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s ease; }
.ml-send:hover { background: var(--brand-hover); }
.ml-send:disabled { opacity: 0.5; cursor: default; }

/* ---------- Category landing + all-products pages ---------- */
.cat-hero { max-width: 760px; }
.cat-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0 10px; }
.cat-tagline { color: var(--brand); font-weight: 700; font-size: 1.05rem; margin: 0 0 10px; }
.cat-group-head { text-align: left; margin-bottom: 22px; }
.cat-group-head h2 { margin: 0; }
.cat-group-head h2 a { color: var(--navy); }
.cat-group-head h2 a:hover { color: var(--brand); }

/* ---------- Featured products (home) ---------- */
.featured-label { text-align: center; margin-bottom: 22px; }
.featured-label .eyebrow { margin-bottom: 0; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.featured-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.featured-thumb .product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.featured-tagline { color: var(--muted); font-size: 0.92rem; margin: 0; flex: 1; }
.featured-cta { align-self: flex-start; margin-top: 8px; }
.featured-viewall { margin-top: 32px; text-align: center; }

/* ---------- Shop by category tiles ---------- */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 26px 16px 28px;
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.category-tile:hover { background: var(--surface); border-color: var(--brand); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.category-tile-name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: color 0.2s ease;
}
.category-tile:hover .category-tile-name { color: var(--brand); }
.category-tile-thumb {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.category-tile-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.category-tile-thumb .ph-fallback { border-radius: inherit; }

/* ---------- Nav dropdown (Products) ---------- */
.nav-item.has-dropdown { position: relative; display: flex; align-items: center; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; }
.nav-top::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.nav-item.has-dropdown:hover .nav-top::after { transform: rotate(225deg) translateY(1px); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(2px);
}
.nav-dropdown a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--tint); color: var(--brand); }
.nav-dropdown-all {
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
  padding-top: 12px !important;
  color: var(--brand) !important;
}

@media (max-width: 1024px) {
  .category-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .featured-grid { grid-template-columns: 1fr; }
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Cart, "Also available at" retailers & checkout
   ========================================================= */

/* ---- Header cart button + count badge ---- */
.cart-toggle { position: relative; }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-size: 0.68rem; font-weight: 800; line-height: 1;
  border-radius: 999px; box-shadow: 0 0 0 2px var(--surface);
}
.cart-count[hidden] { display: none; }

/* ---- Add-to-cart buttons on cards ---- */
.product-add {
  appearance: none; border: 0; cursor: pointer;
  background: var(--brand); color: #fff;
  font-family: var(--font); font-weight: 700; font-size: 0.85rem;
  padding: 9px 14px; border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
.product-add:hover { background: var(--brand-hover); }
.featured-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.featured-actions .featured-cta { margin-top: 0; }

/* ---- Slide-in cart drawer ---- */
body.cart-open { overflow: hidden; }
.cart-drawer { position: fixed; inset: 0; z-index: 1000; }
.cart-drawer[hidden] { display: none; }
.cart-backdrop {
  position: absolute; inset: 0; background: rgba(0, 20, 40, 0.45);
  opacity: 0; transition: opacity 0.25s ease;
}
.cart-drawer.open .cart-backdrop { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(400px, 92vw);
  background: var(--surface);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 55, 103, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.cart-close {
  background: none; border: 0; font-size: 1.8rem; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0 4px;
}
.cart-close:hover { color: var(--navy); }
.cart-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.cart-items { flex: 1; padding: 4px 22px; }
.cart-empty {
  padding: 56px 22px; text-align: center; color: var(--muted);
  display: grid; gap: 16px; place-items: center;
}

/* ---- Cart / checkout line items ---- */
.cart-item, .co-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px;
  align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.cart-thumb {
  display: grid; place-items: center; width: 64px; height: 64px;
  background: var(--bg-alt); border-radius: var(--radius-sm); overflow: hidden;
}
.cart-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-ph { color: var(--brand); display: grid; place-items: center; }
.cart-item-main { min-width: 0; display: grid; gap: 4px; }
.cart-item-name {
  font-weight: 700; color: var(--navy); text-decoration: none;
  font-size: 0.95rem; line-height: 1.25;
}
.cart-item-name:hover { color: var(--brand); }
.cart-item-price { color: var(--muted); font-size: 0.85rem; }
.cart-qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.cart-step {
  width: 26px; height: 26px; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--radius-sm); cursor: pointer;
  font-size: 1rem; line-height: 1; color: var(--navy);
  display: grid; place-items: center;
}
.cart-step:hover { border-color: var(--brand); color: var(--brand); }
.cart-qty-val { min-width: 24px; text-align: center; font-weight: 700; }
.cart-remove {
  margin-left: 6px; background: none; border: 0; color: var(--muted);
  font-size: 0.8rem; cursor: pointer; text-decoration: underline;
}
.cart-remove:hover { color: #c0362c; }
.cart-line-total { font-weight: 800; color: var(--navy); white-space: nowrap; }

/* ---- Cart footer / subtotal ---- */
.cart-foot { padding: 18px 22px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.02rem; margin-bottom: 6px; color: var(--navy);
}
.cart-subtotal strong { color: var(--navy); font-size: 1.2rem; }
.cart-note { font-size: 0.78rem; color: var(--muted); margin: 0 0 14px; line-height: 1.45; }

/* ---- Add-to-cart toast ---- */
.cart-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  z-index: 1100; background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease; max-width: 90vw;
}
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- "Also available at" (Shopee / Lazada) ---- */
.also-at { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.also-at-label {
  display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.retailer-list { display: grid; gap: 10px; }
.retailer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.retailer-name { font-weight: 800; color: var(--navy); }
.retailer-shopee .retailer-name { color: #ee4d2d; }
.retailer-lazada .retailer-name { color: #0f146d; }
.retailer-buy {
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.85rem; padding: 8px 18px; border-radius: 999px;
}
.retailer-buy:hover { background: var(--brand-hover); }
.retailer-soon {
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
  background: var(--bg-alt); padding: 6px 14px; border-radius: 999px;
}
.also-at-note { font-size: 0.78rem; color: var(--muted); margin: 12px 0 0; }

/* ---- Checkout page ---- */
.checkout-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.co-item { grid-template-columns: 72px 1fr auto; }
.co-summary { margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--line); }
.co-summary .cart-subtotal strong { font-size: 1.35rem; }
.checkout-form { position: sticky; top: 90px; }
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; gap: 28px; }
  .checkout-form { position: static; }
}

/* Keep the 'Ask Mr Lock' widget from overlapping the cart drawer */
body.cart-open .ml-launcher,
body.cart-open .ml-panel {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ---- Checkout form: fieldsets, field rows, required markers ---- */
.co-fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.co-fieldset legend {
  font-weight: 800; color: var(--navy); font-size: 0.95rem;
  padding: 0; margin: 6px 0 4px;
}
.co-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-form .req { color: #c0362c; font-weight: 700; }
.checkout-form .opt { color: var(--muted); font-weight: 500; font-size: 0.82em; }
@media (max-width: 560px) {
  .co-field-row { grid-template-columns: 1fr; gap: 0; }
}


/* ---- Enhanced inquiry form (two-column rows + req/opt markers) ---- */
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .req { color: #c0362c; font-weight: 700; }
.contact-form .opt { color: var(--muted); font-weight: 500; font-size: 0.82em; font-style: normal; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; gap: 0; } }

/* ---- "Also available at" retailer logos ---- */
.retailer-logo { height: 24px; width: auto; display: block; }

/* ---- "Where to Buy" header dropdown ---- */
.wtb { position: relative; }
.wtb > summary { list-style: none; cursor: pointer; }
.wtb > summary::-webkit-details-marker { display: none; }
.wtb-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 236px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  display: grid; gap: 6px;
}
.wtb-head {
  margin: 2px 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.wtb-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); text-decoration: none; color: var(--navy); font-weight: 700;
}
a.wtb-item:hover { border-color: var(--brand); background: var(--tint); }
.wtb-logo { height: 20px; width: auto; display: block; }
.wtb-name { font-weight: 800; color: var(--navy); }
.wtb-item.is-soon { opacity: 0.9; }
.wtb-soon {
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  background: var(--bg-alt); padding: 3px 9px; border-radius: 999px;
}
.wtb-go { font-size: 0.78rem; color: var(--brand); font-weight: 700; }
.wtb-contact { justify-content: center; font-size: 0.85rem; color: var(--brand); }
@media (max-width: 640px) { .wtb-menu { right: auto; left: 0; } }


/* ---- Footer social icons ----
   The base ".footer-social a" fills the chip white (background: var(--surface))
   while the dark-footer rule paints the glyph white -> invisible at rest.
   Fix: transparent chip + white glyph at rest (crisp on the dark footer),
   then fill white and reveal each brand's real colour on hover. */
.site-footer .footer-social a {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.site-footer .footer-social a[href*="facebook.com"]:hover {
  background: #fff; color: #1877f2; border-color: #1877f2;
}
.site-footer .footer-social a[href*="m.me"]:hover {
  background: #fff; color: #0084ff; border-color: #0084ff;
}
.site-footer .footer-social a[href^="tel:"]:hover {
  background: #fff; color: #22c55e; border-color: #22c55e;
}
