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

:root {
  --font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --brand-primary: #5C2D91;
  --brand-dark: #4A2375;
  --brand-light: #7B4DB5;
  --white: #FFFFFF;
  --black: #1a1a1a;
  --text-muted: #5a5a5a;
  --nav-border: #e8e0f0;
  --veloo-blue: var(--brand-primary);
  --veloo-blue-light: var(--brand-light);
  --header-bg: var(--white);
  --header-secondary: var(--white);
  --hero-bg: var(--brand-dark);
  --bank-green: var(--brand-primary);
  --bank-green-dark: var(--brand-dark);
  --cta-bg: var(--white);
  --orange: var(--brand-primary);
  --veloo-red: var(--brand-dark);
  --orange-badge: var(--brand-light);
  --purple-tab: #ddd0f0;
  --purple-tab-dark: #cfc0e8;
  --accent-sale: var(--brand-primary);
  --link-color: var(--brand-light);
  --card-border: #e0d6ec;
  --shadow: 0 2px 8px rgba(92, 45, 145, 0.1);
  --header-height: 60px;
  --catnav-height: 46px;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  direction: rtl;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ── Site Header (Veloo) ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.site-header__top {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 14px 24px 10px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-header__logo-img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.site-header__logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.site-header__logo-icon svg {
  width: 100%;
  height: 100%;
}

.site-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-header__brand {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--veloo-blue);
  letter-spacing: -0.5px;
}

.site-header__tagline {
  font-size: 0.55rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.site-header__search {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 44px;
  gap: 0;
}

.site-header__search-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.site-header__search-field input {
  width: 100%;
  height: 44px;
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 4px 4px 0;
  padding: 0 44px 0 16px;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--black);
  background: var(--white);
  outline: none;
}

.site-header__search-field input:focus {
  border-color: var(--brand-light);
  box-shadow: inset 0 0 0 1px var(--brand-light);
}

.site-header__search-field input::placeholder {
  color: #999;
}

.site-header__search-icon {
  position: absolute;
  right: 14px;
  width: 20px;
  height: 20px;
  color: #999;
  pointer-events: none;
}

.site-header__search-btn {
  height: 44px;
  padding: 0 28px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 4px 0 0 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.site-header__search-btn:hover {
  background: var(--brand-dark);
}

.site-header__link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--veloo-blue);
  padding: 4px 6px;
  transition: opacity 0.15s;
}

.site-header__link:hover {
  opacity: 0.75;
}

.site-header__link svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.site-header__link span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.site-header__link small {
  font-size: 0.72rem;
  color: #666;
}

.site-header__link strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--veloo-blue);
}

.site-header__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-right: 1px solid var(--nav-border);
  border-left: 1px solid var(--nav-border);
  padding: 0 12px;
}

.site-header__lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.78rem;
  color: #888;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
}

.site-header__lang-btn--active {
  color: var(--veloo-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header__cart {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--veloo-blue);
  padding: 4px 0;
  background: none;
  border: none;
  font-family: var(--font);
  cursor: pointer;
}

.mini-cart {
  position: relative;
  flex-shrink: 0;
}

.account-menu {
  position: relative;
  flex-shrink: 0;
}

.account-menu__toggle {
  background: none;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  text-align: inherit;
}

.account-menu__toggle[aria-expanded="true"] {
  opacity: 1;
}

.account-menu__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 449;
}

.account-menu.is-open .account-menu__overlay {
  display: block;
}

.account-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(92, 45, 145, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 460;
}

.account-menu.is-open .account-menu__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[dir="ltr"] .account-menu__panel {
  right: auto;
  left: 0;
}

.account-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.account-menu__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand-primary);
}

.account-menu__item:hover {
  background: #f8f4fc;
  color: var(--brand-primary);
}

.account-menu__item--logout {
  color: #dc2626;
}

.account-menu__item--logout svg {
  color: #dc2626;
}

.account-menu__item--logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

body.account-menu-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .account-menu__panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    min-width: 0;
    border-radius: 16px 16px 0 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
  }

  .account-menu.is-open .account-menu__panel {
    transform: translateY(0);
  }

  [dir="ltr"] .account-menu__panel {
    left: 0;
    right: 0;
  }

  .account-menu__overlay {
    background: rgba(26, 26, 26, 0.45);
  }
}

body.mini-cart-open {
  overflow: hidden;
}

.mini-cart__toggle {
  transition: opacity 0.15s;
}

.mini-cart__toggle:hover {
  opacity: 0.85;
}

.mini-cart__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  z-index: 450;
}

.mini-cart.is-open .mini-cart__overlay {
  display: block;
}

.mini-cart__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(92, 45, 145, 0.18);
  z-index: 500;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.mini-cart.is-open .mini-cart__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[dir="ltr"] .mini-cart__panel {
  left: auto;
  right: 0;
}

.mini-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--card-border);
  background: linear-gradient(180deg, #f8f4fc 0%, var(--white) 100%);
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.mini-cart__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0;
}

.mini-cart__close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--white);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.mini-cart__close:hover {
  background: #f0e8f8;
}

.mini-cart__items {
  overflow-y: auto;
  padding: 12px;
  flex: 1;
  min-height: 80px;
}

.mini-cart__empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.mini-cart__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.mini-cart__item:hover {
  background: #faf8fc;
}

.mini-cart__item + .mini-cart__item {
  border-top: 1px solid #f3eef8;
}

.mini-cart__item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f4fc;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mini-cart__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-cart__item-img--placeholder {
  font-size: 1.4rem;
}

.mini-cart__item-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-cart__item-name:hover {
  color: var(--brand-primary);
}

.mini-cart__item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.mini-cart__item-remove {
  background: none;
  border: none;
  color: #e53935;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.mini-cart__item-remove:hover {
  background: #fef2f2;
}

.mini-cart__footer {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
}

.mini-cart__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.mini-cart__subtotal strong {
  font-size: 1rem;
  color: var(--brand-primary);
}

.mini-cart__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-cart__btn {
  display: block;
  text-align: center;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}

.mini-cart__btn--ghost {
  border: 1px solid var(--card-border);
  color: var(--brand-primary);
  background: var(--white);
}

.mini-cart__btn--ghost:hover {
  background: #f3eef8;
}

.mini-cart__btn--primary {
  background: var(--brand-primary);
  color: var(--white);
}

.mini-cart__btn--primary:hover {
  background: var(--brand-dark);
}

.mini-cart__guest-msg {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.mini-cart__actions--guest {
  grid-template-columns: 1fr;
}

.cart-summary__guest-msg {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cart-summary--guest .cart-summary__checkout {
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .mini-cart__panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 78vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }

  .mini-cart.is-open .mini-cart__panel {
    transform: translateY(0);
  }

  [dir="ltr"] .mini-cart__panel {
    left: 0;
    right: 0;
  }
}

.site-header__cart-total {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-header__cart-icon-wrap {
  position: relative;
}

.site-header__cart-icon-wrap svg {
  width: 30px;
  height: 30px;
}

.site-header__cart-badge {
  position: absolute;
  top: -6px;
  left: -8px;
  background: var(--veloo-red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── LTR overrides ── */
[dir="ltr"] body {
  direction: ltr;
}

[dir="ltr"] .site-header__search-field input {
  border-radius: 4px 0 0 4px;
  border-left: 1px solid #ccc;
  border-right: none;
  padding: 0 16px 0 44px;
}

[dir="ltr"] .site-header__search-icon {
  right: auto;
  left: 14px;
}

[dir="ltr"] .site-header__search-btn {
  border-radius: 0 4px 4px 0;
}

[dir="ltr"] .site-header__nav-item--active::after {
  left: auto;
  right: 0;
}

[dir="ltr"] .site-header__cart-badge {
  left: auto;
  right: -8px;
}

[dir="ltr"] .flash-deals__link {
  margin-right: 0;
  margin-left: auto;
}

[dir="ltr"] .promo-banner__text {
  align-items: flex-start;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.65) 0%, transparent 70%);
}

/* ── Site Nav Bar ── */
.site-header__nav {
  display: flex;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px 10px;
  gap: 6px;
}

.site-header__nav-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.site-header__nav-scroll {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--nav-border);
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  padding: 0;
}

.site-header__nav-scroll:hover:not(:disabled) {
  background: #f3eef8;
  border-color: var(--brand-light);
}

.site-header__nav-scroll:disabled {
  opacity: 0.35;
  cursor: default;
}

[dir="rtl"] .site-header__nav-scroll svg {
  transform: scaleX(-1);
}

.site-header__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--veloo-blue);
  padding: 6px 8px 6px 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.site-header__menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ── Side Menu ── */
.side-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-menu.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.side-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.side-menu.is-open .side-menu__overlay {
  opacity: 1;
}

.side-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(92, 45, 145, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.side-menu.is-open .side-menu__panel {
  transform: translateX(0);
}

.side-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--card-border);
  background: linear-gradient(180deg, #f8f4fc 0%, var(--white) 100%);
}

.side-menu__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.side-menu__close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.side-menu__close:hover {
  background: #f0e8f8;
}

.side-menu__pages {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-menu__page-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--black);
  transition: background 0.15s, color 0.15s;
}

.side-menu__page-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--brand-light);
}

.side-menu__page-link:hover {
  background: #f3eef8;
  color: var(--brand-primary);
}

