/* ==========================================================================
   Plus Ping Pong - static storefront theme
   RTL Persian e-commerce layout
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../assets/fonts/YekanBakhFaNum-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../assets/fonts/YekanBakhFaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../assets/fonts/YekanBakhFaNum-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../assets/fonts/YekanBakhFaNum-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../assets/fonts/YekanBakhFaNum-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --ink: #062d3f;
  --ink-900: #12212b;
  --primary: #262631;
  --accent: #ff4b00;
  --accent-dark: #d93f00;
  --accent-soft: #ffe7dc;
  --text: #7a7a7a;
  --muted: #8499a1;
  --line: #e3ebf0;
  --sky-50: #f8f9fd;
  --sky-100: #e0ecf2;
  --sky-150: #e2edf3;
  --white: #fff;
  --green: #1e9e6a;
  --blue: #1c7fa8;
  --radius-xl: 29px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 6px 18px rgba(6, 45, 63, 0.06);
  --shadow-md: 0 16px 36px rgba(6, 45, 63, 0.09);
  --shadow-lg: 0 28px 60px rgba(6, 45, 63, 0.14);
  --container: 1240px;
  --font: "YekanBakhFaNum", Tahoma, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

h1 {
  font-size: 38px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 21px;
}
h4 {
  font-size: 17px;
}

p {
  margin: 0 0 14px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img,
svg {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 60px;
}

.section--tight {
  padding-block: 40px;
}

.section--sky {
  background: var(--sky-50);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
  color: var(--white);
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 75, 0, 0.28);
}

.btn--dark {
  background: var(--ink);
}

.btn--dark:hover {
  background: var(--ink-900);
  box-shadow: 0 12px 24px rgba(6, 45, 63, 0.24);
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn--ghost:hover {
  color: var(--accent);
  background: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.btn--white {
  color: var(--ink);
  background: var(--white);
}

.btn--white:hover {
  color: var(--accent);
  background: var(--white);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 16px 34px;
  font-size: 16px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- section head ---------- */
.sec-head {
  position: relative;
  margin-bottom: 34px;
  text-align: center;
}

.sec-head__kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.sec-head h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 0;
  font-size: 30px;
}

.sec-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.85;
}

.sec-head--start {
  text-align: start;
}

.sec-head--start h2::after {
  margin-inline: 0 auto;
}

.sec-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
}

.topbar a {
  color: rgba(255, 255, 255, 0.82);
}

