/* ============================================================
   OVEX — layout.css
   ظرف، گرید، تاپ‌بار، هدر چسبان، جست‌وجو، ناوبری، مگامنو،
   کشوها (drawer)، نوار پایین موبایل، فوتر
   ============================================================ */

/* ---------- ظرف و گرید پایه ---------- */

.ovex-container {
  width: 100%;
  max-width: var(--ovex-container);
  margin-inline: auto;
  padding-inline: var(--ovex-pad-x);
}

.ovex-container--narrow {
  max-width: 960px;
}

.ovex-container--tight {
  max-width: 720px;
}

.ovex-row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: calc(var(--ovex-gap) / -2);
}

.ovex-row > .ovex-col {
  padding-inline: calc(var(--ovex-gap) / 2);
  margin-block-end: var(--ovex-gap);
  min-width: 0;
}

.ovex-col {
  flex: 1 1 0%;
}

.ovex-col--auto { flex: 0 0 auto; width: auto; }
.ovex-col--12 { flex: 0 0 100%; max-width: 100%; }
.ovex-col--9  { flex: 0 0 75%; max-width: 75%; }
.ovex-col--8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
.ovex-col--6  { flex: 0 0 50%; max-width: 50%; }
.ovex-col--4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.ovex-col--3  { flex: 0 0 25%; max-width: 25%; }
.ovex-col--2  { flex: 0 0 16.6667%; max-width: 16.6667%; }

/* گرید محصولات */
.ovex-grid {
  display: grid;
  gap: var(--ovex-gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ovex-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ovex-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ovex-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ovex-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ovex-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* گرید افقی اسکرول‌شونده (برای ردیف‌های موبایل) */
.ovex-grid--scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block-end: 6px;
}

.ovex-grid--scroll > * {
  flex: 0 0 46%;
  scroll-snap-align: start;
}

/* ---------- بخش‌های صفحه ---------- */

.ovex-section {
  margin-block: 26px;
}

.ovex-section--tight {
  margin-block: 16px;
}

.ovex-section--pad {
  background: var(--ovex-surface);
  border-radius: var(--ovex-r-lg);
  padding: 18px;
  box-shadow: var(--ovex-sh-1);
}

.ovex-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 14px;
}

.ovex-section__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ovex-ink);
  margin: 0;
  position: relative;
  padding-inline-start: 13px;
  line-height: 1.5;
}

.ovex-section__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  border-radius: var(--ovex-r-pill);
  background: var(--ovex-primary-grad);
}

.ovex-section__title .ovex-icon {
  color: var(--ovex-primary);
}

.ovex-section__title small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ovex-ink-3);
  margin-inline-start: 4px;
}

.ovex-section__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ovex-primary);
  background: var(--ovex-primary-50);
  border-radius: var(--ovex-r-pill);
  padding: 6px 14px;
  white-space: nowrap;
  transition:
    background-color var(--ovex-t-fast) var(--ovex-ease),
    color var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-section__more:hover {
  background: var(--ovex-primary);
  color: var(--ovex-white);
}

.ovex-section__more .ovex-icon {
  width: 15px;
  height: 15px;
}

/* ---------- تاپ‌بار ---------- */

.ovex-topbar {
  background: var(--ovex-primary-grad);
  color: var(--ovex-white);
  font-size: 12.5px;
  line-height: var(--ovex-topbar-h);
  height: var(--ovex-topbar-h);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.ovex-topbar a {
  color: var(--ovex-white);
  opacity: .92;
}

.ovex-topbar a:hover {
  color: var(--ovex-white);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ovex-topbar .ovex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.ovex-topbar__ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.ovex-topbar__ticker > span,
.ovex-topbar__ticker > p {
  display: inline-block;
  white-space: nowrap;
  padding-inline-start: 100%;
  animation: ovex-ticker 26s linear infinite;
  font-weight: 500;
}

.ovex-topbar__ticker:hover > span,
.ovex-topbar__ticker:hover > p {
  animation-play-state: paused;
}

@keyframes ovex-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(200%); }
}

.ovex-topbar__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.ovex-topbar__links li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ovex-topbar__links .ovex-icon {
  width: 15px;
  height: 15px;
}

/* ---------- هدر چسبان ---------- */

.ovex-header {
  background: var(--ovex-surface);
  position: sticky;
  top: 0;
  z-index: var(--ovex-z-header);
  box-shadow: var(--ovex-sh-1);
  transition: box-shadow var(--ovex-t) var(--ovex-ease);
}

.ovex-header.is-stuck {
  box-shadow: var(--ovex-sh-2);
}

.ovex-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--ovex-header-h);
}

/* دکمه‌ی همبرگری موبایل */
.ovex-header__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--ovex-r-sm);
  align-items: center;
  justify-content: center;
  color: var(--ovex-ink);
  flex: 0 0 auto;
}

.ovex-header__burger:hover {
  background: var(--ovex-bg);
  color: var(--ovex-primary);
}

.ovex-header__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  max-width: 190px;
}

