/* ==========================================================================
   Kanlife storefront theme — single stylesheet for the public site.
   Replaces the old purchased Bootstrap/jQuery theme. Hand-rolled, token-based.
   Load order: tokens.css → theme.css (both linked in partials/head.ejs)
   ========================================================================== */

/* ==========================================================================
   1. Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video { display: block; max-width: 100%; height: auto; }

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; }

a { color: var(--link); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--link-hover); }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-snug);
  font-weight: var(--fw-semibold);
  color: var(--slate-900);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p { color: var(--text); }

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

::selection { background: var(--brand-200); color: var(--slate-900); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

.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;
}

[hidden] { display: none !important; }

/* ==========================================================================
   2. Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--subtle { background: var(--bg-subtle); }
.section--inset  { background: var(--bg-inset); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: var(--sp-5); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.w-fit { width: fit-content; }

/* ==========================================================================
   3. Typography helpers
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.section-head { max-width: 60ch; margin-bottom: var(--sp-7); }
.section-head.text-center { margin-inline: auto; }
.section-head h2 { margin-top: var(--sp-2); }
.section-head p { margin-top: var(--sp-3); color: var(--text-muted); font-size: var(--fs-md); }

.lead { font-size: var(--fs-md); color: var(--text-muted); line-height: var(--lh-base); }

.prose { max-width: 72ch; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: var(--fs-xl); }
.prose h3 { margin-top: 1.5em; font-size: var(--fs-lg); }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  border-left: 3px solid var(--brand-300);
  padding-left: 1em; color: var(--text-muted); font-style: italic;
}
.prose code {
  background: var(--bg-inset); padding: 0.15em 0.4em;
  border-radius: var(--radius-xs); font-size: 0.9em;
}

/* ==========================================================================
   4. Icons (SVG sprite)
   ========================================================================== */
.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; }
.icon--solid { fill: currentColor; stroke: none; }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
  --_bg: var(--brand-500);
  --_fg: var(--text-invert);
  --_bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.3rem;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--_fg);
  background: var(--_bg);
  border: 1px solid var(--_bd);
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn:hover { background: var(--brand-600); color: var(--text-invert); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--brand-600);
  --_bd: var(--border-strong);
}
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-300); }

.btn--secondary {
  --_bg: var(--slate-900);
  --_fg: var(--text-invert);
}
.btn--secondary:hover { background: var(--slate-800); color: var(--text-invert); }

.btn--teal { --_bg: var(--teal-500); }
.btn--teal:hover { background: var(--teal-600); color: var(--text-invert); }

.btn--subtle {
  --_bg: var(--bg-inset);
  --_fg: var(--slate-700);
}
.btn--subtle:hover { background: var(--slate-200); color: var(--slate-900); }

.btn--sm { padding: 0.5rem 0.9rem; font-size: var(--fs-sm); }
.btn--lg { padding: 0.9rem 1.7rem; font-size: var(--fs-md); }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding: 0.6rem; aspect-ratio: 1; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: var(--fw-semibold); color: var(--brand-600);
}
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ==========================================================================
   6. Badges, pills, chips
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.3em 0.7em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  line-height: 1.4;
}
.badge--teal    { background: #e3f6f4; color: var(--teal-600); }
.badge--success { background: var(--success-50); color: var(--success-500); }
.badge--warning { background: var(--warning-50); color: var(--warning-500); }
.badge--danger  { background: var(--danger-50); color: var(--danger-500); }
.badge--neutral { background: var(--bg-inset); color: var(--slate-600); }
.badge--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
}

.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.45rem 0.95rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--slate-600);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.chip[aria-current="true"], .chip.is-active {
  background: var(--brand-500); border-color: var(--brand-500); color: var(--text-invert);
}

/* ==========================================================================
   7. Cards
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.card--pad { padding: clamp(1.25rem, 3vw, 2rem); }
.card--hover { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* ==========================================================================
   8. Forms
   ========================================================================== */
