/* Jamaica Smart Home — Global Styles
   Component base styles that are direction-agnostic.
   All colour values use CSS custom properties from tokens.css.
*/

/* ── Font faces (self-hosted) ───────────────────────────── */
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif/InstrumentSerif-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-Variable.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono/JetBrainsMono-Variable.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ── Base ───────────────────────────────────────────────── */
body,
body.elementor-kit-21 {
  margin: 0;
  font-family: var(--jsh-font-body) !important;
  background: var(--jsh-bg) !important;
  color: var(--jsh-text) !important;
  -webkit-font-smoothing: antialiased;
  transition: background var(--jsh-duration) var(--jsh-ease),
              color var(--jsh-duration) var(--jsh-ease);
}

/* ── Typography ─────────────────────────────────────────── */
.jsh-display {
  font-family: var(--jsh-font-display);
  font-weight: 400;
  line-height: var(--jsh-hero-line);
  letter-spacing: -0.025em;
}
.jsh-mono {
  font-family: var(--jsh-font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Layout ─────────────────────────────────────────────── */
.jsh-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--jsh-pad-x);
}
.jsh-section {
  padding: var(--jsh-pad-section) var(--jsh-pad-x);
}
.jsh-section--alt {
  background: var(--jsh-bg-alt);
  color: var(--jsh-cream);
}
.jsh-section--surface {
  background: var(--jsh-surface);
}

/* ── Buttons ─────────────────────────────────────────────── */
.jsh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--jsh-font-body);
  font-weight: 600; font-size: 14px;
  padding: 14px 26px;
  border: none; border-radius: var(--jsh-radius);
  cursor: pointer; text-decoration: none;
  transition: opacity var(--jsh-duration) var(--jsh-ease),
              transform var(--jsh-duration) var(--jsh-ease);
  white-space: nowrap;
}
.jsh-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.jsh-btn--primary {
  background: var(--jsh-accent);
  color: var(--jsh-accent-fg);
}
.jsh-btn--outline {
  background: transparent;
  color: var(--jsh-text);
  border: 1.5px solid rgba(0,0,0,0.35);
}
.jsh-btn--ghost {
  background: transparent;
  color: var(--jsh-signal);
  border: 1.5px solid rgba(79,227,193,0.33);
}
.jsh-btn--pill { border-radius: var(--jsh-radius-pill); }
.jsh-service-tab--active {
  background: var(--jsh-accent);
  color: var(--jsh-accent-fg);
  border-color: var(--jsh-accent);
}

/* ── Nav link ───────────────────────────────────────────── */
.jsh-nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--jsh-radius-pill);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--jsh-duration) var(--jsh-ease),
              color var(--jsh-duration) var(--jsh-ease);
}
.jsh-nav-link:hover { background: rgba(0,0,0,0.05); }
.jsh-nav-link[aria-current="page"] { font-weight: 700; }

/* ── Pill / badge ───────────────────────────────────────── */
.jsh-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--jsh-font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--jsh-radius-pill);
  border: 1px solid var(--jsh-border);
  background: var(--jsh-surface-2);
  color: var(--jsh-text-soft);
}
.jsh-pill--signal {
  color: var(--jsh-signal);
  border-color: rgba(79,227,193,0.4);
  background: rgba(79,227,193,0.1);
}