.ovex-header__logo img,
.ovex-header__logo svg {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.ovex-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ovex-header__logo-text b {
  font-size: 18px;
  font-weight: 900;
  color: var(--ovex-brand);
}

.ovex-header__logo-text span {
  font-size: 10.5px;
  color: var(--ovex-ink-3);
  white-space: nowrap;
}

.ovex-header__search {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  max-width: 660px;
}

.ovex-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.ovex-header__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 56px;
  height: 48px;
  border-radius: var(--ovex-r);
  color: var(--ovex-ink-2);
  font-size: 11px;
  font-weight: 500;
  position: relative;
  transition:
    background-color var(--ovex-t-fast) var(--ovex-ease),
    color var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-header__action:hover {
  background: var(--ovex-primary-50);
  color: var(--ovex-primary);
}

.ovex-header__account {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--ovex-r-pill);
  border: 1px solid var(--ovex-line-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ovex-ink-2);
  white-space: nowrap;
  transition:
    border-color var(--ovex-t-fast) var(--ovex-ease),
    color var(--ovex-t-fast) var(--ovex-ease),
    background-color var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-header__account:hover {
  border-color: var(--ovex-primary);
  color: var(--ovex-primary);
  background: var(--ovex-primary-50);
}

.ovex-header__account .ovex-icon {
  width: 19px;
  height: 19px;
}

.ovex-header__cart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--ovex-r-pill);
  background: var(--ovex-primary-grad);
  color: var(--ovex-white);
  font-size: 13px;
  font-weight: 700;
  position: relative;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(251, 119, 1, .28);
  transition: transform var(--ovex-t-fast) var(--ovex-ease), box-shadow var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-header__cart:hover {
  color: var(--ovex-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(251, 119, 1, .34);
}

.ovex-header__cart:active {
  transform: translateY(0);
}

.ovex-header__cart .ovex-icon {
  width: 20px;
  height: 20px;
}

.ovex-header__cart-count {
  position: absolute;
  top: -5px;
  inset-inline-start: -5px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: var(--ovex-r-pill);
  background: var(--ovex-price);
  color: var(--ovex-white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ovex-surface);
  line-height: 1;
}

.ovex-header__cart-count.is-empty {
  display: none;
}

.ovex-header__cart-count.is-bump {
  animation: ovex-bump .4s var(--ovex-ease);
}

@keyframes ovex-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  70%  { transform: scale(.9); }
  100% { transform: scale(1); }
}

/* ---------- جعبه‌ی جست‌وجو ---------- */

.ovex-search {
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  background: var(--ovex-bg);
  border: 2px solid var(--ovex-line);
  border-radius: var(--ovex-r-pill);
  padding-inline-start: 6px;
  position: relative;
  transition:
    border-color var(--ovex-t-fast) var(--ovex-ease),
    background-color var(--ovex-t-fast) var(--ovex-ease),
    box-shadow var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-search:hover {
  border-color: var(--ovex-line-2);
}

.ovex-search.is-focus,
.ovex-search:focus-within {
  border-color: var(--ovex-primary);
  background: var(--ovex-surface);
  box-shadow: 0 0 0 4px var(--ovex-primary-100);
}

.ovex-search__cat {
  flex: 0 0 auto;
  height: 32px;
  border: 0;
  background: transparent;
  border-inline-end: 1px solid var(--ovex-line-2);
  border-radius: 0;
  padding-inline: 10px 28px;
  font-size: 13px;
  color: var(--ovex-ink-2);
  font-weight: 500;
  width: auto;
  max-width: 150px;
  background-position: left 8px center;
  cursor: pointer;
}

.ovex-search__cat:focus {
  box-shadow: none;
  background: transparent;
}

.ovex-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding-inline: 14px 8px;
  font-size: 14px;
  border-radius: 0;
}

.ovex-search__input:focus {
  box-shadow: none;
  background: transparent;
}

.ovex-search__btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 46px;
  padding-inline: 16px;
  margin-inline-end: 4px;
  border-radius: var(--ovex-r-pill);
  background: var(--ovex-primary-grad);
  color: var(--ovex-white);
  font-size: 13px;
  font-weight: 700;
  transition: filter var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-search__btn:hover {
  filter: brightness(1.06);
}

.ovex-search__btn .ovex-icon {
  width: 18px;
  height: 18px;
}

/* پیشنهادهای جست‌وجو */
.ovex-search__suggest {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  background: var(--ovex-surface);
  border-radius: var(--ovex-r);
  box-shadow: var(--ovex-sh-3);
  border: 1px solid var(--ovex-line);
  max-height: 440px;
  overflow-y: auto;
  z-index: calc(var(--ovex-z-header) + 5);
  padding: 6px;
  display: none;
}

.ovex-search__suggest.is-open {
  display: block;
  animation: ovex-fade-down var(--ovex-t) var(--ovex-ease);
}

@keyframes ovex-fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ovex-search__suggest-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ovex-ink-3);
  padding: 8px 10px 4px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.ovex-search__suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--ovex-r-sm);
  transition: background-color var(--ovex-t-fast) var(--ovex-ease);
  cursor: pointer;
}

.ovex-search__suggest-item:hover,
.ovex-search__suggest-item.is-active {
  background: var(--ovex-primary-50);
}

.ovex-search__suggest-item img {
  width: 42px;
  height: 42px;
  border-radius: var(--ovex-r-sm);
  object-fit: cover;
  background: var(--ovex-bg);
  flex: 0 0 auto;
}

.ovex-search__suggest-item b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ovex-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ovex-search__suggest-item span {
  font-size: 12px;
  color: var(--ovex-price);
  font-weight: 700;
}

.ovex-search__suggest-item .ovex-icon {
  color: var(--ovex-ink-3);
  width: 16px;
  height: 16px;
}

.ovex-search__suggest-empty {
  padding: 22px 12px;
  text-align: center;
  color: var(--ovex-ink-3);
  font-size: 13px;
}

/* ---------- نوار ناوبری ---------- */

.ovex-nav {
  background: var(--ovex-surface);
  border-top: 1px solid var(--ovex-line);
  height: var(--ovex-nav-h);
  position: relative;
  z-index: 1;
}

.ovex-nav > .ovex-container {
  height: 100%;
}

.ovex-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ovex-nav__item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ovex-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding-inline: 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ovex-ink-2);
  position: relative;
  white-space: nowrap;
  transition: color var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 13px;
  bottom: 0;
  height: 3px;
  border-radius: var(--ovex-r-pill) var(--ovex-r-pill) 0 0;
  background: var(--ovex-primary-grad);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--ovex-t) var(--ovex-ease);
}

