/* =========================================================
   Raj Market — E-commerce Template
   A from-scratch e-commerce layout (not the menu-style Default Template).
   --accent below is overridden per-store from the storefront's Theme
   colors (see frontend.ecommerce.layouts.master) — --accent-dark and
   --accent-soft derive from it automatically via color-mix() so the
   whole template follows one theme color instead of a fixed palette.
   ========================================================= */

:root {
  --ink: #14151a;
  --ink-soft: #5b5d68;
  --ink-faint: #94959e;
  --paper: #faf8f5;
  --surface: #ffffff;
  --line: #eae7e1;
  --line-strong: #dcd8d0;
  --accent: #ff4d2e;
  --accent-dark: color-mix(in srgb, var(--accent) 80%, black 20%);
  --accent-soft: color-mix(in srgb, var(--accent) 6%, white 94%);
  --success: #1f8a4c;
  --success-soft: #eaf7ee;
  --danger-color: #dc3545;
  --danger-soft-color: #fff1f2;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --star: #ffb400;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(20, 21, 26, 0.06);
  --shadow: 0 12px 30px rgba(20, 21, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 21, 26, 0.14);
  --container: 1240px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
#store-products { scroll-margin-top: 110px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: clip;
}
body.ecommerce-template {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
body.ecommerce-template.mobile-nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}
main.container {
  padding-left: 0;
  padding-right: 0;
  min-width: 0;
  overflow-x: clip;
}
.storefront-main-content {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.section { padding: 64px 0; }
.section-tight { padding: 36px 0; }
.section,
.section-tight,
.xt-category-boxes-section,
.xt-banners-section {
  max-width: 100%;
  overflow-x: clip;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head .eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.section-head h2 {
  font-size: 30px;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--ink-soft); margin: 6px 0 0; }
.section-head .view-all {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
}
.category-page-head {
  align-items: flex-end;
  flex-direction: row;
  gap: 16px;
}
.category-page-head > div:first-child {
  min-width: 0;
}
.category-page-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 560px;
}
.category-page-nav-btn {
  max-width: 270px;
  min-width: 0;
}
.category-page-nav-btn .nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-page-nav-btn .nav-arrow {
  flex: 0 0 auto;
}
.category-page-nav-bottom {
  display: none;
  margin-top: 28px;
}

h1, h2, h3, h4 { letter-spacing: -0.01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 15.5px; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; }
.btn-icon {
  width: 42px; max-width: 42px; height: 42px; aspect-ratio: 1; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- badges / tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 5px 10px; border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.badge-sale { background: var(--accent); color: #fff; }
.badge-new { background: var(--ink); color: #fff; }
.badge-stock { background: var(--success-soft); color: var(--success); }
.badge-low { background: #fff4e5; color: #b3690a; }
.badge-muted { background: var(--line); color: var(--ink-soft); }

/* ---------- placeholder artwork ---------- */
.ph {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--c1), var(--c2));
}
.ph svg { width: 38%; opacity: 0.5; }
/* Tonal variations of the store's own theme color (--accent) instead of a
   fixed rainbow palette — every placeholder block stays "on brand". */
.ph-1 { --c1: color-mix(in srgb, var(--accent) 8%, white 92%); --c2: color-mix(in srgb, var(--accent) 22%, white 78%); }
.ph-2 { --c1: color-mix(in srgb, var(--accent) 14%, white 86%); --c2: color-mix(in srgb, var(--accent) 32%, white 68%); }
.ph-3 { --c1: color-mix(in srgb, var(--accent) 6%, white 94%); --c2: color-mix(in srgb, var(--accent) 18%, white 82%); }
.ph-4 { --c1: color-mix(in srgb, var(--accent) 18%, white 82%); --c2: color-mix(in srgb, var(--accent) 38%, white 62%); }
.ph-5 { --c1: color-mix(in srgb, var(--accent) 10%, white 90%); --c2: color-mix(in srgb, var(--accent) 26%, white 74%); }
.ph-6 { --c1: color-mix(in srgb, var(--accent) 16%, white 84%); --c2: color-mix(in srgb, var(--accent) 30%, white 70%); }
.ph-7 { --c1: color-mix(in srgb, var(--accent) 4%, white 96%); --c2: color-mix(in srgb, var(--accent) 14%, white 86%); }
.ph-8 { --c1: color-mix(in srgb, var(--accent) 20%, white 80%); --c2: color-mix(in srgb, var(--accent) 42%, white 58%); }

/* ---------- topbar ---------- */
.topbar {
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  text-align: center; padding: 9px 16px; letter-spacing: 0.02em;
}
.topbar span { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; gap: 28px;
  padding: 5px 0;
}
/* Logo position: "center" puts the nav on the left, logo dead-center, and
   actions on the right via grid order — desktop only, see the 720px
   breakpoint below where this is unconditionally reverted to left. */
.header-logo-center .header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.header-logo-center .logo { order: 2; justify-self: center; }
.header-logo-center .header-left-nav { order: 1; justify-self: start; }
.header-logo-center .header-right-actions { order: 3; justify-self: end; margin-left: 0; }
.logo {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.logo .dot { color: var(--accent); }
.logo-mark {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1.5px solid var(--line-strong); background: var(--surface);
}

.main-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.main-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  position: relative; padding: 6px 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-dropdown { position: relative; }
.nav-dropdown .panel {
  position: absolute; top: calc(100% + 14px); left: -20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px; width: 460px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.18s ease;
}
.nav-dropdown:hover .panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown .panel a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: var(--radius-sm); font-weight: 500; color: var(--ink);
}
.nav-dropdown .panel a:hover { background: var(--paper); }
.nav-dropdown .panel a span.ico {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; background: var(--accent-soft);
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; position: relative; color: var(--ink);
}
.icon-btn:hover { background: var(--surface); border-color: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn i { font-size: 17px; }
.icon-btn.active { color: var(--accent); }
.icon-btn .count {
  position: absolute; top: -3px; right: -3px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 2px solid var(--paper);
}
/* ---------- search trigger (command-palette style) + search modal ---------- */
.search-trigger {
  display: none; align-items: center; gap: 10px;
  width: 260px; flex-shrink: 0; text-align: left;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  border-radius: var(--radius-pill); padding: 11px 14px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: border-color 0.15s ease;
}
.search-trigger:hover { border-color: var(--ink); }
.search-trigger i { color: var(--ink-faint); font-size: 14px; }
.search-trigger span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-trigger kbd {
  font-family: inherit; font-size: 11px; font-weight: 700; color: var(--ink-faint);
  background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px;
}
.burger { display: none; }

@media (min-width: 980px) { .search-trigger { display: flex; } }

.mobile-nav-search.search-trigger { display: flex; width: 100%; margin: 4px 0 14px; }
.mobile-nav-search.search-trigger kbd { display: none; }

.search-modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 21, 26, 0.5); backdrop-filter: blur(4px);
  z-index: 400; display: flex; align-items: flex-start; justify-content: center;
  padding: 10vh 20px 20px; opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
}
.search-modal-overlay.open { opacity: 1; pointer-events: auto; }
.search-modal {
  width: 100%; max-width: 600px; max-height: 70vh; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(-12px); transition: transform 0.18s ease;
}
.search-modal-overlay.open .search-modal { transform: translateY(0); }
.search-modal-field {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.search-modal-field i { color: var(--ink-faint); font-size: 17px; }
.search-modal-field input { flex: 1; border: none; outline: none; font-size: 16px; background: transparent; }
.search-modal-results { overflow-y: auto; padding: 10px; }
.search-modal-results .sr-state { padding: 30px 16px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.search-modal-results .sr-label { padding: 10px 12px 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }
.search-modal-results a.sr-item {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--radius);
  color: var(--ink);
}
.search-modal-results a.sr-item:hover { background: var(--accent-soft); }
.search-modal-results a.sr-item .sr-thumb {
  width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line);
}
.search-modal-results a.sr-item .sr-title { flex: 1; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-modal-results a.sr-item .sr-price { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); flex-shrink: 0; }

/* ---------- two-sided dynamic header (left nav / right actions) ---------- */
.header-left-nav { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.header-left-nav a, .header-left-nav .nav-static-label {
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  position: relative; padding: 6px 0; white-space: nowrap;
}
.header-left-nav a:hover { color: var(--ink); }
.header-left-nav .nav-static-label { cursor: default; }

.header-right-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-shrink: 0; }
.mobile-featured-action { display: none; }
.header-contact-item {
  display: flex; align-items: center; gap: 10px; text-align: right; color: var(--ink);
}
.header-contact-item .contact-text { display: flex; flex-direction: column; line-height: 1.25; }
.header-contact-item .contact-text .contact-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint);
}
.header-contact-item .contact-text .contact-value { font-size: 13px; font-weight: 600; }
.header-contact-item:hover .icon-btn { background: var(--surface); border-color: var(--line); }