/* ── Dot indicator ──────────────────────────────────────── */
.jsh-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  animation: jshPulse 2s ease-in-out infinite;
}
@keyframes jshPulse {
  0%   { box-shadow: 0 0 0 0 currentColor; }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ── Card ───────────────────────────────────────────────── */
.jsh-card {
  background: var(--jsh-surface);
  border: 1px solid var(--jsh-border);
  border-radius: var(--jsh-radius);
  padding: 24px;
  transition: box-shadow var(--jsh-duration) var(--jsh-ease);
}
.jsh-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* ── Currency display ───────────────────────────────────── */
.jsh-price-usd { display: none; }
body.jsh-usd .jsh-price-jmd { display: none; }
body.jsh-usd .jsh-price-usd { display: inline; }

/* ── Dark mode (body.jsh-dark, toggled by main.js) ─────── */
body.jsh-dark {
  --jsh-bg:            var(--jsh-forest-deep);
  --jsh-surface:       var(--jsh-forest-dark);
  --jsh-surface-2:     #0e2419;
  --jsh-border:        rgba(255,255,255,0.08);
  --jsh-border-strong: rgba(255,255,255,0.14);
  --jsh-text:          var(--jsh-cream);
  --jsh-text-soft:     rgba(245,241,230,0.69);
  --jsh-text-dim:      rgba(245,241,230,0.44);
}

/* ── Utility ────────────────────────────────────────────── */
.jsh-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;
}
.jsh-flex { display: flex; }
.jsh-flex--center { align-items: center; }
.jsh-flex--gap-sm { gap: 8px; }
.jsh-flex--gap-md { gap: 16px; }
.jsh-flex--gap-lg { gap: 32px; }
.jsh-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.jsh-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.jsh-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) {
  .jsh-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .jsh-grid-2, .jsh-grid-3, .jsh-grid-4 { grid-template-columns: 1fr; }
  .jsh-section { padding-left: 20px; padding-right: 20px; }
}

/* ── Modal overlay ──────────────────────────────────────── */
.jsh-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(14,26,20,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
}
.jsh-modal-overlay.is-open { display: flex; animation: jshFadeIn var(--jsh-duration) var(--jsh-ease); }
@keyframes jshFadeIn { from { opacity: 0; } to { opacity: 1; } }
.jsh-modal {
  background: var(--jsh-surface);
  border: 1px solid var(--jsh-border);
  border-radius: 16px;
  padding: 40px;
  max-width: 520px; width: 90%;
  position: relative;
  animation: jshRise var(--jsh-duration) var(--jsh-ease);
}
@keyframes jshRise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.jsh-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--jsh-surface-2); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: var(--jsh-text-soft);
  line-height: 1;
}

/* ── WhatsApp float ─────────────────────────────────────── */
.jsh-whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform var(--jsh-duration) var(--jsh-ease),
              box-shadow var(--jsh-duration) var(--jsh-ease);
}
.jsh-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.jsh-whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── Announcement bar ───────────────────────────────────── */
.jsh-announcement {
  background: var(--jsh-accent);
  color: var(--jsh-accent-fg);
  font-family: var(--jsh-font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px var(--jsh-pad-x);
  display: flex; justify-content: center; align-items: center; gap: 24px;
  flex-wrap: wrap;
}

/* ── WooCommerce product card ──────────────────────────── */
.products.jsh-grid-4 { list-style: none; padding: 0; margin: 0; }
.products li.product {
  background: var(--jsh-surface);
  border: 1px solid var(--jsh-border);
  border-radius: var(--jsh-radius);
  overflow: hidden;
  transition: box-shadow var(--jsh-duration) var(--jsh-ease);
  display: flex; flex-direction: column;
}
.products li.product:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.products li.product img { width: 100%; height: 200px; object-fit: contain; padding: 16px; }
.products li.product .woocommerce-loop-product__title {
  font-size: 14px; font-weight: 600; padding: 0 16px 8px; margin: 0;
}
.products li.product .price { padding: 0 16px 16px; font-size: 13px; }
.products li.product .button {
  margin: auto 16px 16px;
  background: var(--jsh-accent); color: var(--jsh-accent-fg);
  border: none; border-radius: var(--jsh-radius);
  padding: 10px 18px; font-weight: 600; font-size: 13px;
  cursor: pointer; text-decoration: none; display: block; text-align: center;
  transition: opacity var(--jsh-duration) var(--jsh-ease);
}
.products li.product .button:hover { opacity: 0.88; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.14); border-radius: 5px; }

/* ── Header layout ──────────────────────────────────────── */
.jsh-topbar { position: sticky; top: 0; z-index: 30; overflow: hidden; }
.jsh-topbar__inner {
  box-sizing: border-box !important;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
  width: 100%; max-width: 1400px;
}