.side-menu__page-link--active {
  background: var(--brand-primary);
  color: var(--white);
}

.side-menu__page-link--active svg {
  color: var(--white);
}

.side-menu__divider {
  height: 1px;
  background: var(--card-border);
  margin: 4px 20px 12px;
}

.side-menu__lang {
  display: none;
  padding: 0 12px 8px;
}

.side-menu__lang-btns {
  display: flex;
  gap: 8px;
  padding: 0 8px;
}

.side-menu__lang-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.side-menu__lang-btn:hover {
  background: #f3eef8;
  border-color: #d8c8ec;
  color: var(--brand-primary);
}

.side-menu__lang-btn--active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--white);
}

.side-menu__lang-btn img {
  flex-shrink: 0;
  border-radius: 2px;
}

.side-menu__section-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 20px 10px;
}

.side-menu__categories {
  display: flex;
  flex-direction: column;
  padding: 0 12px 24px;
  gap: 2px;
}

.side-menu__categories a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--veloo-blue);
  transition: background 0.15s, color 0.15s;
}

.side-menu__categories a:hover {
  background: #f3eef8;
  color: var(--brand-primary);
}

[dir="ltr"] .side-menu__panel {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 4px 0 24px rgba(92, 45, 145, 0.15);
}

[dir="ltr"] .side-menu.is-open .side-menu__panel {
  transform: translateX(0);
}

body.side-menu-open {
  overflow: hidden;
}

.site-header__nav-list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  align-items: center;
  gap: 0;
}

.site-header__nav-list::-webkit-scrollbar {
  display: none;
}

.site-header__nav-list li a {
  display: block;
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--veloo-blue);
  transition: color 0.15s;
}

.site-header__nav-list li a:hover {
  color: var(--brand-light);
}

.site-header__nav-item--active a {
  font-weight: 800;
  color: var(--veloo-blue);
}

.site-header__nav-item--active {
  position: relative;
}

.site-header__nav-item--active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 18px;
  background: var(--brand-primary);
}

/* ── Hero Carousel ── */
.hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero__slides {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 52vh, 580px);
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hero__slide--active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.hero__top-strip {
  display: block;
  width: 100%;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.hero__top-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__body {
  position: relative;
  flex: 1;
  min-height: clamp(300px, 48vh, 520px);
}

.hero__slide:not(.hero__slide--strip) .hero__body {
  min-height: clamp(360px, 52vh, 580px);
}

.hero__slides:has(.hero__slide--strip.hero__slide--active) {
  min-height: calc(72px + clamp(300px, 48vh, 520px));
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(46, 18, 77, 0.82) 0%, rgba(46, 18, 77, 0.45) 45%, rgba(46, 18, 77, 0.15) 100%);
  z-index: 1;
}

[dir="ltr"] .hero__shade {
  background: linear-gradient(270deg, rgba(46, 18, 77, 0.82) 0%, rgba(46, 18, 77, 0.45) 45%, rgba(46, 18, 77, 0.15) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  height: 100%;
  min-height: inherit;
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 64px 52px;
}

.hero__text {
  max-width: 560px;
  text-align: right;
}

[dir="ltr"] .hero__text {
  text-align: left;
}

.hero__text h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero__text p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero__cta {
  background: var(--cta-bg);
  color: var(--black);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero__cta:hover {
  background: #f0f0f0;
  transform: scale(1.03);
}

.hero__btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 10;
  line-height: 1;
  padding: 0;
}

.hero__btn:hover {
  background: rgba(255, 255, 255, 0.45);
}

.hero__btn--prev {
  right: 16px;
}

.hero__btn--next {
  left: 16px;
}

[dir="ltr"] .hero__btn--prev {
  right: auto;
  left: 16px;
}

[dir="ltr"] .hero__btn--next {
  left: auto;
  right: 16px;
}

[dir="rtl"] .hero__btn svg {
  transform: scaleX(-1);
}

.hero__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.hero__dot--active,
.hero__dot:hover {
  background: var(--white);
  border-color: var(--white);
}

/* ── Promo Grid (horizontal scroll) ── */
.promo-grid {
  max-width: 1500px;
  margin: 24px auto;
  padding: 0 16px;
  --promo-cols: 12;
  --promo-gap: 6px;
}

.promo-grid__scroll {
  position: relative;
  padding: 0 34px;
  container-type: inline-size;
}

.promo-grid__track {
  display: flex;
  gap: var(--promo-gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.promo-grid__track::-webkit-scrollbar {
  display: none;
}

.promo-grid__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 52px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.98);
  color: var(--black);
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.promo-grid__btn:hover:not(:disabled) {
  background: #f5f0fa;
  border-color: var(--brand-light);
}

.promo-grid__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.promo-grid__btn--prev {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.promo-grid__btn--next {
  left: 0;
  border-radius: 0 8px 8px 0;
}

[dir="ltr"] .promo-grid__btn--prev {
  right: auto;
  left: 0;
  border-radius: 0 8px 8px 0;
}

[dir="ltr"] .promo-grid__btn--next {
  left: auto;
  right: 0;
  border-radius: 8px 0 0 8px;
}

.promo-grid__empty {
  flex: 1 0 100%;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}

.promo-card {
  flex: 0 0 calc((100cqi - (var(--promo-cols) - 1) * var(--promo-gap)) / var(--promo-cols));
  width: calc((100cqi - (var(--promo-cols) - 1) * var(--promo-gap)) / var(--promo-cols));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: right;
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 0;
}

[dir="ltr"] .promo-card {
  text-align: left;
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(92, 45, 145, 0.12);
}

.promo-card__media {
  position: relative;
  height: 58px;
  overflow: hidden;
  background: linear-gradient(180deg, #faf8fc 0%, #efe8f5 100%);
}

.promo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.promo-card:hover .promo-card__media img {
  transform: scale(1.04);
}

.promo-card__body {
  padding: 5px 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  flex: 0 0 auto;
  background: var(--white);
}

.promo-card h3 {
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
  margin: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-card p {
  display: none;
}

.promo-card--purple { border-top: 3px solid var(--brand-primary); }
.promo-card--pink   { border-top: 3px solid #d946a8; }
.promo-card--blue   { border-top: 3px solid #3b82f6; }
.promo-card--green  { border-top: 3px solid #16a34a; }
.promo-card--yellow { border-top: 3px solid #eab308; }
.promo-card--orange { border-top: 3px solid #f97316; }
.promo-card--grey,
.promo-card--grey2  { border-top: 3px solid #94a3b8; }

.deal-card--today .deal-card__media {
  height: 150px;
}

/* ── Deals Page ── */
.deals-page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.deals-page__hero {
  padding: 28px 0 20px;
}

.deals-page__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.deals-page__sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.deals-page__section-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--black);
}

.deals-page__banners {
  margin-bottom: 32px;
}

.deals-page__banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.deals-page__banner-grid .deal-card {
  flex: none;
  width: auto;
}

.deals-page__products {
  margin-top: 8px;
}

.deals-page__empty {
  text-align: center;
  padding: 40px 20px;
  background: #faf8fc;
  border: 1px dashed var(--card-border);
  border-radius: 12px;
}

.deals-page__empty p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.deals-page__empty-link {
  display: inline-flex;
  padding: 10px 18px;
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
}

.deals-page__empty-link:hover {
  background: var(--brand-dark);
}

/* ── Mega Deals & Today Deals ── */
.mega-deals,
.today-deals {
  max-width: 1500px;
  margin: 28px auto;
  padding: 0 16px;
}

.mega-deals__head,
.today-deals__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.today-deals__link {
  font-size: 0.88rem;
  color: var(--link-color);
  font-weight: 600;
  white-space: nowrap;
}

.today-deals__link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.mega-deals__head h2,
.today-deals__head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.mega-deals__track,
.today-deals__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-light) transparent;
  -webkit-overflow-scrolling: touch;
}

.mega-deals__track::-webkit-scrollbar,
.today-deals__track::-webkit-scrollbar {
  height: 6px;
}

.mega-deals__track::-webkit-scrollbar-thumb,
.today-deals__track::-webkit-scrollbar-thumb {
  background: var(--brand-light);
  border-radius: 999px;
}

.deal-card {
  flex: 0 0 280px;
  width: 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: right;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

[dir="ltr"] .deal-card {
  text-align: left;
}

.deal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(92, 45, 145, 0.14);
}

.deal-card__media {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: linear-gradient(180deg, #faf8fc 0%, #efe8f5 100%);
}

.deal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s ease;
}

.deal-card:hover .deal-card__media img {
  transform: scale(1.04);
}

.deal-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-block;
  background: var(--orange-badge);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[dir="ltr"] .deal-card__badge {
  right: auto;
  left: 10px;
}

.deal-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.deal-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1.35;
  margin: 0;
}

.deal-card__discount {
  font-size: 0.82rem;
  color: var(--accent-sale);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.deal-card--today {
  border-top: 3px solid var(--brand-primary);
}

.deal-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.deal-card__price-current {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
}

.deal-card__price-old {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.mega-deals--secondary {
  margin-top: 24px;
}

/* ── Flash Deals ── */
.flash-deals {
  max-width: 1500px;
  margin: 20px auto;
  padding: 0 16px;
}

.flash-deals__inner {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 8px 24px;
}

.flash-deals__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.flash-deals__head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.flash-deals__timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timer {
  display: flex;
  align-items: center;
  gap: 4px;
}

.timer__box {
  background: var(--brand-primary);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
}

.timer__sep {
  font-weight: 800;
  color: var(--brand-primary);
}

.flash-deals__link {
  margin-right: auto;
  font-size: 0.85rem;
  color: var(--link-color);
  font-weight: 600;
}

.flash-deals__link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ── Product Scroll Carousel ── */
.product-scroll {
  position: relative;
  padding: 0 40px;
}

.product-scroll__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 12px;
  scroll-snap-type: x proximity;
}

.product-scroll__track::-webkit-scrollbar {
  display: none;
}

.product-scroll__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 80px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.98);
  color: var(--black);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}

.product-scroll__btn:hover {
  background: #f5f0fa;
  border-color: var(--brand-light);
}

.product-scroll__btn--prev {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.product-scroll__btn--next {
  left: 0;
  border-radius: 0 8px 8px 0;
}

[dir="ltr"] .product-scroll__btn--prev {
  right: auto;
  left: 0;
  border-radius: 0 8px 8px 0;
}

[dir="ltr"] .product-scroll__btn--next {
  left: auto;
  right: 0;
  border-radius: 8px 0 0 8px;
}

.product-card {
  flex: 0 0 240px;
  width: 240px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(92, 45, 145, 0.14);
  transform: translateY(-2px);
}

.product-card__media {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  background: #f7f4fa;
  flex-shrink: 0;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

.product-card__img {
  position: relative;
  height: 220px;
  display: block;
  overflow: hidden;
  background: #f7f4fa;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-card__discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-sale);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
  line-height: 1.2;
}

[dir="ltr"] .product-card__discount-badge {
  left: auto;
  right: 10px;
}

.product-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-card__pricing {
  margin-top: auto;
}

.p-card__price-row,
.product-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.p-card__price-group,
.product-card__price-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.p-card__sales,
.product-card__sales {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: end;
}

.p-card__sales-count,
.product-card__sales-count {
  font-weight: 700;
  color: var(--brand-primary);
}

.product-card__price {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.product-card__price strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--black);
}

.product-card__old {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__discount {
  font-size: 0.72rem;
  color: #2e9e5b;
  font-weight: 700;
}

.product-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  margin: 0;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:hover {
  color: var(--brand-primary);
}

.product-card__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--link-color);
}

.product-card__stars-icon {
  color: #f5a623;
}

.product-card__stars-count {
  color: var(--text-muted);
}

.product-card__prime {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--link-color);
  font-weight: 700;
  margin-top: 4px;
}

.product-card__add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--brand-primary);
  border-radius: 8px;
  background: var(--white);
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.product-card__add-cart:hover {
  background: var(--brand-primary);
  color: var(--white);
}

.product-card__add-cart.is-added {
  background: #ecfdf5;
  border-color: #16a34a;
  color: #16a34a;
}

.product-card__new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-primary);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}

[dir="ltr"] .product-card__new {
  right: auto;
  left: 10px;
}

/* ── Category Showcase (Home) ── */
.category-showcase {
  max-width: 1500px;
  margin: 28px auto;
  padding: 0 16px;
}

.category-showcase__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.category-showcase__head h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.category-showcase__link {
  font-size: 0.9rem;
  color: var(--link-color);
  font-weight: 600;
  white-space: nowrap;
}

.category-showcase__link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.category-showcase__grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-light) transparent;
  -webkit-overflow-scrolling: touch;
}

