/* ==========================================================================
   Softpaw Shop — mobile-first retail storefront
   Amazon-inspired layout, Softpaw brand. No external fonts or CDNs.
   ========================================================================== */

:root {
  --navy: #131921;
  --navy-2: #232f3e;
  --navy-3: #37475a;
  --orange: #ffd814;
  --orange-hover: #f7ca00;
  --orange-2: #ffa41c;
  --orange-2-hover: #fa8900;
  --search: #febd69;
  --link: #007185;
  --link-hover: #c7511f;
  --price-red: #b12704;
  --star: #ffa41c;
  --bg: #eaeded;
  --card: #ffffff;
  --text: #0f1111;
  --muted: #565959;
  --line: #d5d9d9;
  --line-soft: #e7e7e7;
  --green: #067d62;
  --red: #cc0c39;
  --app: 480px;
  --font: "Amazon Ember", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 17, 17, 0.08);
  --shadow: 0 6px 20px -8px rgba(15, 17, 17, 0.25);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: #dfe3e4;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid rgba(255, 153, 0, 0.75);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: #fde6b8; color: var(--text); }

/* ---------- app shell ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: var(--app);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  box-shadow: 0 0 48px rgba(15, 17, 17, 0.12);
}

body[data-page="product"] .app { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
body[data-page="checkout"] .app { padding-bottom: 0; }

@media (min-width: 560px) {
  body { padding: 20px 0; }
  .app {
    min-height: calc(100dvh - 40px);
    border-radius: 22px;
  }
  .hdr { border-radius: 22px 22px 0 0; }
  .site-foot { border-radius: 0 0 22px 22px; overflow: hidden; }
}

/* ---------- utilities ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 500;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.ic { width: 22px; height: 22px; flex: none; }
.ic--sm { width: 16px; height: 16px; }
.ic--xs { width: 13px; height: 13px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--navy);
  color: #fff;
}

.hdr-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 6px 8px;
}

.hdr-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
}
.hdr-icon:active { background: rgba(255, 255, 255, 0.14); }

.hdr-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px 8px;
  background: var(--navy-2);
  color: #ddd;
  font-size: 11.5px;
  transition: opacity 0.2s var(--ease);
}
.hdr-loc b { color: #fff; font-weight: 700; }
.hdr-loc .ic { width: 14px; height: 14px; color: #ddd; }
.hdr-loc .chev { width: 12px; height: 12px; margin-left: 1px; }
.hdr-loc-link { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.hdr-loc-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hdr.is-scrolled .hdr-loc { display: none; }

.brand {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2px 4px 8px;
  border-radius: 6px;
  color: #fff;
  line-height: 1;
}
.brand-word {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: #fff;
}
.brand-smile {
  position: absolute;
  left: 4px; bottom: 1px;
  width: 62px; height: 12px;
  color: var(--search);
}
.brand:active { background: rgba(255, 255, 255, 0.1); }

.hdr-cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 42px;
  margin-left: auto;
  border-radius: 8px;
  color: #fff;
}
.hdr-cart .ic { width: 27px; height: 27px; }
.hdr-cart:active { background: rgba(255, 255, 255, 0.12); }

.cart-count {
  position: absolute;
  top: 1px; right: 1px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--search);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.cart-count[data-empty="true"] { display: none; }

.hdr-search {
  position: relative;
  display: flex;
  gap: 0;
  padding: 0 8px 9px;
  background: var(--navy-2);
}

.search-box {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 42px;
  background: #fff;
  border-radius: 9px 0 0 9px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.search-box:focus-within { box-shadow: 0 0 0 3px rgba(254, 189, 105, 0.85); }

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  border-radius: 0;
}
.search-input::placeholder { color: #6f7373; }
.search-input:focus { outline: none; }

.search-btn {
  display: grid;
  place-items: center;
  width: 48px;
  border: 0;
  border-radius: 0 9px 9px 0;
  background: var(--search);
  color: var(--navy);
}
.search-btn:active { background: #f3a847; }
.search-btn .ic { width: 21px; height: 21px; }

/* search suggestions */
.search-suggest {
  position: absolute;
  top: calc(100% - 2px);
  left: 8px; right: 8px;
  z-index: 95;
  padding: 6px 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.4);
}
.search-suggest[hidden] { display: none; }
.suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 13.5px;
}
.suggest-item:hover,
.suggest-item:focus-visible { background: #f3f3f3; }
.suggest-item img {
  width: 34px; height: 34px;
  border-radius: 6px;
  object-fit: cover;
  background: #f6f1e9;
}
.suggest-item b { display: block; font-weight: 600; }
.suggest-item small { display: block; color: var(--muted); font-size: 11.5px; }
.suggest-item .sug-arrow { margin-left: auto; color: #999; }
.suggest-head {
  padding: 7px 12px 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   CATEGORY CHIPS
   ========================================================================== */
.chips {
  display: flex;
  gap: 8px;
  padding: 10px 10px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #e3e6e6;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:active { background: #f2f2f2; }
.chip.is-active {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: #fff;
}

/* ==========================================================================
   SECTIONS + GENERIC UI
   ========================================================================== */
.sec {
  margin-top: 8px;
  padding: 14px 12px 16px;
  background: #fff;
}
.sec:first-of-type { margin-top: 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.sec-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.2px;
}
.sec-sub { margin-top: 2px; color: var(--muted); font-size: 12px; }
.sec-link {
  flex: none;
  color: var(--link);
  font-size: 12.5px;
  font-weight: 600;
}
.sec-link:active { color: var(--link-hover); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s var(--ease), transform 0.1s;
}
.btn:active { transform: scale(0.985); }
.btn--cart { background: var(--orange); color: var(--text); box-shadow: 0 2px 5px -1px rgba(213, 217, 217, 0.5); }
.btn--cart:active { background: var(--orange-hover); }
.btn--buy { background: var(--orange-2); color: var(--text); }
.btn--buy:active { background: var(--orange-2-hover); }
.btn--dark { background: var(--navy-2); color: #fff; }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.55; cursor: default; }

.link { color: var(--link); }
.link:hover { color: var(--link-hover); text-decoration: underline; }

/* star rating */
.stars {
  --r: 5;
  position: relative;
  display: inline-block;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1.5px;
  white-space: nowrap;
  vertical-align: -1px;
}
.stars-bg { color: #e3e6e6; }
.stars-fg {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--r) / 5 * 100%);
  overflow: hidden;
  color: var(--star);
}
.rating-row { display: flex; align-items: center; gap: 6px; }
.rating-row .num { color: var(--link); font-size: 12px; }
.rating-row .num:active { color: var(--link-hover); }

/* price */
.price {
  display: inline-flex;
  align-items: flex-start;
  color: var(--text);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.4px;
}
.price .sym { margin-top: 2px; font-size: 12px; }
.price .int { font-size: 21px; }
.price .dec { margin-top: 2px; font-size: 12px; }
.price--sm .int { font-size: 17px; }
.price--sm .sym, .price--sm .dec { font-size: 10.5px; }
.price--lg .int { font-size: 28px; }
.price--lg .sym, .price--lg .dec { font-size: 14px; }
.price--red { color: var(--price-red); }
.price-list {
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: line-through;
}
.price-off { color: var(--price-red); font-size: 11.5px; font-weight: 700; }

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.hero { position: relative; background: #fff; overflow: hidden; }
.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 206px;
  padding: 22px 152px 30px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  overflow: hidden;
  color: var(--text);
}
.hero-slide[data-theme="peach"] { background: linear-gradient(125deg, #fdf0e7 0%, #f5d5c2 100%); }
.hero-slide[data-theme="navy"] { background: linear-gradient(125deg, #1b3550 0%, #0d1e31 100%); color: #fff; }
.hero-slide[data-theme="sage"] { background: linear-gradient(125deg, #edf3e8 0%, #cddfcf 100%); }

.hero-eyebrow {
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a542a;
}
.hero-slide[data-theme="navy"] .hero-eyebrow { color: #f5c489; }
.hero-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.4px;
}
.hero-copy {
  margin-top: 7px;
  max-width: 220px;
  color: #4a4038;
  font-size: 12px;
  line-height: 1.45;
}
.hero-slide[data-theme="navy"] .hero-copy { color: rgba(255, 255, 255, 0.76); }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--link);
  font-size: 12.5px;
  font-weight: 700;
}
.hero-slide[data-theme="navy"] .hero-cta { color: #ffce85; }
.hero-cta .ic { width: 14px; height: 14px; }

.hero-art {
  position: absolute;
  right: -26px;
  bottom: -22px;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 36px -18px rgba(80, 48, 24, 0.45);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.hero-slide[data-theme="navy"] .hero-art { background: rgba(255, 255, 255, 0.12); }

.hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 9px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.hero-dot {
  width: 6px; height: 6px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  transition: width 0.2s, background 0.2s;
}
.hero-dot.is-active { width: 16px; border-radius: 3px; background: var(--navy-2); }

/* ==========================================================================
   DEALS
   ========================================================================== */
.deal-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.deal-title { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; }
.deal-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff0ef;
  color: #b12704;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.deal-time .ic { width: 12px; height: 12px; }

.rail {
  display: flex;
  gap: 10px;
  margin: 0 -12px;
  padding: 0 12px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.deal-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.deal-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 9px;
  overflow: hidden;
  background: #f7f3ec;
  border: 1px solid var(--line-soft);
}
.deal-media img { width: 100%; height: 100%; object-fit: cover; }
.deal-flag {
  position: absolute;
  top: 7px; left: 7px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.deal-name {
  margin-top: 6px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-price-row { display: flex; align-items: baseline; gap: 5px; margin-top: 3px; }
.deal-card .add-mini { margin-top: 7px; }

.add-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #f0c14b;
  border-radius: 999px;
  background: var(--orange);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
}
.add-mini:active { background: var(--orange-hover); }
.add-mini .ic { width: 13px; height: 13px; }

/* ==========================================================================
   CATEGORY TILES
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 8px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.cat-thumb {
  width: 74px; height: 74px;
  border-radius: 50%;
  overflow: hidden;
  background: #f4eee4;
  border: 1px solid #eadfce;
  transition: transform 0.15s var(--ease);
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile:active .cat-thumb { transform: scale(0.94); }
.cat-name {
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
}

/* ==========================================================================
   PRODUCT CARDS + GRID
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.product-grid--rec { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.03);
}
.p-card:active { border-color: #c9cfcf; }

.p-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8f4ed;
  overflow: hidden;
}
.p-media img { width: 100%; height: 100%; object-fit: cover; }

.p-badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.p-badge--best { background: #e77600; }
.p-badge--top { background: #067d62; }
.p-badge--new { background: #007185; }
.p-badge--custom { background: #5a3d8a; }

.p-heart {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #6a7373;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.p-heart .ic { width: 16px; height: 16px; }
.p-heart.is-on { color: #e0245e; }
.p-heart.is-on .ic path { fill: currentColor; }

.p-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
  padding: 8px 9px 10px;
}
.p-title {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.p-rating { display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.p-rating .stars { font-size: 12px; letter-spacing: 1px; }
.p-rating .count { color: var(--link); font-size: 11px; }
.p-price-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.p-prime {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}
.p-prime .sp-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #5a3d8a;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.p-prime .sp-mark .ic { width: 11px; height: 11px; }
.p-prime .delivery { color: var(--muted); }

.p-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 33px;
  margin-top: auto;
  padding: 0 8px;
  border: 1px solid #f0c14b;
  border-radius: 999px;
  background: var(--orange);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
}
.p-add:active { background: var(--orange-hover); }
.p-add .ic { width: 13px; height: 13px; }

/* horizontal product rail */
.p-rail-card {
  flex: 0 0 138px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-rail-card .p-media { border-radius: 9px; border: 1px solid var(--line-soft); }
.p-rail-card .p-title { margin-top: 5px; font-size: 12px; }
.p-rail-card .price-row { display: flex; align-items: baseline; gap: 5px; margin-top: 3px; }

.results-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 1px;
}
.results-note p { color: var(--muted); font-size: 12px; }
.results-note b { color: var(--text); }

.empty-results {
  padding: 34px 16px;
  text-align: center;
}
.empty-results .ic { width: 40px; height: 40px; margin: 0 auto 10px; color: #a7acac; }
.empty-results h3 { font-size: 16px; }
.empty-results p { margin: 6px auto 14px; max-width: 280px; color: var(--muted); font-size: 12.5px; }

/* ==========================================================================
   TRUST STRIP / BANNER
   ========================================================================== */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px 8px;
  background: #fff;
  margin-top: 8px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  text-align: center;
}
.trust-item .ic { width: 21px; height: 21px; color: #42565e; }
.trust-item b { font-size: 10.5px; font-weight: 700; line-height: 1.25; }
.trust-item span { color: var(--muted); font-size: 9.5px; line-height: 1.3; }

/* wholesale banner */
.b2b {
  position: relative;
  padding: 18px 17px 17px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(254, 189, 105, 0.22), transparent 55%),
    linear-gradient(130deg, #223a55 0%, #101e2f 100%);
  color: #fff;
  overflow: hidden;
}
.b2b::after {
  content: "";
  position: absolute;
  right: -38px; bottom: -52px;
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, 0.05);
}
.b2b-eyebrow {
  margin-bottom: 6px;
  color: #f5c489;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.b2b h2 { max-width: 260px; font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -0.3px; }
.b2b p:not(.b2b-eyebrow) {
  margin-top: 7px;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11.5px;
  line-height: 1.55;
}
.b2b-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--search);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.b2b-link .ic { width: 14px; height: 14px; }

/* ==========================================================================
   BOTTOM TAB BAR
   ========================================================================== */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: var(--app);
  padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px -10px rgba(15, 17, 17, 0.18);
  backdrop-filter: blur(8px);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0 2px;
  color: #6a7373;
  font-size: 9.5px;
  font-weight: 600;
}
.tab .ic { width: 22px; height: 22px; }
.tab.is-active { color: var(--navy); }
.tab.is-active .ic { color: #c45500; }
.tab.is-active::before {
  content: "";
  position: absolute;
  top: -5px;
  width: 26px; height: 2.5px;
  border-radius: 2px;
  background: #c45500;
}
.tab-badge {
  position: absolute;
  top: -1px;
  left: calc(50% + 6px);
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: #c45500;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}
.tab-badge[hidden] { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot { margin-top: 10px; background: var(--navy-2); color: #ddd; }
.back-top {
  display: block;
  padding: 13px;
  background: var(--navy-3);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}
.foot-main { padding: 18px 18px 8px; }
.foot-group { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.foot-group:last-child { border-bottom: 0; }
.foot-group h4 { margin-bottom: 6px; color: #fff; font-size: 12.5px; font-weight: 700; }
.foot-group a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: #ddd;
  font-size: 11.5px;
}
.foot-group a:active { color: #fff; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.foot-note {
  padding: 14px 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #b7bdc3;
  font-size: 10.5px;
  line-height: 1.6;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.foot-brand .brand-smile { position: static; width: 46px; height: 9px; }
.foot-note a { color: #e6ebef; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   DRAWER
   ========================================================================== */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 120;
  width: min(84vw, 340px);
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-102%);
  transition: transform 0.28s var(--ease);
  box-shadow: 12px 0 40px -18px rgba(0, 0, 0, 0.55);
}
.drawer.is-open { transform: none; }

.drawer-head {
  padding: 20px 18px 16px;
  background: linear-gradient(125deg, #232f3e, #131921);
  color: #fff;
}
.drawer-avatar {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 9px;
  border-radius: 50%;
  background: var(--search);
  color: var(--navy);
}
.drawer-avatar .ic { width: 24px; height: 24px; }
.drawer-head strong { display: block; font-size: 17px; }
.drawer-head span { color: #c9d0d7; font-size: 11.5px; }

.drawer-sec { padding: 4px 0 10px; border-bottom: 1px solid #eee; }
.drawer-sec h4 {
  padding: 14px 18px 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 18px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13.5px;
  text-align: left;
}
.drawer-link .ic { width: 18px; height: 18px; color: #4a5555; }
.drawer-link .chev { margin-left: auto; width: 14px; height: 14px; color: #a5abab; }
.drawer-link:active { background: #f2f2f2; }
.drawer-link small { margin-left: auto; color: var(--muted); font-size: 10.5px; }

.drawer-foot { padding: 16px 18px 28px; color: var(--muted); font-size: 11px; line-height: 1.6; }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 200;
  width: min(82vw, 380px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #232f3e;
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  animation: toast-in 0.25s var(--ease) both;
}
.toast.is-out { animation: toast-out 0.2s var(--ease) both; }
.toast .ic { width: 17px; height: 17px; color: #7ed1a8; flex: none; }
.toast a { margin-left: auto; color: var(--search); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.toast span { flex: 1; }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.pd { background: #fff; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px 3px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
}
.crumbs a { color: var(--muted); }
.crumbs a:active { color: var(--link); }
.crumbs .sep { color: #c3c8c8; }
.crumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }

.pd-gallery { padding: 0 0 10px; background: #fff; }
.pd-main {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: #f8f4ed;
  overflow: hidden;
}
.pd-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.pd-main[data-z="face"] img { transform: scale(1.75) translateY(7%); }
.pd-main[data-z="left"] img { transform: scale(1.85) translateX(15%); }
.pd-main[data-z="right"] img { transform: scale(1.85) translateX(-15%); }
.pd-main .p-badge { top: 12px; left: 12px; font-size: 10.5px; padding: 4px 8px; }
.pd-zoom-hint {
  position: absolute;
  right: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.pd-zoom-hint .ic { width: 11px; height: 11px; }

.pd-thumbs {
  display: flex;
  gap: 8px;
  padding: 9px 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb {
  flex: 0 0 54px;
  width: 54px; height: 54px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #f8f4ed;
  overflow: hidden;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.pd-thumb.is-active { border-color: #e77600; box-shadow: 0 0 0 1px #e77600; }

.pd-body { padding: 8px 14px 16px; background: #fff; }
.pd-brand {
  color: var(--link);
  font-size: 12px;
  font-weight: 600;
}
.pd-title {
  margin-top: 3px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.35px;
}
.pd-rating { margin-top: 7px; }
.pd-rating .num { font-size: 12.5px; }
.pd-bought { margin-top: 5px; color: #b12704; font-size: 12px; font-weight: 600; }

.pd-price-block {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pd-price-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.pd-coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 8px 10px;
  border: 1px dashed #7fb8a4;
  border-radius: 8px;
  background: #f4fbf8;
  color: #0b6b55;
  font-size: 12px;
  font-weight: 600;
}
.pd-coupon input { width: 16px; height: 16px; accent-color: #067d62; margin: 0; }
.pd-coupon small { display: block; color: #4e7b6f; font-size: 10.5px; font-weight: 400; }

.pd-divider { height: 1px; margin: 14px 0; background: #eceeee; }

.opt-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}
.opt-label span { color: var(--muted); font-weight: 400; }
.opt-row { display: flex; flex-wrap: wrap; gap: 7px; }
.opt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-size: 11.5px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.04);
}
.opt-chip.is-active {
  border-color: #e77600;
  box-shadow: 0 0 0 1px #e77600;
  background: #fffaf0;
}
.swatch {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.pd-stock { margin-top: 13px; color: var(--green); font-size: 16px; font-weight: 600; }
.pd-stock--low { color: #b12704; }

.pd-delivery {
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid #e4e9e9;
  border-radius: 8px;
  background: #fafcfc;
  font-size: 11.5px;
  line-height: 1.55;
}
.pd-delivery b { font-weight: 700; }
.pd-delivery .muted { color: var(--muted); }
.pd-delivery .fast { color: var(--green); font-weight: 700; }

.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.qty-row label { font-size: 12px; font-weight: 700; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 11px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.6px solid #555;
  border-bottom: 1.6px solid #555;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.pd-select {
  appearance: none;
  min-height: 36px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f8;
  font-size: 12.5px;
}

.pd-buy-actions { display: grid; gap: 8px; margin-top: 13px; }
.pd-buy-actions .btn { min-height: 42px; border-radius: 999px; font-size: 13.5px; }

.pd-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--link);
  font-size: 10.5px;
}
.pd-secure .ic { width: 12px; height: 12px; }

.pd-about { padding: 15px 14px; background: #fff; border-top: 8px solid var(--bg); }
.pd-about h2 { margin-bottom: 9px; font-size: 17px; font-weight: 700; }
.pd-bullets { display: grid; gap: 7px; }
.pd-bullets li {
  position: relative;
  padding-left: 17px;
  color: #1c2b2b;
  font-size: 12px;
  line-height: 1.55;
}
.pd-bullets li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7f8c8c;
}

.pd-desc { margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.spec-table {
  margin-top: 10px;
  border: 1px solid #e7eaea;
  border-radius: 8px;
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 38% 1fr;
  font-size: 11.5px;
  line-height: 1.45;
}
.spec-row:nth-child(odd) { background: #f7f8f8; }
.spec-row dt { padding: 7px 9px; color: var(--muted); font-weight: 600; }
.spec-row dd { padding: 7px 9px; border-left: 1px solid #e7eaea; }

.pd-reviews { padding: 15px 14px; background: #fff; border-top: 8px solid var(--bg); }
.pd-reviews h2 { font-size: 17px; font-weight: 700; }
.review-summary { display: flex; gap: 14px; margin-top: 12px; }
.review-score { flex: 0 0 auto; }
.review-score .big { font-size: 34px; font-weight: 700; line-height: 1; }
.review-score .stars { margin-top: 5px; }
.review-score small { display: block; margin-top: 4px; color: var(--muted); font-size: 10.5px; }

.hist { flex: 1; display: grid; gap: 4px; }
.hist-row { display: flex; align-items: center; gap: 7px; color: var(--link); font-size: 10.5px; }
.hist-row span:first-child { width: 22px; flex: none; }
.hist-bar { flex: 1; height: 15px; border-radius: 3px; background: #eef0f0; overflow: hidden; }
.hist-fill { height: 100%; border-radius: 3px; background: #ffa41c; }
.hist-row span:last-child { width: 24px; text-align: right; flex: none; }

.review-card { padding: 13px 0; border-top: 1px solid #eceeee; }
.review-card:first-of-type { margin-top: 12px; }
.review-card h3 { font-size: 13px; font-weight: 700; }
.review-meta { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.review-meta small { color: var(--muted); font-size: 10.5px; }
.review-card p { margin-top: 4px; color: #202626; font-size: 12px; line-height: 1.55; }
.review-verified { margin-top: 5px; color: #c45500; font-size: 10.5px; font-weight: 600; }

.pd-related { padding: 15px 0 16px; background: #fff; border-top: 8px solid var(--bg); }
.pd-related .sec-head { padding: 0 14px; }

/* sticky buy bar on product page */
.buybar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--app);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 22px -14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.buybar-info { min-width: 0; }
.buybar-info .price .int { font-size: 18px; }
.buybar-info small { display: block; color: var(--muted); font-size: 9.5px; }
.buybar .btn { flex: 1; min-height: 40px; font-size: 13px; }

/* ==========================================================================
   CART
   ========================================================================== */
.page-head {
  padding: 14px 14px 10px;
  background: #fff;
}
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.page-head p { margin-top: 3px; color: var(--muted); font-size: 12px; }

.cart-list { padding: 0 12px; background: #fff; }
.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #eceeee;
}
.cart-item:last-child { border-bottom: 0; }
.ci-media {
  display: block;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f4ed;
  border: 1px solid var(--line-soft);
}
.ci-media img { width: 100%; height: 100%; object-fit: cover; }
.ci-body { min-width: 0; }
.ci-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ci-meta { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.ci-stock { margin-top: 2px; color: var(--green); font-size: 10.5px; font-weight: 600; }
.ci-price { margin-top: 4px; }
.ci-actions { display: flex; align-items: center; gap: 12px; margin-top: 7px; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8f8;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.05);
}
.stepper button {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 0;
  background: transparent;
  color: var(--text);
}
.stepper button:active { background: #e9ecec; }
.stepper .ic { width: 13px; height: 13px; }
.stepper output {
  min-width: 24px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.ci-remove { padding: 3px 0; border: 0; background: none; color: var(--link); font-size: 11px; }
.ci-remove:active { color: var(--link-hover); text-decoration: underline; }

.cart-summary-card {
  margin: 8px 12px 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
}
.cart-summary-card .total-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.cart-summary-card .total-line b { font-size: 18px; }
.cart-summary-card .btn { margin-top: 12px; }
.cart-summary-card .ship-note { margin-top: 7px; color: var(--green); font-size: 11.5px; text-align: center; }
.cart-summary-card .tax-note { margin-top: 7px; color: var(--muted); font-size: 10.5px; text-align: center; }

.ship-meter { margin-bottom: 11px; }
.ship-meter p { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.ship-meter p b { color: var(--text); }
.ship-meter-bar { height: 8px; border-radius: 4px; background: #eef0f0; overflow: hidden; }
.ship-meter-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #67b39b, var(--green)); transition: width 0.3s var(--ease); }

.continue-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 12px 0 4px;
  color: var(--link);
  font-size: 12px;
  font-weight: 600;
}
.continue-link .ic { width: 13px; height: 13px; transform: rotate(180deg); }

.empty-cart {
  padding: 30px 20px 26px;
  background: #fff;
  text-align: center;
}
.empty-cart .empty-ico {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #f2f4f4;
  color: #7c8585;
}
.empty-cart .empty-ico .ic { width: 34px; height: 34px; }
.empty-cart h2 { font-size: 18px; }
.empty-cart p { max-width: 280px; margin: 7px auto 15px; color: var(--muted); font-size: 12.5px; }
.empty-cart .btn { max-width: 260px; margin: 0 auto; }

.cart-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 11px 13px;
  background: #fff;
  border-top: 1px solid #eee;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}
.cart-note .ic { width: 14px; height: 14px; flex: none; color: #5b6b6b; }

/* ==========================================================================
   CHECKOUT
   ========================================================================== */
.co-hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--navy-2);
  color: #fff;
}
.co-hdr .brand-word { font-size: 19px; }
.co-hdr .co-secure {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #d9e0e6;
  font-size: 10.5px;
}
.co-hdr .co-secure .ic { width: 13px; height: 13px; }
.co-back {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
}
.co-back .ic { width: 20px; height: 20px; transform: rotate(180deg); }

.co-steps {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #eceeee;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.co-step { display: flex; align-items: center; gap: 4px; }
.co-step i {
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #e7eaea;
  color: #6a7373;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.co-step.is-done i { background: #d9f0e7; color: var(--green); }
.co-step.is-active { color: var(--text); }
.co-step.is-active i { background: var(--navy-2); color: #fff; }
.co-steps .sep { flex: 1; height: 1px; background: #e2e5e5; }

.co-wrap { padding: 10px 12px 30px; }
.co-card {
  margin-bottom: 9px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
}
.co-card h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  font-size: 15px;
  font-weight: 700;
}
.co-card h2 .n {
  display: grid;
  place-items: center;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--navy-2);
  color: #fff;
  font-size: 11px;
}

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 11.5px; font-weight: 600; }
.field label .req { color: var(--red); }
.field input, .field select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #b9c0c0;
  border-radius: 7px;
  background: #fff;
  font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(15, 17, 17, 0.05);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: #e77600;
  box-shadow: 0 0 0 2px rgba(231, 118, 0, 0.2);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); background: #fff8f8; }
.field-error { display: none; color: var(--red); font-size: 10.5px; }
.field.is-invalid .field-error { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.radio-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 7px;
  font-size: 12px;
  cursor: pointer;
}
.radio-card:last-child { margin-bottom: 0; }
.radio-card:has(input:checked) {
  border-color: #e77600;
  box-shadow: 0 0 0 1px #e77600;
  background: #fffaf2;
}
.radio-card input { width: 16px; height: 16px; accent-color: #e77600; margin: 0; flex: none; }
.radio-card b { display: block; font-size: 12px; }
.radio-card small { display: block; color: var(--muted); font-size: 10.5px; }
.radio-card .rc-price { margin-left: auto; font-size: 12px; font-weight: 700; white-space: nowrap; }
.radio-card .rc-price.free { color: var(--green); }

.card-fields { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e5e5; }

.co-summary { border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; overflow: hidden; }
.co-summary-head { padding: 13px 14px; border-bottom: 1px solid #eceeee; }
.co-summary-head h2 { margin: 0; font-size: 15px; }
.co-items { padding: 4px 14px 10px; }
.co-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 7px 0;
  font-size: 11px;
}
.co-item img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line-soft); background: #f8f4ed; }
.co-item .t { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.co-item .q { color: var(--muted); font-size: 9.5px; }
.co-item .p { font-weight: 700; white-space: nowrap; }

.promo-row { display: flex; gap: 7px; padding: 10px 14px 12px; border-top: 1px solid #eceeee; }
.promo-row input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  text-transform: uppercase;
}
.promo-row input::placeholder { text-transform: none; }
.promo-row .btn { flex: none; min-height: 36px; }
.promo-msg { padding: 0 14px 10px; color: var(--green); font-size: 10.5px; }
.promo-msg.is-error { color: var(--red); }
.promo-msg:empty { display: none; }

.co-totals { padding: 11px 14px 13px; border-top: 1px solid #eceeee; font-size: 12px; }
.co-total-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.co-total-row.is-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #e7eaea;
  color: var(--price-red);
  font-size: 16px;
  font-weight: 700;
}
.co-total-row .free { color: var(--green); font-weight: 700; }
.co-total-row .discount { color: var(--green); font-weight: 700; }

.co-place { margin-top: 11px; }
.co-place .btn { width: 100%; min-height: 46px; }
.co-demo-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.co-success {
  padding: 34px 22px 40px;
  background: #fff;
  text-align: center;
}
.success-ico {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e7f5ef;
  color: var(--green);
  animation: pop 0.4s var(--ease) both;
}
.success-ico .ic { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.co-success h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.co-success .order-ref {
  display: inline-block;
  margin: 10px 0 4px;
  padding: 6px 11px;
  border-radius: 6px;
  background: #f2f4f4;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.co-success p { max-width: 320px; margin: 7px auto; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.co-success .success-actions { display: grid; gap: 8px; max-width: 300px; margin: 18px auto 0; }
.success-eta {
  margin: 14px auto 0 !important;
  padding: 10px 12px;
  max-width: 320px;
  border: 1px solid #dcebe4;
  border-radius: 8px;
  background: #f6fbf8;
  color: #255c4a !important;
  font-size: 12px !important;
}

/* ==========================================================================
   ACCOUNT
   ========================================================================== */
.account-hero {
  padding: 20px 16px 18px;
  background: linear-gradient(125deg, #23364d, #131f2e);
  color: #fff;
}
.account-row { display: flex; align-items: center; gap: 12px; }
.avatar {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--search);
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
}
.account-hero h1 { font-size: 19px; font-weight: 700; }
.account-hero p { margin-top: 2px; color: #c9d1d9; font-size: 11.5px; }
.account-hero .btn { margin-top: 13px; }
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.account-stats b { display: block; font-size: 17px; color: #fff; }
.account-stats span { color: #c9d1d9; font-size: 9.5px; }

.order-card {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 9px;
}
.order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #eceeee;
  font-size: 10.5px;
  color: var(--muted);
}
.order-top b { color: var(--text); font-size: 11.5px; }
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e9f6f1;
  color: var(--green);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
.order-thumbs { display: flex; gap: 6px; padding: 10px 0; }
.order-thumbs img {
  width: 42px; height: 42px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: #f8f4ed;
}
.order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}
.order-bottom b { font-size: 13px; }
.order-actions { display: flex; gap: 8px; margin-top: 9px; }
.order-actions .btn { min-height: 32px; font-size: 11px; }

.account-links { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); }
.account-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid #f0f2f2;
  font-size: 13px;
}
.account-link:last-child { border-bottom: 0; }
.account-link .ic { width: 19px; height: 19px; color: #4a5555; }
.account-link .chev { margin-left: auto; width: 14px; height: 14px; color: #a5abab; }
.account-link small { margin-left: auto; color: var(--muted); font-size: 10.5px; }
.account-link:active { background: #f6f7f7; }

.wish-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(8, 10, 10, 0.94);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: 100%;
  max-height: 82dvh;
  border-radius: 10px;
  object-fit: contain;
  background: #f8f4ed;
}
.lightbox-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.lightbox-close .ic { width: 22px; height: 22px; }
.lightbox-caption { margin-top: 14px; color: #cfd6d6; font-size: 11px; text-align: center; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 359px) {
  .hero-slide { padding-right: 118px; }
  .hero-art { width: 150px; height: 150px; }
  .p-title { font-size: 12px; }
  .tab { font-size: 9px; }
}

@media (min-width: 420px) {
  .hero-slide { min-height: 220px; padding-left: 20px; padding-right: 170px; }
  .hero-title { font-size: 23px; }
  .hero-art { width: 205px; height: 205px; }
  .cat-thumb { width: 82px; height: 82px; }
  .cart-item { grid-template-columns: 104px minmax(0, 1fr); }
}

/* ==========================================================================
   MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