.topbar a:hover {
  color: var(--white);
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar__item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.topbar__sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__main {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #4a1459;
}

.brand--footer img { width: 54px; height: 54px; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand__text strong {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.brand__text span {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.search {
  position: relative;
  flex: 1;
  max-width: 560px;
  min-width: 0;
}

.search input {
  width: 100%;
  height: 48px;
  padding-inline: 20px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--sky-50);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.search button {
  position: absolute;
  inset-inline-end: 6px;
  inset-block-start: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
}

.search button svg {
  width: 18px;
  height: 18px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.tool {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: background 0.2s ease;
}

.tool:hover {
  background: var(--sky-50);
  color: var(--ink);
}

.tool__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--ink);
}

.tool__icon svg {
  width: 20px;
  height: 20px;
}

.tool__text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.tool__text small {
  font-size: 11.5px;
  color: var(--muted);
}

.tool__text b {
  font-size: 14px;
  font-weight: 600;
}

.tool__count {
  position: absolute;
  inset-block-start: -4px;
  inset-inline-start: -4px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
}

.search {
  position: relative;
  z-index: 60;
}

.search-suggestions {
  position: absolute;
  inset-block-start: calc(100% + 12px);
  inset-inline-start: 0;
  width: max(100%, 560px);
  min-width: min(100%, 440px);
  z-index: 120;
  max-height: min(620px, calc(100vh - 180px));
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(6, 45, 63, 0.17);
}

.search .search-suggestion {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 88px;
  height: auto;
  padding: 13px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background 0.16s ease;
}

.search .search-suggestion + .search-suggestion {
  border-top: 1px solid var(--sky-100);
}

.search .search-suggestion:hover,
.search .search-suggestion.is-active {
  background: var(--sky-50);
}

.search-suggestion img {
  flex: none;
  width: 66px;
  height: 66px;
  padding: 5px;
  border-radius: var(--radius-sm);
  background: var(--white);
  object-fit: contain;
}

.search-suggestion__body {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.search-suggestion__body b {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion__body small {
  overflow: hidden;
  font-size: 13px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion > strong {
  flex: none;
  font-size: 14px;
  color: var(--accent-dark);
  white-space: nowrap;
}

.search-suggestions__empty {
  padding: 28px 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 640px) {
  .menu > li > a[href$="compare.html"]::after { inset-inline-start: 9px; }
  .compare-about { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 14px 13px; }
  .compare-about__icon { width: 34px; height: 34px; border-radius: 10px; }
  .compare-about p { font-size: 13px; line-height: 1.9; }
  .compare__tabs { width: 100%; }
  .compare__tabs button { flex: 1; padding-inline: 9px; font-size: 13px; }
  .compare__selectors { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 15px; }
  .compare__vs { justify-self: center; padding: 0; }
  .compare-table__head, .compare-table__row { grid-template-columns: minmax(90px, .72fr) minmax(0, 1fr) minmax(0, 1fr); }
  .compare-table__head > *, .compare-table__row > * { padding: 11px 8px; font-size: 13px; }
  .compare-table__label-head { font-size: 14px; }
  .compare-table__head strong { font-size: 12px; }
  .compare-table__product { padding: 12px 5px !important; gap: 8px; }
  .compare-table__product img { width: min(28vw, 126px); height: min(28vw, 120px); }
  .compare-table__product > strong { font-size: 12px; }
  .compare-table__overall b { font-size: 27px; }
  .compare-table__overall small, .compare-table__overall i { font-size: 10px; }
  .compare-selected { grid-template-columns: 58px minmax(0, 1fr) 30px; gap: 8px; }
  .compare-selected > img { width: 58px; height: 58px; }
  .compare-table__label { font-size: 12px; }
  .compare-table__value { font-size: 14px; }
  .compare-table__value small { font-size: 11px; }
  .compare-table__row.is-different .compare-table__label::after { display: none; }
  .search-suggestions {
    inset-inline-start: 0;
    width: 100%;
    min-width: 0;
    max-height: min(64vh, 520px);
    padding: 8px;
  }
  .search .search-suggestion {
    gap: 10px;
    min-height: 74px;
    padding: 9px 8px;
  }
  .search-suggestion img {
    width: 52px;
    height: 52px;
  }
  .search-suggestion__body b {
    font-size: 13px;
  }
  .search-suggestion__body small {
    font-size: 11.5px;
  }
  .search-suggestion > strong {
    font-size: 11.5px;
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  place-items: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- navigation ---------- */
.navbar {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.cats-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  padding: 14px;
  border: 0;
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.navbar .cats-btn { display: none; }

.cats-btn:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.cats-btn svg {
  width: 20px;
  height: 20px;
}

.menu {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-width: 0;
}

.menu > li {
  position: static;
  flex: 0 0 auto;
}

.menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 15px 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.menu > li > a svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.menu > li:hover > a,
.menu > li > a.is-active {
  color: var(--accent);
}

.menu__badge {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
}
.menu > li > a.menu__special {
  position: relative;
  gap: 8px;
  margin: 0;
  padding: 15px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8a6400;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  box-shadow: none;
  transition: color .18s ease;
}
.menu > li > a.menu__special span,
.menu > li > a.menu__special b {
  animation: special-offer-text 1.8s ease-in-out infinite;
}
@keyframes special-offer-text {
  0%, 100% { color: #1769aa; opacity: 1; }
  50% { color: #d23b43; opacity: .82; }
}
.menu > li > a.menu__special b,
.mobile-nav__special b {
  display: inline-grid;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #f2c454;
  color: #59430b;
  font-size: 12px;
  line-height: 1;
}
.menu > li > a.menu__special b {
  display: inline;
  flex: none;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #1769aa;
  font-size: 13px;
}
.menu > li:hover > a.menu__special,
.menu > li > a.menu__special:hover {
  color: #5e4500;
}
.menu > li > a.menu__special:focus-visible,
.mobile-nav__special:focus-visible {
  outline: 3px solid rgba(242, 196, 84, .45);
  outline-offset: 2px;
}
.mobile-nav__special {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #ead9ae;
  border-radius: 12px;
  background: linear-gradient(145deg, #fffefa, #fff9e9);
  color: #12394a;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(19, 55, 70, .06);
}
/* Mobile comparison search: keep each field full-width and comfortable to tap. */
@media (max-width: 640px) {
  .compare { width: 100%; max-width: 100%; }
  .compare__selectors {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
  }
  .compare-select {
    width: 100%;
    min-width: 0;
    gap: 7px;
    padding: 11px;
    box-sizing: border-box;
    border: 1px solid #e4ebef;
    border-radius: 14px;
    background: #fbfdfe;
  }
  .compare-select > label {
    padding-inline: 2px;
    color: #315363;
    font-size: 13px;
    font-weight: 800;
  }
  .compare-select__control { width: 100%; min-width: 0; gap: 0; }
  .compare-select input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 14px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
  }
  .compare-suggestions {
    inset-block-start: calc(100% + 6px);
    inset-inline: 0;
    width: 100%;
    max-height: min(48vh, 390px);
    box-sizing: border-box;
    border-radius: 13px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .compare-suggestions__item {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 68px;
    gap: 2px 10px;
    padding: 8px 10px;
  }
  .compare-suggestions__item img { grid-row: 1 / 3; width: 52px; height: 52px; }
  .compare-suggestions__item span {
    align-self: end;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.55;
    font-size: 13px;
  }
  .compare-suggestions__item small { align-self: start; font-size: 11px; }
  .compare-suggestions__empty { padding: 18px 12px; text-align: center; }
  .compare-selected {
    grid-template-columns: 60px minmax(0, 1fr) 34px;
    gap: 9px;
    padding: 9px;
    border-radius: 12px;
  }
  .compare-selected > img { width: 60px; height: 60px; }
  .compare-selected strong { white-space: normal; line-height: 1.5; }
  .compare__vs { min-height: 22px; display: grid; place-items: center; padding: 0; }
}

@media (max-width: 380px) {
  .compare__selectors { padding: 9px; }
  .compare-select { padding: 9px; }
  .compare-select input { height: 54px; padding-inline: 11px; }
  .compare-suggestions__item { grid-template-columns: 46px minmax(0, 1fr); gap: 2px 8px; }
  .compare-suggestions__item img { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu > li > a.menu__special span,
  .menu > li > a.menu__special b,
  .menu > li > a[href$="compare.html"] { animation: none; }
}

.menu > li > a[href$="compare.html"] {
  position: relative;
  color: var(--accent-dark);
  font-weight: 700;
  white-space: nowrap;
  animation: compare-nav-text 1.8s ease-in-out infinite;
}
.menu > li > a[href$="compare.html"]::before,
.menu > li > a[href$="compare.html"]::after { content: none; }
@keyframes compare-nav-text {
  0%, 100% { color: var(--accent-dark); opacity: 1; }
  50% { color: #c25a18; opacity: .62; }
}
.mobile-nav__compare { display: block; margin: 14px 0; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); font-weight: 700; }
.mobile-nav__compare span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.compare { max-width: 980px; }
.compare__tabs { display: flex; gap: 8px; width: fit-content; margin: 0 auto 28px; padding: 5px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white); }
.compare__tabs button { min-height: 42px; padding: 8px 20px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.compare__tabs button.is-active { background: var(--accent); color: var(--white); }
.compare__intro { margin-bottom: 22px; text-align: center; }
.compare__eyebrow { display: inline-block; margin-bottom: 8px; color: var(--accent); font-size: 13px; font-weight: 700; }
.compare__intro h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.compare__intro p { margin: 0; color: var(--muted); }
.compare-about { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 14px; margin: 0 0 22px; padding: 19px 21px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: var(--radius-md); background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 7%, white), white 72%); box-shadow: 0 8px 22px rgba(10, 42, 58, .06); }
.compare-about::before { position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: linear-gradient(var(--accent), #ff9b45); content: ""; }
.compare-about__icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--accent); color: white; font-size: 21px; font-weight: 800; box-shadow: 0 5px 12px color-mix(in srgb, var(--accent) 22%, transparent); }
.compare-about p { margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 2; }
.compare__selectors { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.compare-select { display: grid; align-content: start; gap: 8px; min-width: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.compare-select__control { display: grid; gap: 7px; }
.compare-select__control { position: relative; }
.compare-select input { width: 100%; min-width: 0; height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; font-size: 14px; }
.compare-select input:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.compare-select select { display: none; }
.compare-suggestions { position: absolute; z-index: 30; inset-block-start: calc(100% + 5px); inset-inline: 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-md); }
.compare-suggestions[hidden] { display: none; }
.compare-suggestions__item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; width: 100%; min-height: 64px; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: right; font: inherit; cursor: pointer; }
.compare-suggestions__item:last-child { border-bottom: 0; }
.compare-suggestions__item:hover, .compare-suggestions__item.is-active { background: var(--accent-soft); color: var(--accent-dark); }
.compare-suggestions__item img { width: 46px; height: 46px; border-radius: 7px; background: #f5f7f9; object-fit: contain; }
.compare-suggestions__item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.compare-suggestions__item small { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.compare-suggestions__empty { padding: 15px; color: var(--muted); font-size: 13px; }
.compare-selected { display: grid; grid-template-columns: 72px minmax(0, 1fr) 34px; align-items: center; gap: 11px; padding: 9px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: var(--radius-sm); background: var(--accent-soft); }
.compare-selected[hidden] { display: none; }
.compare-selected > img { width: 72px; height: 68px; border-radius: 7px; background: var(--white); object-fit: contain; }
.compare-selected > span { display: grid; gap: 5px; min-width: 0; }
.compare-selected strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.compare-selected small { color: var(--muted); font-size: 11px; }
.compare-selected button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--muted); font-size: 20px; cursor: pointer; }
.compare-selected button:hover { color: var(--accent); }
.compare__vs { padding: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 800; white-space: nowrap; }
.compare__empty { display: grid; justify-items: center; gap: 8px; margin-top: 18px; padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--white); text-align: center; color: var(--muted); }
.compare__empty[hidden], .compare-result[hidden] { display: none; }
.compare__empty strong { color: var(--ink); font-size: 17px; }
.compare__empty-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 24px; font-weight: 700; }
.compare-result { margin-top: 20px; }
.compare-summary { margin-bottom: 16px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: var(--radius-md); background: var(--accent-soft); }
.compare-summary > span { color: var(--accent); font-weight: 800; }
.compare-summary p { margin: 7px 0 0; line-height: 1.9; }
.compare-table { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.compare-table__head, .compare-table__row { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.compare-table__head { background: var(--ink); color: var(--white); }
.compare-table__head > *, .compare-table__row > * { min-width: 0; padding: 16px 18px; overflow-wrap: anywhere; }
.compare-table__label-head { display: grid; align-self: stretch; align-items: center; color: var(--white); font-size: 17px; font-weight: 800; }
.compare-table__head strong { font-size: 14px; }
.compare-table__product { display: grid; justify-items: center; align-content: start; gap: 10px; padding: 18px 14px !important; text-align: center; }
.compare-table__product img { width: 190px; height: 176px; border-radius: 12px; background: var(--white); object-fit: contain; box-shadow: 0 8px 22px rgba(0, 0, 0, .13); }
.compare-table__product > strong { font-size: 16px; line-height: 1.5; }
.compare-table__overall { display: grid; justify-items: center; gap: 2px; margin-top: 3px; }
.compare-table__overall small { color: rgba(255, 255, 255, .8); font-size: 12px; }
.compare-table__overall b { color: #fff; font-size: 34px; line-height: 1.2; }
.compare-table__overall i { margin-inline-start: 4px; color: rgba(255, 255, 255, .78); font-size: 12px; font-style: normal; font-weight: 500; }
.compare-table__row + .compare-table__row { border-top: 1px solid var(--line); }
.compare-table__row:nth-child(odd) { background: var(--bg-soft, #f8f9fb); }
.compare-table__label { color: var(--ink); font-size: 16px; font-weight: 700; }
.compare-table__value { display: grid; gap: 4px; color: var(--ink); font-size: 17px; font-weight: 600; }
.compare-table__value small { color: var(--ink-soft, #425667); font-size: 13px; font-weight: 500; }
.compare-table__value.is-higher { color: var(--accent-dark); font-weight: 800; }
.compare-table__row.is-different .compare-table__label::after { content: "اختلاف"; display: inline-block; margin-inline-start: 7px; padding: 1px 6px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 10px; }
.compare__note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.mega {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  z-index: 40;
  width: min(760px, 88vw);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.menu > li:hover .mega,
.menu > li:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega__title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* چیپ‌های زیرشاخهٔ هر گروه در مگامنو */
.mega__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mega__chips a {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--sky-50);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.mega__chips a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.mega__promo {
  position: relative;
  overflow: hidden;
  gap: 12px;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: radial-gradient(130% 90% at 85% 0%, #10536e 0%, var(--ink) 55%, #041e2b 100%);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
}

.mega__promo strong {
  display: block;
  margin-bottom: 0;
  color: var(--white);
  font-size: 17px;
}

.mega__promo p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.68);
}

/* لینک‌های میان‌بر کارت معرفی مگامنو */
.mega__quick {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.mega__quick a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.18s ease, color 0.18s ease;
}

.mega__quick a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.mega__quick a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.mega__promo img {
  width: 104px;
  margin: auto auto 0;
  align-self: center;
}

/* ---------- hero ---------- */
.hero {
  padding-block: 26px 10px;
}

.hero__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--sky-100);
}

.hero__viewport {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 460px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 46px 56px;
  background: radial-gradient(120% 130% at 12% 12%, #edf5f9 0%, var(--sky-100) 46%, #cfe2ea 100%);
}

.slide--dark {
  background: radial-gradient(120% 130% at 12% 12%, #0d4a63 0%, var(--ink) 55%, #041e2b 100%);
  color: rgba(255, 255, 255, 0.82);
}

.slide--accent {
  background: radial-gradient(120% 130% at 12% 12%, #ffd9c8 0%, #ffb094 42%, #ff8a5c 100%);
}

.slide__body {
  position: relative;
  z-index: 2;
}

.slide__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 75, 0, 0.12);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
}

.slide--dark .slide__tag {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.slide__title {
  margin-bottom: 10px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.slide--dark .slide__title {
  color: var(--white);
}

.slide__sub {
  max-width: 460px;
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--muted);
}

.slide--dark .slide__sub {
  color: rgba(255, 255, 255, 0.72);
}

.slide__price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.slide__price b {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.slide--dark .slide__price b {
  color: #ffb094;
}

.slide__price s {
  color: var(--muted);
}

.slide__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.slide__art {
  position: relative;
  display: grid;
  place-items: center;
}

.slide__art img {
  width: min(100%, 480px);
  filter: drop-shadow(0 28px 40px rgba(6, 45, 63, 0.22));
}

.hero__nav {
  position: absolute;
  inset-block-start: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
}

.hero__nav:hover {
  background: var(--accent);
  color: var(--white);
}

.hero__nav svg {
  width: 20px;
  height: 20px;
}

.hero__nav--prev {
  inset-inline-end: 18px;
}

.hero__nav--next {
  inset-inline-start: 18px;
}

.hero__dots {
  position: absolute;
  inset-block-end: 20px;
  inset-inline-end: 56px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero__dots button {
  width: 26px;
  height: 6px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(6, 45, 63, 0.18);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero__dots button.is-active {
  width: 44px;
  background: var(--accent);
}

/* ---------- promo strip ---------- */
.usp {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.usp__item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.usp__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--sky-100);
  color: var(--ink);
}

.usp__icon svg {
  width: 26px;
  height: 26px;
}

.usp__item strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.usp__item span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.feature__num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
}

.feature__num--outline {
  background: var(--accent-soft);
  color: var(--accent);
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  font-size: 14px;
}

/* ---------- product cards ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.products--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.product__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: var(--sky-50);
  overflow: hidden;
}

.product__media img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product:hover .product__media img {
  transform: scale(1.06) rotate(-2deg);
}

.product__flags {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.flag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
}

.flag--dark {
  background: var(--ink);
}

.flag--green {
  background: var(--green);
}

.product__quick {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product:hover .product__quick,
.product:focus-within .product__quick {
  opacity: 1;
  transform: translateX(0);
}

.product__quick button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
}

.product__quick button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.product__quick svg {
  width: 18px;
  height: 18px;
}

.product__cat {
  margin-bottom: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.product h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.product h3 a:hover {
  color: var(--accent);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
  color: #ffb400;
}

.rating svg {
  width: 15px;
  height: 15px;
}

.rating span {
  margin-inline-start: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.price b {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.price s {
  font-size: 13.5px;
  color: var(--muted);
}

.price small {
  color: var(--muted);
}

.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cart-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.cart-btn svg {
  width: 17px;
  height: 17px;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--green);
}

.stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- promo banner ---------- */
.promo {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 44px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(130deg, var(--sky-150) 0%, #d3e6ee 55%, #bcd9e4 100%);
  overflow: hidden;
}

.promo__body h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.promo__body p {
  max-width: 440px;
  margin-bottom: 22px;
}

.promo__art {
  position: relative;
  display: grid;
  place-items: center;
}

.promo__art img {
  width: min(100%, 420px);
  filter: drop-shadow(0 24px 36px rgba(6, 45, 63, 0.2));
}

.promo__art--dark {
  background: none;
}

/* ---------- categories ---------- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cat-card {
  position: relative;
  display: block;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.cat-card img {
  width: 108px;
  height: 108px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.cat-card strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.cat-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
}

.cat-card span svg {
  width: 14px;
  height: 14px;
}

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tab {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

/* ---------- brands ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.brand-card {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-card--dark {
  background: #082f40;
  border-color: #082f40;
}

.brand-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.brand-card img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  transition: filter 0.25s ease;
}

/* ---------- cta band ---------- */
.cta-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 26px;
  padding: 38px 44px;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--ink) 0%, #0b4a63 62%, #12607f 100%);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.cta-band h2 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 27px;
}

.cta-band p {
  margin: 0;
}

/* ---------- about / info ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
}

.about__art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--sky-100), #cfe2ea);
}

.about__art img {
  width: min(100%, 420px);
  filter: drop-shadow(0 22px 32px rgba(6, 45, 63, 0.2));
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.about__stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
}

.about__stat b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.about__stat span {
  font-size: 13px;
  color: var(--muted);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.info-card__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.info-card__icon svg {
  width: 26px;
  height: 26px;
}

.info-card b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.info-card span {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- consultation form ---------- */
.consult {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 40px;
  padding: 46px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0b4a63 0%, var(--ink) 55%, #041e2b 100%);
  color: rgba(255, 255, 255, 0.78);
}

.consult h2 {
  color: var(--white);
}

.consult__art img {
  width: min(100%, 380px);
  margin-inline: auto;
}

.form-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sky-50);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.field .error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: #d92d20;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #d92d20;
  background: #fff5f5;
}

.field.has-error .error {
  display: block;
}

.form-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(30, 158, 106, 0.12);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.form-success.is-visible {
  display: flex;
}

/* ---------- blog ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.post-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, var(--sky-100), #cfe2ea);
}

.post-card__media img {
  width: 62%;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-meta svg {
  width: 15px;
  height: 15px;
}

.post-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.8;
}

.post-card p {
  margin-bottom: 16px;
  font-size: 14px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.read-more:hover svg {
  transform: translateX(-4px);
}

/* ---------- app section ---------- */
.app-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 46px;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--sky-150) 0%, #d6e8ef 60%, #c6dfe8 100%);
}

.app-band__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.app-band__actions img {
  width: 168px;
}

.app-band__art {
  display: grid;
  place-items: center;
}

.app-band__art img {
  width: min(100%, 380px);
  filter: drop-shadow(0 22px 34px rgba(6, 45, 63, 0.2));
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 60px;
  background: var(--sky-50);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 34px;
  padding-block: 56px 40px;
}

.footer-col h4 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 16.5px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.footer-col p {
  font-size: 14px;
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.footer-contact li + li {
  margin-top: 16px;
}

.footer-contact svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--accent);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 132px;
  min-height: 48px;
  padding: 6px 11px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.socials svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.social-link__label {
  display: grid;
  gap: 2px;
  line-height: 1.35;
}

.social-link__label strong {
  font-size: 11px;
  font-weight: 800;
}

.social-link__label small {
  color: var(--muted);
  font-size: 9px;
  direction: ltr;
}

.socials a:hover .social-link__label small {
  color: rgba(255,255,255,.82);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 26px;
}

.badges {
  display: flex;
  gap: 14px;
}

.badges img {
  width: 86px;
  height: 86px;
}

.footer-bottom p {
  margin: 0;
  font-size: 13.5px;
}

/* ---------- breadcrumb / page head ---------- */
.page-head {
  padding-block: 34px 0;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

.crumb svg {
  width: 14px;
  height: 14px;
}

.page-title-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
  padding: 34px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--sky-150), #cfe2ea);
}

.page-title-bar h1 {
  margin-bottom: 6px;
  font-size: 30px;
}

.page-title-bar p {
  margin: 0;
  font-size: 14.5px;
}

.page-title-bar img {
  width: 150px;
}

/* ---------- shop ---------- */
.shop {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 30px;
  align-items: start;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.panel + .panel {
  margin-top: 20px;
}

.panel h3 {
  margin-bottom: 16px;
  font-size: 16.5px;
}

.filter-list li + li {
  margin-top: 6px;
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
}

.filter-list label:hover {
  background: var(--sky-50);
  color: var(--accent);
}

.filter-list input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
}

.filter-list .count {
  margin-inline-start: auto;
  font-size: 12.5px;
  color: var(--muted);
}

.range {
  width: 100%;
  accent-color: var(--accent);
}

.range-values {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.shop-toolbar span {
  font-size: 13.5px;
  color: var(--muted);
}

.select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.select-wrap select {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sky-50);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ---------- single product ---------- */
.product-view {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: stretch;
}

/* گالری: تصویر اصلی و نوار بندانگشتی زیر آن */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-content: start;
}

.gallery--single {
  grid-template-columns: minmax(0, 1fr);
}

.gallery__main {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--white), var(--sky-50));
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(var(--tn, 6), minmax(0, 1fr));
  gap: 8px;
  justify-self: start;
  max-width: calc(var(--tn, 6) * 104px);
  margin: 0;
}

.gallery__thumbs button {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}

.gallery__thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__thumbs button:hover,
.gallery__thumbs button.is-active {
  border-color: var(--accent);
  background: var(--sky-50);
}

/* ستون اطلاعات: محتوا از بالا شروع می‌شود و یادداشت پایانی به پایین می‌چسبد */
.product-info {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.product-info .price--single {
  margin-top: 14px;
}

.rubber-color-picker { margin: 18px 0 4px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #f8fbfd; }
.rubber-color-picker > b { display: block; margin-bottom: 11px; color: var(--ink); font-size: 14px; }
.rubber-color-picker__options { display: flex; flex-wrap: wrap; gap: 9px; }
.rubber-color-option { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; transition: border-color .16s, box-shadow .16s, transform .16s; }
.rubber-color-option i { width: 17px; height: 17px; border: 1px solid #0002; border-radius: 50%; background-color: var(--swatch, #999) !important; }
.rubber-color-option:hover { transform: translateY(-1px); border-color: var(--accent); }
.rubber-color-option.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); font-weight: 700; }
.product-size-picker { margin: 18px 0 4px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #f8fbfd; }
.product-size-picker > b { display: block; margin-bottom: 11px; color: var(--ink); font-size: 14px; }
.product-size-picker__options { display: flex; flex-wrap: wrap; gap: 8px; }
.product-size-option { min-width: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; transition: border-color .16s, background .16s, color .16s, transform .16s; }
.product-size-option:hover { transform: translateY(-1px); border-color: var(--accent); }
.product-size-option.is-selected { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 700; }
.product__size { display: grid; gap: 5px; margin: 10px 0; color: var(--muted); font-size: 11px; }
.product__size select { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }

.product-info .price b {
  font-size: 30px;
}

.product-info .form-note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* مشخصات کلیدی محصول، خلاصه‌ای از جدول فنی */
.key-specs {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  list-style: none;
  overflow: hidden;
}

.key-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 15px;
  font-size: 13.5px;
}

.key-specs li + li {
  border-top: 1px solid var(--line);
}

.key-specs span {
  color: var(--muted);
}

.key-specs b {
  color: var(--ink);
  font-weight: 600;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.product-info__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.spec-list {
  margin: 18px 0;
  display: grid;
  gap: 8px;
}

.spec-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.spec-list svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.buy-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.buy-row .btn--lg {
  padding: 14px 22px;
  font-size: 15px;
}

/* دکمهٔ مشاوره در ردیف پایین و هم‌اندازه‌ی محتوا */
.buy-row > .btn--ghost {
  grid-column: 1 / -1;
  justify-self: start;
  padding-block: 10px;
}

.buy-row > .stock {
  grid-column: 1 / -1;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty button {
  width: 40px;
  height: 52px;
  border: 0;
  background: var(--sky-50);
  color: var(--ink);
  font-size: 19px;
}

.qty button:hover {
  background: var(--accent);
  color: var(--white);
}

.qty input {
  width: 50px;
  height: 52px;
  border: 0;
  text-align: center;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}

.attrs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.attr {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 13.5px;
}

.attr.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.product-desc {
  margin-top: 0;
}

.desc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.desc-main {
  min-width: 0;
}

.desc-grid aside {
  position: sticky;
  top: 24px;
  align-self: start;
}

.desc-body {
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.desc-body h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

/* توضیحات بلند تا ارتفاع معقولی جمع می‌شود و با یک کلیک باز می‌شود */
.desc-body--clamped {
  position: relative;
  max-height: 720px;
  overflow: hidden;
}

.desc-body--clamped::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(to top, #fff 25%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.desc-more {
  display: block;
  margin: 18px auto 0;
}

.desc-main .desc-more[hidden] {
  display: none;
}

/* مشخصات فنی */
.spec-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
}

.spec-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.spec-card h3 {
  margin-bottom: 16px;
  font-size: 17px;
}

/* Distinct presentation for the standardized Plus Ping Pong equipment profile. */
.spec-card--plus {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid #b8e3df;
  border-radius: 22px;
  background: linear-gradient(145deg, #f0fbfa 0%, #fff 58%, #fff7f1 100%);
  box-shadow: 0 14px 34px rgba(7, 55, 67, .1);
}

.spec-card--plus::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #ff5a12, #0b766f);
  content: "";
}

.spec-card--plus .spec-card__eyebrow {
  display: inline-flex;
  margin-bottom: 9px;
  color: #0b766f;
  font-size: 12px;
  font-weight: 800;
}

.spec-card--plus h3 {
  margin-bottom: 18px;
  color: #073746;
  font-size: 21px;
  font-weight: 900;
}

.spec-card--plus .table-spec th {
  width: 42%;
  background: rgba(11, 118, 111, .08);
}

.spec-card--plus .table-spec th,
.spec-card--plus .table-spec td {
  padding: 14px 15px;
  border-color: #d9ece9;
}

.spec-card--plus .table-spec tr.table-spec__score th,
.spec-card--plus .table-spec tr.table-spec__score td {
  color: #a8430b;
  background: #fff1e5;
  font-weight: 850;
}

.spec-card__note {
  margin: 13px 2px 0;
  color: #526d73;
  font-size: 13px;
  line-height: 1.8;
}

.table-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.table-spec th,
.table-spec td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: start;
}

.table-spec th {
  width: 40%;
  background: var(--sky-50);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- article ---------- */
.article {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 34px;
  align-items: start;
}

.article__body {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.article__hero {
  display: grid;
  place-items: center;
  padding: 30px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--sky-100), #cfe2ea);
}

.article__hero img {
  width: min(100%, 320px);
}

.article__body h2 {
  margin-top: 26px;
  font-size: 23px;
}

.quote {
  margin: 22px 0;
  padding: 20px 24px;
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--sky-50);
  font-size: 15px;
  color: var(--ink);
}

.sidebar-widget {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.sidebar-widget + .sidebar-widget {
  margin-top: 20px;
}

.sidebar-widget h3 {
  margin-bottom: 16px;
  font-size: 16.5px;
}

.sidebar-posts li {
  display: flex;
  gap: 12px;
}

.sidebar-posts li + li {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sidebar-posts img {
  flex-shrink: 0;
  width: 66px;
  height: 66px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--sky-50);
  object-fit: contain;
}

.sidebar-widget--cta p {
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text);
}

.sidebar-posts a {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
}

.sidebar-posts a:hover {
  color: var(--accent);
}

.sidebar-posts span {
  font-size: 12.5px;
  color: var(--muted);
}

.tag-cloud {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-cloud a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink);
}

.tag-cloud a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: start;
}

.map {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(6, 45, 63, 0.06) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(6, 45, 63, 0.06) 38px 39px),
    var(--sky-50);
  text-align: center;
}

.map svg {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  color: var(--accent);
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.strip div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
}

.strip b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.strip span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- cart drawer & toast ---------- */
.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 90;
  width: min(390px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(-110%);
  transition: transform 0.3s ease;
}

[dir="rtl"] .drawer {
  transform: translateX(-110%);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h3 {
  margin: 0;
  font-size: 17px;
}

.drawer__head button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
}

.drawer__head svg {
  width: 18px;
  height: 18px;
}

.drawer__body {
  flex: 1;
  padding: 20px 22px;
  overflow-y: auto;
}

.drawer__empty {
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
  color: var(--muted);
}

.drawer__empty img {
  width: 120px;
  margin-bottom: 14px;
  opacity: 0.7;
}

.drawer__foot {
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}

.drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
}

.drawer__row b {
  font-size: 18px;
  color: var(--ink);
}

.line-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.line-item img {
  width: 74px;
  height: 74px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--sky-50);
}

.line-item h4 {
  margin-bottom: 4px;
  font-size: 14.5px;
  font-weight: 600;
}

.line-item span {
  font-size: 13px;
  color: var(--muted);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 45, 63, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.toast {
  position: fixed;
  inset-block-end: 26px;
  inset-inline-start: 26px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast svg {
  width: 20px;
  height: 20px;
  color: #6ee7b7;
}

.to-top {
  position: fixed;
  inset-block-end: 26px;
  inset-inline-end: 26px;
  z-index: 70;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 90;
  width: min(320px, 86vw);
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(110%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mobile-nav__head button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
}

.mobile-nav__head svg {
  width: 18px;
  height: 18px;
}

.mobile-menu li + li {
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  display: block;
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ---------- category mega menu ---------- */
.mega--wide {
  width: min(1240px, 96vw);
  padding: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 260px;
  gap: 22px;
  /* در نمایشگرهای کوتاه، خود پنل اسکرول می‌خورد تا از صفحه بیرون نزند */
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.mega__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mega__group + .mega__group {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.mega--wide .mega__title {
  margin-bottom: 6px;
  font-size: 14.5px;
}

.mega--wide .mega__chips {
  gap: 5px;
}

.mega--wide .mega__chips a {
  padding: 4px 10px;
  font-size: 12.5px;
}

.mega__title a {
  color: inherit;
}

.mega__title a:hover {
  color: var(--accent);
}

.mega__all {
  display: inline-block;
  margin-top: 8px;
  padding-inline-start: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

.mega__all:hover {
  color: var(--accent-dark);
}

/* ---------- category directory (categories.html) ---------- */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cat-chips a {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cat-chips a:hover {
  border-color: transparent;
  background: var(--accent);
  color: var(--white);
}

.cat-dir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.cat-dir__card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  scroll-margin-top: 120px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cat-dir__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cat-dir__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cat-dir__head img {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.cat-dir__head h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.cat-dir__head h3 a {
  color: var(--ink);
}

.cat-dir__head h3 a:hover {
  color: var(--accent);
}

.cat-dir__head p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.cat-dir__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.cat-dir__list a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink);
}

.cat-dir__list a:hover {
  background: var(--sky-50);
  color: var(--accent);
}

.cat-dir__btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- category tree (shop sidebar) ---------- */
.cat-tree {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat-tree__top {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.cat-tree__top:last-child {
  border-bottom: 0;
}

.cat-tree__top a {
  flex: 1;
  padding: 11px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.cat-tree__top a:hover {
  color: var(--accent);
}

.cat-tree__top .count {
  font-size: 12px;
  color: var(--muted);
}

.cat-tree__top.is-active {
  background: var(--sky-50);
  border-radius: var(--radius-sm);
}

.cat-tree__top.is-active a {
  color: var(--accent);
}

.cat-tree__all {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
}

/* ---------- home categories footer link ---------- */
.cats-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 20px 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--sky-50);
}

.cats-foot p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- mobile menu categories ---------- */
.mobile-nav__cats {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav__cats p {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.mobile-nav__cats ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav__cats a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--sky-50);
  font-size: 13px;
  color: var(--ink);
}

.mobile-nav__cats a:hover {
  color: var(--accent);
}

/* ---------- catalog grid: states, filters, pagination ---------- */
[hidden] {
  display: none !important;
}

.product__link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.empty-state {
  padding: 46px 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
}

.empty-state p {
  margin-bottom: 16px;
  color: var(--muted);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip span {
  font-size: 11.5px;
  color: var(--muted);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.chip.is-active span {
  color: rgba(255, 255, 255, 0.78);
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sky-50);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.input::placeholder {
  color: var(--muted);
}

.input:focus {
  outline: 0;
  border-color: var(--accent);
  background: var(--white);
}

.select-wrap--block {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.select-wrap--block select {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 360px;
}

.stock--out {
  color: #d92d20;
}

/* ---------- category tree (leaves) ---------- */
.cat-tree__sub {
  margin: 0 0 10px;
  padding: 2px 16px 0 0;
  border-inline-start: 1px dashed var(--line);
  list-style: none;
}

.cat-tree__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-tree__item a {
  flex: 1;
  padding: 7px 2px;
  font-size: 13.5px;
  color: var(--text);
}

.cat-tree__item a:hover {
  color: var(--accent);
}

.cat-tree__item .count {
  font-size: 11.5px;
  color: var(--muted);
}

.cat-tree__item.is-active a {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- product description body ---------- */
.desc-body h2,
.desc-body h4,
.desc-body h5 {
  margin: 24px 0 12px;
  font-size: 18px;
  color: var(--ink);
}

.desc-body h4,
.desc-body h5 {
  font-size: 16px;
}

.desc-body > *:first-child {
  margin-top: 0;
}

.desc-body p {
  margin-bottom: 14px;
  line-height: 2;
}

.desc-body ul,
.desc-body ol {
  margin: 0 0 16px;
  padding-inline-start: 26px;
}

.desc-body ul {
  list-style: disc;
}

.desc-body ol {
  list-style: decimal;
}

.desc-body li {
  margin-bottom: 8px;
  line-height: 1.9;
}

.desc-body strong {
  color: var(--ink);
}

.desc-body a {
  color: var(--accent);
  text-decoration: underline;
}

/* Styled play-style recommendation cards for blade and rubber product descriptions. */
.desc-body--fit-advice .fit-advice {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 4px 14px;
  margin: 26px 0;
  padding: 22px 20px;
  border: 1px solid transparent;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(18, 47, 63, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.desc-body--fit-advice .fit-advice:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(18, 47, 63, .11);
}

.desc-body--fit-advice .fit-advice--yes {
  border-color: #ccebe1;
  border-inline-start: 5px solid #16856c;
  background: linear-gradient(115deg, #f1fbf7 0%, #fff 78%);
}

.desc-body--fit-advice .fit-advice--no {
  border-color: #f4ded4;
  border-inline-start: 5px solid #df704d;
  background: linear-gradient(115deg, #fff6f1 0%, #fff 78%);
}

.desc-body--fit-advice .fit-advice__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.desc-body--fit-advice .fit-advice--yes .fit-advice__icon { background: #16856c; }
.desc-body--fit-advice .fit-advice--no .fit-advice__icon { background: #df704d; }

.desc-body--fit-advice .fit-advice__title {
  grid-column: 2;
  margin: 0 0 5px;
  color: #123746;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.8;
}

.desc-body--fit-advice .fit-advice--yes .fit-advice__title { color: #126b58; }
.desc-body--fit-advice .fit-advice--no .fit-advice__title { color: #a44d32; }

.desc-body--fit-advice .fit-advice__copy {
  grid-column: 2;
  margin: 0;
  color: #465d65;
  line-height: 2.05;
}

@media (max-width: 600px) {
  .desc-body--fit-advice .fit-advice {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 3px 10px;
    padding: 17px 14px;
    border-radius: 16px;
  }
  .desc-body--fit-advice .fit-advice__icon { width: 32px; height: 32px; font-size: 17px; }
  .desc-body--fit-advice .fit-advice__title { font-size: 16px; }
}

.md-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.md-table th,
.md-table td {
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: start;
}

.md-table th {
  background: var(--sky-50);
  color: var(--ink);
}

/* ==========================================================================
   عضویت با موبایل، کارتابل مشتری و تکمیل سفارش
   ========================================================================== */

/* ---------- دکمه‌های غیرفعال ---------- */
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- حساب کاربری در نوار بالا ---------- */
.tool-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-logout {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tool-logout:hover {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tool-logout svg {
  width: 19px;
  height: 19px;
}

/* ---------- منوی موبایل و سبد خرید ---------- */
.mobile-auth {
  padding: 14px 16px;
  margin-top: 16px;
  border-radius: var(--radius-md);
  background: var(--sky-50);
}

.mobile-auth b {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink);
}

.mobile-auth__links {
  display: grid;
  gap: 8px;
}

.mobile-auth__links a,
.mobile-auth__links button {
  display: block;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  text-align: start;
  cursor: pointer;
}

.mobile-auth__links a:hover,
.mobile-auth__links button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.mobile-auth p {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.drawer__note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.line-item__text {
  flex: 1;
  min-width: 0;
}

.line-item__remove {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.line-item__remove:hover {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.line-item__remove svg {
  width: 15px;
  height: 15px;
}

/* ---------- اجزای مشترک فرم ---------- */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field--check {
  display: flex;
  align-items: center;
}

.field__hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.check a {
  color: var(--accent);
  text-decoration: underline;
}

.check--top {
  margin-bottom: 18px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--accent-dark);
}

/* ---------- ورود و عضویت ---------- */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 26px;
  align-items: start;
}

.auth-card {
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.auth-card h1 {
  margin-bottom: 10px;
  font-size: 24px;
}

.auth-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.auth-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--sky-50);
  font-size: 13px;
  color: var(--muted);
}

.auth-steps li b {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
}

.auth-steps li.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.auth-steps li.is-active b {
  background: var(--accent);
  color: var(--white);
}

.auth-form {
  display: none;
}

.auth-form.is-active {
  display: block;
}

.auth-form .field {
  margin-bottom: 16px;
}

.auth-form .check {
  margin-bottom: 20px;
}

.auth-sub {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text);
}

.auth-sub b {
  direction: ltr;
  unicode-bidi: embed;
  color: var(--ink);
}

.auth-alt {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-alert {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
}

.auth-alert--error {
  background: #ffe9e5;
  color: #b8320f;
}

.auth-resend {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.auth-resend b {
  color: var(--ink);
}

.auth-note {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--sky-50);
  font-size: 13px;
  color: var(--text);
}

.auth-note b {
  color: var(--ink);
}

.auth-note span {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.auth-note a {
  color: var(--accent);
}

.otp {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  direction: ltr;
}

.otp input {
  height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--sky-50);
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.otp input:focus {
  border-color: var(--accent);
  background: var(--white);
  outline: none;
}

.dev-code {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 13px;
  color: var(--accent-dark);
}

.dev-code b {
  display: block;
  margin-bottom: 4px;
}

.dev-code strong {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 3px;
}

.auth-side {
  padding: 30px 28px;
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
}

.auth-side h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 20px;
}

.auth-benefits {
  display: grid;
  gap: 14px;
}

.auth-benefits li {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-benefits li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.auth-benefits b {
  color: var(--white);
  font-size: 14.5px;
}

.auth-benefits span {
  font-size: 13px;
}

.auth-privacy {
  margin-top: 18px;
  font-size: 12.5px;
}

.demo-login {
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed var(--sky-100);
  border-radius: var(--radius-md);
  background: var(--sky-50);
}

.demo-login__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.demo-login__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e4f6ee;
  color: #14724d;
  font-size: 17px;
  font-weight: 700;
}

.demo-login__head b,
.demo-login__head small {
  display: block;
}

.demo-login__head b {
  font-size: 14px;
  color: var(--ink);
}

.demo-login__head small {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.demo-login__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.demo-login__form .field {
  margin: 0;
}

.demo-login__form .btn,
.demo-login__form .auth-alert {
  grid-column: 1 / -1;
}

.demo-login__form input {
  min-height: 44px;
}

.demo-login__hint {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- کارتابل مشتری ---------- */
.account__guest {
  max-width: 560px;
  margin-inline: auto;
  padding: 46px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.account__guest img {
  width: 92px;
  margin: 0 auto 18px;
}

.account__guest h1 {
  margin-bottom: 10px;
  font-size: 24px;
}

.account__guest p {
  margin-bottom: 22px;
  color: var(--text);
}

.account__layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.account__side {
  position: sticky;
  top: 96px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.account__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.account__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 700;
}

.account__user b {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
}

.account__user small {
  direction: ltr;
  font-size: 12.5px;
  color: var(--muted);
}

.account__nav {
  display: grid;
  gap: 4px;
}

.account__nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.account__nav button:hover {
  background: var(--sky-50);
}

.account__nav button.is-active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.account__nav button span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--sky-100);
  color: var(--ink);
  font-size: 12px;
}

.account__nav .account__logout {
  justify-content: center;
  margin-top: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.account__nav .account__logout:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.account__main h1 {
  margin-bottom: 8px;
  font-size: 24px;
}

.account__lead {
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--text);
}

.account__lead b {
  color: var(--ink);
}

.account-panel {
  display: none;
}

.account-panel.is-active {
  display: block;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.stat span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.stat b {
  font-size: 20px;
  color: var(--ink);
}

.account-block {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.account-block + .account-block {
  margin-top: 20px;
}

.account-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.account-block__head h2 {
  font-size: 18px;
}

.account-block__head a {
  color: var(--accent);
  font-size: 13.5px;
}

.account-empty {
  padding: 28px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--sky-50);
  text-align: center;
}

.account-empty b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.account-empty p {
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--text);
}

.account__error {
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: #ffe9e5;
  color: #b8320f;
  font-size: 13px;
}

.account__note {
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.account__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.mini-select select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

/* ---------- سفارش‌ها ---------- */
.order-card {
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.order-card + .order-card {
  margin-top: 14px;
}

.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.order-card__head b {
  display: block;
  direction: ltr;
  font-size: 15px;
  color: var(--ink);
  text-align: start;
}

.order-card__head span {
  font-size: 12.5px;
  color: var(--muted);
}

.order-card__items {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
}

.order-item a {
  color: var(--ink);
}

.order-item small {
  white-space: nowrap;
  color: var(--muted);
}

.order-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}

.order-card__foot b {
  margin-inline-start: auto;
  font-size: 15px;
  color: var(--ink);
}

.order-card__detail {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--sky-50);
  font-size: 13px;
  color: var(--text);
}

.order-card__detail p {
  margin-bottom: 6px;
}

.order-card__detail p:last-child {
  margin-bottom: 0;
}

.order-card__detail b {
  color: var(--ink);
}

.order-status {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.order-status--open {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.order-status--delivered {
  background: #e4f6ee;
  color: #14724d;
}

.order-status--canceled {
  background: #f2f4f6;
  color: var(--muted);
}

/* ---------- آدرس‌ها ---------- */
.address-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.address-card + .address-card {
  margin-top: 12px;
}

.address-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.address-card header b {
  font-size: 14.5px;
  color: var(--ink);
}

.address-card header span {
  direction: ltr;
  font-size: 13px;
  color: var(--muted);
}

.address-card p {
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--text);
}

.address-card small {
  font-size: 12.5px;
  color: var(--muted);
}

.address-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ---------- تکمیل سفارش ---------- */
.checkout-guest {
  max-width: 620px;
  margin-inline: auto;
  padding: 46px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.checkout-guest img {
  width: 92px;
  margin: 0 auto 18px;
}

.checkout-guest h1 {
  margin-bottom: 10px;
  font-size: 24px;
}

.checkout-guest p {
  margin-bottom: 20px;
  color: var(--text);
}

.checkout-guest .btn + .btn {
  margin-top: 10px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 13px;
  color: var(--muted);
}

.stepper li b {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--ink);
  font-size: 13px;
}

.stepper li.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.stepper li.is-active b {
  background: var(--accent);
  color: var(--white);
}

.stepper li.is-done {
  background: var(--sky-50);
  color: var(--ink);
}

.stepper li.is-done b {
  background: var(--green);
  color: var(--white);
}

.checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.checkout-step {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.checkout-step h1 {
  margin-bottom: 20px;
  font-size: 22px;
}

.checkout-h2 {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--ink);
}

.checkout-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.choice {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.choice:hover {
  border-color: var(--sky-100);
  background: var(--sky-50);
}

.choice.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice b {
  font-size: 14.5px;
  color: var(--ink);
}

.choice small {
  font-size: 12.5px;
  color: var(--text);
}

.choice span {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-item img {
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--sky-50);
}

.checkout-item div {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.checkout-item a,
.checkout-item div b {
  font-size: 14px;
  color: var(--ink);
}

.checkout-item small {
  font-size: 12.5px;
  color: var(--muted);
}

.checkout-item > b {
  flex: none;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}

.saved-addresses {
  padding: 16px;
  margin-bottom: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--sky-50);
}

.saved-addresses__title {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

.saved-addresses__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.saved-address {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.saved-address:hover {
  border-color: var(--accent);
}

.saved-address b {
  font-size: 13.5px;
  color: var(--ink);
}

.saved-address span {
  font-size: 12.5px;
  color: var(--text);
}

.saved-address small {
  font-size: 12px;
  color: var(--muted);
}

.order-summary {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.order-summary h2 {
  margin-bottom: 16px;
  font-size: 17px;
}

.order-summary ul {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.order-summary li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.order-summary li b {
  color: var(--ink);
  white-space: nowrap;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--text);
}

.order-summary__row b {
  color: var(--ink);
}

.order-summary__row--total {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.order-summary__row--total b {
  font-size: 17px;
  color: var(--accent-dark);
}

.order-summary__note {
  font-size: 12.5px;
  color: var(--muted);
}

.order-summary__note--ok {
  color: var(--green);
}

.review-block {
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.review-block h3 {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ink);
}

.review-block p {
  font-size: 13.5px;
  color: var(--text);
}

.review-items {
  display: grid;
  gap: 8px;
}

.review-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text);
}

.review-items li b {
  color: var(--ink);
}

.checkout-step--done {
  text-align: center;
}

.done-badge {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e4f6ee;
  color: #14724d;
}

.done-badge svg {
  width: 36px;
  height: 36px;
}

.checkout-step--done .account__note {
  max-width: 520px;
  margin-inline: auto;
}

.checkout-step--done .checkout-nav {
  justify-content: center;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .slide {
    padding: 38px;
  }
  .slide__title {
    font-size: 34px;
  }
  .mega--wide {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 200px;
    gap: 18px;
  }
  /* در عرض‌های متوسط، توضیحات تک‌ستونی می‌شود تا تنگ و باریک نماند */
  .desc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .desc-grid aside {
    position: static;
  }
}

@media (max-width: 992px) {
  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .site-header__main {
    flex-wrap: wrap;
    gap: 14px;
  }
  .nav-toggle {
    display: grid;
  }
  .navbar .menu,
  .cats-btn span {
    display: none;
  }
  .hero__stage {
    border-radius: var(--radius-lg);
  }
  .slide {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 34px 24px 44px;
  }
  .slide__sub {
    margin-inline: auto;
  }
  .slide__actions,
  .slide__price {
    justify-content: center;
  }
  .slide__art {
    order: -1;
  }
  .slide__art img {
    width: min(100%, 320px);
  }
  .hero__dots {
    inset-inline: 0;
    justify-content: center;
  }
  .usp,
  .features,
  .products,
  .products--3,
  .cats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .promo,
  .about,
  .consult,
  .app-band,
  .cta-band,
  .desc-grid,
  .contact-grid,
  .product-view {
    grid-template-columns: 1fr;
  }
  .cta-band {
    text-align: center;
  }
  .cta-band .btn {
    justify-self: center;
  }
  .info-cards,
  .strip {
    grid-template-columns: 1fr;
  }
  .shop,
  .article {
    grid-template-columns: 1fr;
  }
  .shop__side {
    order: 2;
  }
  .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cat-dir {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery__thumbs {
    justify-self: stretch;
    max-width: none;
    grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
    gap: 8px;
  }
  .desc-grid aside {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }
  h1 {
    font-size: 27px;
  }
  h2 {
    font-size: 23px;
  }
  .section {
    padding-block: 42px;
  }
  .sec-head h2,
  .page-title-bar h1,
  .promo__body h2,
  .cta-band h2 {
    font-size: 22px;
  }
  .slide__title {
    font-size: 26px;
  }
  .topbar__group--links,
  .tool__text {
    display: none;
  }
  .products,
  .products--3,
  .features,
  .usp,
  .cats-grid,
  .posts,
  .brands,
  .about__stats {
    grid-template-columns: 1fr;
  }
  .promo,
  .consult,
  .app-band,
  .cta-band {
    padding: 26px 22px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .page-title-bar {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 26px 22px;
  }
  .page-title-bar img {
    margin-inline: auto;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .cat-dir__list {
    grid-template-columns: 1fr;
  }
  .cat-dir__card {
    padding: 20px 18px;
  }
  .cat-dir__head {
    gap: 12px;
  }
  .cat-dir__head img {
    width: 60px;
    height: 60px;
  }
  .cat-chips a {
    padding: 7px 13px;
    font-size: 12.5px;
  }
  .cats-foot {
    padding: 18px;
    text-align: center;
    justify-content: center;
  }

  .site-header__main {
    gap: 10px;
  }
  .header-tools {
    gap: 2px;
  }
  .header-tools .tool {
    display: none;
  }
  .header-tools .tool-logout {
    display: none;
  }
  .header-tools .tool[data-cart-open] {
    display: flex;
    padding: 4px 6px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .brand__text strong {
    font-size: 16px;
  }
  .brand__text span {
    font-size: 9.5px;
    letter-spacing: 0.09em;
  }
  .search {
    min-width: 0;
  }
  .table-spec {
    font-size: 12.5px;
  }
  .table-spec th,
  .table-spec td {
    padding: 9px 8px;
  }

  /* در موبایل دکمه‌های خرید تمام‌عرض و زیر هم می‌آیند */
  .buy-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .buy-row .qty {
    justify-self: center;
  }
  .buy-row > .btn--ghost {
    justify-self: stretch;
    text-align: center;
  }
  .product-info {
    padding: 22px 20px;
  }
  .desc-body {
    padding: 22px 20px;
  }
}

/* ---------- responsive: عضویت، کارتابل و تکمیل سفارش ---------- */
@media (max-width: 1100px) {
  .account__layout {
    grid-template-columns: 232px minmax(0, 1fr);
  }
  .checkout__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 992px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .account__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .account__side {
    position: static;
  }
  .account__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account__nav .account__logout {
    grid-column: 1 / -1;
  }
  .checkout__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .auth-card,
  .checkout-step,
  .account-block,
  .auth-side,
  .order-summary {
    padding: 20px 16px;
  }
  .account__guest,
  .checkout-guest {
    padding: 30px 18px;
  }
  .account__guest h1,
  .checkout-guest h1,
  .auth-card h1,
  .account__main h1 {
    font-size: 20px;
  }
  .auth-steps,
  .stepper,
  .stat-grid,
  .field-grid,
  .account__nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-steps li span {
    font-size: 12.5px;
  }
  .demo-login {
    padding: 15px 13px;
  }
  .demo-login__form {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo-login__form .btn,
  .demo-login__form .auth-alert {
    grid-column: auto;
  }
  .otp {
    gap: 6px;
  }
  .otp input {
    height: 50px;
    font-size: 19px;
  }
  .checkout-nav {
    justify-content: stretch;
  }
  .checkout-nav .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
  .checkout-item {
    flex-wrap: wrap;
  }
  .order-card__foot b {
    margin-inline-start: 0;
  }
}

/* Comparison results: product-led overview and readable performance charts */
.compare-summary { position: relative; padding: 23px 25px; border-color: rgba(11, 65, 87, .12); border-radius: 20px; background: linear-gradient(120deg, #f1f8fb 0%, #fff 66%, #fff7f2 100%); box-shadow: 0 12px 32px rgba(12, 45, 63, .07); }
.compare-summary::before { position: absolute; inset-block: 19px; inset-inline-start: 0; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #ff5a00, #ffad66); content: ""; }
.compare-summary > span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px; background: #fff0e8; color: #df4b00; font-size: 12px; }
.compare-summary > span::before { width: 7px; height: 7px; border-radius: 50%; background: #ff5a00; content: ""; }
.compare-summary p { margin-top: 10px; color: #17394a; font-size: 15px; line-height: 2; }
.compare-product-pair { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); align-items: stretch; gap: 13px; margin: 20px 0; }
.compare-product-card { min-width: 0; overflow: hidden; border: 1px solid #e2eaf0; border-radius: 22px; background: #fff; box-shadow: 0 13px 34px rgba(13, 44, 61, .08); animation: compare-card-in .38s ease both; }
.compare-product-card--b { animation-delay: .06s; }
.compare-product-card__top { display: grid; grid-template-columns: 126px minmax(0, 1fr) 90px; align-items: center; gap: 15px; min-height: 162px; padding: 17px; background: linear-gradient(115deg, #fff 20%, #f4f9fc); }
.compare-product-card--b .compare-product-card__top { background: linear-gradient(245deg, #fff 20%, #fff6f0); }
.compare-product-card__image { display: grid; width: 126px; height: 126px; place-items: center; overflow: hidden; border: 1px solid #e8edf1; border-radius: 16px; background: #fff; }
.compare-product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.compare-product-card__identity { display: grid; justify-items: start; min-width: 0; gap: 4px; }
.compare-product-card__tag { margin-bottom: 3px; padding: 4px 9px; border-radius: 99px; background: #e8f3f8; color: #15516b; font-size: 11px; font-weight: 800; }
.compare-product-card--b .compare-product-card__tag { background: #fff0e7; color: #dd4b00; }
.compare-product-card__brand { color: #688091; font-size: 12px; }
.compare-product-card__identity h3 { max-width: 100%; margin: 0; overflow: hidden; color: #0c2f42; font-size: 19px; line-height: 1.45; text-overflow: ellipsis; }
.compare-product-card__type { color: #698091; font-size: 12px; }
.compare-product-card__score { display: grid; justify-items: center; align-content: center; min-height: 92px; padding: 8px; border: 1px solid #d9e8ef; border-radius: 16px; background: #fff; color: #0c3449; }
.compare-product-card--b .compare-product-card__score { border-color: #ffe0cd; color: #b94100; }
.compare-product-card__score small { font-size: 11px; font-weight: 700; }
.compare-product-card__score strong { font-size: 39px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.compare-product-card__score > span { color: #8194a0; font-size: 10px; }
.compare-product-card__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 15px 18px 17px; border-top: 1px solid #edf1f4; }
.compare-product-card__metric { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; color: #536b79; font-size: 11px; }
.compare-product-card__metric b { color: #17394a; font-size: 12px; font-variant-numeric: tabular-nums; }
.compare-product-card__track { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 99px; background: #edf2f5; }
.compare-product-card__track i { display: block; height: 100%; border-radius: inherit; background: #167391; }
.compare-product-card--b .compare-product-card__track i { background: #ff681a; }
.compare-product-pair__vs { display: grid; align-content: center; justify-items: center; gap: 4px; color: #8195a0; }
.compare-product-pair__vs span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #e5eaf0; border-radius: 50%; background: #fff; color: #ff5a00; font-size: 12px; font-weight: 900; box-shadow: 0 5px 15px rgba(16, 44, 60, .08); }
.compare-product-pair__vs small { font-size: 9px; white-space: nowrap; }
.compare-performance { margin: 22px 0; padding: 23px 25px 17px; border: 1px solid #e0e9ef; border-radius: 22px; background: linear-gradient(145deg, #fff, #f7fafc); box-shadow: 0 12px 30px rgba(13, 44, 61, .06); }
.compare-performance__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.compare-performance__eyebrow { color: #ff5a00; font-size: 11px; font-weight: 800; }
.compare-performance__head h3 { margin: 3px 0 2px; color: #0c2f42; font-size: 19px; }
.compare-performance__head p { margin: 0; color: #718695; font-size: 12px; }
.compare-performance__legend { display: grid; gap: 8px; color: #496170; font-size: 11px; }
.compare-performance__legend span { display: flex; align-items: center; gap: 7px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-performance__dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.compare-performance__dot--a { background: #167391; }
.compare-performance__dot--b { background: #ff681a; }
.compare-performance__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 30px; }
.compare-meter { display: grid; gap: 8px; }
.compare-meter__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #274657; font-size: 13px; font-weight: 800; }
.compare-meter__label b { color: #536b79; font-size: 12px; font-variant-numeric: tabular-nums; }
.compare-meter__label small { padding-inline: 3px; color: #91a1ab; font-size: 11px; }
.compare-meter__tracks { display: grid; gap: 4px; }
.compare-meter__track { height: 8px; overflow: hidden; border-radius: 99px; background: #e9eff3; }
.compare-meter__fill { display: block; height: 100%; border-radius: inherit; transition: width .45s cubic-bezier(.2,.7,.2,1); }
.compare-meter__fill--a { background: linear-gradient(90deg, #0e526d, #2a9ab5); }
.compare-meter__fill--b { background: linear-gradient(90deg, #ff9852, #f05208); }
.compare-performance__note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #e8eef2; color: #708391; font-size: 11px; line-height: 1.8; }
.compare-details { margin-top: 27px; }
.compare-details__heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; margin: 0 2px 13px; }
.compare-details__heading > span { width: 100%; color: #ff5a00; font-size: 11px; font-weight: 800; }
.compare-details__heading h3 { margin: 0; color: #0b3043; font-size: 19px; }
.compare-details__heading p { margin: 0; color: #788b98; font-size: 12px; }
@keyframes compare-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 780px) {
  .compare-product-pair { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .compare-product-pair__vs { grid-row: 2; display: flex; justify-content: center; }
  .compare-product-pair__vs span { width: 36px; height: 36px; }
  .compare-product-card--b { grid-row: 3; }
  .compare-product-card__top { grid-template-columns: 104px minmax(0, 1fr) 76px; gap: 12px; min-height: 136px; padding: 13px; }
  .compare-product-card__image { width: 104px; height: 104px; }
  .compare-product-card__identity h3 { font-size: 16px; }
  .compare-product-card__score { min-height: 80px; }
  .compare-product-card__score strong { font-size: 32px; }
}
@media (max-width: 520px) {
  .compare-summary { padding: 18px 17px; }
  .compare-summary p { font-size: 13px; }
  .compare-product-card__top { grid-template-columns: 78px minmax(0, 1fr) 64px; gap: 9px; min-height: 108px; padding: 10px; }
  .compare-product-card__image { width: 78px; height: 78px; border-radius: 12px; }
  .compare-product-card__identity { gap: 2px; }
  .compare-product-card__tag { margin-bottom: 1px; padding: 3px 7px; font-size: 9px; }
  .compare-product-card__brand, .compare-product-card__type { font-size: 10px; }
  .compare-product-card__identity h3 { font-size: 14px; }
  .compare-product-card__score { min-height: 70px; padding: 5px; border-radius: 12px; }
  .compare-product-card__score small { font-size: 9px; }
  .compare-product-card__score strong { font-size: 27px; }
  .compare-product-card__metrics { gap: 8px; padding: 12px 11px; }
  .compare-product-card__metric { font-size: 10px; }
  .compare-product-card__metric b { font-size: 10px; }
  .compare-performance { padding: 17px 14px 13px; border-radius: 17px; }
  .compare-performance__head { align-items: flex-start; }
  .compare-performance__head h3 { font-size: 17px; }
  .compare-performance__head p { max-width: 205px; font-size: 11px; }
  .compare-performance__legend { font-size: 10px; }
  .compare-performance__legend span { max-width: 110px; }
  .compare-performance__grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .compare-meter__label { font-size: 12px; }
  .compare-table__product img { width: min(24vw, 100px); height: min(24vw, 96px); }
}
@media (prefers-reduced-motion: reduce) {
  .compare-product-card { animation: none; }
  .compare-meter__fill { transition: none; }
}
.loyalty-card{border:1px solid #f4d8c9;background:linear-gradient(135deg,#fff 35%,#fff6ef)}.loyalty-card .account-block__head{align-items:center}.loyalty-tier{padding:6px 11px;border-radius:99px;background:#fff0e7;color:#db4b08;font-size:12px;font-weight:800}.loyalty-balance{display:flex;align-items:baseline;gap:12px;margin:4px 0 10px}.loyalty-balance b{color:#f4510a;font-size:34px}.loyalty-balance span,.loyalty-card p{color:#617984;font-size:13px}.loyalty-next{padding:10px 12px;border-radius:10px;background:#fff;color:#455f6a}.loyalty-card h3{margin:16px 0 8px;color:#173e4e;font-size:14px}.loyalty-ledger{display:grid;gap:0;padding:0;margin:0 0 16px;list-style:none}.loyalty-ledger li{display:flex;justify-content:space-between;gap:10px;padding:9px 2px;border-bottom:1px solid #edf0f1;color:#60747d;font-size:12px}.loyalty-ledger b.is-earned{color:#188561}.loyalty-ledger b.is-used{color:#c44e41}.checkout-benefits{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0;padding:16px;border:1px solid #e2e9ec;border-radius:14px;background:#fbfcfd}.checkout-benefits label{display:block;margin-bottom:7px;color:#244755;font-size:13px;font-weight:700}.checkout-benefits__coupon>div,.checkout-benefits__points>div{display:flex;gap:8px}.checkout-benefits input{min-width:0;width:100%;height:42px;padding:8px 11px;border:1px solid #dae4e8;border-radius:9px;background:#fff;font:inherit}.checkout-benefits__points small{display:block;margin-top:6px;color:#73858d;font-size:11px}.checkout-benefits__message{grid-column:1/-1;margin:0;color:#16805d;font-size:12px}.checkout-benefits__message.is-error{color:#b94136}.order-summary__row--discount{color:#14815f}.contact-form__error{margin:8px 0;color:#b94136;font-size:12px}
@media(max-width:640px){.checkout-benefits{grid-template-columns:1fr;padding:12px}.checkout-benefits__message{grid-column:auto}.loyalty-balance b{font-size:28px}}
.loyalty-referral{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 12px;margin:14px 0;padding:13px 15px;border:1px dashed #ffc4a7;border-radius:12px;background:#fffaf6}.loyalty-referral span{color:#6b7f87;font-size:12px}.loyalty-referral b{color:#d84d0b;letter-spacing:1px;font-size:18px}.loyalty-referral small{grid-column:1/-1;color:#74858c;line-height:1.8;font-size:11px}.product-price-old{display:block;margin:0 0 3px;color:#8999a0;font-size:13px;text-decoration:line-through}.price del{margin-left:8px;color:#93a0a6;font-size:12px}
.discount-badge{display:inline-flex;align-items:center;width:max-content;margin:0 0 5px;padding:3px 8px;border-radius:999px;background:#fff0ed;color:#c83227;font-size:11px;font-weight:800;line-height:1.4}.price .price-sale,.product-info .price .price-sale,.search-suggestion__price .price-sale{color:#cf3026!important}.price del,.product-price-old,.search-suggestion__price del{color:#87949a;text-decoration:line-through}.product .price,.product-info .price{flex-wrap:wrap}.product .price .discount-badge,.product-info .price .discount-badge{flex-basis:100%}.search-suggestion__price{display:grid;justify-items:end;gap:3px;white-space:nowrap}.search-suggestion__price .discount-badge{margin:0;font-size:10px}.search-suggestion__price del{font-size:11px;font-weight:500}
.discount-badge{padding:6px 13px;font-size:17px;font-weight:900;line-height:1.55;box-shadow:0 3px 10px #cf30261c}.product-info .price .discount-badge{padding:7px 15px;font-size:20px}.search-suggestion__price .discount-badge{padding:5px 10px;font-size:14px}.slide__price{flex-wrap:wrap}.slide__price .discount-badge{flex-basis:100%;font-size:21px;padding:8px 16px}
.slide__price del{color:var(--muted);font-size:16px}.slide__price .price-sale{color:#cf3026!important}.slide--dark .slide__price del{color:rgba(255,255,255,.64)}.slide--dark .slide__price .price-sale{color:#ffb094!important}
.discount-badge{text-align:center;justify-content:center}.product .price .discount-badge,.product-info .price .discount-badge{width:100%;margin-inline:auto}.search-suggestion__price .discount-badge{justify-self:center}.slide__price .discount-badge{width:100%}
.discount-countdown{display:block;flex-basis:100%;width:max-content;max-width:100%;margin-top:5px;padding:4px 9px;border:1px solid #ffd4c7;border-radius:8px;background:#fff5f1;color:#bd3025;font-size:12px;font-weight:800;line-height:1.5;direction:rtl;text-align:center;font-variant-numeric:tabular-nums}.slide__price .discount-countdown{margin-inline:auto;background:#fff5f1;color:#bd3025}.discount-countdown[hidden]{display:none!important}
.discount-promo-row{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;flex-basis:100%;width:100%}.discount-promo-row>.discount-badge{width:auto!important;max-width:100%;flex-basis:auto!important;margin:0}.discount-promo-row>.discount-countdown{display:inline-flex;align-items:center;flex-basis:auto;width:auto;max-width:100%;margin:0;white-space:nowrap}.discount-promo-row>.discount-countdown[hidden]{display:none!important}
.slide--has-background{background-image:linear-gradient(90deg,rgba(235,245,249,.94) 0%,rgba(235,245,249,.82) 48%,rgba(235,245,249,.62) 100%),var(--slide-background-image);background-position:center;background-size:cover;background-repeat:no-repeat}.slide--dark.slide--has-background{background-image:linear-gradient(90deg,rgba(3,25,36,.88) 0%,rgba(3,25,36,.74) 48%,rgba(3,25,36,.52) 100%),var(--slide-background-image)}

/* Final mobile overrides: keep after the base comparison component rules. */
@media (max-width: 640px) {
  .compare { width: 100%; max-width: 100%; }
  .compare__selectors {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
  }
  .compare-select {
    width: 100%;
    min-width: 0;
    padding: 11px;
    box-sizing: border-box;
    border: 1px solid #e4ebef;
    border-radius: 14px;
    background: #fbfdfe;
  }
  .compare-select > label { padding-inline: 2px; font-size: 13px; font-weight: 800; }
  .compare-select__control { display: grid; width: 100%; min-width: 0; gap: 7px; }
  .compare-select input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 54px;
    padding: 0 13px;
    box-sizing: border-box;
    border-radius: 11px;
    background: #fff;
    font-size: 16px;
  }
  .compare-suggestions {
    inset-block-start: calc(100% + 5px);
    inset-inline: 0;
    width: 100%;
    max-height: min(48vh, 360px);
    box-sizing: border-box;
    border-radius: 12px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .compare-suggestions__item {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 64px;
    gap: 2px 9px;
    padding: 8px 9px;
  }
  .compare-suggestions__item img { grid-row: 1 / 3; width: 48px; height: 48px; }
  .compare-suggestions__item span { align-self: end; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; font-size: 13px; }
  .compare-suggestions__item small { align-self: start; font-size: 11px; }
  .compare-suggestions__empty { padding: 16px 12px; text-align: center; }
  .compare-selected { grid-template-columns: 54px minmax(0, 1fr) 32px; gap: 8px; padding: 8px; }
  .compare-selected > img { width: 54px; height: 54px; }
  .compare-selected strong { white-space: normal; line-height: 1.5; }
  .compare__vs { min-height: 20px; display: grid; place-items: center; padding: 0; }
}
@media (max-width: 380px) {
  .compare__selectors { padding: 9px; }
  .compare-select { padding: 9px; }
  .compare-select input { height: 52px; padding-inline: 11px; }
}

/* Keep saved prices intact while omitting them from unavailable product cards and pages. */
.product--unavailable .price { display: none !important; }
body.product-unavailable [data-product-view] .price { display: none !important; }
body.product-unavailable .sidebar-widget .table-spec tr:nth-child(3) { display: none !important; }