.category-showcase__grid::-webkit-scrollbar {
  height: 6px;
}

.category-showcase__grid::-webkit-scrollbar-thumb {
  background: var(--brand-light);
  border-radius: 999px;
}

.category-tile {
  flex: 0 0 170px;
  width: 170px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.category-tile:hover {
  box-shadow: 0 8px 22px rgba(92, 45, 145, 0.12);
  transform: translateY(-2px);
}

.category-tile__media {
  height: 160px;
  background: linear-gradient(180deg, #faf8fc 0%, #efe8f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile__placeholder {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-light);
}

.category-tile__label {
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
}

/* ── Showcase Row (legacy) ── */
.showcase-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1500px;
  margin: 20px auto;
  padding: 0 16px;
}

.showcase-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px 16px 16px;
}

.showcase-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.showcase-card__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.showcase-card__grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: opacity 0.15s;
}

.showcase-card__grid a:hover {
  opacity: 0.85;
}

.showcase-card__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.showcase-card__grid span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--black);
}

.showcase-card__link {
  font-size: 0.85rem;
  color: var(--link-color);
  font-weight: 600;
}

.showcase-card__link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ── Promo Banner ── */
.promo-banner {
  width: 100%;
  max-width: none;
  margin: 20px 0;
  padding: 0;
}

.promo-banner__link {
  display: block;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 0;
}

.promo-banner__link img {
  width: 100%;
  height: clamp(220px, 32vh, 380px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.promo-banner__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 40px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, transparent 70%);
  color: var(--white);
}

.promo-banner__text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.promo-banner__text p {
  font-size: 1rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.promo-banner__btn {
  background: var(--brand-primary);
  color: var(--white);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* ── Section Block ── */
.section-block {
  max-width: 1500px;
  margin: 24px auto;
  padding: 0 16px;
}

.section-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-block__head h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.section-block__head a {
  font-size: 0.85rem;
  color: var(--link-color);
  font-weight: 600;
}

.section-block__head a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ── Brands Row ── */
.brands-row {
  max-width: 1500px;
  margin: 28px auto;
  padding: 0 16px;
  text-align: center;
}

.brands-row h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.brands-row__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.brands-row__item {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}

.brands-row__item:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ── Footer ── */
.site-footer {
  margin-top: 48px;
  background: linear-gradient(165deg, var(--brand-dark) 0%, #3a1d5c 55%, #2e1749 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand-primary), #c9a8e8, var(--brand-light));
}

.site-footer::after {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 77, 181, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.site-footer__back-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s, color 0.15s;
}

.site-footer__back-top:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.site-footer__back-top svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, 1fr);
  gap: 2.5rem;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__main--with-stats {
  grid-template-columns: 1.35fr repeat(2, 1fr) minmax(200px, 1.1fr);
}

.site-footer__brand {
  padding-left: 0;
}

.site-footer__logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.site-footer__logo-img {
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.site-footer__logo-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.site-footer__logo-mark svg {
  width: 100%;
  height: 100%;
}

.site-footer__logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-footer__logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.site-footer__logo span {
  color: var(--brand-light);
}

.site-footer__tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.25rem;
  max-width: 320px;
}

.site-footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__social-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer__social-links {
  display: flex;
  gap: 0.5rem;
}

.site-footer__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.site-footer__social-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-light);
  transform: translateY(-2px);
}

.site-footer__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-content: start;
}

.site-footer__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__stat-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__stat-icon svg {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.site-footer__stat-label {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__col h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
  position: relative;
  padding-bottom: 0.65rem;
}

.site-footer__col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 2px;
  background: var(--brand-light);
  border-radius: 2px;
}

[dir="ltr"] .site-footer__col h3::after {
  right: auto;
  left: 0;
}

.site-footer__col ul {
  list-style: none;
}

.site-footer__col li {
  margin-bottom: 0.65rem;
}

.site-footer__col a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s, padding 0.15s;
  display: inline-block;
}

.site-footer__col a:hover {
  color: var(--white);
  padding-right: 4px;
}

[dir="ltr"] .site-footer__col a:hover {
  padding-right: 0;
  padding-left: 4px;
}

.site-footer__newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__newsletter-text h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.site-footer__newsletter-text p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.site-footer__newsletter-form input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.site-footer__newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__newsletter-form input:focus {
  border-color: var(--brand-light);
  background: rgba(255, 255, 255, 0.12);
}