.ovex-nav__item:hover > .ovex-nav__link,
.ovex-nav__item.is-active > .ovex-nav__link,
.ovex-nav__item.current-menu-item > .ovex-nav__link {
  color: var(--ovex-primary);
}

.ovex-nav__item:hover > .ovex-nav__link::after,
.ovex-nav__item.is-active > .ovex-nav__link::after,
.ovex-nav__item.current-menu-item > .ovex-nav__link::after {
  transform: scaleX(1);
}

.ovex-nav__link .ovex-icon {
  width: 16px;
  height: 16px;
}

/* پیکان زیرمنو */
.ovex-nav__item--has > .ovex-nav__link::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.6px solid currentColor;
  border-top: 0;
  border-inline-end: 0;
  transform: rotate(-45deg);
  margin-block-start: -4px;
  opacity: .6;
  transition: transform var(--ovex-t) var(--ovex-ease);
}

.ovex-nav__item--has:hover > .ovex-nav__link::before {
  transform: rotate(135deg);
  margin-block-start: 2px;
}

/* دکمه‌ی «همه‌ی دسته‌ها» */
.ovex-nav__all {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-inline: 14px;
  margin-inline-end: 10px;
  border-radius: var(--ovex-r-pill);
  background: var(--ovex-primary-grad);
  color: var(--ovex-white);
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}

.ovex-nav__all:hover {
  color: var(--ovex-white);
  filter: brightness(1.06);
}

/* ---------- مگامنو ---------- */

.ovex-mega {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  width: min(1000px, 92vw);
  background: var(--ovex-surface);
  border-radius: 0 0 var(--ovex-r-lg) var(--ovex-r-lg);
  box-shadow: var(--ovex-sh-3);
  border: 1px solid var(--ovex-line);
  border-top: 2px solid var(--ovex-primary);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 22px;
  z-index: var(--ovex-z-mega);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity var(--ovex-t) var(--ovex-ease),
    transform var(--ovex-t) var(--ovex-ease),
    visibility var(--ovex-t) var(--ovex-ease);
}

.ovex-nav__item:hover > .ovex-mega,
.ovex-nav__item:focus-within > .ovex-mega,
.ovex-mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* اگر منو نزدیک لبه‌ی چپ باشد، به سمت داخل کشیده می‌شود */
.ovex-nav__item--end > .ovex-mega {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.ovex-mega__col {
  min-width: 0;
  padding-block-end: 8px;
}

.ovex-mega__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ovex-ink);
  margin-block-end: 9px;
  padding-block-end: 8px;
  border-bottom: 1px solid var(--ovex-line);
}

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

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

.ovex-mega__col li {
  margin-block-end: 1px;
}

.ovex-mega__col a {
  display: block;
  font-size: 13px;
  color: var(--ovex-ink-2);
  padding: 5px 9px;
  border-radius: var(--ovex-r-sm);
  transition:
    background-color var(--ovex-t-fast) var(--ovex-ease),
    color var(--ovex-t-fast) var(--ovex-ease),
    padding-inline-start var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-mega__col a:hover {
  background: var(--ovex-primary-50);
  color: var(--ovex-primary);
  padding-inline-start: 14px;
}

/* بنر تبلیغاتی داخل مگامنو */
.ovex-mega__promo {
  grid-column: span 1;
  border-radius: var(--ovex-r);
  overflow: hidden;
  background: var(--ovex-primary-50);
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.ovex-mega__promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ovex-mega__promo b,
.ovex-mega__promo span {
  position: relative;
  z-index: 1;
}

.ovex-mega__promo b {
  font-size: 15px;
  font-weight: 800;
  color: var(--ovex-ink);
}

.ovex-mega__promo span {
  font-size: 12.5px;
  color: var(--ovex-primary-700);
  font-weight: 600;
}

/* ---------- کشوها (Drawer) ---------- */

.ovex-overlay {
  position: fixed;
  inset: 0;
  background: var(--ovex-overlay);
  z-index: var(--ovex-z-overlay);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--ovex-t) var(--ovex-ease),
    visibility var(--ovex-t) var(--ovex-ease);
  backdrop-filter: blur(2px);
}

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

.ovex-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(380px, 88vw);
  background: var(--ovex-surface);
  z-index: var(--ovex-z-drawer);
  display: flex;
  flex-direction: column;
  box-shadow: var(--ovex-sh-3);
  transition: transform var(--ovex-t) var(--ovex-ease);
  will-change: transform;
}

/* کشوی سبد از سمت چپ (RTL: انتهای خط) */
.ovex-drawer--cart {
  inset-inline-end: 0;
  transform: translateX(-100%);
}

/* کشوی منو از سمت راست (RTL: ابتدای خط) */
.ovex-drawer--menu {
  inset-inline-start: 0;
  transform: translateX(100%);
}

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

.ovex-drawer__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ovex-line);
  min-height: 58px;
}

.ovex-drawer__head b,
.ovex-drawer__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ovex-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ovex-drawer__head .ovex-icon {
  color: var(--ovex-primary);
}

.ovex-drawer__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ovex-ink-2);
  background: var(--ovex-bg);
  flex: 0 0 auto;
  transition:
    background-color var(--ovex-t-fast) var(--ovex-ease),
    color var(--ovex-t-fast) var(--ovex-ease),
    transform var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-drawer__close:hover {
  background: var(--ovex-danger-bg);
  color: var(--ovex-danger);
  transform: rotate(90deg);
}

.ovex-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px;
  -webkit-overflow-scrolling: touch;
}

.ovex-drawer__foot {
  flex: 0 0 auto;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ovex-line);
  background: var(--ovex-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ovex-drawer__foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ovex-ink-2);
}

.ovex-drawer__foot-row b {
  font-size: 17px;
  font-weight: 800;
  color: var(--ovex-price);
}

/* منوی آکاردئونی داخل کشوی موبایل */
.ovex-drawer__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ovex-drawer__menu li {
  border-bottom: 1px solid var(--ovex-line);
}

