/* ===================================================================
   Smartmedical / Okosgyógyászat — V1 design
   Modern medical e-commerce, warm-trust palette
   =================================================================== */

:root {
  /* Palette — "petrol" default */
  --primary: #0A4A4E;
  --primary-dark: #06363A;
  --primary-tint: #E8F4F3;
  --accent: #E87B4A;
  --accent-dark: #C9612F;
  --cream: #FBF7EE;
  --cream-2: #F4EFE2;
  --ink: #0E1B1E;
  --ink-2: #2A3A3D;
  --muted: #6B7C7E;
  --border: #E5DECD;
  --border-strong: #C9C0AA;
  --success: #2D6A4F;
  --rose: #BE3A2F;
  --white: #ffffff;

  /* Spacing */
  --container: 1320px;
  --pad: 32px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

/* "ocean" palette */
body[data-palette="ocean"] {
  --primary: #0B3A66;
  --primary-dark: #082849;
  --primary-tint: #E8EFF6;
  --accent: #F2A93B;
  --accent-dark: #C98821;
  --cream: #F8F6F1;
  --cream-2: #ECEAE2;
  --border: #DCD8CC;
}

/* "forest" palette */
body[data-palette="forest"] {
  --primary: #1F4D2E;
  --primary-dark: #143420;
  --primary-tint: #E7F0E9;
  --accent: #D4582B;
  --cream: #FBF8F0;
  --cream-2: #EFEBDB;
}

/* "graphite" palette */
body[data-palette="graphite"] {
  --primary: #1A1A1A;
  --primary-dark: #000;
  --primary-tint: #EFEEEC;
  --accent: #D85C2C;
  --cream: #F5F2EA;
  --cream-2: #E5E1D4;
}

/* ====== Base ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.05; font-weight: 600; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
  padding: 6px 10px; background: var(--primary-tint); border-radius: 999px;
}
.eyebrow--invert { background: rgba(255,255,255,.14); color: var(--white); }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: 40px; }
.section-head--row { grid-template-columns: 1fr auto; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; margin-bottom: 56px; }
.section-head__left { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.section-head--center .section-head__left { align-items: center; text-align: center; }
.section-title { font-size: clamp(36px, 4vw, 56px); max-width: 16ch; }
.section-head__sub { color: var(--muted); font-size: 16px; max-width: 50ch; }


/* ====== Buttons ====== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 60px; padding: 0 30px; font-size: 16px; }
.btn--full { width: 100%; }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border-strong); }
.btn--ghost:hover { background: var(--cream-2); }
.btn--invert { background: var(--white); color: var(--primary); }
.btn--invert-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.3); }


/* ===================================================================
   UTILITY TOP BAR
   =================================================================== */
.util-bar {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.util-bar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.util-bar__left, .util-bar__right { display: flex; align-items: center; gap: 18px; }
.util-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); transition: color .15s; }
.util-link svg { width: 14px; height: 14px; }
.util-link:hover { color: #fff; }
.util-link--ghost { opacity: .65; }
.util-divider { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.util-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 999px;
  font-size: 12px;
}
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--success); display: inline-block; }
.dot--open { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.22); }


/* ===================================================================
   HEADER
   =================================================================== */
.header { background: var(--cream); border-bottom: 1px solid var(--border); }
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding-block: 22px;
}

