/* ==========================================================================
   Agarwal Hardware & Tools Store — design system
   ========================================================================== */

:root {
  color-scheme: light;

  --brand:        #d9531e;
  --brand-dark:   #b8410f;
  --brand-soft:   #fdf0e9;
  --brand-ink:    #ffffff;

  --steel:        #1d2733;
  --steel-2:      #2c3a4a;

  --bg:           #f6f5f3;
  --surface:      #ffffff;
  --surface-2:    #efeeeb;
  --border:       #e0ddd8;
  --border-soft:  #ecebe7;

  --text:         #1a1d21;
  --text-2:       #4e555e;
  --muted:        #7b838d;

  --ok:           #1a7f52;
  --ok-soft:      #e6f4ed;
  --warn:         #a8690a;
  --warn-soft:    #fdf3e2;
  --danger:       #b4281f;
  --danger-soft:  #fbeceb;

  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    18px;

  --shadow-sm:    0 1px 2px rgba(20, 22, 26, .06), 0 1px 3px rgba(20, 22, 26, .04);
  --shadow:       0 2px 6px rgba(20, 22, 26, .07), 0 8px 24px rgba(20, 22, 26, .06);
  --shadow-lg:    0 10px 40px rgba(20, 22, 26, .14);

  --header-h:     68px;
  --max:          1200px;

  --sans: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand:       #f4762f;
    --brand-dark:  #d9531e;
    --brand-soft:  #2a1a12;
    --brand-ink:   #14100d;
    --bg:          #12151a;
    --surface:     #1a1e25;
    --surface-2:   #222831;
    --border:      #2e353f;
    --border-soft: #262c35;
    --text:        #eceef1;
    --text-2:      #b3bac3;
    --muted:       #868e99;
    --ok:          #4cc78d;
    --ok-soft:     #12271e;
    --warn:        #e0a13c;
    --warn-soft:   #2a2113;
    --danger:      #f0736a;
    --danger-soft: #2b1614;
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
    --shadow:      0 2px 6px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg:   0 10px 40px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

/* Any class of ours that sets `display` would otherwise beat the browser's own
   `[hidden] { display: none }` — author styles win over the UA sheet whatever
   the specificity — so elements the JS hides with `el.hidden = true` would stay
   on screen. `.lightbox`, `.btn` and `.badge` are all toggled that way. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-dark); }

.btn--dark { background: var(--steel); color: #fff; }
.btn--dark:hover { background: var(--steel-2); }

.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }

.btn--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn--danger:hover { background: var(--danger); color: #fff; }

.btn--sm { padding: 7px 13px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 26px; font-size: 1.02rem; }

/* -------------------------------------------------------------- header --- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 11px; color: var(--text); min-width: 0; }
.logo:hover { text-decoration: none; }
.logo__mark {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.03em;
  flex-shrink: 0;
}
/* The emblem is a round PNG on a transparent background, so it carries its own
   shape and needs no tile behind it. If public/img/logo-96.png is missing,
   app.js drops the <img> and tags the mark, which brings the lettered orange
   tile back and keeps the bar looking finished. */
.logo__img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
}
.logo__initials { display: none; }
.logo__mark--letters {
  background: var(--brand);
  color: var(--brand-ink);
  overflow: hidden;
}
.logo__mark--letters .logo__initials { display: block; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo__name {
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo__tag {
  font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 500;
  font-size: .94rem;
  white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.is-active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }

.lang-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  display: grid; place-items: center;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}

.menu-btn { display: none; }

@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px;
    gap: 2px;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s, transform .16s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .logo__tag { display: none; }
}

/* On a phone the shop name cannot share the bar with four action buttons.
   The mark keeps the branding; the full name is in the hero and the footer. */
@media (max-width: 560px) {
  .header__bar { gap: 10px; }
  .header__actions { gap: 6px; }
  .logo__text { display: none; }
}

/* ---------------------------------------------------------------- hero --- */