.ovex-drawer__menu > li:last-child {
  border-bottom: 0;
}

.ovex-drawer__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ovex-ink);
}

.ovex-drawer__menu a:hover {
  color: var(--ovex-primary);
}

.ovex-drawer__menu .ovex-icon {
  color: var(--ovex-primary);
  width: 18px;
  height: 18px;
}

.ovex-drawer__toggle {
  margin-inline-start: auto;
  width: 28px;
  height: 28px;
  border-radius: var(--ovex-r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ovex-ink-3);
  background: var(--ovex-bg);
  transition: transform var(--ovex-t) var(--ovex-ease);
}

.ovex-drawer__menu li.is-open > a .ovex-drawer__toggle {
  transform: rotate(180deg);
  color: var(--ovex-primary);
}

.ovex-drawer__menu ul {
  margin: 0;
  padding: 0 0 8px;
  padding-inline-start: 18px;
  list-style: none;
  display: none;
}

.ovex-drawer__menu li.is-open > ul {
  display: block;
  animation: ovex-fade-down var(--ovex-t) var(--ovex-ease);
}

.ovex-drawer__menu ul li {
  border-bottom: 0;
}

.ovex-drawer__menu ul a {
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ovex-ink-2);
}

/* ---------- نوار پایین موبایل ---------- */

.ovex-mobilebar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--ovex-z-mobilebar);
  background: var(--ovex-surface);
  border-top: 1px solid var(--ovex-line);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, .07);
  display: none;
  align-items: stretch;
  height: calc(var(--ovex-mobilebar-h) + env(safe-area-inset-bottom, 0px));
  padding-block-end: env(safe-area-inset-bottom, 0px);
}

.ovex-mobilebar__item {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ovex-ink-3);
  position: relative;
  transition: color var(--ovex-t-fast) var(--ovex-ease);
  min-width: 0;
}

.ovex-mobilebar__item .ovex-icon {
  width: 22px;
  height: 22px;
}

.ovex-mobilebar__item:hover,
.ovex-mobilebar__item--active {
  color: var(--ovex-primary);
}

.ovex-mobilebar__item--active::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 var(--ovex-r-pill) var(--ovex-r-pill);
  background: var(--ovex-primary-grad);
}

.ovex-mobilebar__badge {
  position: absolute;
  top: 4px;
  inset-inline-start: calc(50% - 20px);
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-radius: var(--ovex-r-pill);
  background: var(--ovex-price);
  color: var(--ovex-white);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ovex-mobilebar__badge.is-empty {
  display: none;
}

/* ---------- ساختار صفحه ---------- */

.ovex-main {
  min-height: 46vh;
  padding-block-end: 30px;
}

.ovex-page {
  background: var(--ovex-surface);
  border-radius: var(--ovex-r-lg);
  padding: 24px;
  box-shadow: var(--ovex-sh-1);
  margin-block: 18px;
}

.ovex-page__title {
  font-size: 23px;
  font-weight: 800;
  margin-block-end: 6px;
}

.ovex-page__meta {
  font-size: 12.5px;
  color: var(--ovex-ink-3);
  margin-block-end: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ovex-page__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ovex-layout {
  display: grid;
  grid-template-columns: var(--ovex-side-w) minmax(0, 1fr);
  gap: var(--ovex-gap-lg);
  align-items: start;
}

.ovex-layout--reverse {
  grid-template-columns: minmax(0, 1fr) var(--ovex-side-w);
}

.ovex-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

.ovex-sidebar {
  position: sticky;
  top: calc(var(--ovex-header-h) + 14px);
  align-self: start;
}

.ovex-widget {
  background: var(--ovex-surface);
  border-radius: var(--ovex-r);
  padding: 16px;
  box-shadow: var(--ovex-sh-1);
  margin-block-end: var(--ovex-gap);
}

.ovex-widget__title {
  font-size: 14.5px;
  font-weight: 800;
  margin-block-end: 12px;
  padding-block-end: 10px;
  border-bottom: 1px solid var(--ovex-line);
  position: relative;
}

.ovex-widget__title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  width: 42px;
  height: 2px;
  background: var(--ovex-primary-grad);
  border-radius: var(--ovex-r-pill);
}

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

.ovex-widget li a {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  color: var(--ovex-ink-2);
  border-bottom: 1px dashed var(--ovex-line);
}

.ovex-widget li:last-child a {
  border-bottom: 0;
}

.ovex-widget li a:hover {
  color: var(--ovex-primary);
  padding-inline-start: 6px;
}

/* ---------- فوتر ---------- */

.ovex-footer {
  background: var(--ovex-surface);
  border-top: 3px solid transparent;
  border-image: var(--ovex-primary-grad) 1;
  margin-block-start: 34px;
  padding-block-start: 30px;
}

.ovex-footer__cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) 1.2fr;
  gap: 26px;
  padding-block-end: 26px;
  border-bottom: 1px solid var(--ovex-line);
}

.ovex-footer__col {
  min-width: 0;
}

.ovex-footer__col--brand .ovex-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 12px;
}

.ovex-footer__col--brand .ovex-footer__logo img {
  height: 46px;
  width: auto;
}

.ovex-footer__about {
  font-size: 13px;
  color: var(--ovex-ink-2);
  line-height: 2.1;
  margin-block-end: 14px;
}

.ovex-footer__title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ovex-ink);
  margin-block-end: 14px;
  position: relative;
  padding-block-end: 9px;
}

.ovex-footer__title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: var(--ovex-r-pill);
  background: var(--ovex-primary-grad);
}

.ovex-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ovex-footer__links li {
  margin-block-end: 3px;
}

.ovex-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ovex-ink-2);
  padding: 4px 0;
  transition: color var(--ovex-t-fast) var(--ovex-ease), transform var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-footer__links a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ovex-line-2);
  flex: 0 0 auto;
  transition: background-color var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-footer__links a:hover {
  color: var(--ovex-primary);
}