/* Wordmark with icon */
.jsh-wordmark {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.jsh-wordmark__icon { display: flex; align-items: center; flex-shrink: 0; }
.jsh-wordmark__text { display: flex; flex-direction: column; }
.jsh-wordmark__name {
  font-family: var(--jsh-font-body); font-weight: 700;
  font-size: 14px; letter-spacing: -0.01em; display: block; line-height: 1.2;
}
.jsh-wordmark__sub {
  font-family: var(--jsh-font-mono); font-size: 8px;
  opacity: 0.5; display: block; margin-top: 2px; letter-spacing: 0.04em;
}

.jsh-nav-wrap { display: flex; gap: 2px; }
.jsh-controls { display: flex; align-items: center; gap: 6px; }

/* Active nav item pill highlight */
.jsh-nav-wrap .current-menu-item > a,
.jsh-nav-wrap .current_page_item > a {
  background: rgba(0,0,0,0.07) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}

/* Currency toggle — pill style */
.jsh-currency-toggle {
  background: none; border: none;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; padding: 4px 2px;
  font-family: var(--jsh-font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: inherit;
}
.jsh-currency-pill {
  background: var(--jsh-forest-deep, #0e2118);
  color: #fff; border-radius: 999px;
  padding: 5px 12px; font-size: 11px;
  font-family: var(--jsh-font-mono); letter-spacing: 0.08em;
  transition: background 0.15s;
}
.jsh-currency-plain {
  opacity: 0.55; font-family: var(--jsh-font-mono);
  font-size: 11px; letter-spacing: 0.08em;
}
/* When USD is active */
.jsh-currency-toggle[data-currency="usd"] .jsh-currency-usd {
  background: var(--jsh-forest-deep, #0e2118);
  color: #fff; border-radius: 999px;
  padding: 5px 12px; opacity: 1;
}
.jsh-currency-toggle[data-currency="usd"] .jsh-currency-jmd { background: none; color: inherit; padding: 0; opacity: 0.55; }

/* Dark mode toggle button */
.jsh-dark-toggle {
  background: none; border: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; color: inherit; opacity: 0.7;
}

/* Cart link */
.jsh-cart-link {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; text-decoration: none; color: inherit; opacity: 0.7;
}
.jsh-cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--jsh-signal); color: var(--jsh-signal-text);
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Nav CTA size override (smaller than default .jsh-btn) */
.jsh-nav-cta { font-size: 13px; padding: 10px 20px; }

/* Modal text */
.jsh-modal__title {
  font-family: var(--jsh-font-display); font-weight: 400;
  font-size: 32px; margin: 0 0 8px; line-height: 1.1;
}
.jsh-modal__desc {
  color: var(--jsh-text-soft); margin: 0 0 24px;
  font-size: 14px; line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────── */
.jsh-footer {
  background: var(--jsh-forest-deep);
  color: var(--jsh-cream);
  padding: var(--jsh-pad-section) var(--jsh-pad-x) 40px;
}
.jsh-footer__grid { margin-bottom: 56px; }
.jsh-footer__col-title {
  font-family: var(--jsh-font-mono); font-size: 9px;
  opacity: 0.35; margin-bottom: 16px; display: block;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.jsh-footer__link {
  display: block; margin-bottom: 10px;
  color: inherit; opacity: 0.6; font-size: 13px; text-decoration: none;
}
.jsh-footer__link:hover { opacity: 1; }
.jsh-footer__link--accent { color: var(--jsh-mint); opacity: 1; }
.jsh-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.jsh-footer__copy { font-size: 12px; opacity: 0.3; }
.jsh-footer__brands { display: flex; gap: 20px; flex-wrap: wrap; }
.jsh-footer__brand-link { font-size: 11px; opacity: 0.3; text-decoration: none; color: inherit; }

/* ── Hero section ───────────────────────────────────────── */
.jsh-section--hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.jsh-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  width: 100%;
}
.jsh-hero__copy { max-width: 600px; }
/* Hero headline — two-part: upright + italic green */
.jsh-hero__headline {
  font-size: var(--jsh-hero-size);
  margin: 0 0 1rem;
  color: var(--jsh-text);
  display: block;
  line-height: var(--jsh-hero-line, 1.0);
}
.jsh-hero__headline-plain {
  display: block;
  font-style: normal;
  color: var(--jsh-text);
}
.jsh-hero__headline-italic {
  display: block;
  font-style: italic;
  color: var(--jsh-accent);
}
.jsh-hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--jsh-text-soft);
  max-width: 480px;
  margin: 0;
}
.jsh-hero__dashboard { position: relative; }
.jsh-hero__dashboard-card {
  background: var(--jsh-forest);
  color: var(--jsh-cream);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.jsh-hero__dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-family: var(--jsh-font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}
.jsh-hero__device-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
}
.jsh-hero__device-row:last-child { border-bottom: none; }
.jsh-hero__device-icon { font-size: 18px; width: 24px; flex-shrink: 0; }
.jsh-hero__device-name { flex: 1; font-weight: 500; }
.jsh-hero__device-status { font-size: 11px; opacity: 0.55; }
.jsh-hero__device-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

@media (max-width: 1024px) {
  .jsh-hero__inner { grid-template-columns: 1fr; }
  .jsh-hero__copy { max-width: 100%; }
  .jsh-section--hero { min-height: auto; }
}

/* ── Preset nav overrides for outline button ────────────── */
.jsh-topbar .jsh-btn--outline {
  color: var(--jsh-cream);
  border-color: rgba(245,241,230,0.45);
}
.jsh-footer__brand-link:hover { opacity: 0.7; }

/* ── WooCommerce shop / archive ─────────────────────────── */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}
@media (max-width: 1100px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: 1fr !important; }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--jsh-surface);
  border: 1px solid var(--jsh-border);
  border-radius: var(--jsh-radius);
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}
.woocommerce ul.products li.product a,
.woocommerce-page ul.products li.product a {
  color: var(--jsh-text);
  text-decoration: none;
}