/* logo */
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--primary); }
.logo--invert { color: var(--white); }
.logo__mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; background: var(--primary-tint); color: var(--primary);
}
.logo--invert .logo__mark { background: rgba(255,255,255,.14); color: var(--white); }
.logo__mark svg { width: 28px; height: 28px; }
.logo__type { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.logo--invert .logo__name { color: var(--white); }
.logo__name em { font-style: italic; font-weight: 500; color: var(--primary); }
.logo--invert .logo__name em { color: var(--accent); }
.logo__tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* searchbar */
.searchbar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  height: 56px;
  gap: 12px;
  transition: border-color .15s;
}
.searchbar:focus-within { border-color: var(--primary); }
.searchbar__icon { width: 20px; height: 20px; color: var(--muted); }
.searchbar input {
  border: 0; outline: 0; background: none;
  font-family: inherit; font-size: 15px; color: var(--ink);
  width: 100%;
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar__chips { display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  background: var(--primary-tint); color: var(--primary);
  font-size: 12px; font-weight: 600; border-radius: 999px;
}
.searchbar__btn {
  height: 44px; padding: 0 22px; background: var(--primary); color: #fff;
  border-radius: 999px; font-weight: 600; font-size: 14px;
}
.searchbar__btn:hover { background: var(--primary-dark); }

/* header actions */
.header__actions { display: flex; align-items: center; gap: 8px; }
.iconbtn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  position: relative;
  transition: background .15s;
}
.iconbtn:hover { background: var(--cream-2); }
.iconbtn svg { width: 22px; height: 22px; color: var(--ink); }
.iconbtn__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.iconbtn__label em { font-style: normal; font-weight: 700; }
.iconbtn__count {
  position: absolute; top: 4px; left: 28px;
  height: 18px; min-width: 18px; padding: 0 5px;
  background: var(--ink); color: #fff;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.iconbtn__count--accent { background: var(--accent); }
.iconbtn--cart .iconbtn__label em { color: var(--primary); margin-left: 4px; }


/* ===================================================================
   BUTTON CATEGORY MENU
   =================================================================== */
.navbtns { background: var(--cream); border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.navbtns__inner { display: flex; flex-direction: column; gap: 10px; }
.navbtns__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.navbtn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  color: var(--ink);
  transition: all .15s ease;
}
.navbtn:hover { border-color: var(--primary); color: var(--primary); }
.navbtn--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.navbtn--active:hover { color: #fff; background: var(--primary-dark); }
.navbtn em { font-style: normal; font-size: 11px; padding: 2px 6px; background: var(--primary-tint); color: var(--primary); border-radius: 6px; }
.navbtn--active em { background: rgba(255,255,255,.18); color: #fff; }
.navbtn--sale { background: var(--accent); color: #fff; border-color: var(--accent); }
.navbtn--sale em { background: rgba(255,255,255,.2); color: #fff; }
.navbtn--more { background: transparent; border: 1.5px dashed var(--border-strong); }
.navbtn--more svg { width: 14px; height: 14px; }

/* category icon glyphs */
.navbtn__ico {
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  position: relative;
}
.navbtn__ico::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
  mask-size: contain; mask-repeat: no-repeat; mask-position: center;
}
.navbtn__ico[data-ico="smart"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><rect x='6' y='2' width='12' height='20' rx='2'/><circle cx='12' cy='17.5' r='1'/><path d='M9 6h6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><rect x='6' y='2' width='12' height='20' rx='2'/><circle cx='12' cy='17.5' r='1'/><path d='M9 6h6'/></svg>"); }
.navbtn__ico[data-ico="home"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M3 11 12 3l9 8M5 10v10h14V10'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M3 11 12 3l9 8M5 10v10h14V10'/></svg>"); }
.navbtn__ico[data-ico="diag"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M6 3v6a4 4 0 0 0 8 0V3M10 13v3a4 4 0 0 0 8 0v-2'/><circle cx='18' cy='10' r='2'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M6 3v6a4 4 0 0 0 8 0V3M10 13v3a4 4 0 0 0 8 0v-2'/><circle cx='18' cy='10' r='2'/></svg>"); }
.navbtn__ico[data-ico="brand"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M3 7h18l-2 12H5L3 7Z'/><path d='M8 7V4h8v3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M3 7h18l-2 12H5L3 7Z'/><path d='M8 7V4h8v3'/></svg>"); }
.navbtn__ico[data-ico="iot"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M12 2a7 7 0 0 0-4 13v3a2 2 0 0 0 8 0v-3a7 7 0 0 0-4-13Z'/><path d='M10 21h4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M12 2a7 7 0 0 0-4 13v3a2 2 0 0 0 8 0v-3a7 7 0 0 0-4-13Z'/><path d='M10 21h4'/></svg>"); }
.navbtn__ico[data-ico="sale"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M3 12 12 3l9 9-9 9-9-9Z'/><circle cx='9' cy='9' r='1.4' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M3 12 12 3l9 9-9 9-9-9Z'/><circle cx='9' cy='9' r='1.4' fill='black'/></svg>"); }

.navbtns__row--info { padding-top: 8px; border-top: 1px dashed var(--border); }
.navlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 4px 10px; border-radius: 8px; transition: background .15s;
}
.navlink:hover { background: var(--cream-2); color: var(--primary); }
.navlink svg { width: 16px; height: 16px; color: var(--primary); }


/* ===================================================================
   HERO
   =================================================================== */
.hero { padding: 56px 0 80px; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__main { display: flex; flex-direction: column; gap: 28px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 8px 14px; background: var(--white); border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.hero__badge-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(232,123,74,.18); }
.hero__title { font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.035em; line-height: 0.96; }
.hero__lede { font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 32px; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 8px; }
.trust { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-2); }
.trust strong { color: var(--ink); }
.trust__sub { color: var(--muted); font-size: 13px; }
.trust__stars { display: flex; color: var(--accent); }
.trust__stars svg { width: 18px; height: 18px; }
.trust__icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); border-radius: 12px; }
.trust__icon svg { width: 22px; height: 22px; }

/* hero card */
.hero__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10,74,78,.25);
}
.hero__card-media {
  position: relative;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary-tint), #fff);
  aspect-ratio: 4 / 3;
}
.hero__card-flag {
  position: absolute; top: 18px; left: 18px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}
.hero__card-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.hero__card-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.hero__card-title { font-size: 22px; }
.hero__card-feats { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero__card-feats li { display: flex; align-items: center; gap: 10px; }
.hero__card-feats svg { width: 16px; height: 16px; color: var(--success); flex: none; }
.hero__card-price { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; }
.price__old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.price__new { color: var(--ink); font-size: 28px; font-weight: 700; font-family: var(--font-display); letter-spacing: -0.02em; }
.price__save { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.price__pay { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.price__pay strong { color: var(--ink); }

/* device placeholder */
.ph { width: 100%; height: 100%; position: relative; }
.ph--device { display: grid; place-items: center; }
.ph__screen {
  width: 78%; aspect-ratio: 1.6/1;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(10,74,78,.35), inset 0 0 0 1px var(--border);
  padding: 22px;
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
}
.ph__metric { font-family: var(--font-display); font-size: 56px; font-weight: 600; color: var(--primary); letter-spacing: -0.04em; line-height: 1; }
.ph__metric-unit { font-size: 28px; color: var(--accent); margin-left: 6px; }
.ph__metric-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ph__graph { position: absolute; left: 22px; right: 22px; bottom: 22px; color: var(--accent); }
.ph__graph svg { width: 100%; height: 60px; }
.ph__pill { position: absolute; bottom: 14px; right: 14px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.ph__pill--alt { bottom: 38px; background: var(--cream-2); color: var(--ink); right: 14px; }
.ph__base {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 60%; height: 14px; background: var(--ink);
  border-radius: 4px;
  opacity: .06;
}


/* ===================================================================
   USP STRIP
   =================================================================== */
.usp { padding: 24px 0 24px; background: var(--ink); color: #fff; }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.usp__item {
  padding: 28px 28px 28px;
  border-right: 1px solid rgba(255,255,255,.1);
  position: relative;
  display: grid; gap: 10px;
  grid-template-rows: auto auto auto 1fr;
}
.usp__item:last-child { border-right: 0; }
.usp__num { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.14em; color: rgba(255,255,255,.4); }
.usp__icon { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.08); border-radius: 12px; color: var(--accent); }
.usp__icon svg { width: 26px; height: 26px; }
.usp__item h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.usp__item p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.5; margin: 0; }
.usp__item p strong { color: #fff; }


/* ===================================================================
   CATEGORIES
   =================================================================== */
.cats { padding: 100px 0; background: var(--cream); }
.cats__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.cat {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(10,74,78,.3); border-color: var(--primary); }
.cat--hero { grid-row: span 2; }

.cat__bg { aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center; overflow: hidden; }
.cat--hero .cat__bg { aspect-ratio: 4 / 5; }
.cat__bg--smart { background: linear-gradient(140deg, var(--primary), var(--primary-dark)); color: #fff; }
.cat__bg--home { background: linear-gradient(140deg, #FBEDDF, #F0D7B6); color: var(--accent-dark); }
.cat__bg--diag { background: linear-gradient(140deg, var(--cream-2), #DDD3BB); color: var(--ink); }
.cat__bg--iot { background: linear-gradient(140deg, #E5E2F2, #BFB8DF); color: var(--ink); }
.cat__bg--ep { background: var(--primary-tint); color: var(--primary); padding: 40px; }
.cat__bg--ep svg { width: 100%; height: auto; }

.cat__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat__count { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cat__body h3 { font-size: 24px; }
.cat--hero .cat__body h3 { font-size: 32px; }
.cat__body p { font-size: 14px; color: var(--ink-2); margin: 0; }
.cat__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--primary); margin-top: auto; }
.cat__cta svg { width: 16px; height: 16px; }

/* illustrations */
.cat__ill { position: relative; width: 200px; height: 200px; }
.cat__ill--watch { perspective: 800px; }
.watch { position: relative; width: 160px; height: 200px; margin: 0 auto; transform: rotate(-8deg); }
.watch__face { width: 160px; height: 160px; background: #0E1B1E; border: 8px solid rgba(255,255,255,.1); border-radius: 32px; display: grid; place-items: center; color: #fff; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4); position: relative; z-index: 2; }
.watch__hr { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1; color: var(--accent); }
.watch__lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: .7; }
.watch__strap { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); width: 60px; height: 260px; background: rgba(0,0,0,.4); border-radius: 16px; z-index: 1; }

.cat__ill--chair { width: 220px; height: 140px; }
.chair { position: relative; width: 220px; height: 140px; }
.chair__back { position: absolute; left: 30px; top: 0; width: 60px; height: 80px; background: #C97950; border-radius: 8px 8px 4px 4px; }
.chair__seat { position: absolute; left: 30px; top: 80px; width: 140px; height: 14px; background: #A65F3D; border-radius: 4px; }
.chair__wheel { position: absolute; right: 4px; bottom: 0; width: 56px; height: 56px; border: 6px solid var(--ink); border-radius: 50%; background: transparent; }
.chair__wheel--small { right: auto; left: 30px; width: 28px; height: 28px; border-width: 4px; }

.cat__ill--stetho { width: 200px; height: 200px; position: relative; }
.cat__ill--stetho::before { content: ""; position: absolute; left: 20px; top: 10px; width: 100px; height: 100px; border: 12px solid var(--ink); border-radius: 50% 50% 50% 0; transform: rotate(45deg); }
.cat__ill--stetho::after { content: ""; position: absolute; right: 20px; bottom: 0; width: 70px; height: 70px; background: var(--primary); border-radius: 50%; box-shadow: inset 0 0 0 8px rgba(255,255,255,.5); }

.cat__ill--bulb { width: 160px; height: 200px; position: relative; }
.cat__ill--bulb::before { content: ""; position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 110px; height: 110px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 60px rgba(232,123,74,.5); }
.cat__ill--bulb::after { content: ""; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: 60px; height: 70px; background: var(--ink); border-radius: 6px 6px 16px 16px; }

.cat--brand .cat__brand-grid {
  aspect-ratio: 4 / 3;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border);
}
.cat--brand .cat__brand-grid span { background: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.cat--brand .cat__brand-grid span:nth-child(odd) { color: var(--primary); }
.cat--ep .cat__bg { padding: 0; }
.cat--ep .badge--ep { background: var(--primary-tint); color: var(--primary); padding: 4px 10px; border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; align-self: flex-start; }


/* ===================================================================
   PRODUCTS
   =================================================================== */
.products { padding: 100px 0; background: var(--cream-2); }

.tabs { display: flex; gap: 6px; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.tab {
  padding: 0 18px; height: 40px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .15s;
}
.tab--active { background: var(--ink); color: #fff; }
.tab:not(.tab--active):hover { background: var(--cream-2); }

.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(10,74,78,.3); border-color: var(--primary); }

.card__media { position: relative; aspect-ratio: 1.05/1; background: linear-gradient(145deg, var(--primary-tint), #fff); display: grid; place-items: center; }
.card__badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card__sale { position: absolute; top: 14px; right: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 9px; border-radius: 999px; }
.card__wish {
  position: absolute; bottom: 14px; right: 14px;
  width: 38px; height: 38px; background: var(--white); border: 1px solid var(--border);
  border-radius: 50%; display: grid; place-items: center; color: var(--ink-2);
  transition: all .15s;
}
.card__wish:hover { color: var(--accent); border-color: var(--accent); }
.card__wish svg { width: 18px; height: 18px; }

.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 6px;
  background: var(--ink); color: #fff;
}
.badge--new { background: var(--accent); }
.badge--ep { background: var(--primary); }
.badge--mdr { background: var(--rose); }
.badge--free { background: var(--success); }
.badge--shop { background: var(--white); color: var(--primary); border: 1px solid var(--primary); }

/* placeholder devices in cards */
.ph--cuff { background: radial-gradient(circle at 50% 60%, #fff 0%, transparent 70%); }
.ph--cuff::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70%; height: 70%; background: var(--primary); border-radius: 50%; opacity: .15; }
.ph--cuff::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 50%; aspect-ratio: 1; background: #fff; border-radius: 18px; box-shadow: 0 20px 40px -15px rgba(10,74,78,.3), inset 0 0 0 1px var(--border); }

.ph--massager { background: linear-gradient(135deg, #F4ECD8, #E8D9B5); }
.ph--massager::before { content: ""; position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 70%; aspect-ratio: 1.5/1; background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-radius: 80px 80px 24px 24px; }
.ph--massager::after { content: ""; position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; background: var(--accent); opacity: .8; border-radius: 50%; }

.ph--ekg { background: linear-gradient(135deg, var(--primary-tint), #fff); }
.ph--ekg::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60%; aspect-ratio: 1.6/1; background: #fff; border-radius: 16px; box-shadow: 0 20px 40px -15px rgba(0,0,0,.2), inset 0 0 0 1px var(--border); }
.ph--ekg::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 50%; height: 30%;
  background:
    linear-gradient(to right, transparent 48%, var(--accent) 48% 52%, transparent 52%),
    linear-gradient(to bottom, transparent 50%, var(--primary) 50% 53%, transparent 53%);
}

.ph--ring { background: linear-gradient(135deg, #E5E2F2, #C8C2E0); }
.ph--ring::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 50%; aspect-ratio: 1; border: 24px solid var(--ink); border-radius: 50%; box-sizing: border-box; box-shadow: 0 20px 40px -15px rgba(0,0,0,.3); }
.ph--ring::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 28%; aspect-ratio: 1; background: var(--accent); border-radius: 50%; opacity: .6; filter: blur(4px); }

.card__body { padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__brand { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.card__title { font-size: 17px; line-height: 1.2; min-height: 2.4em; text-wrap: pretty; }
.card__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.card__stars { color: var(--accent); font-size: 13px; }
.card__stars em { font-style: normal; color: var(--ink-2); font-weight: 600; margin-left: 4px; }
.card__sep { color: var(--border-strong); }
.card__stock { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 600; }
.card__feats { display: flex; flex-wrap: wrap; gap: 5px; }
.card__feats span { font-size: 11px; padding: 3px 8px; background: var(--primary-tint); color: var(--primary); border-radius: 6px; font-weight: 600; }
.card__price { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px dashed var(--border); margin-top: 4px; }
.card__price > span:first-child { display: inline-flex; align-items: baseline; gap: 8px; }
.card__price .price__new { font-size: 24px; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.ship { font-size: 12px; color: var(--ink-2); font-weight: 600; }

.products__foot { text-align: center; margin-top: 36px; }


/* ===================================================================
   AI ASSISTANT
   =================================================================== */
.ai { padding: 100px 0; background: var(--primary); color: #fff; }
.ai__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ai__title { font-size: clamp(36px, 4vw, 56px); margin-top: 16px; }
.ai__title em { color: var(--accent); }
.ai__lede { font-size: 17px; color: rgba(255,255,255,.78); max-width: 50ch; margin: 18px 0 28px; }
.ai__cta { display: flex; gap: 12px; flex-direction: column; align-items: flex-start; }

.chat {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.45);
}
.chat__head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.chat__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-tint); display: grid; place-items: center; color: var(--primary); }
.chat__avatar svg { width: 24px; height: 24px; }
.chat__head strong { font-size: 15px; display: block; }
.chat__sub { font-size: 12px; color: var(--muted); }
.chat__pill { background: var(--success); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.chat__msg { margin: 16px 22px; padding: 14px 18px; max-width: 80%; font-size: 14px; line-height: 1.45; }
.chat__msg--bot { background: var(--primary-tint); border-radius: 16px 16px 16px 4px; }
.chat__opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 8px; }
.chat__opt { padding: 8px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); transition: all .15s; }
.chat__opt--sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.chat__opt:hover:not(.chat__opt--sel) { border-color: var(--primary); color: var(--primary); }
.chat__input { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 14px 22px 22px; border-top: 1px solid var(--border); margin-top: 12px; }
.chat__input input { padding: 14px 18px; background: var(--cream); border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-family: inherit; outline: 0; }
.chat__input input:focus { border-color: var(--primary); }
.chat__input button { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.chat__input button svg { width: 18px; height: 18px; }


/* ===================================================================
   STORE
   =================================================================== */
.store { padding: 100px 0; background: var(--cream); }
.store__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.store__lede { font-size: 17px; color: var(--ink-2); margin: 18px 0 24px; }
.store__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.store__list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.store__list svg { width: 18px; height: 18px; color: var(--success); flex: none; padding: 4px; background: rgba(45,106,79,.12); border-radius: 50%; box-sizing: content-box; }

.store__hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 24px 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 24px; }
.store__hours > div { display: flex; flex-direction: column; gap: 6px; }
.store__lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.store__hours strong { font-size: 14px; line-height: 1.3; font-weight: 600; }
.store__hours strong em { display: block; font-style: normal; color: var(--primary); font-weight: 600; }
.store__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.store__map { aspect-ratio: 1/1; }
.map {
  position: relative; width: 100%; height: 100%;
  background: var(--primary-tint); color: var(--primary);
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border);
}
.map svg { width: 100%; height: 100%; display: block; }
.map__pin {
  position: absolute; left: 48%; top: 44%; transform: translate(-50%, -50%);
}
.map__pin-dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  border: 5px solid #fff;
  box-shadow: 0 10px 30px -5px rgba(232,123,74,.6);
  position: relative;
  margin: 0 auto;
}
.map__pin-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; border-radius: 50%; background: var(--accent); opacity: .14;
  animation: pinRing 2s ease-out infinite;
}
@keyframes pinRing { 0% { transform: translate(-50%, -50%) scale(.6); opacity: .35; } 100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; } }
.map__pin-card {
  background: var(--white); padding: 12px 16px;
  border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(10,74,78,.3);
  display: flex; flex-direction: column; gap: 2px; min-width: 220px;
  margin-top: 14px;
  color: var(--ink);
}
.map__pin-card strong { font-size: 14px; }
.map__pin-card span { font-size: 12px; color: var(--muted); }
.map__compass { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; background: var(--white); border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.12); }


/* ===================================================================
   WHY US
   =================================================================== */
.why { padding: 100px 0; background: var(--ink); color: #fff; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why__item { padding: 32px 28px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 14px; }
.why__num { font-family: var(--font-display); font-size: 64px; font-weight: 600; color: var(--accent); letter-spacing: -0.04em; line-height: 1; }
.why__num em { font-style: normal; font-size: 18px; color: rgba(255,255,255,.6); margin-left: 4px; font-weight: 500; }
.why__item h3 { font-size: 20px; }
.why__item p { color: rgba(255,255,255,.7); font-size: 14px; margin: 0; }
.why__item p strong { color: #fff; }
.why__bar { height: 5px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; margin-top: auto; }
.why__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #FBA471); border-radius: 999px; }


/* ===================================================================
   BLOG
   =================================================================== */
.blog { padding: 100px 0; background: var(--cream-2); }
.blog__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; }
.post {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.post:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(10,74,78,.3); }
.post__media { aspect-ratio: 4/3; overflow: hidden; }
.post__media--lead { aspect-ratio: 4/2.5; }
.post__media svg { width: 100%; height: 100%; }
.post__ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; }
.post__ph::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40%; aspect-ratio: 1; background: var(--c2); opacity: .25; border-radius: 50%; filter: blur(8px); }
.post__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post--lead .post__body { padding: 26px 28px 28px; }
.post__cat { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.post h3 { font-size: 18px; line-height: 1.25; }
.post--lead h3 { font-size: 28px; line-height: 1.15; }
.post__body p { font-size: 14px; color: var(--ink-2); margin: 0; }
.post__date { font-size: 12px; color: var(--muted); margin-top: auto; }


/* ===================================================================
   NEWSLETTER
   =================================================================== */
.news { padding: 80px 0; background: var(--accent); color: #fff; }
.news__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.news__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.news__title em { font-style: italic; color: var(--ink); }
.news__sub { color: rgba(255,255,255,.78); margin-top: 14px; font-size: 16px; }
.news__form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.news__form input {
  padding: 16px 22px; background: var(--white); border: 0; border-radius: 999px;
  font-size: 16px; font-family: inherit;
  grid-column: 1 / -1;
  height: 56px;
}
.news__form input:focus { outline: 2px solid var(--ink); }
.news__check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .9; }
.news__form .btn { grid-column: 1 / -1; justify-self: stretch; background: var(--ink); height: 56px; }
.news__form .btn:hover { background: #000; }


/* ===================================================================
   TRUST RIBBON
   =================================================================== */
.ribbon { padding: 36px 0; background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ribbon__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ribbon__col { display: flex; flex-direction: column; gap: 12px; }
.ribbon__lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ribbon__row { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px; background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--ink); letter-spacing: -0.01em;
}
.logo-chip--alt { background: transparent; font-weight: 600; color: var(--ink-2); }


/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.78); padding: 80px 0 30px; }
.footer__top { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__brand p { font-size: 14px; color: rgba(255,255,255,.7); max-width: 36ch; }
.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.85); }
.footer__contact svg { width: 14px; height: 14px; color: var(--accent); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h5 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 8px; font-weight: 700; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .15s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; font-size: 12px; color: rgba(255,255,255,.5); }
.footer__certs { display: flex; gap: 14px; flex-wrap: wrap; }
.cert { padding: 6px 12px; background: rgba(255,255,255,.06); border-radius: 999px; color: rgba(255,255,255,.85); font-weight: 600; }


/* ===================================================================
   FONT VARIATION TWEAK (data attr)
   =================================================================== */
body[data-fontset="serif-display"] { --font-display: "Newsreader", Georgia, serif; }
body[data-fontset="grotesk"] { --font-display: "Manrope", system-ui, sans-serif; --font-body: "Manrope", system-ui, sans-serif; }


/* ===================================================================
   LAYOUT VARIANT — sidebar
   =================================================================== */
body[data-layout="sidebar"] .navbtns { display: none; }
body[data-layout="sidebar"] .hero,
body[data-layout="sidebar"] .cats,
body[data-layout="sidebar"] .products,
body[data-layout="sidebar"] .ai,
body[data-layout="sidebar"] .store,
body[data-layout="sidebar"] .why,
body[data-layout="sidebar"] .blog,
body[data-layout="sidebar"] .news,
body[data-layout="sidebar"] .ribbon {
  /* leave content as-is, sidebar simply replaces top button menu */
}
body[data-layout="sidebar"] .layout-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 260px;
  background: var(--ink); color: #fff;
  padding: 24px 18px; z-index: 50;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
body[data-layout="sidebar"] .util-bar,
body[data-layout="sidebar"] .header,
body[data-layout="sidebar"] section,
body[data-layout="sidebar"] .footer { margin-left: 260px; }
body[data-layout="sidebar"] .container { max-width: calc(var(--container) - 260px); }
.layout-sidebar { display: none; }
body[data-layout="sidebar"] .layout-sidebar { display: flex; }