.site-footer__newsletter-form button {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.site-footer__newsletter-form button:hover {
  background: var(--brand-primary);
  transform: translateY(-1px);
}

.site-footer__payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 0 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__payments--brand {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.85rem 0 0;
  margin-top: 0.15rem;
  border-bottom: none;
  max-width: 320px;
}

.site-footer__payments--brand .site-footer__payments-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer__payments--brand .site-footer__payment-badges {
  gap: 0.35rem;
}

.site-footer__payments--brand .site-footer__pay-badge {
  font-size: 0.66rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.site-footer__payments-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.site-footer__payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
}

.site-footer__pay-badge--cod {
  background: rgba(123, 77, 181, 0.25);
  border-color: rgba(123, 77, 181, 0.45);
}

.site-footer__pay-badge--card {
  font-family: 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer__legal a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.15s;
}

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

/* ── Responsive ── */
@media (max-width: 1200px) {
  .showcase-row {
    grid-template-columns: 1fr;
  }

  .category-showcase__grid {
    gap: 10px;
  }

  .category-tile {
    flex: 0 0 150px;
    width: 150px;
  }

  .category-tile__media {
    height: 130px;
  }

  .product-scroll {
    padding: 0 32px;
  }

  .product-card {
    flex: 0 0 200px;
    width: 200px;
  }

  .product-card__media,
  .product-card__img {
    height: 190px;
  }
}

@media (max-width: 900px) {
  .site-header__lang {
    display: none;
  }

  .side-menu__lang {
    display: block;
  }

  .site-header__top {
    gap: 10px;
    padding: 10px 16px 8px;
  }

  .site-header__nav {
    padding: 0 16px 8px;
  }

  .site-header__tagline {
    display: none;
  }

  .site-footer__main,
  .site-footer__main--with-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__stats {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-inline: auto;
  }

  .hero__content {
    padding: 28px 24px 48px;
    align-items: center;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
    text-align: center;
  }

  [dir="ltr"] .hero__text {
    text-align: center;
  }

  .hero__top-strip {
    height: 56px;
  }
}

@media (max-width: 600px) {
  .site-header__link--account span,
  .site-header__cart-total {
    display: none;
  }

  .site-header__search-btn {
    padding: 0 16px;
    font-size: 0.85rem;
  }

  .site-header__brand {
    font-size: 1.3rem;
  }

  .site-header__logo-icon {
    width: 34px;
    height: 34px;
  }

  .site-header__logo-img {
    height: 34px;
    max-width: 160px;
  }

  .showcase-row {
    grid-template-columns: 1fr;
  }

  .category-showcase__grid {
    gap: 8px;
  }

  .category-tile {
    flex: 0 0 132px;
    width: 132px;
  }

  .category-tile__media {
    height: 110px;
  }

  .category-tile__label {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .product-scroll {
    padding: 0 24px;
  }

  .product-scroll__btn {
    width: 32px;
    height: 64px;
    font-size: 1.2rem;
  }

  .product-card {
    flex: 0 0 168px;
    width: 168px;
  }

  .product-card__media,
  .product-card__img {
    height: 165px;
  }

  .product-card__add-cart {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .product-card__title {
    font-size: 0.82rem;
    min-height: auto;
  }

  .promo-banner__text h2 {
    font-size: 1.2rem;
  }

  .promo-banner__text {
    padding: 16px 20px;
  }

  .site-footer__main,
  .site-footer__main--with-stats {
    grid-template-columns: 1fr;
    padding: 2rem 0 1.5rem;
    gap: 1.75rem;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__stats {
    grid-column: auto;
    max-width: none;
  }

  .site-footer__newsletter {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__newsletter-form {
    max-width: none;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem 1.5rem;
  }

  .site-footer__legal {
    justify-content: center;
  }

  .hero__text h1 {
    font-size: 1.35rem;
  }

  .hero__content {
    padding: 24px 16px 44px;
  }

  .hero__body {
    min-height: 260px;
  }

  .hero__top-strip {
    height: 48px;
  }

  .promo-grid {
    padding: 0 12px;
    --promo-cols: 6;
  }

  .promo-grid__scroll {
    padding: 0 30px;
  }

  .promo-card {
    flex: 0 0 calc((100cqi - (var(--promo-cols) - 1) * var(--promo-gap)) / var(--promo-cols));
    width: calc((100cqi - (var(--promo-cols) - 1) * var(--promo-gap)) / var(--promo-cols));
  }

  .promo-card__media {
    height: 52px;
  }

  .promo-card__body {
    padding: 4px 5px 5px;
    min-height: 26px;
  }

  .promo-card h3 {
    font-size: 0.54rem;
  }

  .promo-card p {
    display: none;
  }

  .deal-card {
    flex: 0 0 240px;
    width: 240px;
  }

  .deal-card__media {
    height: 150px;
  }

  .hero__btn {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .guest-auth__grid {
    grid-template-columns: 1fr;
  }

  .auth-form__grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   Products Page
   ══════════════════════════════════════ */
.products-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.products-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.products-section__head h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0 0 6px;
}

.products-section__count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

.products-section__clear {
  border: 1.5px solid var(--brand-light);
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.products-section__clear:hover {
  background: var(--brand-primary);
  color: var(--white);
}

.products-section__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.products-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--brand-light);
  border-radius: 8px;
  background: var(--white);
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.products-filter-toggle:hover {
  background: #f8f4fc;
  border-color: var(--brand-primary);
}

.products-filter-toggle__badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  flex-shrink: 0;
}

body.products-filter-open {
  overflow: hidden;
}

.products-filter-panel__overlay {
  display: none;
}

.products-filter-panel__head {
  display: none;
}

.products-filter-panel__actions {
  display: none;
}

.products-filter-panel__sheet {
  background: var(--white);
}

.products-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.products-toolbar__filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1;
}

.products-toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.products-toolbar__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.products-toolbar__select {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1 L6 6 L11 1' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat left 12px center;
  color: var(--black);
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

[dir="ltr"] .products-toolbar__select {
  padding: 10px 12px 10px 36px;
  background-position: right 12px center;
}

.products-toolbar__select:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 2px rgba(123, 77, 181, 0.15);
}

.products-toolbar__field--price {
  min-width: 220px;
}

.products-toolbar__price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-toolbar__price-sep {
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}

.products-toolbar__input {
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.products-toolbar__input:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 2px rgba(123, 77, 181, 0.15);
}

.products-toolbar__input::placeholder {
  color: #aaa;
}

.products-toolbar__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #faf8fc;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.products-toolbar__check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.products-toolbar__reset {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}

.products-toolbar__reset:hover {
  background: #f3eef8;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.products-grid .p-card {
  flex: none;
  min-width: 0;
  padding: 8px 8px 10px;
}

.products-grid .p-card__img-wrap {
  height: auto;
  aspect-ratio: 1 / 1;
  margin: -8px -8px 8px;
  padding: 0;
  overflow: hidden;
  border-radius: 9px 9px 8px 8px;
}

.products-grid .p-card__img-wrap img {
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: 100%;
  object-fit: contain;
  transform: scale(1.14);
}

.products-empty {
  text-align: center;
  padding: 56px 24px;
  background: #faf8fc;
  border: 1px dashed #e0d6ec;
  border-radius: 12px;
}

.products-empty p {
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 16px;
}

.products-empty__link {
  display: inline-flex;
  padding: 10px 20px;
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.15s;
}

.products-empty__link:hover {
  background: var(--brand-dark);
}

@media (min-width: 769px) and (max-width: 1099px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 769px) {
  .products-filter-panel {
    margin-bottom: 24px;
  }

  .products-filter-panel .products-toolbar {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .products-filter-toggle {
    display: inline-flex;
  }

  .products-filter-panel__overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.45);
    z-index: 440;
  }

  .products-filter-panel.is-open .products-filter-panel__overlay {
    display: block;
  }

  .products-filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--card-border);
    background: linear-gradient(180deg, #f8f4fc 0%, var(--white) 100%);
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
  }

  .products-filter-panel__head h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin: 0;
  }

  .products-filter-panel__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }

  .products-filter-panel__close:hover {
    background: #f3eef8;
    color: var(--brand-primary);
  }

  .products-filter-panel__sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 450;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(92, 45, 145, 0.18);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }

  .products-filter-panel.is-open .products-filter-panel__sheet {
    transform: translateY(0);
    visibility: visible;
  }

  .products-filter-panel .products-toolbar {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 16px 18px 0;
    align-items: stretch;
    flex-direction: column;
  }

  .products-toolbar__filters {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .products-toolbar__field {
    min-width: 100%;
  }

  .products-toolbar__check {
    width: 100%;
  }

  .products-toolbar__reset--desktop {
    display: none;
  }

  .products-filter-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px 20px;
    border-top: 1px solid var(--card-border);
    background: var(--white);
    flex-shrink: 0;
  }

  .products-filter-panel__apply {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: var(--brand-primary);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
  }

  .products-filter-panel__apply:hover {
    background: var(--brand-dark);
  }

  .products-filter-panel__reset {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-primary);
    padding: 10px;
    border-radius: 8px;
    transition: background 0.15s;
  }

  .products-filter-panel__reset:hover {
    background: #f3eef8;
  }

  .products-page {
    padding: 16px 10px 40px;
  }

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

  .products-grid .p-card {
    padding: 6px 6px 8px;
    min-width: 0;
  }

  .products-grid .p-card__img-wrap {
    height: auto;
    aspect-ratio: 1 / 1;
    margin: -6px -6px 6px;
    padding: 0;
    border-radius: 8px 8px 6px 6px;
  }

  .products-grid .p-card__img-wrap img {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: 100%;
    object-fit: contain;
    transform: scale(1.12);
  }

  .products-grid .p-card__badge {
    font-size: 0.58rem;
    padding: 2px 5px;
    top: 4px;
    right: 4px;
  }

  .products-grid .p-card__quick-add {
    width: 26px;
    height: 26px;
    font-size: 1rem;
    top: 4px;
    left: 4px;
  }

  .products-grid .p-card__title {
    font-size: 0.74rem;
    margin-bottom: 4px;
  }

  .products-grid .p-card__rating {
    font-size: 0.68rem;
    margin-bottom: 2px;
  }

  .products-grid .p-card__reviews {
    display: none;
  }

  .products-grid .p-card__cat {
    display: none;
  }

  .products-grid .p-card__pricing {
    margin-bottom: 8px;
  }

  .products-grid .p-card__price {
    font-size: 0.72rem;
  }

  .products-grid .p-card__price strong {
    font-size: 0.88rem;
  }

  .products-grid .p-card__discount,
  .products-grid .p-card__old {
    font-size: 0.62rem;
  }

  .products-grid .p-card__sales {
    font-size: 0.6rem;
  }

  .products-grid .p-card__actions {
    gap: 6px;
  }

  .products-grid .p-card__btn {
    padding: 7px 6px;
    font-size: 0.68rem;
    gap: 4px;
  }

  .products-grid .p-card__btn svg {
    width: 14px;
    height: 14px;
  }

  .products-grid .p-card__btn--buy {
    display: none;
  }
}