/* Product image — edge-to-edge at top of card */
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
  border-radius: 0 !important;
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--jsh-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--jsh-text);
  margin: 12px 16px 6px !important;
  padding: 0 !important;
}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  color: var(--jsh-text);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 16px 12px !important;
  padding: 0 !important;
}

/* SALE badge — small positioned pill, not full-width block */
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
  position: absolute !important;
  top: 10px !important; left: 10px !important;
  z-index: 2;
  display: inline-block !important;
  background: var(--jsh-accent) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-family: var(--jsh-font-mono) !important;
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  min-height: 0 !important;
  width: fit-content !important;
  max-width: 80px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  min-width: 0 !important;
}

/* CTA button — pinned to bottom of card */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  display: block !important;
  font-family: var(--jsh-font-body) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 10px 16px !important;
  border-radius: 0 0 var(--jsh-radius) var(--jsh-radius) !important;
  background: transparent !important;
  color: var(--jsh-text) !important;
  border: none !important;
  border-top: 1px solid var(--jsh-border) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: background 0.15s !important;
  margin-top: auto !important;
  width: 100% !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
  background: var(--jsh-surface-2) !important;
}

/* Hide third-party plugin clutter: WooSC, WooSQ, WooSW, YITH, Variation Swatches */
.woosc-btn,
.woosq-btn,
.woosw-btn,
.yith-wcqv-button,
.yith-wcwl-add-to-wishlist,
.add_to_wishlist,
.wvs-variation-wrap,
.compare { display: none !important; }

/* Shop page — reduce top padding so breadcrumb sits closer to header */
body.woocommerce-shop .jsh-container.jsh-section,
body.woocommerce .jsh-container.jsh-section {
  padding-top: 2rem !important;
}

/* WooCommerce notices — style cleanly */
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
  border-radius: var(--jsh-radius);
  font-size: 13px;
  margin-bottom: 1rem;
  padding: 12px 16px;
  list-style: none;
}

/* WooCommerce page wrapper — reset body.woocommerce/woocommerce-page
   so our padding/max-width rules don't bleed onto the <body> element */