.field { display: block; margin-bottom: var(--sp-4); }
.field > label,
.label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--slate-700);
}
.field-hint { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-muted); }
.field-error { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--danger-500); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: var(--shadow-focus);
}
.textarea { min-height: 8rem; resize: vertical; line-height: var(--lh-base); }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7686' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
}

.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.checkbox,
.radio { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-base); }
.checkbox input,
.radio input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--brand-500); flex: none; }

.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   9. Tables
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 640px;
}
table.data th,
table.data td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data thead th {
  background: var(--bg-subtle);
  font-weight: var(--fw-semibold);
  color: var(--slate-600);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
table.data tbody tr { transition: background var(--dur) var(--ease); }
table.data tbody tr:hover { background: var(--brand-50); }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   10. Breadcrumb
   ========================================================================== */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); color: var(--text-muted);
  padding-block: var(--sp-4);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li:not(:last-child)::after {
  content: "/"; color: var(--slate-300);
}
.breadcrumb [aria-current="page"] { color: var(--slate-700); font-weight: var(--fw-medium); }

/* ==========================================================================
   11. Pagination
   ========================================================================== */
.pagination {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2);
  margin-top: var(--sp-8);
}
.pagination a,
.pagination span {
  min-width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding-inline: 0.5rem;
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--slate-600);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pagination a:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.pagination .is-current {
  background: var(--brand-500); border-color: var(--brand-500); color: var(--text-invert);
}
.pagination .is-disabled { opacity: 0.4; pointer-events: none; }
.pagination .gap { border: 0; background: none; }

/* ==========================================================================
   12. Alerts
   ========================================================================== */