.ovex-footer__links a:hover::before {
  background: var(--ovex-primary);
}

/* اطلاعات تماس فوتر */
.ovex-footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ovex-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ovex-ink-2);
  margin-block-end: 10px;
  line-height: 1.9;
}

.ovex-footer__contact .ovex-icon {
  color: var(--ovex-primary);
  margin-block-start: 4px;
  width: 17px;
  height: 17px;
}

.ovex-footer__contact b {
  color: var(--ovex-ink);
  font-weight: 700;
}

/* شبکه‌های اجتماعی */
.ovex-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-block-start: 14px;
}

.ovex-social__item {
  width: 38px;
  height: 38px;
  border-radius: var(--ovex-r);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ovex-bg);
  color: var(--ovex-ink-2);
  transition:
    background var(--ovex-t-fast) var(--ovex-ease),
    color var(--ovex-t-fast) var(--ovex-ease),
    transform var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-social__item:hover {
  background: var(--ovex-primary-grad);
  color: var(--ovex-white);
  transform: translateY(-2px);
}

/* بج‌های فوتر (اینماد/ساماندهی) */
.ovex-footer__badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ovex-enamad {
  width: 104px;
  min-height: 104px;
  border: 1px solid var(--ovex-line);
  border-radius: var(--ovex-r);
  background: var(--ovex-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  text-align: center;
  transition:
    border-color var(--ovex-t-fast) var(--ovex-ease),
    box-shadow var(--ovex-t-fast) var(--ovex-ease);
  overflow: hidden;
}

.ovex-enamad:hover {
  border-color: var(--ovex-primary);
  box-shadow: var(--ovex-sh-2);
}

.ovex-enamad img,
.ovex-enamad svg {
  max-width: 82px;
  max-height: 82px;
  width: auto;
  height: auto;
  margin-inline: auto;
}

.ovex-enamad span {
  font-size: 10px;
  color: var(--ovex-ink-3);
  line-height: 1.5;
}

/* درگاه‌های پرداخت */
.ovex-payments {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ovex-payments__item {
  height: 40px;
  min-width: 78px;
  padding: 5px 10px;
  border: 1px solid var(--ovex-line);
  border-radius: var(--ovex-r-sm);
  background: var(--ovex-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ovex-ink-2);
  transition:
    border-color var(--ovex-t-fast) var(--ovex-ease),
    transform var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-payments__item:hover {
  border-color: var(--ovex-primary);
  transform: translateY(-2px);
}

.ovex-payments__item img,
.ovex-payments__item svg {
  max-height: 28px;
  width: auto;
}

/* ردیف پایانی فوتر */
.ovex-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 16px;
  font-size: 12.5px;
  color: var(--ovex-ink-3);
}

.ovex-footer__bottom a {
  color: var(--ovex-primary);
  font-weight: 600;
}

.ovex-footer__copy {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- دکمه‌ی بازگشت به بالا ---------- */

.ovex-totop {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ovex-primary-grad);
  color: var(--ovex-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ovex-sh-3);
  z-index: calc(var(--ovex-z-mobilebar) - 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity var(--ovex-t) var(--ovex-ease),
    transform var(--ovex-t) var(--ovex-ease),
    visibility var(--ovex-t) var(--ovex-ease);
}

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

.ovex-totop:hover {
  color: var(--ovex-white);
  filter: brightness(1.07);
}

/* ============================================================
   ۹۹) تکمیل چیدمان — کلاس‌هایی که در قالب استفاده شده‌اند
   (افزوده‌ی مرحله‌ی یکپارچه‌سازی)
   ============================================================ */

/* ----------------------------------------------------------
   ۹۹.۱) نوار بالا و هدر
   ---------------------------------------------------------- */

.ovex-topbar__menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ovex-topbar__menu a {
  color: inherit;
  opacity: .85;
}

.ovex-topbar__menu a:hover {
  opacity: 1;
}

.ovex-topbar__menu li {
  white-space: nowrap;
}

/*
  در موبایل فقط نوار خبری بماند. responsive.css کلاس .ovex-topbar__links را
  پنهان می‌کند ولی هدر در عمل .ovex-topbar__menu چاپ می‌کند و منو
  روی متن نوار می‌افتاد.
*/
@media (max-width: 768px) {
  .ovex-topbar__menu {
    display: none;
  }

  .ovex-topbar__ticker {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* وقتی نوار بالا فعال است، هدر چسبان باید پایین‌تر بنشیند */
body.ovex-has-topbar .ovex-header.is-stuck {
  inset-block-start: 0;
}

.ovex-header__row {
  display: flex;
  align-items: center;
  gap: var(--ovex-gap);
  width: 100%;
  min-width: 0;
}

/*
  در موبایل، responsive.css به جست‌وجو `flex: 1 0 100%` می‌دهد تا به ردیف
  دوم برود؛ اگر ردیف wrap نشود جست‌وجو از کادر بیرون می‌زند و کل صفحه
  اسکرول افقی پیدا می‌کند (بدنه‌ی سند ۷۶۱px به‌جای ۴۹۴px می‌شد).
*/
@media (max-width: 768px) {
  .ovex-header__row {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

/* سپر ایمنی: هیچ‌وقت اسکرول افقی در کل صفحه نداشته باشیم.
   از clip استفاده می‌شود تا هدر چسبان (sticky) خراب نشود. */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

.ovex-header__logo-img {
  display: block;
  height: var(--ovex-logo-h, 38px);
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.ovex-header__action-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

.ovex-header__action-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--ovex-ink-3);
}

.ovex-header__cart-total {
  font-size: 13px;
  font-weight: 800;
  color: var(--ovex-ink);
}

.ovex-header__cart-total .ovex-price__unit {
  font-size: 10px;
}

.ovex-header__wishlist {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--ovex-r);
  color: var(--ovex-ink-2);
  transition: background var(--ovex-t-fast) var(--ovex-ease), color var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-header__wishlist:hover {
  background: var(--ovex-primary-50);
  color: var(--ovex-primary);
}

.ovex-header__wishlist-count {
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ovex-r-pill);
  border: 2px solid var(--ovex-surface);
  background: var(--ovex-brand);
  color: var(--ovex-white);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.ovex-header__wishlist-count.is-empty,
.ovex-header__wishlist-count[data-count="0"] {
  display: none;
}

/* ----------------------------------------------------------
   ۹۹.۲) منوی اصلی و مگامنو
   ---------------------------------------------------------- */

.ovex-nav__caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-start: 4px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-nav__item--mega:hover .ovex-nav__caret,
.ovex-nav__item--has:hover .ovex-nav__caret {
  transform: rotate(-135deg) translateY(-2px);
}

.ovex-nav__item--mega {
  position: static;
}

.ovex-nav__sub {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--ovex-surface);
  border-radius: var(--ovex-r);
  box-shadow: var(--ovex-sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--ovex-t) var(--ovex-ease), transform var(--ovex-t) var(--ovex-ease), visibility var(--ovex-t);
  z-index: var(--ovex-z-mega);
}

.ovex-nav__item:hover > .ovex-nav__sub,
.ovex-nav__item:focus-within > .ovex-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ovex-nav__subitem > a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--ovex-r-sm);
  color: var(--ovex-ink-2);
  font-size: 13px;
}

.ovex-nav__subitem > a:hover {
  background: var(--ovex-primary-50);
  color: var(--ovex-primary);
}

.ovex-mega__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  flex: 1 1 auto;
}

.ovex-mega__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.ovex-mega__link {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ovex-ink-2);
}

.ovex-mega__link:hover {
  color: var(--ovex-primary);
  padding-inline-start: 4px;
}

.ovex-mega__thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ovex-bg);
  flex: 0 0 auto;
}