body.woocommerce,
body.woocommerce-page {
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

/* The actual content wrapper is .jsh-container.jsh-section injected by woocommerce.php */
.jsh-container.jsh-section .woocommerce-breadcrumb {
  font-size: 12px; opacity: 0.5; margin-bottom: 24px;
}
.jsh-container.jsh-section .woocommerce-breadcrumb a { color: inherit; }

/* Shop page title */
.woocommerce-products-header { margin-bottom: 24px; }
.woocommerce-products-header .page-title {
  font-family: var(--jsh-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; margin: 0 0 8px;
}

/* Result count & ordering toolbar */
.woocommerce-result-count { font-size: 12px; opacity: 0.5; }
.woocommerce-ordering { margin-bottom: 24px; }
.woocommerce-ordering select {
  background: var(--jsh-surface);
  color: var(--jsh-text);
  border: 1px solid var(--jsh-border);
  border-radius: var(--jsh-radius);
  padding: 8px 12px;
  font-family: var(--jsh-font-body);
  font-size: 13px;
}

/* ── Pill accent variant ─────────────────────────────────── */
.jsh-pill--accent {
  color: var(--jsh-accent);
  border-color: rgba(16,58,46,0.2);
  background: rgba(16,58,46,0.08);
}
body.jsh-dark .jsh-pill--accent {
  color: var(--jsh-mint);
  border-color: rgba(79,227,193,0.3);
  background: rgba(79,227,193,0.1);
}

/* ── Works-with brand names (italic serif like prototype) ── */
.jsh-works-with__brand {
  font-family: var(--jsh-font-display);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--jsh-text-soft);
  white-space: nowrap;
}

/* ── Dashboard card light variant ──────────────────────────
   Override the dark forest background set on .jsh-hero__dashboard-card
   so it uses the surface (paper) colour from the prototype.
*/
.jsh-hero__dashboard-card--light {
  background: var(--jsh-surface) !important;
  color: var(--jsh-text) !important;
  border: 1px solid var(--jsh-border);
}
.jsh-hero__dashboard-card--light .jsh-hero__device-name { color: var(--jsh-text); }
.jsh-hero__dashboard-card--light .jsh-hero__device-row {
  border-bottom-color: var(--jsh-border);
}

/* ── Stat grid (2×3, no gap between cells like prototype) ── */
.jsh-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(245,241,230,0.1);
  border-radius: 16px;
  overflow: hidden;
}
.jsh-stat-card {
  /* Base card — background set inline per card */
  padding: 2rem 1.5rem;
}

/* ── CTA block responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .jsh-cta-block {
    grid-template-columns: 1fr !important;
  }
  .jsh-stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════════════════════ */

/* Hero */
.jsh-section--about-hero { padding-top: 5rem; padding-bottom: 4rem; }
.jsh-about-hero__label { margin-bottom: 2rem; }
.jsh-pill--outline {
  display: inline-flex; align-items: center;
  border: 1.5px solid currentColor; border-radius: 999px;
  padding: 6px 16px; font-family: var(--jsh-font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.7;
}
.jsh-about-hero__heading {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.08; max-width: 900px;
  margin: 0 0 2rem;
}
.jsh-about-hero__italic {
  font-style: italic; color: var(--jsh-accent);
  display: block;
}
.jsh-about-hero__sub {
  font-size: 1.15rem; line-height: 1.65;
  max-width: 640px; opacity: 0.75;
  margin: 0;
}

/* Mission / Vision */
.jsh-section--mv { padding-top: 4rem; padding-bottom: 4rem; }
.jsh-mv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}
.jsh-mv-col__label {
  margin: 0 0 1rem; opacity: 0.5;
}
.jsh-mv-col__heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15; margin: 0 0 1.25rem;
}
.jsh-mv-col__body { opacity: 0.75; line-height: 1.7; margin: 0; }