/* ── Electronics Offers ── */
.electronics-offers {
  margin-bottom: 48px;
}

.electronics-offers__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.electronics-offers__head h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.electronics-offers__see-all {
  border: 1.5px solid var(--brand-light);
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.electronics-offers__see-all:hover {
  background: var(--brand-primary);
  color: var(--white);
}

.electronics-offers__slider {
  position: relative;
}

.electronics-offers__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 44px;
}

.electronics-offers__track::-webkit-scrollbar {
  display: none;
}

.electronics-offers__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--white);
  color: var(--brand-primary);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}

.electronics-offers__arrow:hover {
  background: #f3eef8;
}

.electronics-offers__arrow--prev {
  right: 0;
}

.electronics-offers__arrow--next {
  left: 0;
}

/* ── Product Card ── */
.p-card {
  flex: 0 0 240px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}

.p-card:hover {
  box-shadow: 0 6px 20px rgba(92, 45, 145, 0.12);
}

.p-card__img-wrap {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: #faf8fc;
  border-radius: 8px;
}

.p-card__img-wrap img {
  max-height: 150px;
  object-fit: contain;
}

.p-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.p-card__badge--seller {
  color: #2e9e5b;
  border: 1px solid #2e9e5b;
  background: var(--white);
}

.p-card__badge--top {
  color: var(--brand-primary);
  border: 1px solid var(--brand-light);
  background: var(--white);
}

.p-card__quick-add {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--white);
  color: var(--brand-primary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
  transition: background 0.15s, color 0.15s;
}

.p-card__quick-add:hover {
  background: var(--brand-primary);
  color: var(--white);
  border-color: var(--brand-primary);
}

.p-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.p-card__star {
  color: #f5a623;
}

.p-card__reviews {
  color: var(--text-muted);
}

.p-card__cat {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.p-card__pricing {
  margin-bottom: 12px;
}

.p-card__price {
  font-size: 0.82rem;
  margin-bottom: 0;
}

.p-card__price strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--black);
}

.p-card__discount {
  color: #2e9e5b;
  font-weight: 700;
  font-size: 0.72rem;
}

.p-card__old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.72rem;
}

.p-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.p-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.p-card__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.p-card__title a {
  color: inherit;
}

.p-card__title a:hover {
  color: var(--brand-primary);
}

.p-card__btn--buy {
  background: var(--brand-primary);
  color: var(--white);
  text-decoration: none;
}

.p-card__btn--cart {
  background: var(--brand-dark);
  color: var(--white);
}

/* ── Guest Auth ── */
.guest-auth {
  border-top: 2px solid var(--card-border);
  padding-top: 40px;
}

.guest-auth__note {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-light);
  margin-bottom: 28px;
}

.guest-auth__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}

.auth-form-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px 24px;
}

.auth-form-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.auth-form-card__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-form__section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 2px rgba(123, 77, 181, 0.15);
}

.auth-field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field__input-wrap svg {
  position: absolute;
  right: 12px;
  width: 20px;
  height: 20px;
  color: #999;
  pointer-events: none;
}

.auth-field__input-wrap input {
  padding-right: 40px;
}

[dir="ltr"] .auth-field__input-wrap svg {
  right: auto;
  left: 12px;
}

[dir="ltr"] .auth-field__input-wrap input {
  padding-right: 14px;
  padding-left: 40px;
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
}

.auth-form__link {
  font-size: 0.82rem;
  color: var(--brand-light);
  font-weight: 600;
}

.auth-form__link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.auth-form__submit {
  width: 100%;
  padding: 13px;
  background: var(--brand-primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.auth-form__submit:hover {
  background: var(--brand-dark);
}

.auth-form__footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-form__footer a {
  color: var(--brand-light);
  font-weight: 700;
  margin-right: 4px;
}

.auth-form__footer a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

[dir="ltr"] .electronics-offers__arrow--prev {
  right: auto;
  left: 0;
}

[dir="ltr"] .electronics-offers__arrow--next {
  left: auto;
  right: 0;
}

[dir="ltr"] .p-card__badge {
  right: auto;
  left: 8px;
}

[dir="ltr"] .p-card__quick-add {
  left: auto;
  right: 8px;
}

[dir="ltr"] .auth-form__footer a {
  margin-right: 0;
  margin-left: 4px;
}

/* ══════════════════════════════════════
   Product Detail Page
   ══════════════════════════════════════ */
body[data-current-page="detail"] {
  background: var(--white);
}

.product-detail {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px 56px;
}

.product-detail__top {
  display: grid;
  grid-template-columns: minmax(420px, 1.6fr) 1fr 250px;
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}

/* Gallery */
.product-gallery {
  display: flex;
  gap: 12px;
  align-items: stretch;
  min-height: 0;
}

.product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  padding: 4px;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s;
}

.product-gallery__thumb--active,
.product-gallery__thumb:hover {
  border-color: var(--brand-primary);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.product-gallery__thumb--video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(180deg, #f8f4fc 0%, #fff 100%);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.product-gallery__thumb-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding-left: 2px;
}

.product-gallery__media-frame {
  display: none;
  margin: 0 auto;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-gallery__main.is-video-mode .product-gallery__media-frame {
  display: block;
}

.product-gallery__main.is-video-mode .product-gallery__stage img {
  display: none;
}

.product-gallery__video {
  display: block;
  width: 100%;
  object-fit: contain;
  background: #000;
  vertical-align: middle;
}

.product-gallery__main.is-video-mode {
  cursor: default;
  overflow: hidden;
}

.product-gallery__main.is-video-mode .product-gallery__stage {
  overflow: hidden;
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 4px 0;
}

.product-gallery__main.is-video-mode .product-gallery__zoom-hint {
  display: none;
}

.product-gallery__main {
  flex: 1;
  position: relative;
  background: #faf8fc;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: min(72vh, 620px);
  overflow: hidden;
  cursor: zoom-in;
}

.product-gallery__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: min(68vh, 580px);
  object-fit: contain;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.product-gallery__main.is-zooming {
  cursor: crosshair;
}

.product-gallery__zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--card-border);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-primary);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(92, 45, 145, 0.08);
}

.product-gallery__fav {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--white);
  color: var(--brand-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}

.product-gallery__fav:hover,
.product-gallery__fav.is-active {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.product-gallery__fav svg {
  width: 20px;
  height: 20px;
}

/* Info */
.product-detail__breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.product-detail__breadcrumb a {
  color: var(--brand-light);
  font-weight: 600;
}

.product-detail__breadcrumb a:hover {
  color: var(--brand-primary);
}

.product-detail__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--black);
  margin-bottom: 14px;
}

.product-detail__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.product-detail__stars {
  color: #f5a623;
  letter-spacing: 1px;
}

.product-detail__reviews {
  color: var(--text-muted);
}

.product-detail__price {
  font-size: 1rem;
  margin-bottom: 10px;
}

.product-detail__price strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--black);
}

.product-detail__stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #d35400;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.product-detail__qty > span {
  font-size: 0.9rem;
  font-weight: 600;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control__btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f3eef8;
  color: var(--brand-primary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.qty-control__btn:hover {
  background: #e8dff5;
}

.qty-control input {
  width: 44px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  text-align: center;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  background: var(--white);
}

/* Sidebar */
.product-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-badge {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--white);
}

.trust-badge__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge__icon svg {
  width: 24px;
  height: 24px;
}

.trust-badge__icon--delivery {
  background: #ede5f7;
  color: var(--brand-primary);
}

.trust-badge__icon--warranty {
  background: #e8dff5;
  color: var(--brand-dark);
}

.trust-badge strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--brand-primary);
}

.trust-badge p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.product-detail__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.product-detail__btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.product-detail__btn--cart {
  background: var(--brand-dark);
  color: var(--white);
}

.product-detail__btn--buy {
  background: var(--brand-primary);
  color: var(--white);
}

/* Sections */
.product-detail__section {
  margin-bottom: 40px;
}

.product-detail__section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.product-detail__divider {
  height: 1px;
  background: var(--card-border);
  margin-bottom: 20px;
}

.product-detail__subtitle {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--black);
}

.product-detail__features {
  list-style: none;
  padding: 0;
}

.product-detail__features li {
  position: relative;
  padding: 8px 20px 8px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--black);
  border-bottom: 1px solid #f0f0f0;
}

.product-detail__features li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--brand-light);
  font-weight: 800;
}

[dir="ltr"] .product-detail__features li {
  padding: 8px 0 8px 20px;
}

[dir="ltr"] .product-detail__features li::before {
  right: auto;
  left: 0;
}

/* Specs Table */
.specs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
}

.specs-table__col {
  border-left: 1px solid var(--card-border);
}

.specs-table__col:first-child {
  border-left: none;
}

.specs-table__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-size: 0.88rem;
  gap: 12px;
}

.specs-table__row:nth-child(odd) {
  background: #f8f4fc;
}

.specs-table__row span {
  color: var(--text-muted);
  font-weight: 600;
}

.specs-table__row strong {
  color: var(--black);
  font-weight: 700;
  text-align: left;
}

[dir="ltr"] .specs-table__col {
  border-left: none;
  border-right: 1px solid var(--card-border);
}