.alert {
  display: flex; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: var(--fs-sm);
}
.alert .icon { color: var(--slate-500); margin-top: 0.1rem; }
.alert--info    { background: var(--info-50); border-color: var(--brand-200); }
.alert--info .icon { color: var(--brand-500); }
.alert--success { background: var(--success-50); border-color: #bfe3cd; }
.alert--success .icon { color: var(--success-500); }
.alert--warning { background: var(--warning-50); border-color: #ecd6a8; }
.alert--warning .icon { color: var(--warning-500); }
.alert--danger  { background: var(--danger-50); border-color: #edc4c4; }
.alert--danger .icon { color: var(--danger-500); }

/* ==========================================================================
   13. Empty state / skeleton
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 5rem) var(--sp-4);
  color: var(--text-muted);
}
.empty-state .icon { width: 2.5rem; height: 2.5rem; color: var(--slate-300); margin: 0 auto var(--sp-4); }
.empty-state h3 { color: var(--slate-700); margin-bottom: var(--sp-2); }

@keyframes shimmer { 100% { background-position: -200% 0; } }
.skeleton {
  background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 37%, var(--slate-100) 63%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   14. Site header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-topbar {
  background: var(--slate-900);
  color: var(--slate-300);
  font-size: var(--fs-xs);
}
.header-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 38px; }
.header-topbar a { color: var(--slate-300); }
.header-topbar a:hover { color: #fff; }
.header-topbar__social { display: flex; gap: var(--sp-3); }
.header-topbar__social a { display: inline-flex; }
.header-topbar__meta { display: flex; align-items: center; gap: var(--sp-5); }
@media (max-width: 720px) {
  .header-topbar__meta .topbar-email { display: none; }
}

.header-main .container {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: var(--header-h);
}
.header-logo { flex: none; display: inline-flex; }
.header-logo img { height: 44px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: var(--sp-1); }
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.65rem 0.7rem;
  font-size: var(--fs-base); font-weight: var(--fw-medium);
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.header-main .container { flex-wrap: nowrap; }
@media (max-width: 1180px) { .header-search { width: min(240px, 22vw); } }
.primary-nav > li > a:hover,
.primary-nav > li.is-open > a { color: var(--brand-600); background: var(--brand-50); }
.primary-nav > li[aria-current="page"] > a,
.primary-nav > li.is-current > a { color: var(--brand-700); }

.nav-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-2);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: var(--z-dropdown);
}
.primary-nav > li.is-open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 0.6rem 0.8rem; border-radius: var(--radius-xs);
  font-size: var(--fs-sm); color: var(--slate-700);
}
.nav-dropdown a:hover { background: var(--bg-subtle); color: var(--brand-600); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }

.header-search { position: relative; width: min(340px, 34vw); }
.header-search form { display: flex; }
.header-search .input {
  padding: 0.55rem 0.9rem 0.55rem 2.4rem;
  background: var(--bg-subtle);
  border-color: transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
}
.header-search .input:focus { background: var(--surface); border-color: var(--brand-400); }
.header-search__icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); pointer-events: none;
}
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-2);
  max-height: 60vh; overflow-y: auto;
  z-index: var(--z-dropdown);
}
.search-suggest:empty { display: none; }
.search-suggest a {
  display: block; padding: 0.6rem 0.75rem; border-radius: var(--radius-xs);
  font-size: var(--fs-sm); color: var(--slate-700);
}
.search-suggest a:hover,
.search-suggest a.is-active { background: var(--brand-50); color: var(--brand-700); }
.search-suggest .search-empty { padding: 0.6rem 0.75rem; color: var(--text-muted); font-size: var(--fs-sm); }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: var(--radius-pill);
  color: var(--slate-600);
  background: var(--bg-subtle);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--brand-50); color: var(--brand-600); }
.cart-count {
  position: absolute; top: -2px; right: -2px;
  min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: var(--fw-bold); line-height: 1;
  color: #fff; background: var(--brand-500);
  border-radius: var(--radius-pill);
  border: 2px solid var(--surface);
}

.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .primary-nav,
  .header-search { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .header-logo img { height: 36px; }
  .header-main .container { gap: var(--sp-3); }
}

/* --- Mobile drawer -------------------------------------------------------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: var(--z-backdrop);
  background: rgba(21, 26, 34, 0.5);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
  width: min(360px, 88vw);
  background: var(--surface);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.drawer-open .mobile-drawer { transform: translateX(0); }

.mobile-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border);
}
.mobile-drawer__head img { height: 36px; }
.mobile-drawer nav { padding: var(--sp-3) var(--sp-4); }
.mobile-drawer nav a {
  display: block; padding: 0.85rem 0.5rem;
  font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--slate-800);
  border-bottom: 1px solid var(--border);
}
.mobile-drawer nav a:hover { color: var(--brand-600); }
.mobile-drawer nav .sub a { font-size: var(--fs-base); font-weight: var(--fw-regular); color: var(--slate-600); padding-left: 1.2rem; }
.mobile-drawer__foot { margin-top: auto; padding: var(--sp-5); border-top: 1px solid var(--border); display: grid; gap: var(--sp-3); }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  font-size: var(--fs-sm);
}
.site-footer a { color: var(--slate-300); }
.site-footer a:hover { color: #fff; }
.footer-main {
  display: grid; gap: var(--sp-7);
  grid-template-columns: 1.4fr repeat(3, 1fr);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
@media (max-width: 860px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand img { height: 46px; margin-bottom: var(--sp-4); filter: brightness(0) invert(1); }
.footer-brand p { color: var(--slate-400); max-width: 34ch; }
.footer-col h4 {
  color: #fff; font-size: var(--fs-sm); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: var(--sp-4);
}
.footer-col li + li { margin-top: var(--sp-3); }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}
.footer-social a:hover { background: var(--brand-500); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--sp-4);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  color: var(--slate-400); font-size: var(--fs-xs);
}

/* ==========================================================================
   16. Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(115deg, var(--brand-900), var(--brand-700) 55%, var(--teal-600));
  overflow: hidden;
}
/* Photo layer — sits above the gradient, below the scrim. If the image 404s
   the gradient shows through unchanged. */
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center 30%;
  opacity: 0.92;
}
/* Scrim: darker on the left where the headline sits, fading to near-clear on
   the right so the photo reads. Keep it a brand-blue tint, not near-black. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(11,25,60,0.74) 0%, rgba(13,45,110,0.46) 42%, rgba(15,124,119,0.14) 100%),
    radial-gradient(70% 100% at 90% 0%, rgba(255,255,255,0.10), transparent 55%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding-block: clamp(3.5rem, 10vw, 7rem);
  max-width: var(--container);
}
.hero__copy { max-width: 46rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; text-shadow: 0 1px 12px rgba(6, 16, 40, 0.45); }
.hero p { color: rgba(255, 255, 255, 0.92); font-size: var(--fs-md); margin-top: var(--sp-4); max-width: 52ch; text-shadow: 0 1px 10px rgba(6, 16, 40, 0.4); }
.hero .eyebrow { color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 8px rgba(6, 16, 40, 0.4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__actions .btn--ghost { --_fg: #fff; --_bd: rgba(255,255,255,0.6); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: #fff; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stats div { min-width: 0; }
.hero-stats .n { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.hero-stats .l { font-size: var(--fs-sm); color: rgba(255,255,255,0.78); margin-top: 0.15rem; }

.hero--compact { }
.hero--compact .container { text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.hero--compact .hero__copy { max-width: 60rem; margin-inline: auto; }
.hero--compact p { margin-inline: auto; }

/* ==========================================================================
   17. Page header (interior pages)
   ========================================================================== */
.page-head { background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.page-head .container { padding-block: clamp(2rem, 5vw, 3rem); }
.page-head h1 { font-size: var(--fs-2xl); }
.page-head p { color: var(--text-muted); margin-top: var(--sp-2); max-width: 60ch; }

/* ==========================================================================
   18. Category tiles
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.category-tile {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--brand-200); }
.category-tile__icon {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-50); color: var(--brand-600);
}
.category-tile span {
  flex: 1;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--slate-800); line-height: 1.25;
}
.category-tile__arrow { flex: none; color: var(--slate-300); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.category-tile:hover .category-tile__arrow { color: var(--brand-500); transform: translateX(2px); }

/* ==========================================================================
   19. Product card
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sp-5);
}
.product-grid--rail {
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-3);
  scrollbar-width: thin;
}
.product-grid--rail > * { scroll-snap-align: start; }

.product-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.product-card__media {
  position: relative;
  flex: none;
  /* A fixed height (not aspect-ratio) — some real product photos are square
     while most are 4:3, and aspect-ratio on a nested flex container doesn't
     reliably hold across different intrinsic image shapes in every browser,
     letting one oddly-shaped photo blow out its own card's height. A fixed
     height is deterministic regardless of image shape, so every card in a
     grid row is guaranteed the same size no matter what image is inside. */
  height: 200px;
  width: 100%;
  background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
}
.product-card__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-card__badge { position: absolute; top: var(--sp-3); left: var(--sp-3); }
.product-card__body { display: flex; flex-direction: column; flex: 1; gap: var(--sp-2); padding: var(--sp-4); }
.product-card__brand { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-600); }
.product-card__title {
  font-size: var(--fs-base); font-weight: var(--fw-semibold); line-height: var(--lh-snug);
  color: var(--slate-800);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--brand-600); }