/* ----------------------------------------------------------
   ۹۹.۳) کشوها
   ---------------------------------------------------------- */

.ovex-drawer__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--ovex-r);
  background: var(--ovex-primary-50);
  color: var(--ovex-primary-700);
  font-weight: 700;
  font-size: 13px;
}

/* ----------------------------------------------------------
   ۹۹.۴) نوار پایین موبایل
   ---------------------------------------------------------- */

.ovex-mobilebar__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.ovex-mobilebar__label {
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

/* شمارنده‌ی سبد داخل نوار پایین (ovex.js با .ovex-mobilebar__count به‌روزش می‌کند) */
.ovex-mobilebar__count {
  position: absolute;
  top: -6px;
  inset-inline-start: -8px;
}

/* ----------------------------------------------------------
   ۹۹.۵) پابرگ
   ---------------------------------------------------------- */

.ovex-footer__top {
  display: grid;
  gap: 24px;
  padding-block: 32px 24px;
}

.ovex-footer__col--about {
  grid-column: span 2;
}

.ovex-footer__about-text {
  margin: 10px 0 14px;
  color: var(--ovex-ink-3);
  font-size: 13px;
  line-height: 2;
}

.ovex-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ovex-footer__social-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--ovex-r);
  background: var(--ovex-bg);
  color: var(--ovex-ink-2);
  transition: background var(--ovex-t-fast) var(--ovex-ease), color var(--ovex-t-fast) var(--ovex-ease), transform var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-footer__social-item:hover {
  background: var(--ovex-primary);
  color: var(--ovex-white);
  transform: translateY(-2px);
}

.ovex-footer__widget {
  margin-block-start: 14px;
}

.ovex-footer__badges-label {
  display: block;
  margin-block-end: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ovex-ink-3);
}

.ovex-footer__badges-trust,
.ovex-footer__badges-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ovex-footer__badges-pay {
  margin-block-start: 14px;
}

.ovex-footer__copy-text {
  color: var(--ovex-ink-3);
  font-size: 12px;
}

.ovex-footer__domain {
  margin: 0;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--ovex-primary);
  direction: ltr;
  unicode-bidi: isolate;
}

/* ----------------------------------------------------------
   ۹۹.۶) صفحه‌ی اصلی — بخش قهرمان (hero)
   ---------------------------------------------------------- */

.ovex-hero {
  padding-block: var(--ovex-gap) 0;
}

/*
  ارتفاع ردیف قهرمان را اسلایدر تعیین می‌کند (نسبت تصویر ۱۶۰۰×۶۰۰).
  ستون بنرها کمی باریک‌تر شد تا اسلایدر عریض‌تر و در نتیجه بلندتر شود،
  و سه بنر دقیقاً هم‌ارتفاع اسلایدر بین خودشان تقسیم می‌شوند
  (قبلاً فقط دو ردیف تعریف شده بود و بنر سوم ستون را بلندتر از اسلایدر می‌کرد).
*/
.ovex-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: var(--ovex-gap);
  align-items: stretch;
}

.ovex-hero__slider {
  min-width: 0;
  min-height: 0;
  display: flex;
}

.ovex-hero__slider > .ovex-slider {
  width: 100%;
}

.ovex-hero__banners {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: var(--ovex-gap);
  min-height: 0;
}

.ovex-hero__banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px 14px;
  border-radius: var(--ovex-r-lg);
  background: var(--ovex-primary-100);
  color: var(--ovex-ink);
  overflow: hidden;
  min-height: 0;
  box-shadow: var(--ovex-sh-1);
  transition: box-shadow var(--ovex-t) var(--ovex-ease), transform var(--ovex-t) var(--ovex-ease);
}

.ovex-hero__banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--ovex-sh-3);
}