/*
 * The shopfront banner. It is composed with its left third already dark and
 * empty -- the shop sign, the doorway and the tools all sit right of centre --
 * so the headline goes in that gap rather than over the photograph.
 *
 * Three layers: a scrim that guarantees contrast for the text whatever the
 * crop does, the photograph, and the old steel gradient underneath it. The
 * gradient is still there because it covers the band the photo cannot on a
 * viewport shorter or narrower than the photo's own proportions, and it is what
 * shows if the JPEG has not arrived yet.
 *
 * The photo is decorative here: the shop's name, phone numbers and GSTIN are
 * all in the header, the footer and the contact page as real text, so nothing
 * in it is only available as an image.
 */
.hero {
  position: relative;
  background:
    linear-gradient(96deg,
      rgba(9, 13, 19, .94) 0%,
      rgba(9, 13, 19, .91) 28%,
      rgba(9, 13, 19, .78) 44%,
      rgba(9, 13, 19, .50) 58%,
      rgba(9, 13, 19, .14) 70%,
      rgba(9, 13, 19, 0) 82%),
    url("/img/hero-shopfront.jpg") right center / cover no-repeat,
    linear-gradient(160deg, var(--steel) 0%, #131b25 100%);
  color: #fff;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 84px 0 76px;
  max-width: 660px;
}
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.hero p { color: #d3dae2; font-size: 1.1rem; max-width: 54ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/*
 * Give the hero the banner's own 1998x753 so `cover` has nothing to crop: the
 * sign along the top and the tools along the bottom both stay in frame at every
 * width. Height then comes from the aspect ratio rather than the padding, with
 * a floor so a narrow desktop window cannot squeeze the text.
 */
@media (min-width: 900px) {
  .hero {
    display: grid;
    align-items: center;
    aspect-ratio: 1998 / 753;
    min-height: 470px;
  }
  .hero__inner { padding: 32px 0; }
}

/*
 * On a phone the hero is taller than it is wide, so there is no crop of a
 * 2.65:1 photo that both frames the shop and leaves room for the headline.
 * The photo becomes texture instead -- darkened most of the way down, pushed
 * right so the doorway and not the empty wall is what shows through -- and the
 * 960px copy saves two thirds of the bytes.
 */
@media (max-width: 899px) {
  .hero {
    background:
      linear-gradient(180deg,
        rgba(9, 13, 19, .93) 0%,
        rgba(9, 13, 19, .86) 45%,
        rgba(9, 13, 19, .92) 100%),
      url("/img/hero-shopfront-960.jpg") 72% center / cover no-repeat,
      linear-gradient(160deg, var(--steel) 0%, #131b25 100%);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #f3c9b3;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--border);
  border-block: 1px solid var(--border);
}
.trust {
  background: var(--surface);
  padding: 22px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust svg { flex-shrink: 0; color: var(--brand); margin-top: 2px; }
.trust strong { display: block; font-size: .96rem; }
.trust span { font-size: .85rem; color: var(--muted); }

/* ------------------------------------------------------- section header --- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head p { margin: 0; color: var(--muted); }
.section-head h2 { margin-bottom: .15em; }

/* ---------------------------------------------------------- categories --- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  gap: 14px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat-card:hover {
  text-decoration: none;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat-card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 10px;
}
.cat-card__name { font-weight: 650; font-size: .98rem; }
.cat-card__count { font-size: .82rem; color: var(--muted); }

/* A brand tile carries the maker's logo, or its initials when we have none. */
.brand-card__mark {
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
}
.brand-card__plate {
  display: grid;
  place-items: center;
  width: 124px;
  height: 46px;
  padding: 6px 10px;
  /* Every logo was flattened onto white, so the plate stays white in both
     themes - a dark plate would show a white box around the artwork. */
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.brand-card__plate img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-card__plate.is-letters {
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
}
.brand-card__plate.is-letters::after { content: attr(data-initials); }

/* The maker's mark above the product title. */
.detail__brand {
  display: inline-grid;
  place-items: center;
  height: 40px;
  padding: 5px 11px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.detail__brand img { max-height: 100%; max-width: 150px; object-fit: contain; }
.detail__brand:hover { border-color: var(--brand); }

/* ------------------------------------------------------- product cards --- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border); }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .placeholder { color: var(--muted); opacity: .5; }

.card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--surface-2);
  color: var(--text-2);
}
.badge--brand  { background: var(--brand); color: var(--brand-ink); }
.badge--save   { background: var(--ok-soft); color: var(--ok); }
.badge--out    { background: var(--danger-soft); color: var(--danger); }
.badge--low    { background: var(--warn-soft); color: var(--warn); }
.badge--ok     { background: var(--ok-soft); color: var(--ok); }

.card__body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card__brand {
  align-self: flex-start;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  font-weight: 600;
}
a.card__brand:hover { color: var(--brand-dark); text-decoration: none; }
.card__name {
  font-weight: 650;
  font-size: .98rem;
  line-height: 1.35;
  margin: 0;
}
.card__name a { color: var(--text); }
.card__name a:hover { color: var(--brand-dark); text-decoration: none; }
.card__desc {
  font-size: .85rem;
  color: var(--muted);
  margin: 2px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; gap: 10px; }

.price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price__now { font-size: 1.16rem; font-weight: 700; letter-spacing: -.02em; }
.price__mrp { font-size: .84rem; color: var(--muted); text-decoration: line-through; }
.price__unit { font-size: .78rem; color: var(--muted); }

.card__foot .btn { margin-left: auto; }

/* ------------------------------------------------------------- filters --- */

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.search {
  position: relative;
  flex: 1 1 260px;
  min-width: 200px;
}
.search svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search input { padding-left: 38px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .14s;
}
.chip:hover { border-color: var(--brand); color: var(--text); text-decoration: none; }
.chip.is-active { background: var(--steel); border-color: var(--steel); color: #fff; font-weight: 600; }
.chip__count {
  margin-left: 6px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
}
.chip.is-active .chip__count { color: rgba(255, 255, 255, .72); }

/* Labelled filter rail — the brand row under the category chips. */
.filter-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter-row__label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.filter-row[hidden] { display: none; }

/* ------------------------------------------------------------ pagination --- */

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 32px;
}
.pager[hidden] { display: none; }
.pager button {
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--text); }
.pager button:disabled { opacity: .45; cursor: default; }
.pager .is-active {
  background: var(--steel);
  border-color: var(--steel);
  color: #fff;
  font-weight: 700;
}
.pager__gap { padding: 0 2px; color: var(--muted); }

@media (max-width: 560px) {
  /* On a phone the numbers alone fit; the worded steps would wrap the row. */
  .pager__step { font-size: .84rem; padding: 8px 10px; }
  .pager button { min-width: 36px; padding: 7px 9px; }
}
.chips--inline { margin-bottom: 0; }

/* --------------------------------------------------------------- forms --- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: .86rem; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: .78rem; color: var(--muted); }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="password"], input[type="search"], select, textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  transition: border-color .14s, box-shadow .14s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
textarea { resize: vertical; min-height: 96px; }
select { cursor: pointer; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.check { display: flex; align-items: center; gap: 9px; font-size: .92rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

/* --------------------------------------------------------------- panel --- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.panel--pad-sm { padding: 18px; }
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.panel__head h2, .panel__head h3 { margin: 0; }

/* ------------------------------------------------------ product detail --- */

.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: 28px; } }

.detail__media {
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.detail__media img { width: 100%; height: 100%; object-fit: cover; }

.detail h1 { margin-bottom: .2em; }
.detail .price__now { font-size: 2rem; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.spec-table th { color: var(--muted); font-weight: 500; width: 42%; }
.spec-table td { font-weight: 550; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* The maker's price-list table, put back on screen. Wider than a phone in
   almost every case, so it scrolls inside its own box rather than pushing the
   page sideways. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.variant-table { min-width: 100%; white-space: nowrap; }
.variant-table th, .variant-table td { padding: 9px 14px 9px 0; width: auto; }
.variant-table thead th {
  color: var(--muted);
  font-weight: 550;
  border-bottom: 1px solid var(--border);
}
.variant-table tbody td { font-weight: 500; }
.variant-table__price { font-weight: 650; }
.variant-table a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); }
.variant-table a:hover { color: var(--brand); border-bottom-color: currentColor; }
.variant-table .is-current td,
.variant-table tr.is-current td { background: var(--surface-2); font-weight: 650; }
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .02em;
  vertical-align: 1px;
}

/* A catalogue line the shop has not rated yet: the maker's MRP, shown plainly,
   with an invitation to ask. Never struck through -- that would read as a
   price that has been withdrawn. */
.price--mrp { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price__tag {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price__ask { flex-basis: 100%; color: var(--muted); font-size: .82rem; font-weight: 500; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty button {
  width: 38px; height: 42px;
  border: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
}
.qty button:hover { background: var(--surface-2); }
.qty input {
  width: 54px; height: 42px;
  border: 0;
  border-inline: 1px solid var(--border);
  border-radius: 0;
  text-align: center;
  font-weight: 600;
  padding: 0;
}
.qty input:focus { box-shadow: none; }

.breadcrumb { display: flex; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-dark); }

/* ------------------------------------------------------------- enquiry --- */

.enq-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .enq-layout { grid-template-columns: 1fr; } }

.line {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-soft);
}
.line:last-child { border-bottom: 0; }
.line__media {
  width: 74px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-weight: 600; font-size: .95rem; }
.line__meta { font-size: .82rem; color: var(--muted); }
.line__right { display: flex; align-items: center; gap: 14px; }
.line__total { font-weight: 700; min-width: 84px; text-align: right; }
@media (max-width: 560px) {
  .line { grid-template-columns: 60px minmax(0, 1fr); }
  .line__media { width: 60px; height: 54px; }
  .line__right { grid-column: 1 / -1; justify-content: space-between; }
}

.totals { display: flex; flex-direction: column; gap: 10px; }
.totals__row { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; }
.totals__row--grand {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 1.16rem;
  font-weight: 700;
}

.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all .14s;
}
.icon-btn:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }

/* --------------------------------------------------------------- table --- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.data th {
  background: var(--surface-2);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .84em; color: var(--muted); }

.thumb {
  width: 44px; height: 44px;
  border-radius: 7px;
  background: var(--surface-2);
  object-fit: cover;
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* ---------------------------------------------------------- stat tiles --- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 17px 18px;
}
.stat__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.stat__value { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat--accent .stat__value { color: var(--brand); }

/* --------------------------------------------------------------- misc --- */

.page-head { padding: 40px 0 26px; border-bottom: 1px solid var(--border); background: var(--surface); }
.page-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.page-head h1 { margin-bottom: .25em; }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty svg { color: var(--border); margin-bottom: 14px; }
.empty h3 { color: var(--text); margin-bottom: .35em; }

.alert { padding: 12px 15px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 16px; }
.alert--error { background: var(--danger-soft); color: var(--danger); }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--warn { background: var(--warn-soft); color: var(--warn); }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border-soft) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.info-card svg { color: var(--brand); margin-bottom: 10px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: .3em; }
.info-card p { margin: 0; color: var(--text-2); font-size: .92rem; }

.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr:last-child td { border-bottom: 0; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .45em; }
.prose p { color: var(--text-2); }
.prose > p:first-of-type { font-size: 1.06rem; }
/* Body copy is muted, so emphasis needs the full-strength ink to register. */
.prose strong { color: var(--text); font-weight: 650; }

/* ----------------------------------------------------------------- team --- */

/* Sits under the story on the About page, so it keeps the prose measure. */
.team { max-width: 68ch; margin-top: 52px; }
.team h2 { margin-bottom: .25em; }
.team > .muted { margin-bottom: 26px; }

.founder-card { margin: 0 0 26px; }
.founder-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.founder-card figcaption {
  margin-top: 10px;
  font-size: .88rem;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.person { margin: 0; }
.person img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.person figcaption { margin-top: 11px; }
.person strong { display: block; font-weight: 650; }
.person span { font-size: .86rem; color: var(--muted); }

/* -------------------------------------------------------------- footer --- */

.footer {
  background: var(--steel);
  color: #a9b4c1;
  padding: 54px 0 26px;
  margin-top: 72px;
}
.footer a { color: #cfd7e0; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: .92rem; }
.footer li, .footer a { overflow-wrap: anywhere; }
.footer .logo__name, .footer .logo { color: #fff; }
.footer__bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .85rem;
}
.footer__credit {
  margin: 16px 0 0;
  text-align: center;
  font-size: .8rem;
  color: #8b96a3;
}
.footer__credit a {
  color: #b9c3cf;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.footer__credit a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------- utilities --- */

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row--end { justify-content: flex-end; }
.grow { flex: 1; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 760px) {
  .cta-panel { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------------------------------------------------------- admin bits --- */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.tab {
  padding: 11px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: .94rem;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--brand-dark); border-bottom-color: var(--brand); }

dialog.modal {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/* The form must be a bounded flex column, otherwise a long form overflows the
   dialog and pushes the footer buttons out of reach. */
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  flex: 1;
}
dialog.modal::backdrop { background: rgba(12, 14, 18, .55); backdrop-filter: blur(2px); }
.modal__head {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.modal__head h3 { margin: 0; }
.modal__body { padding: 22px 24px; overflow-y: auto; flex: 1; min-height: 0; }
.modal__foot {
  flex-shrink: 0;
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.img-picker { display: flex; gap: 14px; align-items: flex-start; }
.img-picker__preview {
  width: 92px; height: 92px;
  flex-shrink: 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--muted);
}
.img-picker__preview img { width: 100%; height: 100%; object-fit: cover; }

.login-card { max-width: 400px; margin: 72px auto; }

.enq-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.enq-card + .enq-card { margin-top: 14px; }
.enq-card__items { list-style: none; padding: 0; margin: 12px 0 0; font-size: .88rem; }
.enq-card__items li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--border-soft); }
.enq-card__items li:last-child { border-bottom: 0; }

.status-select { width: auto; min-width: 130px; padding: 6px 10px; font-size: .85rem; }

/* ---------------------------------------------------------------- gallery --- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
/* On the home strip a tile is a link to the gallery, not a lightbox trigger. */
a.shot { cursor: pointer; }
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The home strip keeps its six photos on one or two rows at any width. */
.gallery-grid--strip { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Caption sits on the photo, so it needs its own scrim to stay readable. */
.shot__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 10px;
  font-size: .85rem;
  line-height: 1.3;
  text-align: left;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}

/* --------------------------------------------------------------- lightbox --- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: rgba(10, 12, 15, .92);
}

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.lightbox__figure img {
  max-width: 100%;
  /* Leave room for the caption and the page padding. */
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__figure figcaption {
  color: #e7e9ec;
  font-size: .9rem;
  text-align: center;
  max-width: 70ch;
}

.lightbox__close,
.lightbox__nav {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { position: absolute; top: 16px; right: 16px; font-size: 1.9rem; }

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox__nav { width: 38px; height: 38px; }
}

/* ------------------------------------------------------- gallery (admin) --- */

.gal-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.gal-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
/* A hidden photo still shows here, just visibly muted. */
.gal-card.is-hidden { opacity: .55; }
.gal-card.is-hidden .gal-card__media { filter: grayscale(1); }

.gal-card__media { aspect-ratio: 4 / 3; background: var(--surface-2); }
.gal-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gal-card__body { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.gal-card__body input { width: 100%; }
.gal-card__row { display: flex; gap: 8px; align-items: center; }
.gal-card__row input[type="number"] { width: 72px; flex: none; }
.gal-card__row .btn { flex: 1; }

@media print {
  .header, .footer, .btn, .toolbar, .lightbox { display: none !important; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