.product-card__price-row { margin-top: auto; display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; }
.product-card__price { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--slate-900); }
.product-card__mrp { font-size: var(--fs-sm); color: var(--text-faint); text-decoration: line-through; }
.product-card__off { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--success-500); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); }
.product-card__foot .btn { flex: 1; }
.product-card__cta-note { font-size: var(--fs-sm); color: var(--brand-600); font-weight: var(--fw-semibold); display: inline-flex; align-items: center; gap: 0.4em; }

.add-cart-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; flex: none;
  border-radius: var(--radius-sm);
  background: var(--brand-50); color: var(--brand-600);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.add-cart-btn:hover { background: var(--brand-500); color: #fff; }

/* ==========================================================================
   20. Brand strip
   ========================================================================== */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-4);
  align-items: center;
}
.brand-strip a {
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 88px;
}
.brand-strip img { max-height: 48px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.brand-strip a:hover img { filter: grayscale(0); opacity: 1; }

/* ==========================================================================
   21. Trust / feature band
   ========================================================================== */
.feature-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4);
}
.feature-band--overlap {
  margin-top: calc(-1 * clamp(2.5rem, 6vw, 4rem));
  margin-bottom: clamp(0.5rem, 3vw, 2rem);
  position: relative; z-index: 2;
}
.feature-item {
  display: flex; gap: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-xs);
}
.feature-item__icon {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-50); color: var(--brand-600);
}
.feature-item h4 { font-size: var(--fs-base); margin-bottom: 0.2rem; }
.feature-item p { font-size: var(--fs-sm); color: var(--text-muted); }