[dir="ltr"] .specs-table__col:first-child {
  border-right: none;
}

[dir="ltr"] .product-gallery__fav {
  left: auto;
  right: 12px;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
}

.product-lightbox[hidden] {
  display: none;
}

.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 28, 0.88);
}

.product-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

[dir="ltr"] .product-lightbox__close {
  right: auto;
  left: 16px;
}

.product-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.product-lightbox__body {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  height: min(88vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px 56px;
}

.product-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, opacity 0.15s;
}

.product-lightbox__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
}

.product-lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.product-lightbox__nav--prev {
  right: 10px;
}

.product-lightbox__nav--next {
  left: 10px;
}

[dir="ltr"] .product-lightbox__nav--prev {
  right: auto;
  left: 10px;
}

[dir="ltr"] .product-lightbox__nav--next {
  left: auto;
  right: 10px;
}

.product-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  cursor: zoom-in;
}

body.product-lightbox-open {
  overflow: hidden;
}

.product-lightbox.is-zoomed .product-lightbox__img {
  cursor: zoom-out;
}

@media (max-width: 1000px) {
  .product-detail__top {
    grid-template-columns: 1.15fr 1fr;
  }

  .product-gallery__main {
    min-height: min(56vh, 520px);
  }

  .product-gallery__main img {
    max-height: min(52vh, 480px);
  }

  .product-detail__sidebar {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .trust-badge {
    flex: 1;
    min-width: 200px;
  }

  .product-detail__btn {
    flex: 1;
    min-width: 180px;
  }
}

@media (max-width: 700px) {
  .product-detail {
    padding-top: 8px;
  }

  .product-detail__top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-gallery__main {
    min-height: 300px;
  }

  .product-gallery__main img {
    max-height: 280px;
  }

  .product-gallery__zoom-hint {
    font-size: 0.68rem;
  }

  .product-gallery {
    flex-direction: column-reverse;
  }

  .product-gallery__thumbs {
    flex-direction: row;
    overflow-x: auto;
  }

  .specs-table {
    grid-template-columns: 1fr;
  }

  .specs-table__col {
    border-left: none;
    border-top: 1px solid var(--card-border);
  }

  .specs-table__col:first-child {
    border-top: none;
  }

  .product-detail__sidebar {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════
   Shopping Cart Page
   ══════════════════════════════════════ */
.cart-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.cart-page__title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 32px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* Cart Items */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 90px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cart-item:hover {
  border-color: var(--brand-light);
  box-shadow: 0 2px 12px rgba(92, 45, 145, 0.08);
}

.cart-item__img-link {
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.cart-item__img-link:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #e53935;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.cart-item__remove:hover {
  opacity: 0.7;
}

.cart-item__remove svg {
  width: 22px;
  height: 22px;
}

.cart-item__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #faf8fc;
  display: block;
}

.cart-item__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.cart-item__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.4;
}

.cart-item__name a {
  color: inherit;
  text-decoration: none;
}

.cart-item__name a:hover {
  color: var(--brand-primary);
}

.cart-item__unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.qty-control--cart {
  width: fit-content;
}

.cart-item__total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  white-space: nowrap;
  min-width: 100px;
  text-align: left;
}

[dir="ltr"] .cart-item__total {
  text-align: right;
}

/* Order Summary */
.cart-summary {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px 20px;
  position: sticky;
  top: 100px;
}

.cart-summary__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 20px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid #f0f0f0;
}

.cart-summary__row strong {
  color: var(--black);
  font-weight: 700;
}

.cart-summary__row--total {
  border-bottom: none;
  padding-top: 14px;
  margin-bottom: 16px;
}

.cart-summary__row--total span {
  font-weight: 700;
  color: var(--black);
}

.cart-summary__row--total strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.cart-summary__coupon {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.cart-summary__coupon input {
  flex: 1;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
}

.cart-summary__coupon input:focus {
  border-color: var(--brand-light);
}

.cart-summary__apply {
  background: var(--brand-light);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.cart-summary__apply:hover {
  background: var(--brand-primary);
}

.cart-summary__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--brand-primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 14px;
}

.cart-summary__checkout:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.cart-summary__continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-light);
  transition: color 0.15s;
}

.cart-summary__continue:hover {
  color: var(--brand-primary);
}

[dir="ltr"] .cart-summary__continue svg {
  transform: scaleX(-1);
}

@media (max-width: 800px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: auto 70px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-item__total {
    grid-column: 2 / -1;
    text-align: right;
    margin-top: 4px;
  }
}

/* ══════════════════════════════════════
   Orders Page
   ══════════════════════════════════════ */
body[data-current-page="orders"] {
  background: #f3f3f3;
}

.orders-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.orders-page__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  margin: 0;
}

.orders-toolbar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.orders-search {
  position: relative;
  display: flex;
  align-items: center;
}

.orders-search input {
  width: 220px;
  padding: 10px 14px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.85rem;
  background: var(--white);
  outline: none;
}

[dir="rtl"] .orders-search input {
  padding: 10px 40px 10px 14px;
}

.orders-search input:focus {
  border-color: #2a7e8a;
}

.orders-search svg {
  position: absolute;
  right: 12px;
  width: 18px;
  height: 18px;
  color: #999;
  pointer-events: none;
}

[dir="ltr"] .orders-search svg {
  right: auto;
  left: 12px;
}

.orders-period {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.85rem;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  outline: none;
}

.orders-panel {
  background: var(--white);
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px 24px 24px;
}

.orders-panel__heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

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

.order-item {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.order-item__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.order-item__status svg {
  color: #666;
  flex-shrink: 0;
}

.order-item__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px;
}

.order-item__product {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.order-item__img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #f5f5f5;
  flex-shrink: 0;
}

.order-item__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.4;
}

.order-item__price {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.order-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 200px;
}

[dir="ltr"] .order-item__actions {
  align-items: flex-end;
}

.order-item__rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

[dir="ltr"] .order-item__rating {
  align-items: flex-end;
}

.order-item__rate-q {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.order-stars {
  display: flex;
  gap: 2px;
}

.order-star {
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 1.35rem;
  line-height: 1;
  color: #ddd;
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
}

.order-star:hover,
.order-star--on {
  color: #f1641e;
}

.order-star:hover {
  transform: scale(1.1);
}

.order-item__rate-btn {
  padding: 6px 14px;
  background: #2a7e8a;
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.order-item__rate-btn:hover {
  background: #236872;
}

.order-item__buy-again {
  display: inline-block;
  padding: 10px 22px;
  background: #f1641e;
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.order-item__buy-again:hover {
  background: #d9571a;
  transform: translateY(-1px);
}

.orders-empty {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .orders-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-toolbar__tools {
    width: 100%;
  }

  .orders-search {
    flex: 1;
  }

  .orders-search input {
    width: 100%;
  }

  .orders-period {
    width: 100%;
  }

  .order-item__body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .order-item__actions {
    width: 100%;
    align-items: stretch !important;
  }

  .order-item__rating {
    align-items: flex-start !important;
  }

  .order-item__buy-again {
    width: 100%;
  }
}

/* ══════════════════════════════════════
   Checkout Page
   ══════════════════════════════════════ */
body[data-current-page="checkout"] {
  background: #faf8fc;
}

.checkout-page-wrap {
  padding-bottom: 56px;
}

.checkout-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 44px 20px 56px;
}

.checkout-hero__title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.checkout-hero__sub {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.checkout-page {
  max-width: 1100px;
  margin: -28px auto 0;
  padding: 0 20px 56px;
  position: relative;
  z-index: 1;
  min-height: 50vh;
}

.checkout-alert {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.checkout-alert--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.checkout-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-primary);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f0e8f8;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-field--full {
  grid-column: 1 / -1;
}

.checkout-field span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.checkout-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1 L6 6 L11 1' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

[dir="ltr"] .checkout-field select {
  background-position: right 14px center;
  padding-left: 14px;
  padding-right: 36px;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 2px rgba(123, 77, 181, 0.15);
}

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

.checkout-field textarea::placeholder {
  color: #aaa;
}

.checkout-payment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--brand-primary);
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(180deg, #faf8fc 0%, var(--white) 100%);
}

.checkout-payment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-payment__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.checkout-payment__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--black);
}

.checkout-submit {
  display: none;
}

/* Order Summary Sidebar */
.checkout-summary {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px 20px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow);
}

.checkout-summary__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-primary);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0e8f8;
}

.checkout-summary__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3eef8;
}

.checkout-summary__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 10px;
}

.checkout-summary__img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: #faf8fc;
}

.checkout-summary__img--placeholder {
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.checkout-summary__item-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  margin: 0 0 4px;
}

.checkout-summary__item-qty {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.checkout-summary__item-total {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--black);
  white-space: nowrap;
  text-align: left;
}

[dir="ltr"] .checkout-summary__item-total {
  text-align: right;
}

.checkout-summary__rows {
  margin-bottom: 14px;
}

.checkout-summary__coupon {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3eef8;
}

.checkout-summary__coupon-form {
  display: flex;
  gap: 8px;
}

.checkout-summary__coupon-input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
}

.checkout-summary__coupon-input:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 2px rgba(123, 77, 181, 0.15);
}

