/* ============================================================
   Thuwa Polymers — style.css
   Palette: Red #D71920 · Black #111111 · White #FFFFFF
            Steel #242424 · Mist #F5F5F5 · Line #E5E5E5
   Type:    Archivo (display + body) · IBM Plex Mono (data)
   ============================================================ */

:root {
  --red: #DA1E4E;
  --red-dark: #B51E4A;
  --black: #414042;
  --steel: #242424;
  --white: #FFFFFF;
  --mist: #F5F5F5;
  --line: #E5E5E5;
  --muted: #5F5F5F;
  --whatsapp: #1FA855;

  --font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .05), 0 10px 28px rgba(17, 17, 17, .08);
  --shadow-lg: 0 2px 4px rgba(17, 17, 17, .06), 0 18px 44px rgba(17, 17, 17, .14);
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; }
* { cursor: default; }
button, input, select, textarea { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 300;
}
.skip-link:focus { left: 0; }

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

.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--mist); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 56ch; }

.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 68ch;
}

.text-link {
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color .18s;
}
.text-link:hover { border-color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 24px;
  min-height: 46px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }

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

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}
.btn-ghost-light:hover { background: var(--white); color: var(--black); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #178f47; }

.btn-sm { padding: 10px 20px; font-size: 13.5px; min-height: 40px; }
.header-shop { min-width: 118px; justify-content: center; }
.btn-lg { padding: 16px 30px; font-size: 16px; min-height: 52px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--black);
  border-bottom: 2px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  flex: none;
}.logo-mark {
  flex: none;
  height: 42px;
  width: auto;
}
.logo-bg {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 6px;
}
.logo-text {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-text strong { font-weight: 800; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.main-nav a {
  color: #EDEDED;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.main-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.main-nav a.active { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-call {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .4);
  min-width: 132px;
  justify-content: center;
}
.btn-call:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  border-radius: 8px;
  transition: background-color .15s;
}
.cart-btn:hover { background: rgba(255, 255, 255, .08); }

.cart-count {
  position: absolute;
  top: 1px;
  right: -2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  background: var(--red);
  color: var(--white);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 19px;
  text-align: center;
  border: 2px solid var(--black);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch; /* beats the UA button default that collapses the bars */
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Flash messages ---------- */
.flash {
  max-width: calc(var(--container) - 40px);
  margin: 20px auto -4px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
}
.flash-success { background: #E9F7EE; border: 1px solid #B9E4C8; color: #14652C; }
.flash-error { background: #FCEEEF; border: 1px solid #F3C2C5; color: #8E1219; }

/* ---------- Hero (home) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: 72px 40px 72px max(20px, calc((100vw - var(--container)) / 2 + 20px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.hero-copy .hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 52ch;
  margin: 20px 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media {
  position: relative;
  background: var(--black);
  min-height: 460px;
  overflow: hidden;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media .hero-tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  background: rgba(17, 17, 17, .72);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 8px 12px;
  border-radius: 6px;
}

/* ---------- Capability strip ---------- */
.capabilities {
  background: var(--black);
  color: var(--white);
  padding: 34px 0;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.capability {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.capability svg { flex: none; color: var(--red); margin-top: 2px; }
.capability h3 { font-size: 15.5px; font-weight: 700; letter-spacing: 0; }
.capability p {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.45;
}

/* ---------- Film strip (signature divider) ---------- */
.film-strip {
  background: var(--black);
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  overflow: hidden;
  padding: 9px 0;
}
.film-strip-track {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.film-strip-track i {
  font-style: normal;
  color: var(--red);
  padding: 0 14px;
}

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-media {
  display: block;
  background: var(--mist);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.card:hover .card-media img { transform: scale(1.035); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  flex: 1;
}
.card-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.price {
  font-family: var(--mono);
  color: var(--red);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-amount { font-size: 23px; }
.price-unit {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.card-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 4px;
}
.card-actions form { display: grid; gap: 8px; }
.product-grid + .price-note { margin-top: 22px; }
.card-actions .btn-qty-row {
  display: flex;
  gap: 8px;
}
.card-actions .btn-qty-row .btn { flex: 1; }
.card-actions .qty { width: 100%; }
.card-actions .qty input { flex: 1; width: auto; }
.card-actions .qty button { flex: none; }

.price-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ---------- Quantity stepper ---------- */
.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.qty button {
  width: 42px;
  background: var(--mist);
  border: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: background-color .15s;
}
.qty button:hover { background: var(--line); }
.qty input {
  width: 56px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-unit {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-left: 8px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 52px 0;
  border-bottom: 2px solid var(--red);
}
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.page-hero .breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero-sm { padding: 18px 0; }
.page-hero-sm .breadcrumb { margin-bottom: 0; }
.page-hero p { color: rgba(255, 255, 255, .7); margin: 12px 0 0; max-width: 64ch; }

/* ---------- Product detail ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-gallery {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: sticky;
  top: 96px;
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}
.product-price {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: -0.03em;
}
.product-price span { font-size: 16px; color: var(--muted); font-weight: 500; }
.product-desc { color: var(--muted); margin: 16px 0 22px; }

.meta-list {
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}
.meta-list div {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.meta-list dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 160px;
  flex: none;
  padding-top: 2px;
}
.meta-list dd { margin: 0; font-weight: 600; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px 5px 8px;
  background: var(--white);
}
.swatch::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--swatch, #C9C9C9);
  border: 1px solid rgba(0, 0, 0, .18);
}

.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 12px; }
.buy-row .btn { flex: 1; min-width: 150px; }

.spec-block { margin-top: 56px; }
.spec-block h2 { font-size: 1.4rem; margin-bottom: 18px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  width: 220px;
  background: var(--mist);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-table td { font-weight: 600; white-space: pre-line; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-inner p { margin: 10px 0 0; color: rgba(255, 255, 255, .88); max-width: 54ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-light { background: var(--white); color: var(--black); }
.cta-band .btn-light:hover { background: var(--black); color: var(--white); }

/* ---------- Info cards (about) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.stats-grid a.info-card { text-decoration: none; color: inherit; }
.stats-grid a.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prose + .info-grid { margin-top: 44px; }
.qty-wrap form { display: flex; align-items: center; gap: 8px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.info-card .info-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}
.info-card .info-value { font-size: 21px; font-weight: 800; line-height: 1.25; }
.info-card .info-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 36px;
  align-items: start;
}

.cart-list { display: grid; gap: 16px; }

.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.cart-row img {
  width: 96px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--mist);
}
.cart-row .cart-name { font-weight: 700; font-size: 15.5px; text-decoration: none; }
.cart-row .cart-name:hover { color: var(--red); }
.cart-row .cart-unit {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.cart-row .cart-line-total {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  min-width: 90px;
  text-align: right;
}
.cart-remove {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  padding: 6px;
}
.cart-remove:hover { color: var(--red); }

.summary-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.summary-card h2 { font-size: 1.25rem; margin-bottom: 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14.5px;
}
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child { font-family: var(--mono); font-weight: 600; }
.summary-total {
  border-top: 2px solid var(--black);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 17px;
}
.summary-total span:first-child { color: var(--black); font-weight: 700; }
.summary-total span:last-child { color: var(--red); font-size: 22px; }
.summary-card .btn { margin-top: 14px; }
.summary-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}

.empty-state {
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}
.empty-state h2 { font-size: 1.4rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: grid; gap: 6px; }
.field > span {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, .14);
}
.field textarea { resize: vertical; min-height: 96px; }
.field .field-error { font-size: 13px; color: var(--red); font-weight: 600; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }

.form-errors {
  background: #FCEEEF;
  border: 1px solid #F3C2C5;
  color: #8E1219;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14.5px;
}
.form-errors ul { list-style: disc; padding-left: 20px; }

/* ---------- Checkout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.checkout-form h2, .checkout-side h2 { font-size: 1.3rem; margin-bottom: 18px; }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset legend {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 14px;
}

.order-mini { display: grid; gap: 12px; margin-bottom: 16px; }
.order-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14.5px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}
.order-mini-row .om-name { font-weight: 600; }
.order-mini-row .om-qty { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.order-mini-row .om-total { font-family: var(--mono); font-weight: 600; white-space: nowrap; }

/* ---------- Order success ---------- */
.success-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 48px 36px;
}
.success-card .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-card h1 { font-size: 2rem; margin-bottom: 12px; }
.success-card p { color: var(--muted); }
.order-ref {
  display: inline-block;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .06em;
  background: var(--mist);
  border: 1px dashed var(--black);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  margin: 14px 0 8px;
}
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
}
.contact-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-card .contact-line {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
}
.contact-card .contact-line:last-of-type { border-bottom: 0; }
.contact-card .contact-line svg { flex: none; color: var(--red); margin-top: 3px; }
.contact-card a { color: var(--white); text-decoration: none; }
.contact-card a:hover { color: var(--red); }
.contact-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 44px;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, .78);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.footer-brand p { font-size: 14.5px; max-width: 34ch; margin-top: 16px; }
.footer-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
}
.logo-footer .logo-text { font-size: 18px; }
.logo-footer .logo-mark { max-width: 100%; height: auto;  }

.footer-col h3 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-col a, .footer-col span {
  display: block;
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  font-size: 14.5px;
  padding: 5px 0;
}
.footer-col a:hover { color: var(--white); padding-left: 5px; transition: padding .15s, color .15s; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 2px solid var(--red);
  padding-top: 20px;
  padding-bottom: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 140;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .18s, background-color .18s;
}
.whatsapp-float:hover { transform: scale(1.07); background: #178f47; }

/* ---------- Enquiry modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .66);
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
}
.modal-dialog h2 { font-size: 1.5rem; }
.modal-sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 20px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.modal-close:hover { background: var(--mist); color: var(--black); }
body.modal-open { overflow: hidden; }

/* ---------- About prose ---------- */
.prose { max-width: 70ch; }
.prose p { font-size: 16.5px; color: var(--muted); }
.prose strong { color: var(--black); }

/* ============================================================
   Admin
   ============================================================ */
.admin-bar {
  background: var(--black);
  border-bottom: 2px solid var(--red);
  color: var(--white);
}
.admin-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
}
.admin-bar .admin-title {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
}
.admin-bar strong { color: var(--white); }
.admin-nav { display: flex; gap: 4px; margin-left: auto; }
.admin-nav a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.admin-nav a.active { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }

.admin-main { padding: 40px 0 72px; }
.admin-main h1 { font-size: 1.7rem; margin-bottom: 6px; }
.admin-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }

.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 13px 16px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th {
  background: var(--mist);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .col-price { font-family: var(--mono); font-weight: 600; color: var(--red); white-space: nowrap; }
.admin-table .col-total { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.admin-table td img { width: 54px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--mist); }

/* Editable settings fields (.admin-input): inputs, textareas, selects */
.admin-input {
  width: 100%;
  max-width: 560px;
  padding: 10px 13px;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--black);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.admin-input:hover { border-color: #B9B9B9; }
.admin-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
  background: var(--white);
}
div:focus-within > .admin-input { background: #FCFCFD; }
.admin-input::placeholder { color: #9A9A9A; }
textarea.admin-input { min-height: 74px; resize: vertical; display: block; }
.admin-table td:first-child { padding-top: 15px; padding-bottom: 15px; }
.admin-table th[scope="row"] { color: #5A5A5A; }

/* File-upload controls styled to match the site buttons */
.admin-table input[type="file"],
.ws-field input[type="file"] {
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--black);
}
.admin-table input[type="file"]::file-selector-button,
.ws-field input[type="file"]::file-selector-button {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 16px;
  min-height: 40px;
  margin: 0 10px 0 0;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: background-color .18s;
}
.admin-table input[type="file"]::file-selector-button:hover,
.ws-field input[type="file"]::file-selector-button:hover {
  background: #333333;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--mist);
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge-on { background: #E9F7EE; color: #14652C; border-color: #B9E4C8; }
.badge-off { background: #FCEEEF; color: #8E1219; border-color: #F3C2C5; }
.badge-ref { background: var(--black); color: var(--white); border-color: var(--black); }

/* Status badges — orders */
.st-pending    { background: #FDF3E0; color: #7A5200; border-color: #F0DFAF; }
.st-processing { background: #EAF1FB; color: #1D4E89; border-color: #C2D6F0; }
.st-dispatched { background: #F0EBFB; color: #4A3A8C; border-color: #D6CBF0; }
.st-delivered  { background: #E9F7EE; color: #14652C; border-color: #B9E4C8; }
.st-cancelled  { background: #FCEEEF; color: #8E1219; border-color: #F3C2C5; }
/* Status badges — enquiries */
.st-new     { background: #FCEEEF; color: #8E1219; border-color: #F3C2C5; }
.st-read    { background: #F5F5F5; color: #444444; border-color: #DDDDDD; }
.st-replied { background: #E9F7EE; color: #14652C; border-color: #B9E4C8; }
.st-closed  { background: var(--black); color: var(--white); border-color: var(--black); }

/* Inline status picker in admin tables */
.status-form { display: inline-flex; gap: 6px; align-items: center; }
.status-form select {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  max-width: 130px;
}
.admin-table .col-status { white-space: nowrap; }

.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-actions a, .admin-actions button {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
}
.admin-actions a:hover, .admin-actions button:hover { border-color: var(--black); }
.admin-actions .danger { color: var(--red); }
.admin-actions .danger:hover { border-color: var(--red); }

.admin-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.admin-form-card h2 { font-size: 1.2rem; margin-bottom: 18px; }

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.order-items { font-size: 13.5px; color: var(--muted); }
.order-items li { padding: 2px 0; }

.login-card {
  max-width: 400px;
  margin: 72px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 34px;
}
.login-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.login-card p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .logo-mark { height: 38px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--black);
    border-bottom: 2px solid var(--red);
    padding: 8px 20px 16px;
  }
  .main-nav a { padding: 14px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .main-nav a.active { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
  .site-header.nav-open .main-nav { display: flex; }
  .nav-toggle { display: flex; }
  .site-header { position: sticky; }

  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 52px 20px; }
  .hero-media { min-height: 320px; }

  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .product-gallery { position: static; }
  .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .section { padding: 56px 0; }
}

@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stats-grid { grid-template-columns: 1fr; }
  .card-body { padding: 14px; gap: 8px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .cart-row {
    grid-template-columns: 84px 1fr;
    grid-template-areas:
      "img name"
      "qty total"
      "rm rm";
    row-gap: 12px;
  }
  .cart-row img { grid-area: img; width: 84px; height: 68px; }
  .cart-row .cart-info { grid-area: name; }
  .cart-row .qty-wrap { grid-area: qty; }
  .cart-row .cart-line-total { grid-area: total; text-align: right; align-self: center; }
  .cart-row .rm-wrap { grid-area: rm; }

  .form-row { grid-template-columns: 1fr; }
  .spec-table th { width: 130px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }

  .header-shop { display: none; }
  .btn-call .btn-label { display: none; }
  .btn-call { padding: 10px 12px; min-width: 0; }
  .header-inner { gap: 12px; min-height: 76px; }
  .logo-mark { height: 34px; }
}

@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr; }
  .logo-mark { height: 30px; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .buy-row .btn { min-width: 100%; }
  .success-card { padding: 34px 22px; }
  .modal-dialog { padding: 24px 18px; }
  .section { padding: 44px 0; }
  .cart-row { padding: 12px; gap: 12px; }
}

/* ---------- Page load animation ---------- */
.page-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: opacity .45s ease, visibility .45s;
}
.js .page-loader { display: flex; }
.page-loader.loader-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-diamond {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 16px;
  background: var(--red);
  transform: rotate(45deg);
  animation: thuwa-pulse 1s ease-in-out infinite;
}
.loader-text {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--black);
}
.loader-bar {
  display: block;
  width: 132px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--line);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--red);
  animation: thuwa-slide 1.1s ease-in-out infinite;
}
@keyframes thuwa-pulse {
  0%, 100% { transform: rotate(45deg) scale(1); opacity: 1; }
  50% { transform: rotate(45deg) scale(.7); opacity: .5; }
}
@keyframes thuwa-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.reveal-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Admin: user cluster in the bar ---------- */
.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 18px;
}
.admin-user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}
.activity-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.activity-toggle:hover { background: var(--red); border-color: var(--red); }
.admin-logout {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}
.admin-logout:hover { color: var(--white); text-decoration: underline; }

/* ---------- Role badges ---------- */
.role-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.role-xs { font-size: 9.5px; padding: 2px 7px; }
.role-admin      { background: var(--black); color: var(--white); border-color: var(--black); }
.role-operations { background: #374151; color: #fff; border-color: #374151; }
.role-sales      { background: #EAF1FB; color: #1D4E89; border-color: #C2D6F0; }
.role-production { background: #F0EBFB; color: #4A3A8C; border-color: #D6CBF0; }
.role-dispatch   { background: #E3F4F1; color: #0F6B5C; border-color: #BFE6DD; }
.role-website    { background: #F5F5F5; color: #444; border-color: #DDD; }

/* ---------- Priority badges ---------- */
.badge.pri-low    { background: #F5F5F5; color: #444; border-color: #DDD; }
.badge.pri-normal { background: #EAF1FB; color: #1D4E89; border-color: #C2D6F0; }
.badge.pri-high   { background: #FDF3E0; color: #7A5200; border-color: #F0DFAF; }
.badge.pri-urgent { background: #FCEEEF; color: #8E1219; border-color: #F3C2C5; }

/* ---------- Workflow statuses ---------- */
.st-approved { background: #EAF1FB; color: #1D4E89; border-color: #C2D6F0; }
.st-finished { background: #E3F4F1; color: #0F6B5C; border-color: #BFE6DD; }

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px;
  margin-bottom: 22px;
}
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 7px;
}
.filter-tab:hover { color: var(--black); }
.filter-tab.active { background: var(--black); color: var(--white); }
.filter-count {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, .08);
  border-radius: 999px;
  padding: 1px 8px;
}
.filter-tab.active .filter-count { background: rgba(255, 255, 255, .22); }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; margin: 0 0 22px; }
.search-form input[type="search"] {
  font: inherit;
  font-size: 14px;
  padding: 10px 14px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  min-width: 280px;
}
.search-form input[type="search"]:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

/* ---------- Approve summary ---------- */
.approve-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 18px;
}
.approve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.approve-meta { margin: 0; font-size: 14.5px; }
.check-row { display: flex; gap: 28px; flex-wrap: wrap; margin: 6px 0 20px; }

/* ---------- Reports ---------- */
.report-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 26px;
}
.report-field { flex: 1 1 170px; margin-bottom: 0; }
.report-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1 1 100%;
}
.report-seg-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--white);
  color: var(--muted);
  border: 0;
  padding: 10px 18px;
  cursor: pointer;
  border-right: 1px solid var(--line);
}
.report-seg-btn:last-child { border-right: 0; }
.report-seg-btn:hover { color: var(--black); background: var(--mist); }
.report-seg-btn.active { background: var(--black); color: var(--white); }
.report-period-title { font-size: 1.15rem; margin: 0 0 16px; }

/* ---------- Activity drawer ---------- */
.activity-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 90; }
.activity-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: var(--white);
  z-index: 95;
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
}
.activity-drawer.open { transform: translateX(0); }
.activity-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.activity-head h2 { font-size: 1.05rem; margin: 0; }
.activity-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.activity-head-actions { display: flex; align-items: center; gap: 8px; }
.activity-close {
  font: inherit;
  font-size: 20px;
  line-height: 1;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  color: var(--muted);
}
.activity-close:hover { color: var(--black); border-color: var(--black); }
.activity-items { overflow-y: auto; padding: 14px 20px 24px; flex: 1; }
.activity-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.activity-item:last-child { border-bottom: 0; }
.activity-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.activity-time { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.activity-details { font-size: 13.5px; line-height: 1.5; margin-bottom: 7px; }
.activity-user { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.activity-empty { color: var(--muted); font-size: 13.5px; padding: 18px 0; }

/* Activity action badges */
.badge-action { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.act-order   { background: #EAF1FB; color: #1D4E89; border-color: #C2D6F0; }
.act-enquiry { background: #FDF3E0; color: #7A5200; border-color: #F0DFAF; }
.act-user    { background: var(--black); color: var(--white); border-color: var(--black); }
.act-product { background: #F0EBFB; color: #4A3A8C; border-color: #D6CBF0; }
.act-report  { background: #E3F4F1; color: #0F6B5C; border-color: #BFE6DD; }

/* ---------- Login hint ---------- */
.login-hint { font-size: 13px; color: var(--muted); margin-top: 18px; }
.login-hint summary { cursor: pointer; font-weight: 600; }
.login-hint-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.login-hint-table th,
.login-hint-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.login-hint-table th { color: var(--black); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .admin-bar-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .admin-nav { order: 3; flex-basis: 100%; margin-left: 0; overflow-x: auto; }
  .admin-user { margin-left: auto; }
  .search-form input[type="search"] { min-width: 0; flex: 1; }
  .approve-summary { flex-direction: column; align-items: flex-start; }
  .check-row { flex-direction: column; gap: 12px; }
}

/* Header and footer logos: black -> white, red stays as-is */
.logo-mark, .logo-footer .logo-mark {
  filter: none;
}

/* ============================================================
   Admin-editable content sections (Website Details builder)
   ============================================================ */
.ws-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ws-tab {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--black); cursor: pointer;
}
.ws-tab.active { background: var(--black); border-color: var(--black); color: var(--white); }
.ws-rows { display: flex; flex-direction: column; gap: 14px; }
.ws-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; background: var(--white); }
.ws-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ws-row-title { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ws-row-tools { display: flex; gap: 6px; }
.ws-btn {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--mist); color: var(--black);
  font-size: 15px; line-height: 1; cursor: pointer;
}
.ws-btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.ws-btn-danger:hover { background: var(--red); border-color: var(--red); }
.ws-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ws-field { display: block; margin-bottom: 12px; }
.ws-field > span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.ws-field input, .ws-field textarea, .ws-field select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font); font-size: 14.5px; color: var(--black); background: var(--white);
}
.ws-field textarea { resize: vertical; }
.ws-thumb { width: 140px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-top: 4px; }
.ws-checks { display: flex; flex-wrap: wrap; gap: 16px; }
.ws-check { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; cursor: pointer; }
.ws-check input { width: 16px; height: 16px; accent-color: var(--red); }

/* ============================================================
   Public: story rows, banners, review cards
   ============================================================ */
.story-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.story-row.story-reverse .story-media { order: 2; }
.story-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.story-copy .eyebrow { display: block; margin-bottom: 12px; }
.story-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.story-copy p { color: var(--muted); font-size: 17px; margin-bottom: 1em; }
.story-actions { margin-top: 22px; }
.story-text { max-width: 780px; text-align: center; margin: 0 auto; }
.story-text .eyebrow { display: block; margin-bottom: 12px; }
.story-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.story-text p { color: var(--muted); font-size: 17px; }

.content-banner {
  background-color: var(--steel);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: clamp(64px, 9vw, 110px) 0;
  text-align: center;
}
.content-banner .eyebrow { display: block; margin-bottom: 14px; color: rgba(255,255,255,.75); }
.content-banner h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; color: var(--white); }
.content-banner p { max-width: 720px; margin: 0 auto; font-size: 18px; color: rgba(255,255,255,.88); }
.content-banner .story-actions { margin-top: 26px; }
.content-banner .btn-primary { background: var(--white); color: var(--black); }
.content-banner .btn-primary:hover { background: var(--red); color: var(--white); }

.reviews-section { background: var(--mist); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow);
}
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-stars { color: #F5B301; font-size: 17px; letter-spacing: 2px; line-height: 1; }
.review-stars-off { color: var(--line); }
.review-date { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.review-text { margin: 0; font-size: 15.5px; color: var(--black); }
.review-name { font-weight: 700; font-size: 14px; }

@media (max-width: 860px) {
  .story-row { grid-template-columns: 1fr; gap: 26px; }
  .story-row.story-reverse .story-media { order: 0; }
  .ws-grid { grid-template-columns: 1fr; }
}
