:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --bg-muted: #eef0f3;
  --ink: #1b1e23;
  --ink-2: #2c3138;
  --muted: #5c6570;
  --line: #e3e6eb;
  --line-strong: #cfd4db;
  --brand: #0071bc;
  --brand-dark: #005a96;
  --brand-soft: #e8f4fc;
  --sale: #d12626;
  --ok: #1f8a4c;
  --err: #c62828;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 8px rgba(27, 30, 35, 0.06);
  --shadow-hover: 0 8px 24px rgba(27, 30, 35, 0.1);
  --max: 1240px;
  --font: "Source Sans 3", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --display: "Source Sans 3", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  inset-inline-start: 12px;
  top: 12px;
  z-index: 99;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.muted { color: var(--muted); }

/* Top utility bar */
.topbar {
  background: #12161c;
  color: #fff;
  font-size: .82rem;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 38px; gap: 1rem;
}
.topbar-trust {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.topbar-trust span {
  display: inline-flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.92); white-space: normal;
  max-width: 36ch;
}
.topbar-trust svg { width: 15px; height: 15px; opacity: .9; flex: 0 0 auto; }
.topbar-links {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
}
.topbar-links a {
  color: rgba(255,255,255,.92);
  padding: 0 .7rem;
  border-left: 1px solid rgba(255,255,255,.18);
  display: inline-flex; align-items: center; gap: .35rem;
  white-space: nowrap;
}
.topbar-links a:first-child { border-left: 0; padding-left: 0; }
.topbar-links a:hover { color: #fff; text-decoration: underline; }
.topbar-links svg { width: 14px; height: 14px; }
.locale-switchers {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-inline-end: .35rem;
}
.locale-switchers--header {
  margin-inline-end: .15rem;
}
.locale-menu {
  position: relative;
}
.locale-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  color: #e8eef7;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(255,255,255,.06);
}
.locale-menu summary::-webkit-details-marker { display: none; }
.locale-menu summary span {
  opacity: .75;
  font-size: .72rem;
}
.locale-switchers--header .locale-menu summary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
  min-width: 42px;
  justify-content: center;
  padding: .45rem .6rem;
  font-size: .82rem;
}
.locale-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 168px;
  max-width: min(240px, calc(100vw - 1.5rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
  padding: .35rem;
  z-index: 90;
  display: grid;
  gap: .15rem;
}
.locale-dropdown a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  color: var(--ink) !important;
  font-weight: 700;
  font-size: .86rem;
  border: 0 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.locale-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .12);
}
.locale-menu summary .locale-flag {
  width: 18px;
  height: 12px;
}
.locale-dropdown a:hover,
.locale-dropdown a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark) !important;
}
html[dir="rtl"] .locale-dropdown {
  text-align: right;
}
/* Each header menu anchors to its own trigger; center on small screens so
   neither language nor currency panel drifts under the sibling button. */
@media (max-width: 980px) {
  .locale-switchers--header {
    position: relative;
    z-index: 95;
  }
  .locale-switchers--header .locale-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-width: 112px;
  }
}
html[dir="rtl"] body { text-align: right; }

/* RTL layout fixes — keep key visual compositions, mirror interactive edges */
html[dir="rtl"] .showcase-grid {
  direction: ltr;
}
html[dir="rtl"] .showcase-grid .hero-slide-content,
html[dir="rtl"] .showcase-grid .side-card-copy,
html[dir="rtl"] .showcase-grid .hero-features,
html[dir="rtl"] .showcase-grid .hero-cta-btn {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .hero-slide-media {
  background:
    linear-gradient(255deg, rgba(244,245,247,.96) 0%, rgba(244,245,247,.82) 28%, rgba(244,245,247,.28) 52%, rgba(244,245,247,0) 68%),
    var(--slide-image) left center / cover no-repeat;
}
html[dir="rtl"] .side-card img {
  right: auto;
  left: -4%;
  border-radius: 0 14px 0 18px;
}
html[dir="rtl"] .side-card-arrow {
  right: auto;
  left: 12px;
  transform: scaleX(-1);
}
html[dir="rtl"] .hero-cta-btn span[aria-hidden],
html[dir="rtl"] .text-link {
  display: inline-block;
}
html[dir="rtl"] .header-search .search-icon { padding-left: 0; padding-right: .95rem; }
html[dir="rtl"] .header-search > button[type="submit"] {
  border-radius: 999px 0 0 999px;
}
html[dir="rtl"] .header-search.is-open > button[type="submit"] {
  border-radius: 16px 0 0 16px;
}
html[dir="rtl"] .cart-drawer {
  right: auto;
  left: 0;
  transform: translateX(-105%);
  box-shadow: 12px 0 40px rgba(0,0,0,.18);
}
html[dir="rtl"] .cart-drawer.is-open { transform: translateX(0); }
html[dir="rtl"] .pd-desc ul,
html[dir="rtl"] .auth-side ul {
  padding-left: 0;
  padding-right: 1.1rem;
}
html[dir="rtl"] .cat-dropdown { left: auto; right: 0; }
html[dir="rtl"] .feat-track {
  /* JS uses negative translateX; keep LTR measuring context */
  direction: ltr;
}
html[dir="rtl"] .feat-slide { direction: rtl; text-align: right; }


.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(18, 22, 28, .04);
}
.header-main {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 84px;
  padding-block: .65rem;
}
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand-text small {
  display: block;
  max-width: 28ch;
  white-space: normal;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
}
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-weight: 800; letter-spacing: .02em; font-size: 1rem;
  border-radius: 8px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.015em; color: var(--ink);
}

.header-search {
  position: relative;
  display: flex; align-items: center; width: min(640px, 100%); margin-inline: auto;
  border: 1.5px solid #d7dde5; border-radius: 999px;
  background: #fff; transition: border-color .2s, box-shadow .2s;
  min-height: 48px;
  overflow: hidden;
}
.header-search:focus-within,
.header-search.is-open {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 113, 188, .12);
  border-radius: 18px;
  z-index: 80;
}
.header-search.is-open {
  overflow: visible;
}
.header-search .search-icon {
  display: grid; place-items: center; padding-left: .95rem; color: #8b93a0;
  flex: 0 0 auto;
}
.header-search .search-icon svg { width: 18px; height: 18px; }
.header-search input {
  flex: 1; border: 0; background: transparent; padding: .75rem .7rem; outline: none; color: var(--ink);
  min-width: 0;
}
.header-search input::placeholder { color: #8a93a0; }
.header-search > button[type="submit"] {
  border: 0; background: var(--brand); color: #fff;
  padding: 0 1.35rem; align-self: stretch; font-weight: 700; cursor: pointer;
  min-width: 78px; border-radius: 0 999px 999px 0;
  flex: 0 0 auto;
}
.header-search.is-open > button[type="submit"] { border-radius: 0 16px 16px 0; }
.header-search > button[type="submit"]:hover { background: var(--brand-dark); }

.live-search {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid #e5e9ef; border-radius: 16px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, .16);
  padding: .55rem;
  max-height: min(70vh, 520px); overflow: auto;
  z-index: 90;
}
.live-search[hidden] { display: none !important; }
.live-search-suggest {
  display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .35rem;
  padding: .2rem .15rem .55rem;
  border-bottom: 1px solid #eef2f6;
  margin-bottom: .55rem;
}
.live-search-suggest a {
  display: block; padding: .55rem .65rem; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .92rem;
}
.live-search-suggest a:hover,
.live-search-suggest a.is-active {
  background: #f3f5f8; color: var(--brand);
}
.live-search-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .15rem .35rem .55rem;
}
.live-search-head strong {
  font-size: .95rem; font-weight: 800; color: var(--ink);
}
.live-search-head a {
  font-size: .84rem; font-weight: 700; color: var(--brand); padding: 0;
}
.live-search-head a:hover { text-decoration: underline; background: none; }
.live-search-products {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
}
.live-search-item {
  display: grid; grid-template-columns: 56px 1fr; gap: .65rem; align-items: center;
  padding: .55rem; border-radius: 12px; background: #f6f7f9;
  color: var(--ink);
}
.live-search-item:hover,
.live-search-item.is-active {
  background: #eef5fb; color: var(--ink);
}
.live-search-item img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #fff;
}
.live-search-item strong {
  display: block; font-size: .88rem; font-weight: 800; line-height: 1.25;
  margin-bottom: .15rem;
}
.live-search-item span {
  display: block; color: #64748b; font-size: .78rem; line-height: 1.3;
}
.live-search-item em {
  display: block; margin-top: .2rem; font-style: normal;
  font-weight: 800; font-size: .84rem; color: var(--ink);
}
.live-search-empty {
  padding: 1.1rem .85rem; text-align: center; color: #64748b; font-weight: 600;
}
@media (max-width: 720px) {
  .live-search-suggest,
  .live-search-products { grid-template-columns: 1fr; }
}

.header-tools {
  display: flex; align-items: center; gap: .15rem;
}
.tool-link {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .65rem; border-radius: 10px;
  color: var(--ink); transition: background .15s;
}
.tool-link:hover { background: var(--bg-soft); }
.tool-account {
  background: #f0f2f5;
  border-radius: 999px;
  padding: .42rem .85rem .42rem .55rem;
}
.tool-account:hover { background: #e7ebf0; }
.tool-account .tool-icon { color: #111; }
.tool-icon {
  position: relative; width: 28px; height: 28px;
  display: grid; place-items: center; color: var(--ink-2);
}
.tool-icon svg { width: 24px; height: 24px; }
.tool-badge {
  position: absolute; top: -7px; right: -9px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
  border: 2px solid #fff;
}
.tool-text { display: flex; flex-direction: column; line-height: 1.15; }
.tool-text strong { font-size: .9rem; font-weight: 800; }
.tool-text small { color: var(--muted); font-size: .75rem; font-weight: 600; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; padding: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); margin: 5px 0;
}

.nav-bar {
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-bar-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 54px;
}
.cat-menu { position: relative; flex: 0 0 auto; }
.cat-menu::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 100%;
  height: 14px;
}
.cat-menu-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--brand); color: #fff; border: 0;
  border-radius: 999px; padding: .7rem 1.05rem;
  font-weight: 700; cursor: pointer; white-space: nowrap;
}
.cat-menu-btn:hover { background: var(--brand-dark); }
.cat-menu-btn svg { width: 16px; height: 16px; }
.cat-menu-btn .chev { width: 14px; height: 14px; opacity: .9; transition: transform .2s; }
.cat-menu.is-open .cat-menu-btn .chev { transform: rotate(180deg); }
.cat-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 70;
  min-width: 230px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-hover); padding: .45rem;
  display: grid;
}
.cat-dropdown[hidden] { display: none !important; }
.cat-dropdown a {
  padding: .7rem .8rem; border-radius: 8px;
  color: var(--ink); font-weight: 600;
}
.cat-dropdown a:hover { background: var(--brand-soft); color: var(--brand); }