/* ==========================================================================
   22. CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--brand-700), var(--teal-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: var(--sp-2); }
.cta-band .btn { --_bg: #fff; --_fg: var(--brand-700); }
.cta-band .btn:hover { --_bg: var(--slate-100); color: var(--brand-800); }

/* ==========================================================================
   23. Shop layout (listing with sidebar)
   ========================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: start;
}
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }

.shop-sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-4)); display: grid; gap: var(--sp-4); }
@media (max-width: 900px) { .shop-sidebar { position: static; } }

.filter-group { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.filter-group__title {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--slate-800);
  letter-spacing: 0.03em; text-transform: uppercase;
}
.filter-group__title .icon { transition: transform var(--dur) var(--ease); color: var(--slate-400); }
.filter-group.is-collapsed .filter-group__title .icon { transform: rotate(-90deg); }
.filter-group__body { padding: 0 var(--sp-4) var(--sp-4); display: grid; gap: 0.15rem; }
.filter-group.is-collapsed .filter-group__body { display: none; }
.filter-group__body a {
  display: block; padding: 0.5rem 0.65rem;
  font-size: var(--fs-sm); color: var(--slate-600);
  border-radius: var(--radius-xs);
}
.filter-group__body a:hover { background: var(--bg-subtle); color: var(--brand-600); }
.filter-group__body a.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: var(--fw-semibold); }

@media (min-width: 901px) {
  .filter-group__title { pointer-events: none; }
  .filter-group__title .icon { display: none; }
  .filter-group__body { display: grid !important; }
}

.shop-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.shop-toolbar h1 { font-size: var(--fs-xl); }
.shop-toolbar .result-count { font-size: var(--fs-sm); color: var(--text-muted); }

/* ==========================================================================
   24. Product detail
   ========================================================================== */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }

.pdp-gallery { position: sticky; top: calc(var(--header-h) + var(--sp-4)); display: grid; gap: var(--sp-3); }
@media (max-width: 900px) { .pdp-gallery { position: static; } }
.pdp-gallery__stage {
  aspect-ratio: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  cursor: zoom-in;
}
.pdp-gallery__stage img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-gallery__thumbs { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.pdp-gallery__thumbs button {
  width: 72px; height: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  padding: 0.35rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur) var(--ease);
}
.pdp-gallery__thumbs button img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-gallery__thumbs button.is-active { border-color: var(--brand-500); box-shadow: var(--shadow-focus); }

.pdp-info__brand { font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-600); }
.pdp-info h1 { font-size: var(--fs-2xl); margin: var(--sp-2) 0 var(--sp-4); }
.price-block { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-2); }
.price-block__now { font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--slate-900); }
.price-block__mrp { font-size: var(--fs-md); color: var(--text-faint); text-decoration: line-through; }
.price-block__off { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--success-500); }
.stock-line { font-size: var(--fs-sm); color: var(--success-500); font-weight: var(--fw-medium); margin-bottom: var(--sp-4); }

.emi-note {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--success-50); color: var(--success-500);
  border: 1px solid #bfe3cd; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.emi-note strong { color: #146c3c; }
.pay-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.8rem; margin-top: var(--sp-3);
  background: var(--brand-50); color: var(--brand-800);
  border: 1px solid var(--brand-200); border-radius: var(--radius-sm);
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
}
.pay-badge img { height: 18px; width: auto; }

.pdp-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0; }
.pdp-actions .btn { flex: 1 1 auto; min-width: 200px; }

.pdp-highlights .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.check-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; }
.check-list li .icon { flex: none; margin-top: 0.15rem; color: var(--teal-600); }
.d-block { display: block; }