/* Timeline */
.jsh-section--timeline { background: var(--jsh-surface); }
.jsh-timeline__heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0 0 3rem;
}
.jsh-timeline-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1); padding-top: 2rem;
}
.jsh-timeline-item__year {
  margin: 0 0 0.75rem; opacity: 0.45;
}
.jsh-timeline-item__title {
  font-family: var(--jsh-font-body); font-weight: 700;
  font-size: 1rem; margin: 0 0 0.5rem;
}
.jsh-timeline-item__body { font-size: 0.9rem; opacity: 0.7; margin: 0; line-height: 1.6; }

/* How we work */
.jsh-how-heading {
  font-size: clamp(2rem, 4vw, 3.5rem); margin: 0 0 3rem;
}
.jsh-how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.jsh-how-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--jsh-radius-lg, 16px);
  padding: 2rem;
}
.jsh-how-card__icon {
  width: 44px; height: 44px;
  background: var(--jsh-surface);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--jsh-accent);
}
.jsh-how-card__title {
  font-weight: 700; font-size: 1.1rem; margin: 0 0 0.5rem;
}
.jsh-how-card__body { font-size: 0.9rem; opacity: 0.72; line-height: 1.65; margin: 0; }

/* Ecosystem */
.jsh-section--ecosystem { padding-top: 5rem; padding-bottom: 5rem; }
.jsh-ecosystem-inner { max-width: 900px; }
.jsh-pill--outline-light {
  display: inline-flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,0.35); border-radius: 999px;
  padding: 6px 16px; font-size: 11px; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7); margin-bottom: 2rem;
}
.jsh-ecosystem__heading {
  font-size: clamp(2rem, 4.5vw, 4rem);
  color: var(--jsh-cream); margin: 0 0 2.5rem; line-height: 1.1;
}
.jsh-ecosystem-brands {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
}
.jsh-ecosystem-brand {
  font-family: var(--jsh-font-body); font-weight: 600; font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.jsh-ecosystem-sep { color: var(--jsh-accent); font-size: 1.2rem; }

/* About CTA */
.jsh-section--about-cta { text-align: center; padding-top: 6rem; padding-bottom: 6rem; }
.jsh-about-cta-inner { max-width: 640px; margin: 0 auto; }
.jsh-about-cta__heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem); margin: 0 0 1rem;
}
.jsh-about-cta__sub {
  font-size: 1.1rem; opacity: 0.72; line-height: 1.65;
  margin: 0 0 2rem;
}

/* ═══════════════════════════════════════════════════════════
   LEARNING CENTRE
═══════════════════════════════════════════════════════════ */

/* Hero */
.jsh-section--learning-hero { padding-top: 5rem; padding-bottom: 2rem; }
.jsh-learning-hero__label { margin-bottom: 2rem; }
.jsh-learning-hero__heading {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.08; margin: 0 0 1.25rem;
}
.jsh-learning-hero__italic {
  font-style: italic; color: var(--jsh-accent); display: block;
}
.jsh-learning-hero__sub {
  font-size: 1.05rem; opacity: 0.72; max-width: 580px;
  line-height: 1.65; margin: 0 0 2.5rem;
}

/* Filter tabs */
.jsh-learning-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.jsh-learning-filter {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,0.15);
  font-family: var(--jsh-font-body); font-size: 14px; font-weight: 500;
  color: inherit; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.jsh-learning-filter:hover { border-color: var(--jsh-accent); color: var(--jsh-accent); }
.jsh-learning-filter--active {
  background: var(--jsh-forest, #1a3326); border-color: var(--jsh-forest, #1a3326);
  color: #fff;
}

/* Featured article */
.jsh-section--learning-featured { padding-top: 3rem; padding-bottom: 2rem; }
.jsh-featured-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  border: 1px solid rgba(0,0,0,0.08); border-radius: var(--jsh-radius-lg, 16px);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow 0.2s;
}
.jsh-featured-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.jsh-featured-card__img {
  min-height: 360px; background: var(--jsh-surface);
  overflow: hidden;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(0,0,0,0.03) 8px, rgba(0,0,0,0.03) 9px);
}
.jsh-featured-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.jsh-featured-card__img-placeholder {
  width: 100%; height: 100%; min-height: 360px;
}
.jsh-featured-card__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 3rem 3rem 0;
  gap: 1rem;
}
.jsh-pill--accent {
  display: inline-flex; align-items: center;
  background: rgba(var(--jsh-accent-rgb, 32,120,80),0.1);
  color: var(--jsh-accent); border-radius: 999px;
  padding: 5px 14px; font-size: 10px; letter-spacing: 0.1em;
  width: fit-content;
}
.jsh-featured-card__title {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem); line-height: 1.15; margin: 0;
}
.jsh-featured-card__excerpt { opacity: 0.72; line-height: 1.65; margin: 0; }
.jsh-featured-card__meta { font-size: 10px; letter-spacing: 0.08em; opacity: 0.45; margin: 0; }