.ovex-hero__banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*
    قبلاً opacity: .5 داشت تا متن روی تصویرِ تولیدی خوانا بماند؛ ولی بنرهای
    واقعی را محو و سفید نشان می‌داد. حالا تصویر کامل دیده می‌شود و خوانایی
    متن با یک گرادیان موضعی زیر متن تأمین می‌شود (پایین‌تر).
  */
  opacity: 1;
}

/* گرادیان موضعی فقط پشت متن، نه روی کل تصویر. */
.ovex-hero__banner:has(.ovex-hero__banner-img)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .34) 42%, rgba(0, 0, 0, 0) 78%);
  pointer-events: none;
}

/* روی بنرهای دارای تصویر، متن سفید می‌شود تا روی گرادیان تیره خوانا باشد. */
.ovex-hero__banner:has(.ovex-hero__banner-img) .ovex-hero__banner-body strong,
.ovex-hero__banner:has(.ovex-hero__banner-img) .ovex-hero__banner-body span,
.ovex-hero__banner:has(.ovex-hero__banner-img) .ovex-hero__banner-body em,
.ovex-hero__banner:has(.ovex-hero__banner-img) .ovex-hero__banner-more {
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.ovex-hero__banner:has(.ovex-hero__banner-img) .ovex-hero__banner-brand {
  color: rgba(255, 255, 255, .8);
}

.ovex-hero__banner-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ovex-surface);
  color: var(--ovex-primary);
  box-shadow: var(--ovex-sh-1);
}

.ovex-hero__banner-icon .ovex-icon {
  width: 19px;
  height: 19px;
}

.ovex-hero__banner-body {
  position: relative;
  display: grid;
  gap: 2px;
}

.ovex-hero__banner-body strong {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.5;
}

/*
  قالب برای زیرعنوان بنر از تگ <em> استفاده می‌کند (نه <span>)؛
  پس باید ایتالیک پیش‌فرض مرورگر خنثی شود.
*/
.ovex-hero__banner-body span,
.ovex-hero__banner-body em {
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.6;
  color: var(--ovex-ink-2);
}

.ovex-hero__banner-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ovex-primary-700);
}

.ovex-hero__banner-brand {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-start: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--ovex-ink-3);
  opacity: .8;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ----------------------------------------------------------
   ۹۹.۷) عنوان‌های بخش و گونه‌های آن
   ---------------------------------------------------------- */

.ovex-section__desc {
  margin: 4px 0 0;
  color: var(--ovex-ink-3);
  font-size: 13px;
  line-height: 1.9;
}

.ovex-section--intro,
.ovex-section--cats,
.ovex-section--banner,
.ovex-section--kids,
.ovex-section--socks,
.ovex-section--vanity,
.ovex-section--rack,
.ovex-section--new,
.ovex-section--best,
.ovex-section--404 {
  /* گونه‌ها فقط نشانه‌گذاری معنایی‌اند؛ چیدمان از .ovex-section می‌آید */
  scroll-margin-block-start: calc(var(--ovex-nav-h) + var(--ovex-header-h));
}

.ovex-section--cats {
  padding-block: 18px;
}

.ovex-section--intro {
  background: var(--ovex-primary-50);
  border-radius: var(--ovex-r-lg);
}

/* ----------------------------------------------------------
   ۹۹.۸) فهرست دسته‌ها در ستون کناری/ویجت
   ---------------------------------------------------------- */

.ovex-catlist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.ovex-catlist__item > a,
.ovex-catlist__item {
  display: block;
}

.ovex-catlist__item > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--ovex-r-sm);
  color: var(--ovex-ink-2);
  font-size: 13px;
  transition: background var(--ovex-t-fast) var(--ovex-ease), color var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-catlist__item > a:hover,
.ovex-catlist__item.is-active > a {
  background: var(--ovex-primary-50);
  color: var(--ovex-primary-700);
}

.ovex-catlist__item--parent > a {
  font-weight: 800;
  color: var(--ovex-ink);
}

.ovex-catlist__thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ovex-bg);
  flex: 0 0 auto;
}

.ovex-catlist__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ovex-catlist__count {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 1px 6px;
  border-radius: var(--ovex-r-pill);
  background: var(--ovex-bg);
  color: var(--ovex-ink-3);
  font-size: 11px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ovex-catlist__sub {
  margin: 0;
  padding-inline-start: 18px;
  list-style: none;
  display: grid;
  gap: 2px;
}

/* ----------------------------------------------------------
   ۹۹.۹) بایگانی نوشته‌ها و تک‌نوشته
   ---------------------------------------------------------- */

.ovex-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--ovex-gap-lg);
}

.ovex-post {
  display: flex;
  flex-direction: column;
  background: var(--ovex-surface);
  border-radius: var(--ovex-r);
  overflow: hidden;
  box-shadow: var(--ovex-sh-1);
  transition: box-shadow var(--ovex-t) var(--ovex-ease), transform var(--ovex-t) var(--ovex-ease);
}

.ovex-post:hover {
  box-shadow: var(--ovex-sh-3);
  transform: translateY(-2px);
}

.ovex-post--single {
  box-shadow: none;
  background: none;
  transform: none;
}

.ovex-post--single:hover {
  box-shadow: none;
  transform: none;
}

.ovex-post__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--ovex-bg);
  overflow: hidden;
}

.ovex-post__media--single {
  aspect-ratio: auto;
  border-radius: var(--ovex-r-lg);
  margin-block-end: 20px;
}

.ovex-post__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--ovex-t-slow) var(--ovex-ease);
}

.ovex-post:hover .ovex-post__img {
  transform: scale(1.04);
}

.ovex-post__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  flex: 1 1 auto;
}

.ovex-post__header {
  margin-block-end: 18px;
}

.ovex-post__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.8;
  color: var(--ovex-ink);
}

.ovex-post--single .ovex-post__title {
  font-size: 26px;
  line-height: 1.7;
}

.ovex-post__title a {
  color: inherit;
}

.ovex-post__title a:hover {
  color: var(--ovex-primary);
}

