/* =========================================================================
   Calibration Hub and Spares — Public site styles
   Flat colours only (no gradients). Professional, technical, approachable.
   ========================================================================= */
:root {
  --primary: #3F6A97;
  --accent: #F6595A;
  --bg-light: #9DE6EF;
  --teal: #588CB0;
  --dark-teal: #276C7A;
  --text: #263B4D;
  --muted: #5B7187;
  --white: #FFFFFF;
  --bg-soft: #F2F8FB;
  --border: #D8E4ED;
  --shadow: 0 1px 3px rgba(38, 59, 77, 0.08), 0 8px 24px rgba(38, 59, 77, 0.06);
  --shadow-sm: 0 1px 2px rgba(38, 59, 77, 0.06);
  --radius: 10px;
  --radius-lg: 16px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--dark-teal); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--text); line-height: 1.2; font-weight: 700; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 600; color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 620px; margin-bottom: 36px; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center; line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--dark-teal); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #e04e4f; color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { background: var(--bg-soft); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1fb855; color: var(--white); }

/* ---- Header ---- */
.site-header {
  background: #a8e6fe; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; min-height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  height: 100%;
  width: auto;
  max-height: 64px;
  display: block;
  object-fit: contain;
}
.brand-logo-footer {
  max-height: 80px;
  margin-bottom: 14px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text); font-weight: 500; font-size: 0.95rem;
  padding: 9px 14px; border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 0.9rem;
}
.cart-link:hover { background: var(--bg-soft); }
.cart-badge {
  background: var(--accent); color: var(--white); font-size: 0.72rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px;
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--text);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---- WhatsApp floating button ---- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: var(--white); }

/* ---- Hero ---- */
.hero {
  background: var(--bg-light); padding: 80px 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px;
  border-radius: 50%; background: var(--white); opacity: 0.35;
}
.hero::after {
  content: ""; position: absolute; left: -80px; bottom: -100px; width: 240px; height: 240px;
  border-radius: 50%; background: var(--primary); opacity: 0.08;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 20px; }
.hero h1 .accent-word { color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: var(--text); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn { flex: 1 1 0; min-width: 0; }
.hero-trust { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.trust-item .num { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.trust-item .lbl { font-size: 0.82rem; color: var(--text); }
.hero-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow); max-width: 420px; margin-left: auto;
}
.hero-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.hero-card ul.checks li {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--border); font-size: 0.95rem;
}
.hero-card ul.checks li:last-child { border-bottom: none; }
.hero-card ul.checks .tick { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.hero-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  margin-bottom: 18px; display: block;
}

/* ---- Showcase cards ---- */
.showcase-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.15s ease, box-shadow 0.2s; display: flex; flex-direction: column;
}
.showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.showcase-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.showcase-body { padding: 20px; }
.showcase-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.showcase-body p { color: var(--muted); font-size: 0.92rem; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.15s ease, box-shadow 0.2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--bg-light); color: var(--primary); font-family: var(--serif); font-size: 2rem; font-weight: 700;
}
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal); font-weight: 600; margin-bottom: 8px;
}
.card-title { font-size: 1.15rem; margin-bottom: 8px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.card-price { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.card-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---- Filters / pills ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 32px; }
.pill {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--white); color: var(--text); font-size: 0.88rem; font-weight: 500;
  transition: all 0.15s; cursor: pointer;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.search-box {
  flex: 1; min-width: 200px; max-width: 320px; margin-left: auto;
  position: relative;
}
.search-box input {
  width: 100%; padding: 9px 14px 9px 36px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.9rem; font-family: var(--sans);
}
.search-box input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }

/* ---- Detail page ---- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); aspect-ratio: 4/3; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--bg-light); color: var(--primary); font-family: var(--serif); font-size: 3rem; font-weight: 700; }
.detail-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.detail-price { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--primary); margin: 16px 0; }
.detail-desc { color: var(--text); margin-bottom: 24px; white-space: pre-wrap; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.qty-row label { font-weight: 600; }
.qty-input {
  width: 70px; padding: 9px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 1rem; text-align: center; font-family: var(--sans);
}
.qty-input:focus { outline: 2px solid var(--primary); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stock-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.stock-in { background: #E6F7EC; color: #1b7a3d; }
.stock-out { background: #FBEAEA; color: #b33; }

/* ---- Cart ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.cart-table th { text-align: left; padding: 14px 16px; background: var(--bg-soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.cart-table td { padding: 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.cart-item-cell { display: flex; align-items: center; gap: 14px; }
.cart-thumb { width: 60px; height: 60px; border-radius: 8px; background: var(--bg-soft); object-fit: cover; flex-shrink: 0; }
.cart-thumb.placeholder { display: grid; place-items: center; background: var(--bg-light); color: var(--primary); font-weight: 700; font-family: var(--serif); }
.cart-qty { display: inline-flex; align-items: center; gap: 0; }
.cart-qty input { width: 54px; padding: 7px; text-align: center; border: 1px solid var(--border); border-radius: 0; font-family: var(--sans); }
.cart-remove { color: var(--accent); background: none; border: none; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.cart-remove:hover { text-decoration: underline; }
.summary-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.summary-card h3 { margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.95rem; }
.summary-row.total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 16px; font-size: 1.2rem; font-weight: 700; font-family: var(--serif); color: var(--primary); }
.summary-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---- Forms ---- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); max-width: 640px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }
label .req { color: var(--accent); }
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--sans); font-size: 0.95rem; color: var(--text); background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(63, 106, 151, 0.12); }
textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }

/* ---- Alerts ---- */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; font-weight: 500; }
.alert-success { background: #E6F7EC; color: #1b7a3d; border-left: 4px solid #1b7a3d; }
.alert-error { background: #FBEAEA; color: #b33; border-left: 4px solid #b33; }
.alert-info { background: var(--bg-light); color: var(--dark-teal); border-left: 4px solid var(--dark-teal); }

/* ---- Feature / value strip ---- */
.strip { background: var(--dark-teal); color: var(--white); padding: 56px 0; }
.strip .grid-4 { gap: 20px; }
.strip-item { text-align: center; }
.strip-item .icon { width: 52px; height: 52px; margin: 0 auto 14px; background: var(--bg-light); color: var(--dark-teal); border-radius: 14px; display: grid; place-items: center; }
.strip-item .icon svg { width: 26px; height: 26px; }
.strip-item h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 6px; }
.strip-item p { font-size: 0.88rem; color: #cfe3e8; }

/* ---- CTA band ---- */
.cta-band { background: var(--primary); color: var(--white); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { color: #d6e4f0; max-width: 560px; margin: 0 auto 26px; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; display: block; box-shadow: var(--shadow); }
.value-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.value-list .vicon { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-light); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.value-list h4 { font-family: var(--sans); font-size: 1rem; margin-bottom: 3px; }
.value-list p { font-size: 0.9rem; color: var(--muted); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-card { background: var(--bg-light); border-radius: var(--radius-lg); padding: 32px; }
.contact-info-card h3 { margin-bottom: 20px; }
.contact-info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(39, 108, 122, 0.15); }
.contact-info-list .ic { color: var(--dark-teal); flex-shrink: 0; }
.contact-info-list a { color: var(--text); font-weight: 500; }
.contact-info-list .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dark-teal); font-weight: 600; }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.15s, box-shadow 0.2s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card .card-media { aspect-ratio: 16/9; }
.blog-card .card-body a { display: block; }
.blog-card .card-title { margin-bottom: 10px; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; background: var(--bg-light); color: var(--dark-teal); }
.badge-accent { background: #FBEAEA; color: var(--accent); }
.blog-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.article-prose { max-width: 760px; }
.article-prose h2 { margin: 28px 0 12px; font-size: 1.5rem; }
.article-prose h3 { margin: 22px 0 10px; font-size: 1.2rem; }
.article-prose p { margin-bottom: 16px; }
.article-prose ul:not(.checks) { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.article-prose ol { list-style: decimal; padding-left: 24px; margin-bottom: 16px; }
.article-prose li { margin-bottom: 6px; }
.article-prose blockquote { border-left: 4px solid var(--accent); padding: 8px 18px; margin: 18px 0; color: var(--muted); font-style: italic; background: var(--bg-soft); border-radius: 0 8px 8px 0; }
.article-prose a { color: var(--primary); text-decoration: underline; }
.article-prose img { border-radius: var(--radius); margin: 18px 0; }
.article-hero { background: var(--bg-soft); padding: 48px 0; border-bottom: 1px solid var(--border); }
.article-hero .badge { margin-bottom: 14px; }

/* ---- Footer ---- */
.site-footer { background: var(--text); color: #c7d4df; padding: 56px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--white); font-family: var(--sans); font-size: 0.95rem; margin-bottom: 16px; letter-spacing: 0.04em; }
.footer-grid a { color: #c7d4df; }
.footer-grid a:hover { color: var(--bg-light); }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-brand .brand-logo-footer { max-height: 80px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-bottom { border-top: 1px solid #3a4d60; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; }
.footer-bottom a { color: #c7d4df; }

/* ---- Empty state ---- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .icon { width: 64px; height: 64px; margin: 0 auto 18px; background: var(--bg-soft); border-radius: 50%; display: grid; place-items: center; color: var(--teal); }
.empty h3 { margin-bottom: 8px; color: var(--text); }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* ---- Confirmation ---- */
.confirm-wrap { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 0; }
.confirm-icon { width: 80px; height: 80px; margin: 0 auto 22px; background: #E6F7EC; color: #1b7a3d; border-radius: 50%; display: grid; place-items: center; }
.confirm-icon svg { width: 40px; height: 40px; }
.confirm-ref { font-family: var(--serif); font-size: 1.3rem; color: var(--primary); font-weight: 700; margin: 18px 0; }
.confirm-summary { text-align: left; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin: 26px 0; }

/* ---- Page header ---- */
.page-header { background: var(--bg-soft); padding: 40px 0; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.page-header p { color: var(--muted); margin-top: 6px; }

/* ---- 404 ---- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.notfound .big { font-family: var(--serif); font-size: clamp(4rem, 12vw, 8rem); color: var(--primary); line-height: 1; }
.notfound h2 { margin: 12px 0 16px; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { margin: 0 auto; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .cart-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav, .header-actions .cart-link span:not(.cart-badge) { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 20px;
    box-shadow: var(--shadow); gap: 2px; align-items: stretch;
  }
  .main-nav.open a { padding: 14px 16px; min-height: 48px; display: flex; align-items: center; }
  .nav-toggle { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .brand-logo { max-height: 48px; max-width: 160px; }
  .header-inner { min-height: 60px; padding-top: 6px; padding-bottom: 6px; gap: 8px; }
  .header-actions { gap: 6px; }
  .whatsapp-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  /* 2-col grids on phones to reduce scroll length */
  .grid-3, .grid-2, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .strip .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* Reduce section padding on mobile */
  .section { padding: 44px 0; }
  .section-tight { padding: 32px 0; }
  .hero { padding: 48px 0; }
  .cta-band { padding: 48px 0; }
  .strip { padding: 40px 0; }
  .page-header { padding: 28px 0; }
  .article-hero { padding: 32px 0; }
  .form-grid { grid-template-columns: 1fr; }
  /* Prevent iOS auto-zoom: inputs need >=16px font on mobile */
  input, select, textarea { font-size: 16px; }
  .search-box input { font-size: 16px; }
  .qty-input { font-size: 16px; width: 64px; }
  /* Tap targets >= 44px */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; padding: 10px 16px; }
  .pill { min-height: 40px; padding: 10px 18px; display: inline-flex; align-items: center; }
  .cart-link { min-height: 44px; }
  .cart-remove { padding: 8px 12px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 6px; }
  .cart-remove:hover { background: #FBEAEA; text-decoration: none; }
  .cart-thumb { width: 56px; height: 56px; }
  /* Search box: prevent overflow on narrow screens */
  .search-box { min-width: 0; max-width: none; width: 100%; margin-left: 0; margin-top: 8px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .pill { text-align: center; }
  /* Cart table → card layout */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; padding: 8px; }
  .cart-table td { border: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; }
  .cart-table td::before { content: attr(data-label); font-weight: 600; font-size: 0.8rem; color: var(--muted); }
  .cart-table td.cart-item-cell::before { display: none; }
  .cart-table td.cart-item-cell { margin-bottom: 8px; }
  .summary-card { position: static; }
  /* Footer: keep 2-col for link lists, brand full width */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .site-footer { padding: 40px 0 20px; }
  /* Form card padding reduction */
  .form-card { padding: 24px 20px; }
  .contact-info-card { padding: 24px 20px; }
  .hero-card { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .grid-3, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .strip .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .strip-item h3 { font-size: 0.95rem; }
  .strip-item p { font-size: 0.82rem; }
  .strip-item .icon { width: 44px; height: 44px; margin-bottom: 10px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; font-size: 0.85rem; padding: 12px 10px; }
  .hero-trust { gap: 18px; }
  /* Stack price above full-width Add to Cart button on mobile */
  .card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .card-foot .btn { width: 100%; }
  .card-price { font-size: 1.1rem; }
  .section { padding: 36px 0; }
  .hero { padding: 36px 0; }
  .cta-band { padding: 36px 0; }
  .strip { padding: 32px 0; }
  .container { padding: 0 16px; }
  .confirm-summary { padding: 18px 16px; }
  .detail-actions .btn { flex: 1; }
}
@media (max-width: 360px) {
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 14px; }
  .hero-trust .trust-item .num { font-size: 1.4rem; }
  .brand-logo { max-width: 130px; }
  .header-inner { gap: 6px; }
  .header-actions { gap: 4px; }
  .hero-actions { gap: 6px; }
  .hero-actions .btn { font-size: 0.8rem; padding: 10px 8px; }
}