.pdp-meta { border-top: 1px solid var(--border); padding-top: var(--sp-4); display: grid; gap: var(--sp-3); font-size: var(--fs-sm); }
.pdp-meta__row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.pdp-meta__row .k { color: var(--text-muted); min-width: 90px; font-weight: var(--fw-medium); }
.pdp-meta__row a { color: var(--brand-600); }
.pdp-share { display: flex; align-items: center; gap: var(--sp-2); }
.pdp-share a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: var(--radius-pill);
  background: var(--bg-inset); color: var(--slate-600);
}
.pdp-share a:hover { background: var(--brand-500); color: #fff; }

/* Tabs */
.tabs { margin-top: var(--sp-8); }
.tabs__nav { display: flex; gap: var(--sp-1); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tabs__nav button {
  padding: 0.75rem 1.1rem;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tabs__nav button:hover { color: var(--slate-800); }
.tabs__nav button.is-active { color: var(--brand-600); border-bottom-color: var(--brand-500); }
.tabs__panel { padding-top: var(--sp-5); }
.tabs__panel[hidden] { display: none; }

/* ==========================================================================
   25. Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(12, 16, 22, 0.9);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__close {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: rgba(255,255,255,0.24); }

/* ==========================================================================
   26. Cart & checkout
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-6); align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-line {
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line__name { font-weight: var(--fw-semibold); color: var(--slate-800); }
.cart-line__sub { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 0.2rem; }
.cart-line__right { text-align: right; display: grid; gap: var(--sp-2); justify-items: end; }
.cart-line__total { font-weight: var(--fw-bold); color: var(--slate-900); }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.qty-stepper button { width: 2.1rem; height: 2.1rem; display: inline-flex; align-items: center; justify-content: center; color: var(--slate-600); font-size: var(--fs-md); }
.qty-stepper button:hover { background: var(--bg-subtle); color: var(--brand-600); }
.qty-stepper input { width: 2.6rem; text-align: center; border: 0; border-inline: 1px solid var(--border); background: var(--surface); padding: 0.4rem 0; }

.summary-card { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
.summary-row { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-2) 0; font-size: var(--fs-sm); }
.summary-row.total { border-top: 1px solid var(--border); margin-top: var(--sp-2); padding-top: var(--sp-3); font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--slate-900); }

.del-btn { color: var(--text-faint); }
.del-btn:hover { color: var(--danger-500); }

.step-indicator { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-6); font-size: var(--fs-sm); }
.step-indicator li { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); }
.step-indicator li.is-active { color: var(--brand-600); font-weight: var(--fw-semibold); }
.step-indicator li .n {
  width: 1.5rem; height: 1.5rem; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-inset); font-size: var(--fs-xs); font-weight: var(--fw-bold);
}
.step-indicator li.is-active .n { background: var(--brand-500); color: #fff; }

/* ==========================================================================
   27. Auth card
   ========================================================================== */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid; place-items: center;
  padding: var(--sp-8) var(--gutter);
  background: var(--bg-subtle);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card__head { text-align: center; margin-bottom: var(--sp-6); }
.auth-card__head h1 { font-size: var(--fs-xl); }
.auth-card__head p { color: var(--text-muted); margin-top: var(--sp-2); font-size: var(--fs-sm); }

/* ==========================================================================
   28. Blog
   ========================================================================== */
.blog-toolbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: var(--sp-7);
}
.blog-toolbar form { display: flex; flex: 1 1 300px; max-width: 420px; }
.blog-cats { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.blog-featured {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: var(--sp-8);
}
@media (max-width: 780px) { .blog-featured { grid-template-columns: 1fr; } }
.blog-featured__media { min-height: 280px; background: var(--bg-subtle) center/contain no-repeat; }
.blog-featured__body { padding: clamp(1.5rem, 4vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3); }
.blog-featured__body h2 { font-size: var(--fs-xl); }
.blog-featured__body h2 a { color: inherit; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-6); }
.blog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card__media { aspect-ratio: 16 / 9; background: var(--bg-subtle) center/contain no-repeat; }
.blog-card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; flex: 1; gap: var(--sp-2); }
.blog-card__body h3 { font-size: var(--fs-md); line-height: var(--lh-snug); }
.blog-card__body h3 a { color: var(--slate-800); }
.blog-card__body h3 a:hover { color: var(--brand-600); }
.blog-card__excerpt { font-size: var(--fs-sm); color: var(--text-muted); flex: 1; }
.blog-meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-xs); color: var(--text-faint); }
.blog-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.article-aside { position: sticky; top: calc(var(--header-h) + var(--sp-4)); display: grid; gap: var(--sp-5); }
@media (max-width: 960px) { .article-aside { position: static; } }
.article-hero__media { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); background: var(--bg-subtle) center/contain no-repeat; margin: var(--sp-5) 0; }
.article-nav { display: flex; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.blog-disclaimer { font-size: var(--fs-sm); color: var(--text-muted); background: var(--bg-subtle); border-left: 3px solid var(--slate-300); padding: var(--sp-4); border-radius: var(--radius-xs); }
.blog-cta { background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: var(--radius); padding: var(--sp-5); font-size: var(--fs-base); }
.blog-related-links { font-size: var(--fs-sm); padding: var(--sp-3) 0; margin: 0; }
.blog-related-links strong { color: var(--slate-700); }
.blog-related-links a { font-weight: 600; }

/* ==========================================================================
   29. Floating action buttons
   ========================================================================== */
.floating-actions { position: fixed; right: clamp(0.75rem, 3vw, 1.75rem); bottom: clamp(1rem, 4vw, 2rem); z-index: var(--z-header); display: grid; gap: var(--sp-3); }
.floating-actions a {
  width: 3.25rem; height: 3.25rem; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease);
}
.floating-actions a:hover { transform: translateY(-2px); }
.floating-actions .fab-whatsapp { background: #25d366; }
.floating-actions .fab-call { background: var(--brand-500); }

.scroll-top {
  position: fixed; right: clamp(0.75rem, 3vw, 1.75rem); bottom: calc(clamp(1rem, 4vw, 2rem) + 7.5rem);
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-pill);
  background: var(--slate-900); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: var(--z-header);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   30. Media split (alternating image + text rows)
   ========================================================================== */
.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.media-split + .media-split { margin-top: clamp(2.5rem, 7vw, 5rem); }
.media-split.is-flipped .media-split__media { order: 2; }
.media-split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; object-fit: cover; }
.media-split__body h2 { font-size: var(--fs-xl); }
.media-split__body p { color: var(--text-muted); margin-top: var(--sp-3); }
.media-split__body ul { margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.media-split__body li { display: flex; gap: var(--sp-3); font-size: var(--fs-sm); }
.media-split__body li::before {
  content: ""; flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.1rem;
  border-radius: var(--radius-pill); background: var(--brand-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231559c4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
@media (max-width: 760px) {
  .media-split { grid-template-columns: 1fr; }
  .media-split.is-flipped .media-split__media { order: 0; }
}

/* Timeline */
.timeline { position: relative; display: grid; gap: var(--sp-5); padding-left: var(--sp-6); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-6) + 1px); top: 4px;
  width: 14px; height: 14px; border-radius: var(--radius-pill);
  background: var(--brand-500); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border);
}
.timeline .year { font-weight: var(--fw-bold); color: var(--brand-700); font-size: var(--fs-sm); }
.timeline p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 0.15rem; }

/* Value cards */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-5); }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); }
.value-card h3 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.value-card p { font-size: var(--fs-sm); color: var(--text-muted); }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-6); }
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--sp-3); }
.team-card h3 { font-size: var(--fs-base); }
.team-card p { font-size: var(--fs-sm); color: var(--text-muted); }

/* ==========================================================================
   31. Utilities for responsive visibility
   ========================================================================== */
.hide-mobile { }
@media (max-width: 640px) { .hide-mobile { display: none !important; } }
.show-mobile { display: none !important; }
@media (max-width: 640px) { .show-mobile { display: revert !important; } }

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