.checkout-summary__coupon-apply,
.checkout-summary__coupon-remove {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.checkout-summary__coupon-apply {
  background: var(--brand-primary);
  color: var(--white);
}

.checkout-summary__coupon-apply:hover:not(:disabled) {
  background: var(--brand-dark);
}

.checkout-summary__coupon-apply:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.checkout-summary__coupon-form[hidden],
.checkout-summary__coupon-applied[hidden] {
  display: none !important;
}

.checkout-summary__coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3eef8;
  border: 1px solid #e8dcf5;
}

.checkout-summary__coupon-code {
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 0.9rem;
}

.checkout-summary__coupon-remove {
  background: var(--white);
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 6px 12px;
}

.checkout-summary__coupon-remove:hover:not(:disabled) {
  background: #fef2f2;
}

.checkout-summary__coupon-msg {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.checkout-summary__coupon-msg--success {
  color: #16a34a;
}

.checkout-summary__coupon-msg--error {
  color: #dc2626;
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.checkout-summary__row strong {
  color: var(--black);
  font-weight: 700;
}

.checkout-summary__row--discount strong {
  color: #16a34a;
}

.checkout-summary__row--total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid #f0e8f8;
}

.checkout-summary__row--total span {
  font-weight: 700;
  color: var(--black);
}

.checkout-summary__row--total strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.checkout-summary__hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
  padding: 10px 12px;
  background: #faf8fc;
  border-radius: 8px;
  border: 1px dashed #e0d6ec;
}

.checkout-summary__confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--brand-primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 14px;
}

.checkout-summary__confirm:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.checkout-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.checkout-summary__secure svg {
  color: var(--brand-light);
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
    order: -1;
  }

  .checkout-summary__confirm {
    display: none;
  }

  .checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
  }

  .checkout-submit:hover {
    background: var(--brand-dark);
  }
}

/* ══════════════════════════════════════
   Auth Page (Login + Register)
   ══════════════════════════════════════ */
body[data-current-page="auth"] {
  background: #faf8fc;
}

.auth-page-wrap {
  padding-bottom: 56px;
}

.auth-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 44px 20px 52px;
}

.auth-hero__title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.auth-hero__sub {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.auth-page {
  max-width: 1100px;
  margin: -24px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.auth-page__note {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-light);
  margin-bottom: 20px;
}

.auth-page__alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.auth-page__alert--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.auth-page__alert--info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.auth-page__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.auth-page--login .auth-page__grid,
.auth-page--register .auth-page__grid {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.auth-page--login #register,
.auth-page--register #login {
  display: none;
}

.auth-page .auth-form-card {
  box-shadow: var(--shadow);
  border-top: 3px solid var(--brand-primary);
}

.auth-page .auth-form-card h2 {
  color: var(--brand-primary);
}

.auth-page .auth-form__section-title {
  color: var(--brand-dark);
  border-top-color: var(--card-border);
}

.auth-page .auth-form__submit {
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-page .auth-form__submit:hover {
  background: var(--brand-dark);
}

.auth-page .auth-form__link,
.auth-page .auth-form__footer a {
  color: var(--brand-light);
}

.auth-page .auth-form__link:hover,
.auth-page .auth-form__footer a:hover {
  color: var(--brand-primary);
}

.auth-page .auth-checkbox input {
  accent-color: var(--brand-primary);
}

.auth-page .auth-checkbox a {
  color: var(--brand-primary);
  font-weight: 700;
}

.auth-page .auth-checkbox a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.auth-field__input-wrap--toggle input {
  padding-left: 44px;
}

[dir="ltr"] .auth-field__input-wrap--toggle input {
  padding-left: 40px;
  padding-right: 44px;
}

.auth-field__input-wrap select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1 L6 6 L11 1' stroke='%237B4DB5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
}

[dir="ltr"] .auth-field__input-wrap select {
  padding-right: 14px;
  padding-left: 40px;
  background-position: right 14px center;
}

.auth-field__toggle {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
}

[dir="ltr"] .auth-field__toggle {
  left: auto;
  right: 10px;
}

.auth-field__toggle:hover {
  color: var(--brand-primary);
}

.auth-field__input-wrap textarea {
  padding: 11px 14px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.88rem;
  resize: vertical;
}

.auth-field__input-wrap textarea:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 2px rgba(123, 77, 181, 0.15);
  outline: none;
}

[dir="ltr"] .auth-form__submit--icon svg:last-child {
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .auth-hero {
    padding: 36px 16px 44px;
  }

  .auth-hero__title {
    font-size: 1.5rem;
  }

  .auth-page__grid {
    grid-template-columns: 1fr;
  }

  .auth-page--login .auth-page__grid,
  .auth-page--register .auth-page__grid {
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ══════════════════════════════════════
   Contact Page
   ══════════════════════════════════════ */
body[data-current-page="contact"] {
  background: #faf8fc;
}

.contact-page-wrap {
  padding-bottom: 56px;
}

.contact-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 44px 20px 56px;
}

.contact-hero__title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.contact-hero__sub {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.contact-page {
  max-width: 1000px;
  margin: -28px auto 0;
  padding: 0 20px 56px;
  position: relative;
  z-index: 1;
}

.contact-alert {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-alert--success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.contact-alert--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-form-card,
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.contact-form-card__title,
.contact-info-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 22px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
}

.contact-field em {
  color: #e53935;
  font-style: normal;
}

.contact-field select,
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 2px rgba(123, 77, 181, 0.15);
}

.contact-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1 L6 6 L11 1' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

[dir="ltr"] .contact-field select {
  background-position: right 14px center;
  padding-left: 14px;
  padding-right: 36px;
}

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

.contact-field textarea::placeholder {
  color: #aaa;
}

.contact-form__actions {
  display: flex;
  justify-content: flex-start;
}

[dir="ltr"] .contact-form__actions {
  justify-content: flex-end;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--brand-primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.contact-form__submit:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.contact-form__success {
  font-size: 0.88rem;
  color: #2e7d32;
  font-weight: 600;
  margin: 0;
  padding: 12px;
  background: #e8f5e9;
  border-radius: 8px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  background: var(--brand-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.contact-info-item__icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-item h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.contact-info-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 4px;
}

.contact-info-item a {
  color: var(--brand-light);
  font-weight: 600;
  transition: color 0.15s;
}

.contact-info-item a:hover {
  color: var(--brand-primary);
}

.contact-info-item__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-hero__title {
    font-size: 1.6rem;
  }
}

/* ══════════════════════════════════════
   About Page
   ══════════════════════════════════════ */
.about-page {
  overflow-x: hidden;
}

.about-section {
  padding: 56px 20px;
  background: var(--white);
}

.about-section--cream {
  background: #faf8fc;
}

.about-section__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.about-section__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.about-section__title--center {
  text-align: center;
  margin-bottom: 32px;
}

.about-section__p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-section__p:last-child {
  margin-bottom: 0;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
}

.about-split--reverse {
  grid-template-columns: 1fr 280px;
}

.about-icon-box {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  min-height: 200px;
}

.about-section--cream .about-icon-box {
  background: var(--white);
}

.about-icon-box svg {
  width: 100px;
  height: 100px;
  color: var(--brand-primary);
}

.about-mission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.about-mission-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--black);
  padding: 10px 14px;
  background: #ede6f5;
  border-radius: 8px;
}

.about-mission-list li::before {
  content: '✓';
  color: var(--brand-primary);
  font-weight: 800;
  flex-shrink: 0;
}

.about-stats {
  background: var(--brand-primary);
  color: var(--white);
  padding: 56px 20px;
}

.about-stats__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.about-stats__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 36px;
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-stat {
  text-align: center;
  padding: 20px 12px;
}

.about-stat__icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.about-stat__icon svg {
  width: 40px;
  height: 40px;
  color: var(--white);
  opacity: 0.9;
}

.about-stat__num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.about-stat__label {
  font-size: 0.88rem;
  opacity: 0.9;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-value-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.about-value-card:hover {
  transform: translateY(-3px);
}

.about-value-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

.about-value-card__icon svg {
  width: 36px;
  height: 36px;
}

.about-value-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}

.about-value-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about-cta {
  background: #f5f0fa;
  padding: 56px 20px;
  text-align: center;
}