/* Mega menu */
.mega-menu {
  display: block;
  width: min(1080px, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid #e8edf3;
  border-radius: 22px;
  background: #f7f4ef;
  box-shadow: 0 28px 60px rgba(15, 23, 42, .16);
  overflow: hidden;
}
.mega-menu-inner {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  min-height: 420px;
}
.mega-side {
  background: #f3efe8;
  padding: 1.15rem .85rem 1.15rem 1rem;
  border-right: 1px solid rgba(15, 23, 42, .06);
}
.mega-side-label {
  margin: 0 0 .85rem .35rem;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: #8a6a4a;
}
.mega-cat {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr 14px;
  align-items: center;
  gap: .7rem;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: .45rem .55rem .45rem .4rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  margin-bottom: .25rem;
}
.mega-cat img {
  width: 42px; height: 42px; border-radius: 999px;
  object-fit: cover; background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .06);
}
.mega-cat svg { width: 14px; height: 14px; color: #a8b0bc; }
.mega-cat:hover { background: rgba(255, 255, 255, .55); }
.mega-cat.is-active {
  background: #f0e2d8;
  color: #7a3b2e;
}
.mega-cat.is-active svg { color: #7a3b2e; }
.mega-cat-all { margin-top: .35rem; }
.mega-center {
  background: #fbfaf7;
  padding: 1.2rem 1.2rem 1.35rem;
}
.mega-panel[hidden] { display: none !important; }
.mega-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.mega-panel-head h3 {
  margin: 0 0 .25rem; font-size: 1.2rem; font-weight: 800; color: var(--ink);
}
.mega-panel-head p {
  margin: 0; color: #8b93a0; font-size: .84rem; font-weight: 600;
}
.mega-panel-head > a {
  color: #b42318; font-weight: 800; font-size: .9rem;
  padding: 0; white-space: nowrap;
}
.mega-panel-head > a:hover { text-decoration: underline; background: none; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
.mega-tile {
  display: grid; gap: .55rem; justify-items: center;
  text-align: center; padding: 0; background: transparent;
}
.mega-tile:hover { background: transparent; color: inherit; }
.mega-tile-media {
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 1;
  background: #fff; border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .05);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.mega-tile:hover .mega-tile-media {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}
.mega-tile-media img {
  width: 78%; height: 78%; object-fit: contain;
}
.mega-tile-label {
  font-size: .88rem; font-weight: 700; color: var(--ink);
  background: #fff; border-radius: 999px;
  padding: .45rem .7rem; min-width: 70%;
  border: 1px solid rgba(15, 23, 42, .05);
}
.mega-promo {
  padding: 1rem;
  background: #f3efe8;
  border-left: 1px solid rgba(15, 23, 42, .06);
}
.mega-promo-card {
  height: 100%;
  display: grid;
  grid-template-rows: 1.15fr auto;
  border-radius: 22px;
  overflow: hidden;
  background: #efe8de;
}
.mega-promo-media {
  position: relative;
  min-height: 210px;
  background:
    radial-gradient(ellipse at 50% 20%, #fff 0 42%, transparent 43%),
    linear-gradient(180deg, #f7f1e8, #ebe2d5);
  display: grid; place-items: end center;
  padding: 1rem 1rem 0;
}
.mega-promo-media img {
  width: 100%; height: 100%; max-height: 240px;
  object-fit: cover; border-radius: 18px 18px 0 0;
}
.mega-promo-body {
  padding: 1rem 1.05rem 1.15rem;
  display: grid; gap: .45rem; align-content: start;
}
.mega-promo-eyebrow {
  color: #b42318; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.mega-promo-body strong {
  font-size: 1.05rem; line-height: 1.25; color: var(--ink);
}
.mega-promo-body p {
  margin: 0; color: #6b7280; font-size: .84rem; line-height: 1.4;
}
.mega-promo-btn {
  margin-top: .35rem;
  border-radius: 999px;
  background: #c62828;
  justify-self: start;
  padding: .7rem 1rem;
  font-size: .88rem;
}
.mega-promo-btn:hover { background: #a61f1f; }
.mega-menu-backdrop {
  position: fixed; inset: 0; z-index: 65;
  background: transparent;
  pointer-events: none;
}
.mega-menu-backdrop[hidden] { display: none !important; }

.main-nav {
  display: flex; align-items: center; gap: .15rem;
  overflow-x: auto; scrollbar-width: none; flex: 1;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  display: inline-flex; align-items: center; gap: .35rem;
  white-space: nowrap; padding: .65rem .7rem;
  color: var(--ink); font-weight: 700; font-size: .95rem;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.nav-pill {
  background: var(--sale); color: #fff;
  font-size: .65rem; font-weight: 800;
  padding: .15rem .4rem; border-radius: 999px; line-height: 1.2;
}
.nav-sale { color: var(--sale) !important; }
.nav-campaign { color: var(--brand) !important; }
.nav-mobile-only { display: none !important; }

/* Home showcase slider — Decathlon-like */
.home-showcase {
  padding: 1.15rem 0 0;
  background: var(--bg-soft);
}
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .78fr);
  gap: 1rem;
  align-items: stretch;
}
.hero-slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #e9edf1;
  min-height: 520px;
  box-shadow: var(--shadow);
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(244,245,247,.96) 0%, rgba(244,245,247,.82) 28%, rgba(244,245,247,.28) 52%, rgba(244,245,247,0) 68%),
    var(--slide-image) right center / cover no-repeat;
  transform: scale(1.02);
  transition: transform 6.5s ease;
}
.hero-slide.is-active .hero-slide-media { transform: scale(1); }
.hero-slide-content {
  position: relative; z-index: 2;
  max-width: 430px;
  padding: 2.4rem 2.2rem 5rem;
}
.hero-kicker {
  margin: 0 0 .8rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-title {
  margin: 0;
  color: #162033;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.hero-title span { color: var(--brand); display: inline; }
.hero-text {
  margin: .95rem 0 1.2rem;
  color: #4b5563;
  font-size: 1.02rem;
  max-width: 34ch;
}
.hero-features {
  list-style: none; margin: 0 0 1.35rem; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem;
}
.hero-features li {
  display: flex; align-items: center; gap: .55rem;
  color: #334155; font-size: .86rem; font-weight: 700;
}
.hf-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  color: var(--brand); flex: 0 0 auto;
}
.hf-icon svg { width: 18px; height: 18px; }
.hero-cta-btn { box-shadow: 0 10px 24px rgba(0,113,188,.28); }
.hero-script {
  position: absolute; z-index: 2;
  margin: 0;
  font-family: "Caveat", cursive;
  color: rgba(22, 32, 51, .55);
  pointer-events: none;
}
.hero-script-top {
  top: 1.5rem; right: 8%;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  transform: rotate(-6deg);
}
.hero-script-bottom {
  left: 2.2rem; bottom: 1.35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  color: rgba(22, 32, 51, .45);
}
.hero-nav {
  position: absolute; top: 50%; z-index: 3;
  transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .15s, transform .15s;
}
.hero-nav:hover { background: #fff; transform: translateY(-50%) scale(1.04); }
.hero-nav svg { width: 20px; height: 20px; }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots {
  position: absolute; left: 50%; bottom: 16px; z-index: 3;
  transform: translateX(-50%);
  display: flex; gap: .45rem;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 999px;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.hero-dots button.is-active {
  background: var(--brand);
  width: 22px;
}

.hero-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: .85rem;
  min-height: 520px;
}
.side-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: end;
  overflow: hidden;
  border-radius: 18px;
  min-height: 0;
  padding: 1rem 1rem 1rem 1.1rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.side-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.side-card-dark { background: #1a2230; color: #fff; }
.side-card-light { background: #e8ebf0; color: #162033; }
.side-card-copy { position: relative; z-index: 2; align-self: center; }
.side-card h2 {
  margin: 0 0 .25rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.side-card p {
  margin: 0;
  font-size: .9rem;
  opacity: .82;
  max-width: 14ch;
  line-height: 1.35;
}
.side-card img {
  position: absolute;
  right: -4%; bottom: -8%;
  width: 58%; height: 92%;
  object-fit: cover;
  border-radius: 14px 0 18px 0;
  opacity: .95;
}
.side-card-arrow {
  position: absolute; z-index: 2;
  right: 12px; bottom: 12px;
  width: 34px; height: 34px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.side-card-light .side-card-arrow { background: #fff; }

.trust-bar {
  margin-top: 1rem;
  background: #fff;
  border-block: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}
.trust-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .35rem .25rem;
}
.trust-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--brand);
  border: 1px solid var(--line); flex: 0 0 auto;
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-item strong { display: block; font-size: .92rem; color: var(--ink); }
.trust-item span { color: var(--muted); font-size: .82rem; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.hero-slide.is-active .hero-slide-content > * { animation: riseIn .5s ease both; }
.hero-slide.is-active .hero-text { animation-delay: .05s; }
.hero-slide.is-active .hero-features { animation-delay: .1s; }
.hero-slide.is-active .hero-cta-btn { animation-delay: .15s; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: .8rem 1.35rem; font-weight: 700; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { background: #fff; color: var(--ink); }
.section .btn-ghost,
.page-hero .btn-ghost,
.cart-layout .btn-ghost,
.empty .btn-ghost {
  background: #fff; color: var(--ink); border-color: var(--line-strong);
}
.section .btn-ghost:hover,
.page-hero .btn-ghost:hover {
  border-color: var(--brand); color: var(--brand);
}
.btn-block { width: 100%; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.02rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.section { padding: 3.25rem 0; }
.section-alt { background: var(--bg-soft); }
.featured-section { background: #fff; padding: 2.4rem 0; }
.featured-brand-label {
  margin: 0 0 .25rem;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.featured-head { margin-bottom: 1.1rem; }
.featured-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem) !important; }
.featured-head p { font-size: .92rem; }

/* Featured product grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.feat-grid .feat-card { height: 100%; }

/* Featured product carousel — kept for legacy hooks */
.feat-slider {
  position: relative;
  padding: 0 2rem;
}
.feat-viewport { overflow: hidden; }
.feat-track {
  display: flex;
  gap: .75rem;
  transition: transform .35s ease;
  will-change: transform;
}
.feat-slide {
  flex: 0 0 calc((100% - 3rem) / 5);
  min-width: 0;
}
.feat-nav {
  position: absolute;
  top: 38%;
  z-index: 3;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.feat-nav:hover { border-color: var(--brand); color: var(--brand); }
.feat-nav svg { width: 15px; height: 15px; }
.feat-prev { left: 0; }
.feat-next { right: 0; }
.feat-nav:disabled { opacity: .35; cursor: default; }

.feat-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.feat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.feat-media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background: #eceff3;
  overflow: hidden;
}
.feat-media-link { display: block; height: 100%; color: inherit; }
.feat-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.feat-card:hover .feat-media img { transform: scale(1.03); }
.feat-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .65rem .7rem .55rem;
  background: linear-gradient(180deg, transparent, rgba(10,18,30,.7));
  color: #fff;
}
.feat-overlay strong {
  display: block;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.1;
}
.feat-overlay span {
  display: block;
  margin-top: .12rem;
  font-size: .68rem;
  opacity: .88;
}
.feat-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; gap: .3rem; z-index: 2;
}
.feat-badge {
  display: inline-flex; align-items: center;
  padding: .18rem .42rem;
  border-radius: 5px;
  font-size: .65rem; font-weight: 800; color: #fff;
}
.feat-badge-sale { background: #e11d2e; }
.feat-badge-new { background: var(--brand); }
.feat-wish {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 999px;
  border: 0; background: rgba(255,255,255,.95);
  color: #64748b; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow);
}
.feat-wish svg { width: 15px; height: 15px; }
.feat-wish.is-active { color: #e11d2e; }
.feat-wish.is-active svg { fill: currentColor; }
.feat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: 0;
}
.feat-chips span {
  background: #f1f4f8;
  color: #1f2937;
  border: 1px solid #e3e8ef;
  font-size: .64rem;
  font-weight: 700;
  padding: .18rem .48rem;
  border-radius: 999px;
  white-space: nowrap;
}
.feat-body {
  padding: .65rem .7rem .75rem;
  display: flex; flex-direction: column; gap: .28rem;
  flex: 1;
}
.feat-body h3 {
  margin: 0;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.feat-body h3 a:hover { color: var(--brand); }
.feat-brand {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}
.shop-card-swatches { display: flex; flex-wrap: wrap; gap: .28rem; }
.shop-card-swatches span,
.color-swatch {
  width: 16px; height: 16px; border-radius: 999px; display: inline-block;
  background: var(--swatch, #999); border: 1px solid rgba(15,23,42,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  cursor: pointer; padding: 0; flex: 0 0 auto;
}
.color-swatch.is-active {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.feat-swatches { display: flex; flex-wrap: wrap; gap: .28rem; align-items: center; }
.feat-swatch, .feat-swatches .color-swatch {
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--swatch, #999);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.feat-rating {
  display: flex; align-items: center; gap: .25rem;
  font-size: .76rem; font-weight: 700; color: var(--ink);
}
.feat-rating .star { color: #f5b301; font-size: .8rem; }
.feat-rating small { color: var(--muted); font-weight: 600; }
.feat-price-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .35rem; flex-wrap: wrap; margin-top: .05rem;
}
.feat-price { display: flex; align-items: baseline; gap: .3rem; }
.feat-price strong { font-size: .95rem; font-weight: 800; color: var(--ink); }
.feat-price s { color: var(--muted); font-size: .75rem; }
.feat-ship {
  display: inline-flex; align-items: center; gap: .22rem;
  background: #e8f7ee; color: #178a45;
  font-size: .62rem; font-weight: 700;
  padding: .18rem .4rem; border-radius: 999px;
}
.feat-ship svg { width: 12px; height: 12px; }
.feat-cart-form { margin-top: auto; padding-top: .2rem; }
.feat-cart-btn {
  width: 100%;
  border-radius: 8px;
  gap: .35rem;
  padding: .55rem .7rem;
  font-size: .86rem;
}
.feat-cart-btn svg { width: 15px; height: 15px; }
.section-head { margin-bottom: 1.5rem; max-width: 42rem; }
.section-head h2,
.page-hero h1,
.product-info h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.15;
}
.section-head p, .page-hero p { color: var(--muted); margin: 0; }
.row-between { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.text-link { color: var(--brand); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

.cat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.cat-card {
  display: flex; justify-content: space-between; align-items: end;
  min-height: 150px; padding: 1.25rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(0,113,188,.12), rgba(0,113,188,.02)),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.cat-card span {
  font-size: 1.35rem; font-weight: 800; color: var(--ink);
}
.cat-card small { color: var(--brand); font-weight: 700; }

.home-cats-section { padding-top: .5rem; }
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.home-cat-card {
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 0;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.home-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 113, 188, .35);
}
.home-cat-media {
  display: block;
  aspect-ratio: 1 / .72;
  background: #eef1f5;
  overflow: hidden;
}
.home-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-cat-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem .85rem;
}
.home-cat-copy strong {
  font-size: .98rem;
  font-weight: 800;
  color: var(--ink);
}
.home-cat-copy small {
  color: var(--brand);
  font-weight: 700;
  white-space: nowrap;
}
.home-products-section .product-grid {
  margin-top: .25rem;
}

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem;
}
.product-grid.is-list {
  grid-template-columns: 1fr;
}
.product-grid.is-list .shop-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
}
.product-grid.is-list .shop-card-media { aspect-ratio: auto; min-height: 180px; }
.product-grid.is-list .shop-card-form { max-width: 220px; }

.shop-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.shop-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.shop-card-media {
  position: relative;
  aspect-ratio: 1 / 1.08;
  background: #eef1f5;
  overflow: hidden;
}
.shop-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.shop-card:hover .shop-card-media img { transform: scale(1.03); }
.shop-card-badges {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: flex; flex-direction: column; gap: .3rem;
}
.shop-badge {
  display: inline-flex; width: fit-content;
  padding: .2rem .45rem; border-radius: 6px;
  font-size: .65rem; font-weight: 800; color: #fff;
}
.shop-badge.sale { background: #e11d2e; }
.shop-badge.hot { background: #16a34a; }
.shop-badge.feat, .shop-badge.new { background: var(--brand); }
.shop-wish {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 999px;
  border: 0; background: rgba(255,255,255,.96);
  color: #64748b; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow);
}
.shop-wish svg { width: 15px; height: 15px; }
.shop-wish.is-active { color: #e11d2e; }
.shop-wish.is-active svg { fill: currentColor; }
.shop-card-body {
  padding: .75rem .8rem .85rem;
  display: flex; flex-direction: column; gap: .28rem; flex: 1;
}
.shop-card-body h3 {
  margin: 0; font-size: .92rem; font-weight: 800; line-height: 1.25; color: var(--ink);
}
.shop-card-body h3 a:hover { color: var(--brand); }
.shop-card-brand { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 600; }
.shop-card-rating {
  display: flex; align-items: center; gap: .25rem;
  font-size: .78rem; font-weight: 700;
}
.shop-card-rating .star { color: #f5b301; }
.shop-card-rating small { color: var(--muted); }
.shop-card-price { display: flex; align-items: baseline; gap: .35rem; }
.shop-card-price strong { font-size: 1rem; font-weight: 800; }
.shop-card-price s { color: var(--muted); font-size: .8rem; }
.shop-card-form { margin-top: auto; padding-top: .35rem; }
.shop-card-btn {
  width: 100%; border-radius: 8px; padding: .58rem .7rem; font-size: .86rem; gap: .35rem;
}
.shop-card-btn svg { width: 15px; height: 15px; }

.price-row { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-row strong { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.price-row s { color: var(--muted); font-size: .9rem; }
.price-row.big strong { font-size: 1.55rem; color: var(--ink); }

.pros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pros article {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.pros h3 {
  margin: 0 0 .4rem; font-size: 1.05rem; font-weight: 800; color: var(--ink);
}
.pros p { margin: 0; color: var(--muted); }

.page-hero {
  padding: 2rem 0 1.25rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

/* Professional catalog */
.catalog-page { padding: 1.25rem 0 3rem; background: #f7f8fa; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  color: var(--muted); font-size: .86rem; margin-bottom: .85rem;
}
.breadcrumbs a:hover { color: var(--brand); }
.catalog-intro { margin-bottom: 1rem; }
.catalog-intro h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800; letter-spacing: -.02em;
}
.catalog-intro p { margin: 0; color: var(--muted); }

.catalog-banner {
  display: grid;
  grid-template-columns: 1.1fr .9fr .85fr;
  gap: 1rem; align-items: center;
  background: linear-gradient(105deg, #eef3f8, #f7f9fc 55%, #eaf2fa);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  min-height: 170px;
}
.catalog-banner--socks {
  grid-template-columns: 1.05fr 1.15fr .9fr;
  gap: 1.25rem;
  background: linear-gradient(110deg, #f5f9ff 0%, #ffffff 48%, #eef5ff 100%);
  border-color: #e4ebf5;
  padding: 1.35rem 1.5rem;
  min-height: 220px;
  box-shadow: 0 10px 28px rgba(15, 35, 70, .06);
}
.catalog-banner-eyebrow {
  margin: 0 0 .55rem !important;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #94a3b8 !important;
}
.catalog-banner-copy h2 {
  margin: 0 0 .35rem;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 800; line-height: 1.15; color: #162033;
}
.catalog-banner--socks .catalog-banner-copy h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  color: #0d1b2a;
  margin-bottom: .45rem;
}
.catalog-banner--socks .catalog-banner-copy h2 span {
  color: #0056d2;
  display: block;
}
.catalog-banner-copy p { margin: 0 0 .9rem; color: #5b6573; }
.catalog-banner--socks .catalog-banner-copy > p:not(.catalog-banner-eyebrow) {
  max-width: 28ch;
  line-height: 1.45;
  color: #667085;
  margin-bottom: 1.05rem;
}
.catalog-banner-btn {
  background: #2c3340; color: #fff; border-radius: 999px;
  padding: .65rem 1.05rem; font-size: .9rem;
}
.catalog-banner--socks .catalog-banner-btn {
  background: #0d1b2a;
  padding: .72rem 1.2rem;
  font-weight: 600;
}
.catalog-banner-btn:hover { background: #1b212b; }
.catalog-banner--socks .catalog-banner-btn:hover { background: #071018; }
.catalog-banner-visual {
  display: grid; place-items: end center; height: 150px;
}
.catalog-banner-visual img {
  height: 160px; width: auto; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
.catalog-banner-visual--socks {
  position: relative;
  height: 190px;
  place-items: center;
}
.catalog-banner-visual--socks img {
  height: 195px;
  width: 100%;
  max-width: 420px;
  object-fit: contain;
  filter: none;
}
.catalog-banner-script {
  position: absolute;
  left: 48%;
  top: 28%;
  transform: translateX(-10%) rotate(-8deg);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: .95rem;
  color: #7b8798;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.catalog-banner-points {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .55rem;
}
.catalog-banner-points li {
  display: flex; align-items: center; gap: .55rem;
  color: #334155; font-size: .86rem; font-weight: 700;
}
.catalog-banner-points--socks {
  gap: .75rem;
}
.catalog-banner-points--socks li {
  align-items: flex-start;
  font-weight: 700;
  color: #0d1b2a;
}
.catalog-banner-points--socks li span:last-child {
  display: grid;
  gap: .12rem;
}
.catalog-banner-points--socks strong {
  font-size: .9rem;
  font-weight: 800;
  color: #0d1b2a;
}
.catalog-banner-points--socks small {
  font-size: .78rem;
  font-weight: 500;
  color: #667085;
}
.cb-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid #dbe4ef; color: var(--brand);
  flex-shrink: 0;
}
.catalog-banner--socks .cb-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  border-color: #e2e8f0;
  box-shadow: 0 4px 10px rgba(15, 35, 70, .05);
  color: #0d1b2a;
}
.cb-icon svg { width: 15px; height: 15px; }
.catalog-banner--socks .cb-icon svg { width: 16px; height: 16px; }

.catalog-banner--boxer {
  grid-template-columns: 1fr 1.25fr .85fr;
  gap: 1.2rem;
  align-items: center;
  background: linear-gradient(110deg, #f7faff 0%, #ffffff 45%, #eef5ff 100%);
  border-color: #e4ebf5;
  padding: 1.4rem 1.5rem;
  min-height: 240px;
  box-shadow: 0 12px 30px rgba(15, 35, 70, .06);
}
.catalog-banner--boxer .catalog-banner-copy h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  color: #0d1b2a;
  margin-bottom: .45rem;
}
.catalog-banner--boxer .catalog-banner-copy h2 span {
  color: #1d6ef5;
  display: block;
}
.catalog-banner--boxer .catalog-banner-copy > p:not(.catalog-banner-eyebrow) {
  max-width: 30ch;
  line-height: 1.45;
  color: #667085;
  margin-bottom: 1.05rem;
}
.catalog-banner--boxer .catalog-banner-btn {
  background: #0d1b2a;
  padding: .72rem 1.2rem;
  font-weight: 600;
}
.catalog-banner--boxer .catalog-banner-btn:hover { background: #071018; }
.catalog-banner-social {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: .95rem;
  color: #667085;
  font-size: .82rem;
}
.catalog-banner-social strong { color: #0d1b2a; font-weight: 800; }
.catalog-banner-avatars {
  display: flex;
  align-items: center;
}
.catalog-banner-avatars img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(15, 35, 70, .12);
}
.catalog-banner-avatars img:first-child { margin-left: 0; }
.catalog-banner-visual--boxer {
  position: relative;
  height: 210px;
  display: grid;
  place-items: center;
}
.catalog-banner-visual--boxer img {
  height: 215px;
  width: 100%;
  max-width: 480px;
  object-fit: contain;
  filter: none;
}
.catalog-banner-script--boxer {
  left: 42%;
  top: 52%;
  transform: translateX(-40%) rotate(-12deg);
  color: #1f2937;
  font-size: 1rem;
  font-weight: 500;
}
.catalog-banner-card {
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  padding: 1rem 1.05rem;
  box-shadow: 0 8px 22px rgba(15, 35, 70, .06);
}
.catalog-banner-points--boxer {
  gap: .85rem;
}
.catalog-banner-points--boxer li {
  align-items: flex-start;
  font-weight: 700;
  color: #0d1b2a;
}
.catalog-banner-points--boxer li span:last-child {
  display: grid;
  gap: .12rem;
}
.catalog-banner-points--boxer strong {
  font-size: .9rem;
  font-weight: 800;
  color: #0d1b2a;
}
.catalog-banner-points--boxer small {
  font-size: .78rem;
  font-weight: 500;
  color: #667085;
}
.catalog-banner--boxer .cb-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border-color: #e2e8f0;
  box-shadow: 0 4px 10px rgba(15, 35, 70, .05);
  color: #1d6ef5;
}
.catalog-banner--boxer .cb-icon svg { width: 16px; height: 16px; }

.catalog-layout {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.15rem;
  align-items: start;
}
.shop-filters {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem; background: #fff; height: fit-content;
  position: sticky; top: 170px;
}
.filters-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .85rem;
}
.filters-head strong { font-size: 1rem; }
.filters-head a { color: var(--brand); font-size: .82rem; font-weight: 700; }
.filter-block { margin-bottom: 1rem; }
.filter-label {
  display: block; margin-bottom: .45rem;
  font-size: .82rem; font-weight: 700; color: #475569;
}
.filter-search {
  display: flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 0 .7rem; background: #f8fafc;
}
.filter-search svg { width: 16px; height: 16px; color: #94a3b8; flex: 0 0 auto; }
.filter-search input {
  border: 0; background: transparent; width: 100%; padding: .7rem 0; outline: none;
}
.filter-checks { display: grid; gap: .3rem; }
.filter-check {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .5rem; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .9rem;
}
.filter-check small { color: var(--muted); font-weight: 600; }
.filter-check .box {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid #cbd5e1; display: grid; place-items: center;
  font-size: .65rem; color: #fff; background: #fff;
}
.filter-check.is-active { background: var(--brand-soft); color: var(--brand); }
.filter-check.is-active .box { background: var(--brand); border-color: var(--brand); }
.size-grid { display: flex; flex-wrap: wrap; gap: .35rem; }
.size-chip input { display: none; }
.size-chip span {
  display: inline-grid; place-items: center;
  min-width: 36px; height: 34px; padding: 0 .45rem;
  border: 1px solid #d5dde7; border-radius: 8px;
  font-size: .82rem; font-weight: 700; cursor: pointer; background: #fff;
}
.size-chip input:checked + span {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.color-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.color-chip input { display: none; }
.color-chip span {
  width: 22px; height: 22px; border-radius: 999px; display: block;
  background: var(--swatch); border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d0d7e2; cursor: pointer;
}
.color-chip input:checked + span { box-shadow: 0 0 0 2px var(--brand); }
.price-inputs {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .4rem; align-items: center;
}
.price-inputs input {
  width: 100%; border: 1px solid #d5dde7; border-radius: 8px; padding: .55rem .6rem;
}
.price-range { width: 100%; margin-top: .65rem; accent-color: var(--brand); }
.filter-clear-one {
  display: inline-block; margin-top: .4rem;
  color: var(--brand); font-size: .75rem; font-weight: 700;
}

.catalog-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: .8rem; flex-wrap: wrap;
  margin-bottom: .9rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: .7rem .9rem;
}
.catalog-toolbar p { margin: 0; color: var(--muted); font-size: .9rem; }
.catalog-toolbar strong { color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: .7rem; }
.sort-wrap {
  display: flex; align-items: center; gap: .45rem;
  color: var(--muted); font-size: .85rem; font-weight: 600;
}
.sort-wrap select {
  border: 1px solid #d5dde7; border-radius: 8px; padding: .45rem .55rem;
  background: #fff; color: var(--ink); font-weight: 600;
}
.view-toggle { display: flex; gap: .25rem; }
.view-toggle a {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid #d5dde7; color: #64748b; font-size: .95rem;
}
.view-toggle a.is-active, .view-toggle a:hover {
  background: var(--brand-soft); border-color: #bfdbfe; color: var(--brand);
}

.field input, .field textarea, .field select,
.cart-actions input, .qty-row input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: .7rem .8rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid rgba(0,113,188,.25); border-color: var(--brand);
}

.product-detail {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: start;
}
.product-gallery {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft); aspect-ratio: 1/1.15;
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-info .lead { color: var(--muted); font-size: 1.05rem; }
.specs { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .45rem; }
.specs li {
  display: flex; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding-bottom: .45rem;
}
.specs span { color: var(--muted); }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.chip-group { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip input { display: none; }
.chip span {
  display: inline-block; min-width: 44px; text-align: center;
  padding: .55rem .8rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius); cursor: pointer; font-weight: 600; background: #fff;
}
.chip input:checked + span {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.buy-form { margin: 1.2rem 0; }
.qty-row { max-width: 120px; }
.rich-text { color: var(--muted); margin-top: 1.5rem; }

/* Product detail redesign */
.pd-page { padding: 1.25rem 0 2.5rem; background: #fff; }
.pd-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  margin-bottom: 1.15rem; color: #94a3b8; font-size: .86rem; font-weight: 600;
}
.pd-breadcrumb a { color: #64748b; }
.pd-breadcrumb a:hover { color: var(--brand); }
.pd-breadcrumb strong { color: var(--ink); font-weight: 700; }
.pd-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .95fr) 230px;
  gap: 1.5rem;
  align-items: start;
}
.pd-gallery { display: grid; grid-template-columns: 72px 1fr; gap: .75rem; }
.pd-thumbs { display: grid; gap: .55rem; align-content: start; }
.pd-thumb {
  width: 72px; height: 72px; padding: 0; border-radius: 12px;
  border: 1.5px solid #e5e9ef; background: #f8fafc; overflow: hidden; cursor: pointer;
}
.pd-thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0,113,188,.15); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-stage {
  position: relative;
  border: 1px solid #e8edf3; border-radius: 18px; background: #f7f8fa;
  aspect-ratio: 1 / 1.05; overflow: hidden;
  display: grid; place-items: center;
}
.pd-main-img { width: 100%; height: 100%; object-fit: cover; }
.pd-badge-sale {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  background: #d12626; color: #fff; font-size: .78rem; font-weight: 800;
  border-radius: 8px; padding: .35rem .55rem;
}
.pd-zoom, .pd-nav {
  position: absolute; z-index: 2; border: 0; background: #fff;
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(15,23,42,.12);
}
.pd-zoom { top: .9rem; right: .9rem; color: #64748b; }
.pd-zoom svg, .pd-nav svg { width: 16px; height: 16px; }
.pd-nav-prev { left: .85rem; top: 50%; transform: translateY(-50%); }
.pd-nav-next { right: .85rem; top: 50%; transform: translateY(-50%); }
.pd-feature-row {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem;
  margin-top: .35rem;
}
.pd-feature {
  display: grid; justify-items: center; gap: .35rem; text-align: center;
  color: #475569; font-size: .78rem; font-weight: 700;
}
.pd-feature-icon {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid #e5e9ef;
  display: grid; place-items: center; color: var(--brand); background: #fff;
}
.pd-feature-icon svg { width: 20px; height: 20px; }

.pd-info-top {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: .55rem;
}
.pd-cat {
  display: inline-flex; background: var(--brand-soft); color: var(--brand);
  border-radius: 999px; padding: .28rem .65rem; font-size: .78rem; font-weight: 800;
}
.pd-actions-inline { display: flex; gap: .55rem; flex-wrap: wrap; }
.pd-text-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid #e5e9ef; background: #fff; border-radius: 999px;
  padding: .4rem .7rem; font: inherit; font-size: .8rem; font-weight: 700;
  color: #475569; cursor: pointer;
}
.pd-text-btn svg { width: 14px; height: 14px; }
.pd-text-btn:hover, .pd-text-btn.is-active { border-color: var(--brand); color: var(--brand); }
.pd-info h1 {
  margin: 0 0 .55rem; font-size: clamp(1.55rem, 2.2vw, 2rem); font-weight: 800; line-height: 1.15;
}
.pd-rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem;
  margin-bottom: .7rem; font-size: .88rem;
}
.pd-stars { color: #e2e8f0; letter-spacing: .05em; }
.pd-stars .is-on, .pd-stars .is-half { color: #f5b301; }
.pd-rating strong { font-weight: 800; }
.pd-rating span { color: #64748b; }
.pd-rating a { color: var(--brand); font-weight: 700; }
.pd-lead { margin: 0 0 1rem; color: #64748b; line-height: 1.5; }
.pd-price-block {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem;
  margin-bottom: .45rem;
}
.pd-price { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.pd-price-block s { color: #94a3b8; font-size: 1rem; }
.pd-disc {
  background: #fde8e8; color: #d12626; border-radius: 999px;
  padding: .25rem .55rem; font-size: .78rem; font-weight: 800;
}
.pd-stock {
  display: inline-flex; margin-bottom: 1.1rem;
  border-radius: 999px; padding: .3rem .65rem; font-size: .82rem; font-weight: 700;
}
.pd-stock.is-in { background: #e8f8ef; color: #178a45; }
.pd-stock.is-out { background: #fdeceb; color: var(--err); }
.pd-field { margin-bottom: 1rem; }
.pd-field-label {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: .5rem; font-size: .9rem; font-weight: 700; color: #334155;
}
.pd-field-label a { color: var(--brand); font-size: .84rem; }
.pd-swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.pd-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.pd-swatch span {
  display: block; width: 38px; height: 38px; border-radius: 10px;
  background: var(--swatch, #111); border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d7dde5; cursor: pointer;
}
.pd-swatch input:checked + span {
  box-shadow: 0 0 0 2px var(--brand);
}
.pd-sizes { display: flex; flex-wrap: wrap; gap: .4rem; }
.pd-size input { display: none; }
.pd-size span {
  min-width: 46px; height: 42px; display: grid; place-items: center;
  border: 1.5px solid #d7dde5; border-radius: 10px; background: #fff;
  font-weight: 700; cursor: pointer;
}
.pd-size input:checked + span {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.pd-qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid #d7dde5; border-radius: 12px; overflow: hidden;
}
.pd-qty button {
  width: 42px; height: 42px; border: 0; background: #f8fafc;
  font-size: 1.1rem; cursor: pointer; color: var(--ink);
}
.pd-qty input {
  width: 52px; height: 42px; border: 0; text-align: center;
  font: inherit; font-weight: 700; outline: none;
}
.pd-ship-note {
  display: flex; align-items: flex-start; gap: .55rem;
  background: #eaf8f0; color: #166534; border-radius: 12px;
  padding: .75rem .85rem; margin: .2rem 0 1rem; font-size: .88rem; line-height: 1.35;
}
.pd-ship-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .1rem; }
.pd-cta { display: grid; gap: .55rem; }
.pd-add, .pd-buy-now {
  min-height: 50px; border-radius: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
}
.pd-add svg, .pd-buy-now svg { width: 18px; height: 18px; }
.pd-buy-now {
  background: #e8f4fc; color: var(--brand); border: 0;
}
.pd-buy-now:hover { background: #d7ecfa; }

.pd-side { display: grid; gap: .85rem; }
.pd-promo {
  display: grid; grid-template-columns: 64px 1fr; gap: .7rem; align-items: center;
  padding: .75rem; border-radius: 14px; border: 1px solid #e8edf3; background: #f8fafc;
  color: var(--ink);
}
.pd-promo img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.pd-promo strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.pd-promo span { color: var(--brand); font-size: .82rem; font-weight: 700; }
.pd-trust {
  border: 1px solid #e8edf3; border-radius: 14px; background: #fff; padding: .35rem .2rem;
}
.pd-trust > div {
  display: grid; grid-template-columns: 28px 1fr; gap: .65rem; align-items: start;
  padding: .75rem .8rem; border-bottom: 1px solid #f1f5f9;
}
.pd-trust > div:last-child { border-bottom: 0; }
.pd-trust svg { width: 20px; height: 20px; color: var(--brand); margin-top: .1rem; }
.pd-trust strong { display: block; font-size: .88rem; margin-bottom: .1rem; }
.pd-trust span { color: #64748b; font-size: .78rem; line-height: 1.35; }

.pd-tabs-wrap { margin-top: 2.25rem; }
.pd-tabs {
  display: flex; flex-wrap: wrap; gap: .2rem;
  border-bottom: 1px solid #e8edf3; margin-bottom: 1.25rem;
}
.pd-tabs button {
  border: 0; background: transparent; padding: .85rem 1rem;
  font: inherit; font-weight: 700; color: #64748b; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.pd-tabs button.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.pd-tab-panel[hidden] { display: none !important; }
.pd-desc { max-width: 720px; }
.pd-desc h2 { margin: 0 0 .7rem; font-size: 1.25rem; }
.pd-desc p { color: #475569; line-height: 1.6; margin: 0 0 .9rem; }
.pd-desc ul { margin: 0; padding-left: 1.1rem; color: #475569; display: grid; gap: .4rem; }
.pd-spec-list { list-style: none; padding: 0; margin: 0; max-width: 560px; display: grid; gap: .55rem; }
.pd-spec-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid #eef2f6;
}
.pd-spec-list span { color: #64748b; font-weight: 600; }
.pd-size-table-wrap { max-width: 520px; }
.pd-size-table { width: 100%; border-collapse: collapse; margin-bottom: .75rem; }
.pd-size-table th, .pd-size-table td {
  border: 1px solid #e8edf3; padding: .7rem .8rem; text-align: left;
}
.pd-size-table th { background: #f8fafc; font-weight: 800; }
.pd-muted { color: #64748b; font-size: .9rem; }
.pd-reviews-empty {
  border: 1px dashed #d7dde5; border-radius: 14px; padding: 1.5rem; text-align: center;
}
.pd-reviews-empty strong { display: block; font-size: 1.6rem; margin-bottom: .35rem; }
.pd-lightbox {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(15,23,42,.72); display: grid; place-items: center; padding: 1.25rem;
}
.pd-lightbox[hidden] { display: none !important; }
.pd-lightbox img { max-width: min(920px, 100%); max-height: 85vh; border-radius: 12px; }
.pd-lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px;
  border: 0; border-radius: 999px; background: #fff; font-size: 1.4rem; cursor: pointer;
}

.pd-sizeguide-link {
  border: 0; background: none; color: var(--brand); font: inherit;
  font-size: .84rem; font-weight: 700; cursor: pointer; padding: 0;
}
.pd-sizeguide-link:hover { text-decoration: underline; }

.size-guide {
  position: fixed; inset: 0; z-index: 1400;
  display: grid; place-items: center; padding: 1rem;
}
.size-guide[hidden] { display: none !important; }
.size-guide-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px);
}
.size-guide-dialog {
  position: relative; z-index: 1;
  width: min(760px, 100%); max-height: min(92vh, 900px);
  overflow: auto; background: #fff; border-radius: 20px;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, .22);
}
.size-guide-x {
  position: absolute; top: .9rem; right: .95rem;
  width: 34px; height: 34px; border: 0; border-radius: 999px;
  background: #f1f5f9; color: #64748b; cursor: pointer;
  display: grid; place-items: center;
}
.size-guide-x svg { width: 15px; height: 15px; }
.size-guide-head h2 {
  margin: 0 0 .25rem; font-size: 1.45rem; font-weight: 800; color: #0f3d66;
}
.size-guide-head p { margin: 0 0 1rem; color: #64748b; font-size: .95rem; }
.size-guide-tabs {
  display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem;
}
.size-guide-tab {
  border: 0; border-radius: 999px; padding: .55rem 1rem;
  background: #eef2f6; color: #475569; font: inherit; font-weight: 700;
  font-size: .88rem; cursor: pointer;
}
.size-guide-tab.is-active {
  background: #0f4c81; color: #fff;
}
.size-guide-measure {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 1.1rem;
  margin-bottom: 1.1rem; align-items: center;
}
.size-guide-visual {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #f4f7fb; aspect-ratio: 1 / 1.05;
}
.size-guide-visual img { width: 100%; height: 100%; object-fit: cover; }
.size-guide-line {
  position: absolute; left: 12%; right: 12%; height: 0;
  border-top: 2px dashed rgba(255,255,255,.95);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.size-guide-line em {
  position: absolute; left: 0; top: -1.1rem;
  font-style: normal; font-size: .78rem; font-weight: 800; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.size-guide-line-waist { top: 34%; }
.size-guide-line-hip { top: 58%; }
.size-guide-how h3 { margin: 0 0 .85rem; font-size: 1.1rem; color: #0f3d66; }
.size-guide-step {
  display: grid; grid-template-columns: 32px 1fr; gap: .7rem;
  margin-bottom: .85rem; align-items: start;
}
.size-guide-step > span {
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  background: #0f4c81; color: #fff; font-weight: 800; font-size: .9rem;
}
.size-guide-step strong { display: block; margin-bottom: .2rem; color: var(--ink); }
.size-guide-step p { margin: 0; color: #64748b; font-size: .9rem; line-height: 1.45; }
.size-guide-panel[hidden] { display: none !important; }
.size-guide-panel table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid #dbe7f2; border-radius: 14px; overflow: hidden;
  margin-bottom: .95rem;
}
.size-guide-panel th, .size-guide-panel td {
  padding: .75rem .85rem; text-align: left; font-size: .92rem;
  border-bottom: 1px solid #e8eef5;
}
.size-guide-panel th {
  background: #e8f2fb; color: #0f3d66; font-weight: 800;
}
.size-guide-panel tr:last-child td { border-bottom: 0; }
.size-guide-panel tbody tr:nth-child(even) td { background: #f8fafc; }
.size-guide-panel td:first-child { font-weight: 800; color: #0f3d66; }
.size-guide-tip {
  display: flex; gap: .65rem; align-items: flex-start;
  background: #eaf4fc; border-radius: 12px; padding: .8rem .9rem;
  margin-bottom: 1rem; color: #1e4b73;
}
.size-guide-tip > span {
  width: 22px; height: 22px; border-radius: 999px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #0f4c81; color: #fff; font-size: .75rem; font-weight: 800;
}
.size-guide-tip p { margin: 0; font-size: .88rem; line-height: 1.4; font-weight: 600; }
.size-guide-trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem;
  padding-top: .25rem;
}
.size-guide-trust > div {
  display: grid; justify-items: center; text-align: center; gap: .2rem;
  color: #475569;
}
.size-guide-trust svg { width: 22px; height: 22px; color: #0f4c81; margin-bottom: .15rem; }
.size-guide-trust strong { font-size: .82rem; color: var(--ink); }
.size-guide-trust span { font-size: .72rem; color: #64748b; }
body.size-guide-open { overflow: hidden; }

@media (max-width: 720px) {
  .size-guide-measure { grid-template-columns: 1fr; }
  .size-guide-trust { grid-template-columns: 1fr 1fr; }
  .size-guide-visual { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 1100px) {
  .pd-top { grid-template-columns: 1fr 1fr; }
  .pd-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 820px) {
  .pd-top { grid-template-columns: 1fr; }
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-thumbs {
    grid-template-columns: repeat(5, 1fr);
    order: 2;
  }
  .pd-thumb { width: 100%; height: auto; aspect-ratio: 1; }
  .pd-feature-row { grid-template-columns: repeat(2, 1fr); }
  .pd-side { grid-template-columns: 1fr; }
  .pd-actions-inline { display: none; }
}

.cart-layout, .checkout-layout {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.25rem; align-items: start;
}
.cart-list { display: grid; gap: 1rem; }
.cart-item {
  display: grid; grid-template-columns: 88px 1fr auto auto; gap: 1rem; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: .85rem; background: #fff;
}
.cart-item img { width: 88px; height: 110px; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft); }
.cart-actions { display: grid; gap: .4rem; justify-items: end; }
.cart-actions input { width: 72px; }
.link-btn { background: none; border: 0; color: var(--err); cursor: pointer; font: inherit; font-weight: 600; }
.summary-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.2rem; background: #fff;
  position: sticky; top: calc(var(--header-h) + 24px);
  box-shadow: var(--shadow);
}
.summary-card h2 {
  margin: 0 0 1rem; font-size: 1.15rem; font-weight: 800; color: var(--ink);
}
.summary-row { display: flex; justify-content: space-between; gap: 1rem; margin: .55rem 0; color: var(--ink); }
.summary-row small { display: block; color: var(--muted); }
.summary-row.total {
  border-top: 1px solid var(--line); padding-top: .8rem;
  font-size: 1.15rem; font-weight: 800;
}
.hint { color: var(--brand); font-size: .9rem; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pay-option {
  display: flex; align-items: center; gap: .55rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: .8rem; margin-bottom: .55rem; background: #fff; font-weight: 600;
}

/* Modern checkout */
.checkout-page {
  background: linear-gradient(180deg, #f5f7fa 0%, #eef1f5 100%);
  padding: 1.5rem 0 2.75rem;
}
.checkout-head { margin-bottom: 1.25rem; }
.checkout-head h1 {
  margin: 0 0 .35rem; font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 800; color: var(--ink);
}
.checkout-head p { margin: 0; color: var(--muted); }
.checkout-layout { gap: 1.35rem; }
.checkout-main { display: grid; gap: 1rem; }
.checkout-card {
  background: #fff; border: 1px solid #e6ebf1; border-radius: 16px;
  padding: 1.2rem 1.25rem 1.3rem; box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.checkout-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: 1rem;
}
.checkout-card-head h2 {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0; font-size: 1.08rem; font-weight: 800; color: var(--ink);
}
.checkout-card-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.checkout-card-icon svg { width: 18px; height: 18px; }
.checkout-head-link {
  border: 0; background: none; color: var(--brand); font: inherit; font-size: .88rem;
  font-weight: 700; cursor: pointer; padding: 0; text-decoration: none;
}
.checkout-head-link:hover { text-decoration: underline; }
.checkout-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.co-field { margin-bottom: .9rem; }
.co-field label {
  display: block; margin-bottom: .4rem; color: #4b5563; font-size: .86rem; font-weight: 700;
}
.co-optional { color: #94a3b8; font-weight: 500; }
.co-input {
  position: relative; display: flex; align-items: center; gap: .55rem;
  border: 1.5px solid #dbe1e8; border-radius: 12px; background: #fff;
  padding: 0 .85rem; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
.co-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 113, 188, .12);
}
.co-input > svg { width: 18px; height: 18px; color: #94a3b8; flex: 0 0 auto; }
.co-input input,
.co-input select,
.co-input textarea {
  border: 0; outline: 0; background: transparent; width: 100%;
  font: inherit; color: var(--ink); padding: .7rem 0; min-width: 0;
}
.co-input select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .1rem center; padding-right: 1.2rem; }
.co-input input[hidden],
.co-input select[hidden] { display: none !important; }

/* Country picker with flags */
.country-picker { position: relative; }
.country-picker-btn {
  width: 100%; min-height: 52px;
  display: flex; align-items: center; gap: .75rem;
  border: 1.5px solid #dbe1e8; border-radius: 12px;
  background: #fff; padding: .55rem .9rem; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink); text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.country-picker-btn:hover { border-color: #c5ced8; }
.country-picker.is-open .country-picker-btn {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 113, 188, .12);
}
.country-flag {
  width: 28px; height: 20px; object-fit: cover;
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
  flex: 0 0 auto;
}
.country-picker-btn span { flex: 1; }
.country-chevron {
  width: 16px; height: 16px; color: #94a3b8; flex: 0 0 auto;
  transition: transform .2s;
}
.country-picker.is-open .country-chevron { transform: rotate(180deg); }
.country-picker-menu {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
  overflow: hidden;
}
.country-picker-menu[hidden] { display: none !important; }
.country-picker-search {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem .85rem; border-bottom: 1px solid #eef2f6;
}
.country-picker-search svg { width: 16px; height: 16px; color: #94a3b8; }
.country-picker-search input {
  border: 0; outline: 0; width: 100%; font: inherit; color: var(--ink);
  background: transparent;
}
.country-picker-list {
  max-height: 260px; overflow: auto; padding: .35rem;
}
.country-option {
  width: 100%; display: flex; align-items: center; gap: .7rem;
  border: 0; background: transparent; border-radius: 10px;
  padding: .65rem .7rem; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--ink); text-align: left;
}
.country-option:hover { background: #f5f8fb; }
.country-option.is-active {
  background: var(--brand-soft); color: var(--brand);
}
.country-option img {
  width: 28px; height: 20px; object-fit: cover; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); flex: 0 0 auto;
}
.country-option span { flex: 1; }
.country-check {
  width: 16px; height: 16px; opacity: 0; color: var(--brand); flex: 0 0 auto;
}
.country-option.is-active .country-check { opacity: 1; }
.co-textarea { align-items: flex-start; padding-top: .75rem; padding-bottom: .55rem; }
.co-textarea > svg { margin-top: .15rem; }
.co-textarea textarea { resize: vertical; min-height: 78px; line-height: 1.45; }
.co-count {
  position: absolute; right: .75rem; bottom: .45rem;
  font-size: .75rem; color: #94a3b8; font-weight: 600;
}
.co-input-cards { padding-right: .55rem; }
.co-card-brands { display: inline-flex; gap: .3rem; flex: 0 0 auto; }
.co-brand-pill {
  font-size: .62rem; font-weight: 800; letter-spacing: .02em;
  color: #64748b; background: #f1f5f9; border-radius: 5px; padding: .22rem .35rem;
}

.pay-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem;
  margin-bottom: 1rem;
}
.pay-tab {
  display: grid; place-items: center; text-align: center;
  min-height: 54px; padding: .55rem .4rem;
  border: 1.5px solid #dbe1e8; border-radius: 12px;
  background: #fff; cursor: pointer; font-size: .82rem; font-weight: 700; color: #475569;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.pay-tab input { position: absolute; opacity: 0; pointer-events: none; }
.pay-tab.is-active {
  border-color: var(--brand); color: var(--brand);
  background: #f3f9fd; box-shadow: 0 0 0 3px rgba(0, 113, 188, .1);
}
.pay-panel[hidden] { display: none !important; }
.pay-note {
  margin: .2rem 0 .85rem; color: #64748b; font-size: .82rem; line-height: 1.45;
}
.pay-info-box {
  border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 12px; padding: 1rem 1.05rem;
}
.pay-info-box strong { display: block; margin-bottom: .35rem; color: var(--ink); }
.pay-info-box p { margin: 0; color: #64748b; font-size: .9rem; line-height: 1.45; }
.pay-iban { margin-top: .75rem !important; color: var(--ink) !important; font-weight: 600; }
.pay-iban span { color: #64748b; font-weight: 600; display: inline-block; min-width: 3.2rem; }
.co-check {
  display: flex; align-items: flex-start; gap: .55rem;
  color: #475569; font-size: .88rem; line-height: 1.4; cursor: pointer;
}
.co-check input { margin-top: .2rem; accent-color: var(--brand); width: 16px; height: 16px; flex: 0 0 auto; }
.co-check a { color: var(--brand); font-weight: 700; }

.checkout-summary { position: sticky; top: calc(var(--header-h) + 18px); }
.checkout-summary-card {
  background: #fff; border: 1px solid #e6ebf1; border-radius: 16px;
  padding: 1.15rem 1.15rem 1.2rem; box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}
.checkout-summary-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: 1rem;
}
.checkout-summary-head h2 {
  display: inline-flex; align-items: center; gap: .45rem;
  margin: 0; font-size: 1.05rem; font-weight: 800;
}
.checkout-summary-head h2 svg { width: 18px; height: 18px; color: var(--brand); }
.checkout-summary-head > span {
  font-size: .82rem; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: .25rem .6rem;
}
.checkout-items { display: grid; gap: .85rem; margin-bottom: 1rem; }
.checkout-item {
  display: grid; grid-template-columns: 54px 1fr auto; gap: .7rem; align-items: start;
}
.checkout-item-thumb {
  width: 54px; height: 54px; border-radius: 10px; overflow: hidden; background: #f1f5f9;
}
.checkout-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-info { display: grid; gap: .1rem; min-width: 0; }
.checkout-item-info strong {
  font-size: .9rem; font-weight: 800; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.checkout-item-info span { color: #64748b; font-size: .78rem; }
.checkout-item-price { font-size: .9rem; font-weight: 800; white-space: nowrap; }
.checkout-totals {
  display: grid; gap: .4rem; padding: .85rem 0;
  border-top: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6;
}
.checkout-totals > div { display: flex; justify-content: space-between; gap: .75rem; font-size: .92rem; }
.checkout-totals .is-free { color: #16a34a; }
.checkout-coupon { margin: .9rem 0; }
.checkout-coupon label {
  display: block; margin-bottom: .4rem; font-size: .84rem; font-weight: 700; color: #4b5563;
}
.checkout-coupon-row { display: grid; grid-template-columns: 1fr auto; gap: .45rem; }
.checkout-coupon-row input {
  border: 1.5px solid #dbe1e8; border-radius: 10px; padding: .7rem .8rem; font: inherit;
}
.checkout-coupon-row .btn {
  border: 1.5px solid #dbe1e8; background: #fff; color: var(--ink);
  border-radius: 10px; font-weight: 700; padding: .7rem .95rem;
}
.checkout-coupon-row .btn:hover { border-color: var(--brand); color: var(--brand); }
.checkout-coupon-msg { margin: .4rem 0 0; font-size: .8rem; font-weight: 600; color: var(--err); }
.checkout-total-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem;
  margin: .95rem 0 1rem;
}
.checkout-total-row strong { display: block; font-size: 1rem; }
.checkout-total-row small { color: #94a3b8; font-size: .78rem; }
.checkout-total-price { font-size: 1.35rem !important; color: var(--brand); font-weight: 800; }
.checkout-trust-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
  margin-bottom: 1rem;
}
.checkout-trust-grid > div {
  display: flex; align-items: center; gap: .4rem;
  background: #f8fafc; border-radius: 10px; padding: .55rem .6rem;
  color: #475569; font-size: .75rem; font-weight: 700;
}
.checkout-trust-grid svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 auto; }
.checkout-terms { margin-bottom: .95rem; }
.checkout-submit {
  width: 100%; min-height: 52px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: 1rem; font-weight: 800;
}
.checkout-submit svg { width: 18px; height: 18px; }
.checkout-ssl {
  margin: .7rem 0 0; text-align: center; color: #94a3b8; font-size: .78rem;
}
.checkout-bottom-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 1.5rem; padding: 1.1rem 1.2rem;
  background: #fff; border: 1px solid #e6ebf1; border-radius: 14px;
}
.checkout-bottom-trust > div { display: flex; align-items: center; gap: .7rem; }
.checkout-bottom-trust svg {
  width: 28px; height: 28px; color: var(--brand); flex: 0 0 auto;
}
.checkout-bottom-trust strong { display: block; font-size: .92rem; color: var(--ink); }
.checkout-bottom-trust span { color: #64748b; font-size: .8rem; }

@media (max-width: 980px) {
  .checkout-summary { position: static; }
  .pay-tabs { grid-template-columns: 1fr 1fr; }
  .checkout-bottom-trust { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .checkout-grid-2 { grid-template-columns: 1fr; }
  .checkout-trust-grid { grid-template-columns: 1fr; }
}
.narrow { max-width: 720px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 2.5rem; text-align: center; color: var(--muted);
  display: grid; gap: 1rem; justify-items: center; background: var(--bg-soft);
}

.flash-wrap { padding-top: 1rem; }
.flash { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: .5rem; font-weight: 600; }
.flash-ok { background: #e8f6ee; color: var(--ok); border: 1px solid #b7e0c7; }
.flash-err { background: #fdeceb; color: var(--err); border: 1px solid #f0c2c2; }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  padding: 3rem 0 1.5rem;
}
.site-footer .muted { color: rgba(255,255,255,.72); }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-mark { background: var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.footer-grid h4 {
  margin: 0 0 .7rem; font-size: .95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; color: #fff;
}
.footer-grid a {
  display: block; color: rgba(255,255,255,.78); margin: .35rem 0; font-weight: 500;
}
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65); font-size: .9rem;
}

@media (max-width: 1100px) {
  .tool-text small { display: none; }
  .topbar-trust span:nth-child(3) { display: none; }
  .mega-menu-inner { grid-template-columns: 220px 1fr; }
  .mega-promo { display: none; }
}
@media (max-width: 980px) {
  .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
  }
  .header-tools {
    flex-shrink: 0;
    justify-self: end;
    max-width: 100%;
    position: relative;
    z-index: 5;
  }
  html[dir="rtl"] .header-tools {
    justify-self: start;
  }
  .brand {
    min-width: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  .brand-text {
    min-width: 0;
  }
  .brand-text strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-search {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    margin: 0;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-row, .pros, .product-detail, .cart-layout, .checkout-layout,
  .catalog-layout, .contact-grid, .footer-grid, .showcase-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem .5rem;
    padding: .85rem 0;
  }
  .trust-item { gap: .55rem; padding: .2rem 0; }
  .trust-icon { width: 36px; height: 36px; border-radius: 10px; }
  .trust-icon svg { width: 17px; height: 17px; }
  .trust-item strong { font-size: .82rem; line-height: 1.2; }
  .trust-item span { font-size: .72rem; }
  .home-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .home-cat-media { aspect-ratio: 1 / .78; }
  .home-cat-copy { padding: .6rem .65rem; }
  .home-cat-copy strong { font-size: .88rem; }
  .home-cat-copy small { font-size: .72rem; }
  .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
  .feat-slide { flex-basis: calc((100% - 1.5rem) / 3); }
  .feat-slider { padding: 0 1.75rem; }
  .hero-slider, .hero-side { min-height: 0; }
  .hero-slider { min-height: 460px; }
  .hero-side {
    grid-template-rows: none;
    grid-template-columns: 1fr;
  }
  .side-card { min-height: 140px; }
  .shop-filters { position: static; }
  .catalog-banner,
  .catalog-banner--socks,
  .catalog-banner--boxer { grid-template-columns: 1fr; }
  .catalog-banner-visual { display: none; }
  .catalog-banner-visual--socks,
  .catalog-banner-visual--boxer { display: grid; height: 160px; }
  .catalog-banner-visual--socks img,
  .catalog-banner-visual--boxer img { height: 150px; }
  .catalog-banner-script { font-size: .8rem; top: 22%; }
  .catalog-banner-script--boxer { top: 48%; font-size: .85rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid.is-list { grid-template-columns: 1fr; }
  .product-grid.is-list .shop-card { grid-template-columns: 120px 1fr; }
  .nav-toggle { display: block; }
  .nav-bar-inner { position: relative; flex-wrap: wrap; min-height: 0; padding: .55rem 0; }
  .cat-menu { width: 100%; }
  .cat-menu-btn { width: 100%; justify-content: center; }
  .mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    max-height: min(78vh, 640px);
    overflow: auto;
  }
  .mega-menu-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mega-side {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem .35rem;
  }
  .mega-side-label { grid-column: 1 / -1; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-promo { border-left: 0; border-top: 1px solid rgba(15, 23, 42, .06); }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: .35rem 0 .6rem;
  }
  .main-nav.open { display: flex; }
  .nav-mobile-only { display: flex !important; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item strong, .cart-actions { grid-column: 2; }
  .topbar-links { display: none; }
  .topbar-trust span:nth-child(2) { display: none; }
  .tool-text strong { font-size: .82rem; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .hero-slide-content { padding: 1.5rem 1.2rem 4.5rem; max-width: 100%; }
  .hero-features { grid-template-columns: 1fr; }
  .hero-script-top { right: 4%; top: 1rem; font-size: 1.3rem; }
  .hero-nav { width: 40px; height: 40px; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .trust-item { align-items: center; }
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem .4rem;
  }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .feat-grid .feat-overlay span { display: none; }
  .feat-grid .feat-chips { display: none; }
  .feat-grid .feat-body { padding: .55rem .5rem .65rem; gap: .28rem; }
  .feat-grid .feat-body h3 { font-size: .78rem; line-height: 1.25; }
  .feat-grid .feat-brand { font-size: .68rem; margin: 0; }
  .feat-grid .feat-price strong { font-size: .82rem; }
  .feat-grid .feat-cart-btn { font-size: .72rem; padding: .55rem .4rem; gap: .3rem; }
  .feat-grid .feat-swatch, .feat-grid .feat-swatches .color-swatch { width: 14px; height: 14px; }
  .feat-slider { padding: 0 1.35rem; }
  .feat-track { gap: .55rem; }
  .feat-slide { flex: 0 0 calc((100% - .55rem) / 2); }
  .feat-nav { width: 34px; height: 34px; top: 32%; }
  .feat-card { border-radius: 8px; }
  .feat-media { aspect-ratio: 1 / 1.02; }
  .feat-overlay { padding: .4rem .45rem .35rem; }
  .feat-overlay strong { font-size: .68rem; }
  .feat-overlay span { display: none; }
  .feat-badges { top: 6px; left: 6px; }
  .feat-badge { font-size: .62rem; padding: .18rem .35rem; }
  .feat-wish { width: 30px; height: 30px; top: 6px; right: 6px; }
  .feat-wish svg { width: 13px; height: 13px; }
  .feat-body { padding: .55rem .5rem .65rem; gap: .28rem; }
  .feat-body h3 { font-size: .78rem; line-height: 1.25; }
  .feat-brand { font-size: .68rem; margin: 0; }
  .feat-chips { display: none; }
  .feat-swatches { gap: .2rem; }
  .feat-swatch, .feat-swatches .color-swatch { width: 14px; height: 14px; }
  .feat-rating { font-size: .72rem; }
  .feat-price-row { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .feat-price strong { font-size: .82rem; }
  .feat-price s { font-size: .68rem; }
  .feat-ship { font-size: .62rem; padding: .12rem .35rem; }
  .feat-cart-btn {
    font-size: .72rem;
    padding: .55rem .4rem;
    gap: .3rem;
  }
  .feat-cart-btn svg { width: 13px; height: 13px; }
  .tool-link:not(.tool-cart) .tool-text { display: none; }
  .header-main { min-height: 72px; }
  .topbar-trust span { font-size: .75rem; }
}

/* Auth / account */
.auth-page { padding: 2rem 0 3.5rem; background: #f7f8fa; min-height: 60vh; }
.auth-wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) .85fr;
  gap: 1.25rem; align-items: stretch; max-width: 920px; margin-inline: auto;
}
.auth-card, .auth-side {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow);
}
.auth-head { text-align: center; margin-bottom: 1.1rem; }
.auth-head .brand-mark { margin-inline: auto; margin-bottom: .7rem; }
.auth-head h1 { margin: 0 0 .35rem; font-size: 1.55rem; font-weight: 800; }
.auth-head p { margin: 0; color: var(--muted); }
.auth-form { display: grid; gap: .8rem; }
.auth-form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 700; color: #475569; }
.auth-form input {
  border: 1px solid #d5dde7; border-radius: 10px; padding: .75rem .85rem;
  font: inherit; color: var(--ink); background: #fff;
}
.auth-form input:focus { outline: 2px solid rgba(0,113,188,.2); border-color: var(--brand); }
.auth-switch { text-align: center; margin: 1rem 0 0; color: var(--muted); }
.auth-switch a { color: var(--brand); font-weight: 800; }
.auth-side {
  background: linear-gradient(160deg, #eaf3fb, #fff 55%);
  display: flex; flex-direction: column; justify-content: center;
}
.auth-side h2 { margin: 0 0 .8rem; font-size: 1.25rem; font-weight: 800; }
.auth-side ul { margin: 0; padding-left: 1.1rem; color: #334155; display: grid; gap: .45rem; }
.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 1rem; align-items: start; }
.account-profile { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.account-avatar {
  width: 46px; height: 46px; border-radius: 999px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.account-profile strong { display: block; }
.account-profile small { color: var(--muted); }
.account-nav { display: grid; gap: .25rem; }
.account-nav a {
  padding: .65rem .75rem; border-radius: 10px; font-weight: 700; color: var(--ink);
}
.account-nav a.is-active, .account-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.account-nav a.danger { color: var(--err); }
.account-orders { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
.account-orders table { width: 100%; border-collapse: collapse; }
.account-orders th, .account-orders td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; }
.account-orders th { background: #f8fafc; color: var(--muted); }
.account-orders .badge { display: inline-block; padding: .15rem .5rem; border-radius: 999px; background: #eef2f7; font-size: .75rem; font-weight: 700; }
@media (max-width: 900px) {
  .auth-wrap, .account-grid { grid-template-columns: 1fr; }
  .auth-side { order: -1; }
}

/* Cart drawer */
.cart-drawer-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.cart-drawer-overlay.is-open {
  opacity: 1; pointer-events: auto;
}
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 90;
  width: min(400px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .3s ease;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.cart-drawer-head p { margin: .15rem 0 0; color: var(--muted); font-size: .85rem; }
.cart-drawer-close {
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.cart-drawer-body { flex: 1; overflow: auto; padding: 1rem 1.1rem; }
.cart-drawer-empty {
  min-height: 280px; display: grid; place-items: center; text-align: center; gap: .55rem;
  color: var(--muted); align-content: center;
}
.cart-drawer-empty-icon {
  width: 64px; height: 64px; border-radius: 999px; background: #f1f5f9;
  display: grid; place-items: center; color: #64748b; margin-bottom: .3rem;
}
.cart-drawer-empty-icon svg { width: 28px; height: 28px; }
.cart-drawer-empty strong { color: var(--ink); font-size: 1.05rem; }
.cart-drawer-empty p { margin: 0 0 .5rem; max-width: 26ch; }
.cart-drawer-list { display: grid; gap: .85rem; }
.cart-drawer-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: .7rem;
  align-items: start; padding-bottom: .85rem; border-bottom: 1px solid var(--line);
}
.cart-drawer-thumb {
  width: 72px; height: 88px; border-radius: 10px; overflow: hidden; background: #eef1f5;
}
.cart-drawer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-info h3 { margin: 0 0 .25rem; font-size: .92rem; font-weight: 800; line-height: 1.25; }
.cart-drawer-info p { margin: 0 0 .35rem; color: var(--muted); font-size: .8rem; }
.cart-drawer-info strong { font-size: .95rem; }
.cart-drawer-remove button {
  width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: #64748b; font-size: 1.1rem;
}
.cart-drawer-foot {
  border-top: 1px solid var(--line); padding: 1rem 1.1rem 1.15rem;
  display: grid; gap: .55rem; background: #fff;
}
.cart-drawer-totals { display: grid; gap: .35rem; margin-bottom: .25rem; }
.cart-drawer-totals > div { display: flex; justify-content: space-between; gap: .75rem; font-size: .92rem; }
.cart-drawer-totals .is-total { padding-top: .4rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
body.cart-drawer-open { overflow: hidden; }

/* Add-to-cart confirmation */
.cart-confirm {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center;
  padding: 1.1rem;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(3px);
}
.cart-confirm[hidden] { display: none !important; }
.cart-confirm-card {
  position: relative;
  width: min(100%, 440px);
  background: #fff;
  border-radius: 22px;
  padding: 1.65rem 1.35rem 1.15rem;
  box-shadow: 0 28px 56px rgba(15, 23, 42, .2);
  text-align: center;
}
.cart-confirm-x {
  position: absolute; top: .85rem; right: .9rem;
  width: 34px; height: 34px; border: 0; border-radius: 999px;
  background: transparent; color: #94a3b8; cursor: pointer;
  display: grid; place-items: center;
}
.cart-confirm-x:hover { background: var(--bg-soft); color: var(--ink); }
.cart-confirm-x svg { width: 16px; height: 16px; }
.cart-confirm-icon {
  position: relative;
  width: 64px; height: 64px; margin: .15rem auto 1rem;
  display: grid; place-items: center;
}
.cart-confirm-rays {
  position: absolute; inset: -6px;
  background:
    radial-gradient(circle at center, transparent 48%, transparent 49%),
    conic-gradient(from 0deg, transparent 0 8deg, #86efac 8deg 11deg, transparent 11deg 38deg,
      #86efac 38deg 41deg, transparent 41deg 68deg, #86efac 68deg 71deg, transparent 71deg 98deg,
      #86efac 98deg 101deg, transparent 101deg 128deg, #86efac 128deg 131deg, transparent 131deg 158deg,
      #86efac 158deg 161deg, transparent 161deg 188deg, #86efac 188deg 191deg, transparent 191deg 218deg,
      #86efac 218deg 221deg, transparent 221deg 248deg, #86efac 248deg 251deg, transparent 251deg 278deg,
      #86efac 278deg 281deg, transparent 281deg 308deg, #86efac 308deg 311deg, transparent 311deg 338deg,
      #86efac 338deg 341deg, transparent 341deg 360deg);
  border-radius: 50%;
  opacity: .85;
  mask: radial-gradient(circle, transparent 42%, #000 43%, #000 58%, transparent 59%);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 43%, #000 58%, transparent 59%);
}
.cart-confirm-check {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 999px;
  display: grid; place-items: center;
  background: #22c55e; color: #fff;
  box-shadow: 0 8px 18px rgba(34, 197, 94, .28);
}
.cart-confirm-check svg { width: 24px; height: 24px; }
.cart-confirm-card h3 {
  margin: 0 0 .45rem; font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em;
}
.cart-confirm-lead {
  margin: 0 auto 1.15rem; max-width: 34ch;
  color: var(--muted); font-size: .95rem; line-height: 1.45;
}
.cart-confirm-product {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .85rem;
  align-items: center;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: .75rem .85rem;
  margin-bottom: .75rem;
}
.cart-confirm-product[hidden] { display: none !important; }
.cart-confirm-product img {
  width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #fff;
}
.cart-confirm-product-info { display: grid; gap: .12rem; min-width: 0; }
.cart-confirm-product-info strong {
  font-size: .95rem; font-weight: 800; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-confirm-product-info span { color: #64748b; font-size: .82rem; }
.cart-confirm-price {
  font-size: .98rem; font-weight: 800; color: var(--ink); white-space: nowrap;
}
.cart-confirm-ship {
  display: flex; align-items: center; gap: .55rem;
  background: #eef6fc;
  border-radius: 12px;
  padding: .7rem .85rem;
  margin-bottom: 1.05rem;
  color: #334155;
  font-size: .86rem;
  font-weight: 600;
  text-align: left;
}
.cart-confirm-ship > svg:first-child {
  width: 18px; height: 18px; flex: 0 0 auto; color: var(--brand);
}
.cart-confirm-ship span { flex: 1; line-height: 1.3; }
.cart-confirm-ship-chevron { width: 16px; height: 16px; color: #94a3b8; flex: 0 0 auto; }
.cart-confirm-actions {
  display: grid; gap: .65rem; grid-template-columns: 1fr 1fr;
}
.cart-confirm-btn-ghost,
.cart-confirm-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 46px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  padding: .7rem .9rem;
}
.cart-confirm-btn-ghost {
  background: #fff; color: var(--ink);
  border: 1.5px solid #d7dde5;
}
.cart-confirm-btn-ghost:hover { background: var(--bg-soft); }
.cart-confirm-btn-ghost svg,
.cart-confirm-btn-primary svg { width: 16px; height: 16px; flex: 0 0 auto; }
.cart-confirm-btn-primary { border: 0; }
.cart-confirm-foot {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  margin: 1rem 0 0; color: #94a3b8; font-size: .8rem;
}
.cart-confirm-foot svg { width: 12px; height: 12px; color: #cbd5e1; }
@media (max-width: 420px) {
  .cart-confirm-actions { grid-template-columns: 1fr; }
  .cart-confirm-product { grid-template-columns: 56px 1fr; }
  .cart-confirm-price { grid-column: 2; }
}
body.cart-confirm-open { overflow: hidden; }

/* Order tracking page */
.track-page {
  background:
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(13, 95, 168, .08), transparent 60%),
    linear-gradient(180deg, #f4f8fc 0%, #eef3f8 55%, #f7f9fc 100%);
  padding: 2rem 0 2.75rem;
}
.track-wrap { max-width: 1140px; }
.track-hero {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 400px) minmax(280px, 1.15fr);
  gap: 1.5rem 1.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
  min-height: 420px;
}
.track-col-intro { align-self: center; padding-right: .25rem; }
.track-eyebrow {
  display: inline-block; margin-bottom: .75rem;
  color: #6f9fc4; font-size: .75rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.track-col-intro h1 {
  margin: 0 0 .55rem; font-size: clamp(1.85rem, 2.8vw, 2.55rem);
  font-weight: 800; line-height: 1.12; color: #152538;
}
.track-col-intro h1 em { font-style: normal; color: #0d5fa8; }
.track-lead {
  margin: 0 0 1.25rem; color: #64748b; font-size: .98rem; line-height: 1.5;
  max-width: 26ch;
}
.track-notify {
  display: flex; align-items: flex-start; gap: .7rem;
  background: #fff; border: 1px solid #e4ebf3;
  border-radius: 14px; padding: .85rem .9rem;
  box-shadow: 0 10px 24px rgba(15, 39, 68, .05);
  max-width: 300px;
}
.track-notify-icon {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: #e8f3fc; color: #0d5fa8;
}
.track-notify-icon svg { width: 18px; height: 18px; }
.track-notify strong { display: block; font-size: .9rem; margin-bottom: .12rem; color: #152538; }
.track-notify span { color: #64748b; font-size: .8rem; line-height: 1.35; }

.track-col-card { align-self: center; }
.track-card {
  background: #fff; border: 1px solid #e6edf4; border-radius: 22px;
  padding: 1.35rem 1.3rem 1.2rem;
  box-shadow: 0 22px 48px rgba(15, 39, 68, .1);
}
.track-card-head {
  display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.1rem;
}
.track-card-icon {
  width: 44px; height: 44px; border-radius: 999px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #e8f3fc; color: #0d5fa8;
}
.track-card-icon svg { width: 22px; height: 22px; }
.track-card-head h2 { margin: 0 0 .2rem; font-size: 1.18rem; font-weight: 800; color: #152538; }
.track-card-head p { margin: 0; color: #64748b; font-size: .86rem; line-height: 1.4; }
.track-form label {
  display: block; margin-bottom: .4rem; font-size: .88rem; font-weight: 700; color: #334155;
}
.track-input {
  display: flex; align-items: center; gap: .55rem;
  border: 1.5px solid #b7d3ea; border-radius: 12px;
  background: #fff; padding: 0 .9rem; min-height: 52px;
  margin-bottom: .9rem; transition: border-color .15s, box-shadow .15s;
}
.track-input:focus-within {
  border-color: #0d5fa8;
  box-shadow: 0 0 0 3px rgba(13, 95, 168, .14);
}
.track-input svg { width: 18px; height: 18px; color: #0d5fa8; flex: 0 0 auto; }
.track-input input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font: inherit; color: #152538; padding: .8rem 0;
}
.track-submit {
  width: 100%; min-height: 52px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-weight: 800; background: #0d5fa8; border: 0;
}
.track-submit:hover { background: #0a4d8a; }
.track-submit svg { width: 16px; height: 16px; }
.track-hint {
  margin: .8rem 0 0; text-align: center; color: #94a3b8; font-size: .78rem; line-height: 1.4;
}
.track-empty {
  margin-top: .9rem; padding: .85rem .9rem; border-radius: 12px;
  background: #fdeceb; color: var(--err); font-weight: 600; font-size: .9rem;
}
.track-result {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eef2f6;
  display: grid; gap: .45rem;
}
.track-result-row {
  display: flex; justify-content: space-between; gap: .75rem; font-size: .92rem;
}
.track-result-row span { color: #64748b; font-weight: 600; }
.track-status { color: #0d5fa8; }
.track-result .btn { margin-top: .55rem; background: #0d5fa8; }

.track-col-aside {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 200px);
  gap: 1rem .75rem;
  align-items: center;
}
.track-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.track-benefits li {
  display: grid; grid-template-columns: 42px 1fr; gap: .65rem; align-items: center;
}
.track-benefit-icon {
  width: 42px; height: 42px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1.5px solid #c5daf0; background: #fff; color: #0d5fa8;
  box-shadow: 0 4px 10px rgba(13, 95, 168, .06);
}
.track-benefit-icon svg { width: 18px; height: 18px; }
.track-benefits strong { display: block; font-size: .9rem; color: #152538; }
.track-benefits span { color: #64748b; font-size: .78rem; }

.track-visual {
  position: relative;
  width: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
}
.track-map-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: .95; pointer-events: none;
}
.track-bubble-img {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  width: min(190px, 95%); z-index: 3; pointer-events: none;
}
.track-box-img {
  position: relative; z-index: 2;
  width: min(210px, 100%);
  margin-top: 1.5rem;
  filter: drop-shadow(0 16px 20px rgba(120, 80, 40, .2));
}

.track-timeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem;
  background: rgba(255,255,255,.85); border: 1px solid #e6edf4;
  border-radius: 18px; padding: 1.25rem 1rem 1.1rem;
  position: relative;
  box-shadow: 0 10px 28px rgba(15, 39, 68, .04);
}
.track-timeline::before {
  content: "";
  position: absolute; left: 10%; right: 10%; top: 44px;
  border-top: 2px dashed #d5e0ea;
}
.track-step {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: .55rem; text-align: center;
}
.track-step-icon {
  width: 48px; height: 48px; border-radius: 999px;
  display: grid; place-items: center;
  background: #edf2f7; color: #94a3b8; border: 3px solid #fff;
  box-shadow: 0 0 0 1px #dbe4ee;
}
.track-step-icon svg { width: 18px; height: 18px; }
.track-step strong {
  font-size: .8rem; color: #94a3b8; font-weight: 700; line-height: 1.25;
}
.track-step.is-active .track-step-icon,
.track-step.is-done .track-step-icon {
  background: #0d5fa8; color: #fff; box-shadow: 0 0 0 4px rgba(13, 95, 168, .16);
}
.track-step.is-active strong { color: #0d5fa8; }
.track-step.is-done strong { color: #334155; }
.track-cancel-note {
  margin: .9rem 0 0; text-align: center; color: var(--err); font-weight: 600;
}

@media (max-width: 1100px) {
  .track-hero {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }
  .track-col-aside {
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 0 auto;
  }
}
@media (max-width: 820px) {
  .track-hero { grid-template-columns: 1fr; gap: 1.25rem; }
  .track-col-aside { grid-template-columns: 1fr; max-width: 100%; }
  .track-visual { min-height: 220px; max-width: 280px; margin: 0 auto; }
  .track-lead, .track-notify { max-width: none; }
  .track-timeline { grid-template-columns: 1fr; gap: .75rem; padding-left: 1rem; }
  .track-timeline::before {
    left: 31px; right: auto; top: 14%; bottom: 14%; width: 0;
    border-top: 0; border-left: 2px dashed #d5e0ea;
  }
  .track-step {
    grid-template-columns: 48px 1fr; justify-items: start; text-align: left; align-items: center;
  }
}