/* Article grid */
.jsh-section--learning-grid { padding-top: 2rem; }
.jsh-learn-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.jsh-learn-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--jsh-radius-lg, 16px);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow 0.15s;
}
.jsh-learn-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.jsh-learn-card__img {
  min-height: 180px; background: var(--jsh-surface); overflow: hidden;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(0,0,0,0.03) 8px, rgba(0,0,0,0.03) 9px);
  display: flex; align-items: center; justify-content: center;
}
.jsh-learn-card__img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.jsh-learn-card__img-placeholder { width: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.jsh-learn-card__meta { font-size: 10px; letter-spacing: 0.08em; opacity: 0.5; padding: 1rem 1.25rem 0; display: flex; gap: 4px; }
.jsh-learn-card__title { font-weight: 600; font-size: 1rem; line-height: 1.4; padding: 0 1.25rem; margin: 0; }
.jsh-learn-card__cat { font-size: 9px; letter-spacing: 0.1em; opacity: 0.45; padding: 0 1.25rem 1.25rem; }
.jsh-learning-empty { opacity: 0.5; font-size: 1rem; padding: 4rem 0; text-align: center; }

/* Learning responsive */
@media (max-width: 960px) {
  .jsh-featured-card { grid-template-columns: 1fr; }
  .jsh-featured-card__copy { padding: 0 2rem 2rem; }
  .jsh-learn-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .jsh-learn-grid { grid-template-columns: 1fr; }
  .jsh-learning-filters { gap: 0.4rem; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════ */

/* Hero */
.jsh-section--contact-hero { padding-top: 5rem; padding-bottom: 3rem; }
.jsh-contact-hero__label { margin-bottom: 2rem; }
.jsh-contact-hero__heading {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.08; margin: 0 0 1.25rem;
}
.jsh-contact-hero__italic {
  font-style: italic; color: var(--jsh-accent);
}
.jsh-contact-hero__sub {
  font-size: 1.1rem; line-height: 1.65;
  max-width: 580px; opacity: 0.72; margin: 0;
}

/* Contact grid */
.jsh-section--contact-body { padding-top: 0; padding-bottom: 5rem; }
.jsh-contact-grid {
  display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: start;
}
.jsh-contact-form-wrap__heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 2rem;
}

/* Fallback form styles (used when FluentForms is unavailable) */
.jsh-contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.jsh-contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.jsh-contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.jsh-contact-form__label { font-size: 10px; letter-spacing: 0.12em; opacity: 0.55; }
.jsh-contact-form__input,
.jsh-contact-form__textarea {
  width: 100%; box-sizing: border-box;
  padding: 13px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--jsh-radius);
  background: var(--jsh-surface, #f5f3ee);
  color: var(--jsh-text);
  font-family: var(--jsh-font-body); font-size: 14px;
  outline: none; transition: border-color 0.15s;
}
.jsh-contact-form__input:focus,
.jsh-contact-form__textarea:focus { border-color: var(--jsh-accent); }
.jsh-contact-form__textarea { resize: vertical; min-height: 130px; }
.jsh-contact-form__submit { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* Sidebar */
.jsh-contact-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

/* WhatsApp card */
.jsh-contact-wa-card {
  display: flex; align-items: center; justify-content: space-between;
  background: #25D366; color: #fff;
  border-radius: var(--jsh-radius-lg, 16px);
  padding: 1.5rem; text-decoration: none;
  transition: opacity 0.2s;
}
.jsh-contact-wa-card:hover { opacity: 0.9; }
.jsh-contact-wa-card__inner { display: flex; align-items: center; gap: 1rem; }
.jsh-contact-wa-card__icon { flex-shrink: 0; }
.jsh-contact-wa-card__title {
  font-weight: 700; font-size: 1.05rem; margin: 0 0 2px;
}
.jsh-contact-wa-card__sub { font-size: 0.85rem; opacity: 0.85; margin: 0; }
.jsh-contact-wa-card__arrow { flex-shrink: 0; opacity: 0.7; }

/* Direct lines */
.jsh-contact-lines {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--jsh-radius-lg, 16px);
  padding: 1.5rem;
}
.jsh-contact-lines__label {
  font-size: 10px; letter-spacing: 0.12em;
  opacity: 0.45; margin: 0 0 1rem;
}
.jsh-contact-lines__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.jsh-contact-lines__row:last-child { border-bottom: none; }
.jsh-contact-lines__channel { font-size: 0.9rem; opacity: 0.6; }
.jsh-contact-lines__value {
  font-size: 0.9rem; font-weight: 600;
  color: inherit; text-decoration: none;
}
.jsh-contact-lines__value:hover { color: var(--jsh-accent); }

/* Map placeholder */
.jsh-contact-map {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--jsh-radius-lg, 16px);
  background: var(--jsh-surface);
  min-height: 160px;
  display: flex; align-items: flex-end;
  padding: 1.25rem;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(0,0,0,0.03) 8px,
    rgba(0,0,0,0.03) 9px
  );
}
.jsh-contact-map__label { font-size: 10px; letter-spacing: 0.12em; opacity: 0.45; }