.about-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.about-cta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.about-cta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.about-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-cta__btn {
  padding: 12px 32px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.about-cta__btn--primary {
  background: var(--brand-primary);
  color: var(--white);
}

.about-cta__btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.about-cta__btn--outline {
  background: var(--white);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.about-cta__btn--outline:hover {
  background: #ede6f5;
}

@media (max-width: 860px) {
  .about-split,
  .about-split--reverse {
    grid-template-columns: 1fr;
  }

  .about-split .about-icon-box {
    order: -1;
    min-height: 160px;
  }

  .about-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .about-stats__grid,
  .about-values {
    grid-template-columns: 1fr;
  }
}

/* ── FAQ Page ── */
body[data-current-page="faq"] {
  background: #faf8fc;
}

.faq-page-wrap {
  padding-bottom: 56px;
}

.faq-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 44px 20px 56px;
}

.faq-hero__title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.faq-hero__sub {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.faq-page {
  max-width: 820px;
  margin: -28px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.faq-item:hover {
  border-color: #e0d6ec;
}

.faq-item--open {
  border-color: rgba(92, 45, 145, 0.25);
  box-shadow: 0 8px 24px rgba(92, 45, 145, 0.1);
}

.faq-item__trigger {
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 0;
  border: none;
  background: linear-gradient(180deg, #faf8fc 0%, var(--white) 100%);
  cursor: pointer;
  text-align: inherit;
  font-family: inherit;
  transition: background 0.15s;
}

.faq-item--open .faq-item__trigger {
  background: linear-gradient(180deg, #f3eef8 0%, var(--white) 100%);
}

.faq-item__q {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.45;
}

.faq-item--open .faq-item__q {
  color: var(--brand-primary);
}

.faq-item__toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-height: 52px;
  background: var(--brand-primary);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s;
}

.faq-item--open .faq-item__toggle {
  background: var(--brand-dark);
}

.faq-item__answer {
  padding: 0 18px 18px;
  background: var(--white);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.faq-item__answer[hidden] {
  display: none;
}

.faq-empty {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.faq-cta {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.faq-cta__text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--black);
}

.faq-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.15s;
  white-space: nowrap;
}

.faq-cta__btn:hover {
  background: var(--brand-dark);
}

@media (max-width: 600px) {
  .faq-hero {
    padding: 36px 16px 48px;
  }

  .faq-item__q {
    padding: 14px 14px;
    font-size: 0.88rem;
  }

  .faq-item__toggle {
    width: 46px;
    min-height: 46px;
  }

  .faq-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .faq-cta__btn {
    width: 100%;
  }
}

/* ── Search Page ── */
.search-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.search-page__hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 55%, var(--brand-light) 100%);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.search-page__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.search-page__form {
  display: flex;
  gap: 0.75rem;
  max-width: 720px;
}

.search-page__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border-radius: 8px;
  padding: 0 1rem;
}

.search-page__field svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-page__field input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.9rem 0;
  color: var(--black);
  background: transparent;
}

.search-page__field input::placeholder {
  color: #999;
}

.search-page__submit {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: var(--white);
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.search-page__submit:hover {
  background: #f3edf9;
  transform: translateY(-1px);
}

.search-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.search-page__count {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.search-page__filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-page__filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 160px;
}

.search-page__filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.search-page__select {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}

[dir="rtl"] .search-page__select {
  padding: 0.5rem 0.75rem 0.5rem 2rem;
}

.search-results {
  margin-top: 0.25rem;
}

.search-results.products-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.search-results .p-card {
  flex: none;
  min-width: 0;
}

.search-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #faf8fc;
  border-radius: 12px;
  border: 1px dashed var(--nav-border);
}

.search-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--brand-light);
}

.search-empty__icon svg {
  width: 100%;
  height: 100%;
}

.search-empty h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.search-empty p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.search-empty__btn {
  display: inline-block;
  background: var(--brand-primary);
  color: var(--white);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.search-empty__btn:hover {
  background: var(--brand-dark);
}

.search-welcome {
  text-align: center;
  padding: 2.5rem 1rem;
}

.search-welcome h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.search-welcome p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.search-tag {
  border: 1px solid var(--brand-light);
  background: var(--white);
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.search-tag:hover {
  background: var(--brand-primary);
  color: var(--white);
  border-color: var(--brand-primary);
}

/* ── Thank You Page ── */
.thankyou-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 4rem;
  background: linear-gradient(180deg, #faf8fc 0%, var(--white) 40%);
}

.thankyou-card {
  width: 100%;
  max-width: 560px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(92, 45, 145, 0.1);
}

.thankyou-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-light));
  color: var(--white);
}

.thankyou-card__icon svg {
  width: 38px;
  height: 38px;
}

.thankyou-card__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.thankyou-card__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.thankyou-order {
  background: #faf8fc;
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  text-align: right;
}

[dir="ltr"] .thankyou-order {
  text-align: left;
}

.thankyou-order__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed rgba(92, 45, 145, 0.12);
}

.thankyou-order__row:last-child {
  border-bottom: none;
}

.thankyou-order__row span {
  color: var(--text-muted);
}

.thankyou-order__row strong {
  color: var(--black);
  font-weight: 700;
}

.thankyou-order__row--total strong {
  font-size: 1.1rem;
  color: var(--brand-primary);
}

.thankyou-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  text-align: right;
}

[dir="ltr"] .thankyou-steps {
  text-align: left;
}

.thankyou-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #f9f7fb;
  opacity: 0.65;
}

.thankyou-step--done {
  background: #ede6f5;
  opacity: 1;
  border: 1px solid rgba(92, 45, 145, 0.15);
}

.thankyou-step__dot {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--white);
  color: var(--brand-primary);
  border: 2px solid var(--brand-light);
}

.thankyou-step--done .thankyou-step__dot {
  background: var(--brand-primary);
  color: var(--white);
  border-color: var(--brand-primary);
}

.thankyou-step h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--black);
}

.thankyou-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.thankyou-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.thankyou-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.thankyou-btn--primary {
  background: var(--brand-primary);
  color: var(--white);
}

.thankyou-btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.thankyou-btn--outline {
  background: var(--white);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.thankyou-btn--outline:hover {
  background: #ede6f5;
}

.thankyou-btn--ghost {
  color: var(--text-muted);
  font-weight: 600;
}

.thankyou-btn--ghost:hover {
  color: var(--brand-primary);
}

@media (max-width: 640px) {
  .search-page__form {
    flex-direction: column;
  }

  .search-page__submit {
    padding: 0.85rem;
  }

  .search-page__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-page__filters {
    flex-direction: column;
  }

  .search-page__filter {
    min-width: 0;
    width: 100%;
  }

  .search-page__select {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1099px) {
  .search-results.products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .search-results.products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Legal / content pages */
.legal-page {
  padding: 48px 20px 64px;
  background: var(--white);
}

.legal-page__inner {
  max-width: 820px;
  margin: 0 auto;
}

.legal-page__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 24px;
}

.legal-page__content {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.legal-page__content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.legal-page__content h2:first-child {
  margin-top: 0;
}

.legal-page__content p {
  margin-bottom: 12px;
}

.legal-page__content ul,
.legal-page__content ol {
  margin: 0 0 16px;
  padding-inline-start: 1.4rem;
}

.legal-page__content li {
  margin-bottom: 6px;
}

.legal-page__content a {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* Product reviews */
.product-reviews {
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 0 24px;
}

.product-reviews__alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.product-reviews__alert--ok {
  background: #ecfdf5;
  color: #047857;
}

.product-reviews__alert--err {
  background: #fef2f2;
  color: #dc2626;
}

.product-reviews__form {
  background: #f8f7fc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
  display: grid;
  gap: 14px;
}

.product-reviews__form-title {
  font-weight: 700;
  margin: 0;
}

.product-reviews__rating-select,
.product-reviews__comment {
  display: grid;
  gap: 6px;
}

.product-reviews__rating-select select,
.product-reviews__comment textarea {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
}

.product-reviews__hint,
.product-reviews__empty {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.product-reviews__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.product-reviews__item {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 18px;
}

.product-reviews__item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.product-reviews__stars {
  color: #f5a623;
  letter-spacing: 1px;
}

.product-reviews__item-head time {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-inline-start: auto;
}

.product-reviews__comment-text {
  margin: 0;
  line-height: 1.6;
  color: #444;
}

/* ── Services ── */
.site-header__nav-services {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-header__nav-services svg {
  flex-shrink: 0;
  color: var(--brand-light);
}

.services-page,
.service-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.services-section__head {
  margin-bottom: 24px;
}

.services-section__head h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.services-section__sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 45, 145, 0.12);
}

.service-card__media {
  display: block;
  height: 150px;
  background: linear-gradient(180deg, #faf8fc 0%, #efe8f5 100%);
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--brand-light);
}

.service-card__placeholder svg {
  width: 48px;
  height: 48px;
}

.service-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.service-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
}

.service-card__title a {
  color: var(--black);
}

.service-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
  flex: 1;
}

.service-card__price {
  font-size: 0.84rem;
  color: var(--brand-primary);
  margin: 0;
}

.service-card__price strong {
  font-size: 1rem;
}

.service-card__btn {
  display: block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brand-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.service-card__btn:hover {
  background: var(--brand-dark);
}

.service-detail__back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.service-detail__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.service-detail__media {
  border-radius: 12px;
  overflow: hidden;
  background: #f8f4fc;
  margin-bottom: 20px;
}

.service-detail__media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.service-detail__placeholder {
  height: 240px;
  display: grid;
  place-items: center;
  color: var(--brand-light);
}

.service-detail__placeholder svg {
  width: 64px;
  height: 64px;
}

.service-detail__info h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-detail__lead {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.service-detail__price {
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.service-detail__desc {
  line-height: 1.7;
  color: #444;
}

.service-detail__form-wrap {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 90px;
}

.service-detail__form-wrap h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.service-detail__form-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-detail__alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.service-detail__alert--success {
  background: #ecfdf5;
  color: #047857;
}

.service-detail__alert--error {
  background: #fef2f2;
  color: #dc2626;
}

.service-request-form__field {
  margin-bottom: 14px;
}

.service-request-form__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.service-request-form__field input,
.service-request-form__field select,
.service-request-form__field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e0d6ec;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
}

.service-request-form__submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: var(--brand-primary);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
}

.service-request-form__submit:hover {
  background: var(--brand-dark);
}

.services-section__empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .service-detail__layout {
    grid-template-columns: 1fr;
  }

  .service-detail__form-wrap {
    position: static;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