.ovex-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ovex-ink-3);
}

.ovex-post__meta a {
  color: inherit;
}

.ovex-post__meta a:hover {
  color: var(--ovex-primary);
}

.ovex-post__excerpt {
  margin: 0;
  color: var(--ovex-ink-2);
  font-size: 13px;
  line-height: 2;
}

.ovex-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 24px;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--ovex-line);
  font-size: 12px;
}

.ovex-post__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ovex-gap);
  margin-block-start: 24px;
}

.ovex-post__nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--ovex-r);
  background: var(--ovex-surface);
  box-shadow: var(--ovex-sh-1);
  color: var(--ovex-ink);
  font-size: 13px;
  transition: box-shadow var(--ovex-t) var(--ovex-ease);
}

.ovex-post__nav-item:hover {
  box-shadow: var(--ovex-sh-2);
  color: var(--ovex-primary);
}

.ovex-post__nav-item small {
  color: var(--ovex-ink-3);
  font-size: 11px;
}

.ovex-post__nav-item--prev {
  text-align: start;
}

.ovex-post__nav-item--next {
  text-align: end;
}

/* ----------------------------------------------------------
   ۹۹.۱۰) برگه‌ی ساده
   ---------------------------------------------------------- */

.ovex-page__media {
  display: block;
  margin-block-end: 20px;
  border-radius: var(--ovex-r-lg);
  overflow: hidden;
}

.ovex-page__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------------------------
   ۹۹.۱۱) دیدگاه‌ها
   ---------------------------------------------------------- */

.ovex-comments {
  margin-block-start: 32px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--ovex-line);
}

.ovex-comments__title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ovex-ink);
}

.ovex-comments__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.ovex-comments__list .children {
  margin: 16px 0 0;
  padding-inline-start: 24px;
  list-style: none;
  display: grid;
  gap: 16px;
  border-inline-start: 2px solid var(--ovex-line);
}

.ovex-comments__closed,
.ovex-comments__notes {
  margin: 0;
  font-size: 12px;
  color: var(--ovex-ink-3);
}

.ovex-comments__form {
  background: var(--ovex-surface);
  border-radius: var(--ovex-r);
  padding: 18px;
  box-shadow: var(--ovex-sh-1);
}

.ovex-comment {
  list-style: none;
}

.ovex-comment__main {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--ovex-r);
  background: var(--ovex-surface);
  box-shadow: var(--ovex-sh-1);
}

.ovex-comment__avatar {
  flex: 0 0 auto;
}

.ovex-comment__avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
}

.ovex-comment__body {
  flex: 1 1 auto;
  min-width: 0;
}

.ovex-comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-block-end: 6px;
}

.ovex-comment__author {
  font-weight: 800;
  font-size: 14px;
  color: var(--ovex-ink);
}

.ovex-comment__date {
  font-size: 11px;
  color: var(--ovex-ink-3);
}

.ovex-comment__text {
  color: var(--ovex-ink-2);
  font-size: 13px;
  line-height: 2;
}

.ovex-comment__text p {
  margin: 0 0 .6em;
}

.ovex-comment__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 8px;
  font-size: 12px;
}

.ovex-comment__foot a,
.ovex-comment__edit {
  color: var(--ovex-primary);
}

.ovex-comment__pending {
  display: inline-block;
  margin-block-end: 6px;
  padding: 2px 8px;
  border-radius: var(--ovex-r-pill);
  background: var(--ovex-warning-bg);
  color: var(--ovex-warning-ink);
  font-size: 11px;
  font-weight: 700;
}

/* ----------------------------------------------------------
   ۹۹.۱۲) صفحه‌ی ۴۰۴
   ---------------------------------------------------------- */

.ovex-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-block: 48px 40px;
  text-align: center;
}

.ovex-404__art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--ovex-primary-100);
  color: var(--ovex-primary);
}

.ovex-404__code {
  margin: 0;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: var(--ovex-primary);
  font-variant-numeric: tabular-nums;
}

.ovex-404__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ovex-ink);
}

.ovex-404__text {
  margin: 0;
  max-width: 460px;
  color: var(--ovex-ink-2);
  font-size: 14px;
  line-height: 2;
}

.ovex-404__search {
  width: min(100%, 520px);
  margin-block: 6px;
}

.ovex-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ovex-404__cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ----------------------------------------------------------
   ۹۹.۱۳) اشتراک‌گذاری
   ---------------------------------------------------------- */

.ovex-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-start: 16px;
}

.ovex-share__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ovex-ink-3);
}

.ovex-share__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ovex-bg);
  color: var(--ovex-ink-2);
  border: 0;
  cursor: pointer;
  transition: background var(--ovex-t-fast) var(--ovex-ease), color var(--ovex-t-fast) var(--ovex-ease), transform var(--ovex-t-fast) var(--ovex-ease);
}

.ovex-share__item:hover {
  background: var(--ovex-primary);
  color: var(--ovex-white);
  transform: translateY(-2px);
}

.ovex-share__item--copy.is-active {
  background: var(--ovex-success);
  color: var(--ovex-white);
}

/* ----------------------------------------------------------
   ۹۹.۱۴) فیلتر ستون کناری — جعبه‌ی تضمین‌ها
   ---------------------------------------------------------- */

.ovex-filter__trust {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--ovex-r);
  background: var(--ovex-primary-50);
  font-size: 12px;
  color: var(--ovex-ink-2);
}

/* ----------------------------------------------------------
   ۹۹.۱۵) واکنش‌گرایی پایه‌ی بخش‌های بالا
   (اصلاحات ریزتر در responsive.css است)
   ---------------------------------------------------------- */

@media (max-width: 1024px) {
  .ovex-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ovex-hero__banners {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ovex-footer__col--about {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .ovex-hero__banners {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .ovex-footer__col--about {
    grid-column: auto;
  }

  .ovex-404__code {
    font-size: 44px;
  }
}