@media (max-width: 1180px) {
  .header-contact-item .contact-text { display: none; }
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  z-index: 30000;
  display: block;
  border-top: 0;
  background: rgba(20, 21, 26, 0.28);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav > .container {
  width: min(90vw, 420px);
  max-width: min(90vw, 420px);
  height: 100dvh;
  min-height: 100vh;
  margin: 0 0 0 auto;
  padding: 18px 14px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .24s ease;
}
.mobile-nav.open > .container { transform: translateX(0); }
.mobile-nav-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 38px;
  margin-bottom: 8px;
}
.mobile-nav-close {
  width: 38px;
  max-width: 38px;
  height: 38px;
  border-color: var(--line);
  background: var(--surface);
}
.mobile-nav .mobile-nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.mobile-nav .mobile-nav-link .count {
  position: static;
  min-width: 20px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 0 0 20px;
}
.mobile-nav .mobile-nav-section {
  display: flex; flex-direction: column; gap: 0; padding-top: 0; margin-top: 0; border-top: 0;
}
.mobile-nav .mobile-nav-section:first-child { padding-top: 0; margin-top: 0; border-top: none; }

/* category rail under hero on homepage (emoji-icon variant; unused when no icon data exists) */
.category-rail {
  display: flex;
  gap: 14px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-rail::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 104px; text-align: center;
}
.cat-chip .ico-wrap {
  width: 84px; height: 84px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 30px; transition: all 0.15s ease;
}
.cat-chip:hover .ico-wrap { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat-chip span.label { font-size: 13px; font-weight: 600; }

/* Category tiles — StoreCategory only ever has a name, no icon/image field,
   so every tile uses one flat, on-brand color (var(--accent-soft)) instead
   of per-category gradients, and a plain tag icon instead of a monogram. */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  max-width: 100%;
  min-width: 0;
}
.category-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 4 / 3; border-radius: var(--radius); padding: 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); transition: all 0.15s ease;
}
.category-tile .cat-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark); font-size: 17px;
}
.category-tile .cap { color: var(--ink); font-weight: 700; font-size: 14.5px; }
.category-tile:hover { border-color: color-mix(in srgb, var(--accent) 28%, var(--line) 72%); background: var(--accent-soft); transform: translateY(-2px); }
@media (max-width: 1100px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; align-items: stretch;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); margin-top: 24px;
}
.hero-copy { padding: 56px 50px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-dark);
  background: var(--accent-soft); padding: 7px 14px; border-radius: var(--radius-pill); width: fit-content;
}
.hero-copy h1 { font-size: 46px; line-height: 1.08; margin: 0; }
.hero-copy p { color: var(--ink-soft); font-size: 16px; max-width: 420px; margin: 0; }
.hero-copy .cta-row { display: flex; gap: 12px; margin-top: 8px; }
.hero-art { position: relative; min-height: 420px; }
.hero-art .price-float {
  position: absolute; bottom: 28px; left: 28px; background: #fff; border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.hero-art .price-float .tag { font-weight: 800; font-size: 18px; }
.hero-art .price-float .lbl { font-size: 12px; color: var(--ink-soft); }

/* ---------- trust strip ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 22px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.trust-item .ico {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.trust-item b { display: block; font-size: 14px; }
.trust-item small { color: var(--ink-soft); font-size: 12.5px; }

/* ---------- product grid / card ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(var(--cards-desktop, 4), 1fr); gap: 22px;
  min-width: 0;
  max-width: 100%;
}
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.18s ease, transform 0.18s ease; position: relative;
}
.product-card:hover { box-shadow: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 24%, var(--line) 76%); }
.product-card .media { position: relative; aspect-ratio: 1 / 1; }
.product-card .media img { object-fit: contain !important; background: var(--surface); }
.product-card .media .badge-stack { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.product-card .wishlist-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: none;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.product-card .quick-add {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  opacity: 0; transform: translateY(8px); transition: all 0.18s ease;
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.product-card .body { padding: 16px; }
.product-card .cat-label { font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.product-card h3 { font-size: 15px; margin: 6px 0 8px; font-weight: 600; }
.product-card h3 a:hover { text-decoration: underline; }
.rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; }
.rating .stars { color: var(--star); letter-spacing: 1px; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 17px; font-weight: 800; }
.price-strike { font-size: 13.5px; color: var(--ink-faint); text-decoration: line-through; }
.price-save { font-size: 12px; color: var(--success); font-weight: 700; }
.card-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.card-actions .btn-block { flex: 1; min-width: 0; }
.card-actions .btn-icon { flex-shrink: 0; }

/* ---------- promo banners ---------- */
.promo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-card {
  border-radius: var(--radius-lg); padding: 40px; min-height: 240px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.promo-card h3 { font-size: 26px; margin: 0; max-width: 60%; }
.promo-card p { margin: 0; color: var(--ink-soft); max-width: 60%; }
.promo-card .btn { width: fit-content; }

/* ---------- newsletter ---------- */
.newsletter {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.newsletter h3 { font-size: 24px; margin: 0 0 6px; }
.newsletter p { color: #c8c9d1; margin: 0; }
.newsletter form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter input {
  width: 280px; padding: 13px 18px; border-radius: var(--radius-pill); border: 1px solid #34363f;
  background: #1f2027; color: #fff;
}
.newsletter input::placeholder { color: #8d8e98; }

/* ---------- footer ---------- */
.site-footer-dark { background: var(--ink);}
.site-footer-dark .footer-bottom-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; flex-wrap: wrap;
}
.site-footer-dark.is-centered .footer-bottom-row { justify-content: center; }
.site-footer-dark .social-row { display: flex; gap: 10px; }
.site-footer-dark .social-row .icon-btn { color: rgba(255, 255, 255, 0.78); }
.site-footer-dark .social-row .icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.site-footer-dark .powered-by { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.site-footer-dark .powered-by a { color: rgba(255, 255, 255, 0.92); font-weight: 600; }
.site-footer-dark .powered-by a:hover { color: #fff; }

/* ---------- breadcrumb ---------- */
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--ink-faint); padding: 18px 0; align-items: center; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: 0.6; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ---------- shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filter-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
}
.filter-box h4 { font-size: 14px; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; }
.filter-list label {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft);
  padding: 7px 0; cursor: pointer;
}
.filter-list label:hover { color: var(--ink); }
.filter-list input[type="checkbox"], .filter-list input[type="radio"] { width: 16px; height: 16px; accent-color: var(--ink); }
.swatch-list { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
.swatch.active { box-shadow: 0 0 0 2px var(--ink); }
.range-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.range-row input[type="range"] { width: 100%; accent-color: var(--ink); }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.toolbar .result-count { font-size: 14px; color: var(--ink-soft); }
.toolbar .sort-select {
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 9px 16px; font-size: 13.5px;
  background: var(--surface); font-weight: 600;
}
.view-toggle { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px; }
.view-toggle button { width: 32px; height: 32px; border: none; background: transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.view-toggle button.active { background: var(--ink); color: #fff; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 700; border: 1px solid var(--line); color: var(--ink-soft);
}
.pagination a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.gallery-main { border-radius: var(--radius-lg); aspect-ratio: 1 / 1; margin-bottom: 14px; background: var(--surface); }
.gallery-main img { object-fit: contain !important; background: var(--surface); }
.eco-gallery-main { position: relative; overflow: hidden; border: 1px solid var(--line); }
.eco-gallery-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: var(--surface);
}
.eco-gallery-open {
  width: 100%; height: 100%; border: 0; background: transparent; padding: 0; border-radius: inherit;
  display: flex; align-items: center; justify-content: center; cursor: zoom-in; overflow: hidden;
}
.eco-gallery-slide {
  position: absolute;
  inset: 0;
  transform: translateX(0);
  will-change: transform;
}
.eco-gallery-slide-in-next { animation: ecoSlideInNext .28s ease both; }
.eco-gallery-slide-out-next { animation: ecoSlideOutNext .28s ease both; }
.eco-gallery-slide-in-prev { animation: ecoSlideInPrev .28s ease both; }
.eco-gallery-slide-out-prev { animation: ecoSlideOutPrev .28s ease both; }
@keyframes ecoSlideInNext {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes ecoSlideOutNext {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@keyframes ecoSlideInPrev {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@keyframes ecoSlideOutPrev {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
.eco-gallery-main-image { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.eco-gallery-arrow,
.eco-gallery-expand {
  position: absolute; z-index: 3; border: 1px solid var(--line); background: rgba(255,255,255,.92);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.eco-gallery-arrow {
  top: 50%; width: 42px; height: 42px; border-radius: 50%; transform: translateY(-50%);
}
.eco-gallery-prev { left: 14px; }
.eco-gallery-next { right: 14px; }
.eco-gallery-expand {
  right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(15, 17, 25, .72); color: #fff; border-color: rgba(255,255,255,.18);
}
.eco-gallery-arrow:hover,
.eco-gallery-expand:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.eco-gallery-main.is-single .eco-gallery-arrow { display: none; }
.eco-gallery-thumb-image { width: 100%; height: 100%; object-fit: contain; background: var(--surface); border-radius: inherit; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery-thumbs .thumb {
  width: 78px; height: 78px; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; overflow: hidden;
  background: var(--surface); padding: 0; flex: 0 0 auto;
}
.gallery-thumbs .thumb.active { border-color: var(--ink); }

.eco-product-viewer {
  position: fixed; inset: 0; z-index: 25000; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 14, .94); color: #fff; opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.eco-product-viewer.is-open { opacity: 1; pointer-events: auto; }
body.eco-product-viewer-open { overflow: hidden; }
.eco-product-viewer-stage {
  width: min(92vw, 1180px); height: min(82vh, 820px); display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none;
}
.eco-product-viewer-image {
  max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; transition: transform .16s ease;
  cursor: grab; user-select: none; touch-action: none;
}
.eco-product-viewer-image.is-dragging { cursor: grabbing; transition: none; }
.eco-product-viewer-placeholder {
  width: 220px; height: 220px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
}
.eco-product-viewer-toolbar {
  position: absolute; top: 18px; right: 18px; z-index: 2; display: flex; align-items: center; gap: 8px;
}
.eco-product-viewer-count {
  min-height: 42px; padding: 0 14px; border-radius: var(--radius-pill); display: inline-flex; align-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 700;
}
.eco-product-viewer-btn,
.eco-product-viewer-nav {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.eco-product-viewer-btn:hover,
.eco-product-viewer-nav:hover { background: rgba(255,255,255,.18); }
.eco-product-viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
}
.eco-product-viewer-prev { left: 22px; }
.eco-product-viewer-next { right: 22px; }
.eco-product-viewer.is-single .eco-product-viewer-nav { display: none; }

.pd-info .cat-label { font-size: 12.5px; color: var(--accent-dark); text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }
.pd-info h1 { font-size: 30px; margin: 10px 0 12px; }
.pd-info .price-row { font-size: 20px; margin-bottom: 4px; }
.pd-info .price-row .price { font-size: 28px; }
.pd-info .stock-line { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.pd-info .desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; margin: 14px 0 22px; }

.option-block { margin-bottom: 20px; }
.option-block .label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.option-block .label-row b { font-size: 14px; }
.option-block .label-row .selected-value { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.option-block .label-row .extra-count { font-size: 12px; font-weight: 700; color: var(--ink-faint); }
.option-block .label-row .extra-status { padding: 3px 8px; border-radius: 6px; background: var(--paper); color: var(--ink-soft); font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.pill-options { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 9px 18px; font-size: 13.5px;
  font-weight: 600; background: var(--surface); transition: all 0.12s ease;
}
.pill:hover { border-color: var(--ink); }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.swatch-options { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch-options .sw {
  width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); border: 3px solid #fff; cursor: pointer;
}
.swatch-options .sw.active { box-shadow: 0 0 0 2px var(--ink); }

.extra-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; margin-bottom: 10px;
}
.extra-row .left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.extra-row .xt-extra-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}
.extra-row .xt-extra-checkbox[type="radio"] { border-radius: 50%; }
.extra-row .xt-extra-checkbox::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform .12s ease;
}
.extra-row .xt-extra-checkbox[type="radio"]::after {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
}
.extra-row .xt-extra-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.extra-row .xt-extra-checkbox:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.extra-row .xt-extra-checkbox[type="radio"]:checked::after { transform: scale(1); }
.extra-row .xt-extra-checkbox:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.extra-row .xt-extra-checkbox:disabled {
  opacity: .42;
  cursor: not-allowed;
  background: var(--paper);
}
.extra-row:has(.xt-extra-checkbox:disabled) { opacity: .72; }
.extra-row .left b { font-size: 14px; }
.extra-row .left small { color: var(--ink-soft); display: block; font-size: 12px; }
.extra-row .price-tag { font-weight: 700; font-size: 13.5px; color: var(--ink-soft); }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.qty-stepper button { width: 38px; height: 42px; background: transparent; border: none; font-size: 16px; font-weight: 700; }
.qty-stepper button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.qty-stepper input { width: 40px; text-align: center; border: none; background: transparent; font-weight: 700; font-size: 14px; }

.buy-row { display: flex; gap: 12px; margin: 24px 0 18px; }
.buy-row .btn { flex: 1; }
.buy-row .icon-btn { flex: 0 0 auto; border: 1px solid var(--line); }
main.container > .product-detail .buy-row .btn-icon,
main.container > .product-detail .buy-row .btn.btn-icon {
  width: 54px;
  max-width: 54px;
  height: 54px;
  flex: 0 0 54px;
  align-self: stretch;
}

.mini-trust { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0; font-size: 13px; color: var(--ink-soft); }
.mini-trust span { display: flex; align-items: center; gap: 6px; }

.tabs { margin-top: 50px; border-top: 1px solid var(--line); }
.tab-heads { display: flex; gap: 36px; border-bottom: 1px solid var(--line); }
.tab-heads button {
  background: none; border: none; padding: 18px 0; font-size: 14.5px; font-weight: 700; color: var(--ink-faint);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-heads button.active { color: var(--ink); border-color: var(--ink); }
.tab-panel { padding: 28px 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; display: none; }
.tab-panel.active { display: block; }

.review-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-item .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.review-item .name { font-weight: 700; font-size: 14px; }
.review-item .stars { color: var(--star); font-size: 12.5px; margin: 2px 0 6px; }

/* ---------- cart page ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-table-head { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; padding: 0 4px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); font-weight: 700; }
.cart-item {
  display: block;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px;
}
.cart-item-main { display: flex; gap: 14px; align-items: flex-start; }
.cart-item-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-item-thumb img,
.cart-item img.cart-item-thumb { object-fit: contain; background: var(--surface); }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cart-item h4 { font-size: 14.5px; margin: 0; line-height: 1.3; }
.cart-item .meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.cart-item .meta span { display: block; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.cart-item-bottom-right { display: flex; align-items: center; gap: 10px; }
.cart-item .remove-btn { background: none; border: none; color: var(--danger); font-size: 13px; cursor: pointer; flex-shrink: 0; line-height: 1; padding: 2px; }
.cart-item .remove-btn:hover { color: var(--danger); }
.cart-item .edit-btn { background: none; border: none; color: var(--accent); font-size: 13px; cursor: pointer; }
.cart-item .edit-btn:hover { color: var(--accent); }
.cart-item .line-total { display: block; font-weight: 700; font-size: 14px; margin-top: 5px; }
.mini-item .edit-btn { background: none; border: none; color: var(--accent); font-size: 13px; cursor: pointer; margin-left: 8px; }
.mini-item .edit-btn:hover { color: var(--accent); }
.mini-item .remove-btn { background: none; border: none; color: var(--danger); font-size: 13px; cursor: pointer; }

.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.summary-card h3 { font-size: 17px; margin: 0 0 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); padding: 8px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px; font-size: 17px; font-weight: 800; color: var(--ink); }
.summary-row .green { color: var(--success); }
.coupon-row { display: flex; gap: 8px; margin: 18px 0; }
.coupon-row input { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 10px 16px; font-size: 13.5px; }
.free-delivery-progress { margin: 18px 0; }
.free-delivery-progress .free-delivery-bar-track { height: 6px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.free-delivery-progress .free-delivery-bar { height: 100%; background: var(--accent); border-radius: var(--radius-pill); transition: width .2s ease; }
.free-delivery-progress small { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-soft); }
.applied-coupon {
  display: flex; align-items: center; justify-content: space-between; background: var(--success-soft); color: var(--success);
  border-radius: var(--radius-pill); padding: 8px 14px; font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.gift-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.empty-cart { text-align: center; padding: 80px 20px; }
.empty-cart .ico-wrap { width: 96px; height: 96px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 38px; margin: 0 auto 22px; }

/* ---------- checkout ---------- */
.checkout-section-head { margin-top: 48px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; margin: 22px 0 72px; }
.eco-mobile-place-order-bar { display: none; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.form-card h3 { font-size: 16px; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.form-card h3 .num-badge { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.saved-address-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.saved-address-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 96px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 14px; text-align: left; cursor: pointer; }
.saved-address-btn:hover, .saved-address-btn.active { border-color: var(--accent); background: var(--accent-soft); }
.saved-address-btn strong, .saved-address-btn span, .saved-address-btn small { max-width: 100%; overflow-wrap: anywhere; }
.saved-address-btn span { color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.saved-address-btn small { color: var(--ink-faint); font-size: 12px; }
.ecommerce-search-section { display: flex; justify-content: center; }
.ecommerce-search-launch {
  width: min(720px, 100%);
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  cursor: pointer;
}
.ecommerce-search-launch i { color: var(--accent); }
.ecommerce-search-launch span { flex: 1; text-align: left; font-weight: 650; }
.ecommerce-search-launch kbd {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--ink-soft);
  padding: 4px 8px;
  font-size: 11px;
}
.ecommerce-search-launch:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, white 70%);
  background: var(--accent-soft);
}
.field label { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-soft); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.03em; }
.field label .opt { text-transform: none; font-weight: 500; color: var(--ink-faint); }
.required-mark { color: var(--danger-color, #dc3545); font-size: 12px; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; font-size: 14px; background: var(--accent-soft);
  color: var(--ink); box-shadow: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 80px; }
.searchable-location { position: relative; }
.searchable-location-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.searchable-location input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; font-size: 14px; background: var(--accent-soft); color: var(--ink); }
.searchable-location input:focus { outline: none; border-color: var(--accent); background: #fff; }
.searchable-location-list { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; display: none; max-height: 240px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; }
.searchable-location.open .searchable-location-list { display: block; }
.searchable-location-list button { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.searchable-location-list button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.searchable-location-empty { padding: 12px; color: var(--ink-faint); font-size: 13px; }

.pay-options { display: flex; flex-direction: column; gap: 12px; }
.pay-option {
  display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.pay-option.active { border-color: var(--accent); background: var(--accent-soft); }
.pay-option input { width: 18px; height: 18px; accent-color: var(--accent); }
.pay-option b { font-size: 14px; display: block; }
.pay-option small { color: var(--ink-soft); font-size: 12.5px; }

.checkout-summary { position: sticky; top: 100px; }
.mini-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-item .ph { width: 56px; height: 56px; border-radius: var(--radius-sm); flex-shrink: 0; }
.mini-item .qty-badge { position: relative; }
.mini-item h5 { font-size: 13.5px; margin: 0 0 3px; }
.mini-item .meta { font-size: 12px; color: var(--ink-soft); }
.mini-item .amt { font-weight: 700; font-size: 13.5px; margin-left: auto; }
.checkout-line { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; background: var(--surface); }
.checkout-line-main { display: flex; align-items: flex-start; gap: 12px; }
.checkout-line-copy { min-width: 0; flex: 1; }
.checkout-line .amt { margin: 6px 0 0; }
.checkout-line-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.checkout-line-tools { display: flex; align-items: center; gap: 12px; }
.gift-toggle { display: inline-flex!important; width: max-content; max-width: 100%; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); margin: 0; background: var(--surface); color: var(--ink); cursor: pointer; }
.gift-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.gift-field-heading { margin: 4px 0 14px; font-size: 14px; color: var(--ink); }
.save-address-check { display: inline-flex; width: max-content; max-width: 100%; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); margin: 0; background: var(--surface); color: var(--ink); cursor: pointer; }
.save-address-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.checkout-empty-state { text-align: center; padding: 34px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.checkout-empty-state .ico-wrap { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-dark); font-size: 22px; }
.checkout-empty-state h4 { margin: 0 0 6px; font-size: 16px; }
.checkout-empty-state p { margin: 0 0 14px; color: var(--ink-soft); font-size: 13px; }

/* ---------- thank you ---------- */
.ty-wrap { width: 100%; max-width: 820px; margin: 0 auto; text-align: center; padding: 70px 0; overflow-x: clip; }
.ty-card-head { text-align: center; margin-bottom: 26px; }
.ty-icon { width: 96px; height: 96px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 44px; margin: 0 auto 26px; }
.ty-wrap h1 { font-size: 30px; line-height: 1.12; margin: 0 0 10px; overflow-wrap: anywhere; }
.ty-wrap p.lead { color: var(--ink-soft); margin: 0 0 30px; overflow-wrap: anywhere; }
.order-meta-row { display: flex; justify-content: center; gap: 40px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.order-meta-row div { text-align: center; min-width: 0; }
.order-meta-row b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.order-meta-row small { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

.tracker { display: flex; align-items: flex-start; justify-content: space-between; margin: 40px 0; text-align: left; }
.tracker .t-step { flex: 1; position: relative; padding-right: 14px; }
.tracker .t-step .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; margin-bottom: 10px; }
.tracker .t-step.pending .dot { background: var(--line); color: var(--ink-faint); }
.tracker .t-step b { font-size: 13.5px; display: block; }
.tracker .t-step small { color: var(--ink-soft); font-size: 11.5px; }
.tracker .t-step:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 28px; right: 0; height: 2px; background: var(--line); }
.tracker .t-step.done:not(:last-child)::after { background: var(--success); }

.ty-summary-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 10px; max-width: 100%; overflow: hidden; }
.ty-section-title { margin: 0 0 14px; font-size: 16px; }
.ty-summary-card .mini-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; }
.ty-summary-card .mini-item > div:not(.ph):not(.amt) { min-width: 0; }
.ty-summary-card .mini-item h5 { margin: 0 0 4px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.ty-summary-card .mini-item .meta { overflow-wrap: anywhere; }
.ty-summary-card .mini-item .amt { max-width: 150px; text-align: right; overflow-wrap: anywhere; font-weight: 800; color: var(--ink); }
.ty-item-img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: contain; background: var(--paper); flex-shrink: 0; }
.ty-gift-note { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; overflow-wrap: anywhere; }
.ty-gift-note p { margin: 6px 0 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.ty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.ty-actions .ty-icon-action { width: 48px; min-width: 48px; padding: 0; justify-content: center; }
.customer-account-page .theme-btn { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; box-shadow: none !important; }
.customer-account-page .theme-btn:hover { background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; color: #fff !important; }

/* ---------- blog ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-card .media { aspect-ratio: 16/10; }
.article-card .body { padding: 20px; }
.article-card .meta-row { display: flex; gap: 10px; font-size: 12px; color: var(--ink-faint); margin-bottom: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.03em; }
.article-card h3 { font-size: 17px; margin: 0 0 10px; line-height: 1.35; }
.article-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.6; }
.article-card .read-more { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

.article-hero { aspect-ratio: 21/8; border-radius: var(--radius-lg); margin-bottom: 28px; }
.article-content { max-width: 760px; margin: 0 auto; }
.article-content .meta-row { display: flex; gap: 14px; align-items: center; color: var(--ink-soft); font-size: 13.5px; margin-bottom: 18px; }
.article-content .author { display: flex; align-items: center; gap: 8px; }
.article-content .author .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.article-content h1 { font-size: 34px; line-height: 1.2; margin: 0 0 16px; }
.article-content .prose { font-size: 16px; line-height: 1.85; color: var(--ink-soft); }
.article-content .prose p { margin: 0 0 20px; }
.article-content .prose h2 { font-size: 22px; color: var(--ink); margin: 32px 0 14px; }
.article-content .prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; font-style: italic; color: var(--ink); margin: 24px 0; }
.article-content .tags { display: flex; gap: 8px; margin-top: 30px; }
.article-content .tags span { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px 14px; font-size: 12.5px; font-weight: 600; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; right: 26px; background: var(--ink); color: #fff;
  padding: 14px 20px; border-radius: var(--radius); display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg); transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: all 0.25s ease; z-index: 200; font-size: 13.5px; font-weight: 600;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .ico { width: 28px; height: 28px; border-radius: 50%; background: var(--success); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- customer login success modal ---------- */
.customer-login-success-overlay {
  position: fixed; inset: 0; z-index: 380; display: grid; place-items: center; padding: 20px;
  background: rgba(20, 21, 26, 0.5); opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.customer-login-success-overlay.open { opacity: 1; pointer-events: auto; }
.customer-login-success-modal {
  position: relative; width: min(100%, 440px); border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 24px; transform: translateY(12px) scale(.98);
  transition: transform .2s ease;
}
.customer-login-success-overlay.open .customer-login-success-modal { transform: translateY(0) scale(1); }
.customer-login-success-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 1px solid var(--line);
  border-radius: 50%; background: var(--surface); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center;
}
.customer-login-success-head { display: flex; gap: 14px; align-items: center; padding-right: 32px; }
.customer-login-success-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.customer-login-success-head h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.customer-login-success-head p,
.customer-login-success-copy { color: var(--ink-soft); }
.customer-login-success-head p { margin: 3px 0 0; font-size: 13px; }
.customer-login-success-copy { margin: 18px 0 22px; font-size: 14px; line-height: 1.6; }
.customer-login-success-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.customer-login-success-actions .btn { min-height: 42px; border-radius: var(--radius-sm); }

/* ---------- mobile cart drawer ---------- */
.cart-drawer-overlay {
  position: fixed; inset: 0; background: rgba(20,21,26,0.45); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
  backdrop-filter: blur(6px);
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; background: #fff; z-index: 301;
  transform: translateX(100%); transition: transform 0.25s ease; display: flex; flex-direction: column;
}
.cart-drawer-overlay.open .cart-drawer { transform: translateX(0); }
.cart-drawer .cd-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.cart-drawer .cd-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-drawer .cd-foot { padding: 20px; border-top: 1px solid var(--line); }

/* ---------- product quick-view modal (used when "Product pages" is off) ---------- */
.product-modal-overlay {
  position: fixed; inset: 0; background: rgba(20,21,26,0.55); z-index: 320;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease;
  display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto;
}
.product-modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.product-modal {
  position: relative; background: #fff; border-radius: var(--radius-lg); max-width: 980px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 36px; transform: translateY(16px); transition: transform 0.2s ease;
}
.product-modal-overlay.open .product-modal { transform: translateY(0); }
.product-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--surface); border: 1px solid var(--line);
}
.product-modal .product-detail { gap: 40px; }
.product-modal .buy-row .btn-icon {
  width: 54px;
  max-width: 54px;
  height: 54px;
  flex-basis: 54px;
}
@media (max-width: 720px) {
  .product-modal-overlay {
    align-items: flex-end;
    padding: 10px;
    overflow-x: hidden;
  }
  .product-modal {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 16px;
    padding-top: 48px;
    border-radius: 22px 22px 0 0;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
  .product-modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
  .product-modal .product-detail {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .product-modal .product-detail > div,
  .product-modal .pd-info {
    min-width: 0;
    width: 100%;
  }
  .product-modal .gallery-main {
    width: 100%;
    max-height: 46vh;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    border-radius: 18px;
  }
  .product-modal .eco-gallery-main-image,
  .product-modal .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
  }
  .product-modal .eco-gallery-arrow {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .product-modal .eco-gallery-prev { left: 8px; }
  .product-modal .eco-gallery-next { right: 8px; }
  .product-modal .eco-gallery-expand {
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .product-modal .gallery-thumbs {
    width: 100%;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .product-modal .gallery-thumbs .thumb {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }
  .product-modal .pd-info .cat-label {
    font-size: 10.5px;
    line-height: 1.2;
  }
  .product-modal .pd-info h1 {
    font-size: 20px;
    line-height: 1.22;
    margin: 7px 0 10px;
    overflow-wrap: anywhere;
  }
  .product-modal .pd-info .price-row {
    gap: 6px;
    margin-bottom: 8px;
  }
  .product-modal .pd-info .price-row .price {
    font-size: 21px;
    line-height: 1.2;
  }
  .product-modal .pd-info .stock-line {
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
  }
  .product-modal .pd-info .desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin: 10px 0 16px;
    max-height: 112px;
    overflow: auto;
  }
  .product-modal .option-block {
    margin-bottom: 14px;
  }
  .product-modal .option-block .label-row {
    gap: 10px;
    margin-bottom: 8px;
  }
  .product-modal .pill-options,
  .product-modal .swatch-options {
    gap: 8px;
  }
  .product-modal .pill {
    padding: 8px 13px;
    font-size: 12.5px;
  }
  .product-modal .extra-row {
    min-width: 0;
    align-items: flex-start;
    padding: 12px;
  }
  .product-modal .extra-row .left {
    min-width: 0;
  }
  .product-modal .extra-row .left b,
  .product-modal .extra-row .price-tag {
    font-size: 12.5px;
    overflow-wrap: anywhere;
  }
  .product-modal textarea.field {
    min-height: 70px !important;
  }
  .product-modal .qty-stepper {
    width: fit-content;
    max-width: 100%;
  }
  .product-modal .buy-row {
    position: sticky;
    bottom: -16px;
    z-index: 5;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 16px -16px -16px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .product-modal .buy-row .btn {
    min-width: 0;
    min-height: 46px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1.15;
    white-space: normal;
  }
  .product-modal .buy-row .btn-lg {
    flex: 1 1 auto;
  }
  .product-modal .buy-row .btn-icon,
  .product-modal .buy-row .btn.btn-icon {
    width: 46px;
    max-width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }
}

/* ---------- breakpoints ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(min(3, var(--cards-desktop, 4)), 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; }
  .shop-layout { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .promo-duo { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body.ecommerce-template {
    --eco-mobile-header-height: 79px;
    overflow-x: hidden;
    padding-top: var(--eco-mobile-header-height);
  }
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 120;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  body.ecommerce-template.mobile-nav-open .site-header {
    z-index: 30000;
  }
  .site-header .header-row {
    height: calc(var(--eco-mobile-header-height) - 1px);
    transform: translateZ(0);
  }
  .search-trigger kbd,
  .ecommerce-search-launch kbd {
    display: none;
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  main.container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .header-logo-center .header-row { display: flex; grid-template-columns: none; }
  .header-logo-center .logo { order: 0; justify-self: auto; margin-right: auto; }
  .header-logo-center .header-right-actions { order: 0; justify-self: auto; }
  .header-left-nav { display: none; }
  .header-right-actions > .desktop-header-action,
  .header-right-actions > .search-trigger.desktop-header-action { display: none; }
  .header-right-actions > a.icon-btn.mobile-featured-action,
  .header-right-actions > button.icon-btn.mobile-featured-action { display: inline-flex; }
  .burger { display: inline-flex; }
  .product-grid { grid-template-columns: repeat(var(--cards-mobile, 2), 1fr); gap: 14px; }
  .article-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 26px; }
  .hero-copy h1 { font-size: 32px; }
  .section,
  .section-tight {
    padding-left: 0;
    padding-right: 0;
  }
  .section { padding: 34px 0; }
  .section-tight { padding: 28px 0; }
  .section-head,
  .xt-section-header {
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 18px;
  }
  .section-head .eyebrow {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .section-head h2,
  .xt-section-heading {
    font-size: 19px !important;
    line-height: 1.22;
  }
  .section-head p,
  .xt-section-subheading {
    font-size: 13px !important;
    line-height: 1.45;
  }
  .section-head .view-all {
    font-size: 10.5px;
    line-height: 1.2;
    border-bottom-width: 1px;
    padding-bottom: 2px;
  }
  .section-head .view-all i { font-size: 9px; }
  .category-page-head {
    align-items: flex-start;
    gap: 10px;
  }
  .category-page-head > div:first-child {
    width: 100%;
    min-width: 0;
  }
  .category-page-nav {
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .category-page-nav-top {
    display: none;
  }
  .category-page-nav-bottom {
    display: flex;
    margin-top: 20px;
    margin-bottom: 28px;
  }
  .category-page-nav-btn {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    padding: 8px 10px;
    font-size: 10.5px;
    gap: 5px;
  }
  .category-tile {
    gap: 9px;
    min-height: 148px;
    padding: 14px;
    border-radius: 14px;
  }
  .category-tile .cat-icon {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
  .category-tile .cap,
  .xt-category-box-copy h4 {
    font-size: 12.5px;
    line-height: 1.2;
  }
  .product-card .body { padding: 12px; }
  .product-card h3 {
    font-size: 12.8px;
    line-height: 1.28;
    margin: 5px 0 7px;
  }
  .price-row {
    gap: 5px;
    flex-wrap: wrap;
  }
  .price {
    font-size: 13.5px;
    line-height: 1.2;
  }
  .price-strike { font-size: 10.5px; }
  .price-save { font-size: 10px; }
  .card-actions {
    gap: 6px;
    margin-top: 10px;
  }
  .card-actions .btn {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 12px;
  }
  .card-actions .btn-icon {
    width: 38px;
    max-width: 38px;
    height: 38px;
  }
  .breadcrumb {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    gap: 5px;
    padding: 12px 0;
    font-size: 11.5px;
    line-height: 1.3;
    white-space: nowrap;
  }
  .breadcrumb a,
  .breadcrumb span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .breadcrumb .sep {
    flex: 0 0 auto;
  }
  .breadcrumb .current {
    flex: 1 1 auto;
  }
  .product-detail {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }
  .product-detail > div,
  .pd-info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .product-detail .gallery-main {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    border-radius: 18px;
  }
  .product-detail .eco-gallery-main-image,
  .product-detail .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
  }
  .product-detail .eco-gallery-arrow {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .product-detail .eco-gallery-prev { left: 8px; }
  .product-detail .eco-gallery-next { right: 8px; }
  .product-detail .eco-gallery-expand {
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .product-detail .gallery-thumbs {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .product-detail .gallery-thumbs .thumb {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }
  .pd-info .cat-label {
    display: block;
    font-size: 10.5px;
    line-height: 1.25;
    margin-bottom: 7px;
  }
  .pd-info h1 {
    max-width: 100%;
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }
  .pd-info .price-row {
    gap: 6px;
    margin-bottom: 12px;
  }
  .pd-info .price-row .price {
    font-size: 22px;
    line-height: 1.2;
  }
  .pd-info .price-row .price-strike {
    font-size: 12px;
    line-height: 1.2;
  }
  .pd-info .price-row .price-save {
    font-size: 10.5px;
    line-height: 1.2;
  }
  .pd-info .stock-line {
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
  }
  .pd-info .option-block {
    margin-bottom: 14px;
  }
  .pd-info .option-block .label-row {
    gap: 10px;
    margin-bottom: 8px;
  }
  .pd-info textarea.field {
    max-width: 100%;
    min-height: 68px !important;
    font-size: 13px;
  }
  .product-detail .qty-stepper {
    width: fit-content;
    max-width: 100%;
  }
  .product-detail .buy-row {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 14px;
  }
  .product-detail .buy-row .btn {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 46px;
    padding: 0 16px;
    font-size: 13px;
    line-height: 1.15;
  }
  .product-detail .buy-row .btn-lg {
    flex: 0 0 auto;
  }
  .product-detail .buy-row .btn-icon,
  .product-detail .buy-row .btn.btn-icon {
    width: 46px;
    max-width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }
  .mini-trust {
    gap: 10px;
    margin: 12px 0;
    font-size: 12px;
  }
  .tabs {
    margin-top: 28px;
  }
  .tab-heads button {
    font-size: 12.5px;
    padding: 12px 0;
  }
  .tab-panel {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 13.5px;
    line-height: 1.7;
  }
  .newsletter { flex-direction: column; text-align: center; padding: 36px 24px; }
  .newsletter input { width: 100%; }
  .newsletter form { width: 100%;}
  .site-footer-dark .footer-bottom-row { flex-direction: column; gap: 14px; text-align: center; }
  .cart-table-head { display: none; }
  .cart-drawer {
    width: min(90vw, 420px);
    max-width: 90vw;
  }
  .checkout-section-head {
    margin-top: 24px;
    margin-bottom: 14px;
  }
  .checkout-section-head h2 {
    font-size: 24px !important;
    line-height: 1.18;
  }
  .checkout-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    margin: 14px 0 42px;
  }
  .checkout-layout > div,
  .checkout-summary,
  .summary-card,
  .form-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .checkout-summary,
  .summary-card {
    position: static;
    top: auto;
  }
  .form-card {
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 18px;
  }
  .form-card h3 {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.25;
  }
  .form-card h3 .num-badge {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    font-size: 11.5px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .field,
  .field.full {
    min-width: 0;
  }
  .field label {
    font-size: 11px;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 13.5px;
    border-radius: 14px;
  }
  .field textarea {
    min-height: 86px;
  }
  .saved-address-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .saved-address-btn {
    min-height: auto;
    padding: 13px;
    border-radius: 15px;
  }
  .gift-toggle,
  .save-address-check {
    width: 100% !important;
    max-width: 100%;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
  }
  .gift-toggle input,
  .save-address-check input {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    flex: 0 0 16px;
    margin: 0;
    padding: 0;
  }
  .gift-field-heading {
    margin: 2px 0 12px;
    font-size: 13.5px;
  }
  .pay-options {
    gap: 10px;
  }
  .pay-option {
    min-width: 0;
    padding: 13px;
    border-radius: 15px;
  }
  .summary-card {
    padding: 16px;
    border-radius: 18px;
  }
  .checkout-line {
    padding: 11px;
    border-radius: 15px;
  }
  .checkout-line-main {
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
  }
  .checkout-line-main img,
  .checkout-line-main > .ph {
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px;
  }
  .checkout-line-copy {
    min-width: 0;
  }
  .mini-item h5,
  .checkout-line h5 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 12.8px;
    line-height: 1.3;
  }
  .mini-item .meta,
  .checkout-line .meta {
    overflow-wrap: anywhere;
    font-size: 11.5px;
    line-height: 1.45;
  }
  .checkout-line .amt {
    font-size: 12.8px;
  }
  .checkout-line-actions {
    gap: 10px;
    align-items: center;
  }
  .checkout-line .qty-stepper button {
    width: 34px;
    height: 38px;
  }
  .checkout-line .qty-stepper input {
    width: 34px;
  }
  .checkout-line-tools {
    gap: 10px;
    flex: 0 0 auto;
  }
  .coupon-row {
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
  }
  .coupon-row input,
  .coupon-row .btn {
    width: 100%;
    min-height: 44px;
  }
  .summary-row {
    gap: 12px;
    font-size: 13px;
  }
  .summary-row span:last-child {
    text-align: right;
    overflow-wrap: anywhere;
  }
  .summary-row.total {
    font-size: 15px;
  }
  .checkout-empty-state {
    padding: 28px 14px;
  }
  .ty-wrap {
    max-width: 100%;
    padding: 28px 0 44px;
  }
  .ty-summary-card {
    padding: 18px;
    border-radius: 20px;
    margin-top: 0;
  }
  .ty-card-head {
    margin-bottom: 20px;
  }
  .ty-icon {
    width: 68px;
    height: 68px;
    font-size: 30px;
    margin-bottom: 18px;
  }
  .ty-wrap h1 {
    font-size: 23px;
    line-height: 1.18;
  }
  .ty-wrap p.lead {
    margin-bottom: 22px;
    font-size: 13.5px;
    line-height: 1.55;
  }
  .order-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
    margin-bottom: 24px;
  }
  .order-meta-row b {
    font-size: 13.5px;
  }
  .order-meta-row small {
    font-size: 10.5px;
  }
  .tracker { flex-wrap: wrap; gap: 18px; }
  .tracker .t-step { flex: 0 0 45%; }
  .tracker .t-step::after { display: none; }
  .ty-summary-card .tracker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0;
  }
  .ty-summary-card .tracker .t-step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0;
  }
  .ty-summary-card .tracker .t-step .dot {
    margin-bottom: 0;
  }
  .ty-section-title {
    font-size: 14.5px;
  }
  .ty-summary-card .mini-item {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }
  .ty-summary-card .mini-item .ph,
  .ty-summary-card .ty-item-img {
    width: 52px;
    height: 52px;
  }
  .ty-summary-card .mini-item .amt {
    grid-column: 2;
    max-width: 100%;
    text-align: left;
    font-size: 13px;
    margin-top: 4px;
  }
  .ty-summary-card .mini-item h5 {
    font-size: 13px;
  }
  .ty-summary-card .mini-item .meta {
    font-size: 11.5px;
  }
  .ty-gift-note {
    margin-top: 12px;
    padding-top: 14px;
  }
  .ty-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
  }
  .ty-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  .ty-actions .ty-icon-action {
    width: 48px;
    align-self: center;
  }
  body.eco-mobile-checkout-action-visible { padding-bottom: 94px; }
  .eco-mobile-place-order-bar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .eco-mobile-place-order-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .eco-mobile-place-order-bar span {
    display: block;
    margin-bottom: 2px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1;
  }
  .eco-mobile-place-order-bar .eco-mobile-price-overview {
    display: grid;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .eco-mobile-place-order-bar .eco-mobile-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.15;
  }
  .eco-mobile-place-order-bar .eco-mobile-price-row.is-total {
    color: var(--ink);
    font-weight: 800;
  }
  .eco-mobile-place-order-bar strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .eco-mobile-place-order-bar .btn {
    min-height: 46px;
    padding: 0 18px;
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  body.ecommerce-template * {
    -webkit-tap-highlight-color: transparent;
  }
  .btn:hover,
  .btn:focus,
  .btn:active,
  .icon-btn:hover,
  .icon-btn:focus,
  .icon-btn:active,
  .search-trigger:hover,
  .search-trigger:focus,
  .search-trigger:active,
  .ecommerce-search-launch:hover,
  .ecommerce-search-launch:focus,
  .ecommerce-search-launch:active {
    box-shadow: none;
    outline: none;
  }
  .btn-primary:hover { background: var(--ink); box-shadow: none; }
  .btn-accent:hover { background: var(--accent); }
  .btn-outline:hover { background: transparent; color: var(--ink); }
  .btn-ghost:hover { border-color: var(--line); }
  .main-nav a:hover { color: var(--ink-soft); }
  .nav-dropdown:hover .panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
  }
  .nav-dropdown .panel a:hover,
  .icon-btn:hover,
  .icon-btn:focus,
  .icon-btn:active,
  .search-trigger:hover,
  .search-trigger:focus,
  .search-trigger:active,
  .ecommerce-search-launch:hover,
  .ecommerce-search-launch:focus,
  .ecommerce-search-launch:active,
  .search-modal-results a.sr-item:hover,
  .filter-list label:hover,
  .pagination a:hover,
  .pill:hover,
  .searchable-location-list button:hover {
    background: transparent;
    border-color: var(--line);
    color: inherit;
  }
  .icon-btn:hover,
  .icon-btn:focus,
  .icon-btn:active {
    border-color: transparent;
  }
  .burger:hover,
  .burger:focus,
  .burger:active,
  .mobile-featured-action:hover,
  .mobile-featured-action:focus,
  .mobile-featured-action:active {
    background: transparent;
    border-color: transparent;
  }
  .search-trigger:hover,
  .search-trigger:focus,
  .search-trigger:active,
  .ecommerce-search-launch:hover,
  .ecommerce-search-launch:focus,
  .ecommerce-search-launch:active {
    border-color: var(--line);
  }
  .header-left-nav a:hover { color: var(--ink-soft); }
  .header-contact-item:hover .icon-btn {
    background: transparent;
    border-color: transparent;
  }
  .site-footer-dark .social-row .icon-btn:hover {
    color: inherit;
    background: transparent;
    border-color: transparent;
  }
  .cat-chip:hover .ico-wrap,
  .category-tile:hover,
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
  .cat-chip:hover .ico-wrap { border-color: var(--line); }
  .category-tile:hover {
    background: var(--surface);
    border-color: var(--line);
  }
  .product-card:hover { border-color: var(--line); }
  .product-card .quick-add,
  .product-card:hover .quick-add {
    opacity: 1;
    transform: none;
  }
  .product-card h3 a:hover,
  .breadcrumb a:hover,
  .site-footer-dark .powered-by a:hover {
    text-decoration: none;
    color: inherit;
  }
  .qty-stepper button:hover { background: transparent; color: inherit; }
  .cart-item .remove-btn:hover,
  .cart-item .edit-btn:hover,
  .mini-item .edit-btn:hover { color: inherit; }
  .saved-address-btn:hover {
    border-color: var(--line);
    background: var(--surface);
  }
  .saved-address-btn.active {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .pill:focus,
  .pill:focus-visible,
  .pill:active,
  .pill.active,
  .pill.active:hover,
  .pill.active:focus {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    outline: none;
    box-shadow: none;
  }
  .pill.disabled:focus,
  .pill.disabled:active {
    background: var(--surface);
    border-color: var(--line);
    color: inherit;
  }
  .customer-account-page .theme-btn:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
  }
}