/* Contact responsive */
@media (max-width: 960px) {
  .jsh-contact-grid { grid-template-columns: 1fr; }
  .jsh-contact-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .jsh-contact-sidebar { grid-template-columns: 1fr; }
  .jsh-contact-form__row { grid-template-columns: 1fr; }
}

/* About responsive */
@media (max-width: 900px) {
  .jsh-mv-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .jsh-timeline-grid { grid-template-columns: 1fr 1fr; }
  .jsh-how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .jsh-timeline-grid { grid-template-columns: 1fr; }
}

/* ── Dot dim variant (dashboard header indicator) ───────── */
.jsh-dot--dim {
  background: currentColor;
  opacity: 0.25;
  animation: none;
}

/* ── Device icon — SVG icon box ─────────────────────────── */
.jsh-hero__device-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  background: rgba(0,0,0,0.06);
  border-radius: 7px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0; /* hide any stray text/emoji */
}
.jsh-hero__dashboard-card--light .jsh-hero__device-icon {
  background: rgba(0,0,0,0.05);
  color: var(--jsh-text);
}
/* Dashboard label — dimmer, separate from the pulsing dot */
.jsh-hero__dashboard-label {
  opacity: 0.45;
  font-size: 9px;
  letter-spacing: 0.14em;
}
/* Ensure dashboard header row doesn't also dim via parent opacity */
.jsh-hero__dashboard-header { opacity: 1 !important; }

/* ── Product card — edge-to-edge image with overlaid badge ── */
.jsh-product-card {
  padding: 0 !important;
  overflow: hidden;
  position: relative;
  display: flex !important;
  flex-direction: column;
}
.jsh-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  margin: 0 !important;
  background: rgba(26,122,80,0.12) !important;
  color: var(--jsh-accent) !important;
  border-color: rgba(26,122,80,0.22) !important;
}
.jsh-product-card__img {
  border-radius: 0 !important;
  margin: 0 !important;
}
.jsh-product-card__name {
  padding: 0 16px;
  margin: 14px 0 6px !important;
}
.jsh-product-card__price {
  padding: 0 16px 10px;
  margin: 0 !important;
  font-weight: 700;
  font-size: 0.95rem;
}
.jsh-product-card > .jsh-btn {
  margin: auto 16px 16px !important;
  text-align: center;
  justify-content: center;
}
