/*
  OreyX Pro strict modular CSS fix.
  Source: original V1 CSS, copied without visual redesign.
  Purpose: preserve exact responsive/mobile cascade while avoiding monolithic page loads.
*/

/*
  oreyx Pro Theme CSS
  Schema: oreyx.theme-css.v1
  Purpose: secure, responsive, multilingual LTR/RTL design foundation.
*/

:root {
  color-scheme: light;

  --bg: #f7f7ff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-2: rgba(255, 255, 255, 0.66);
  --text: #101223;
  --muted: rgba(16, 18, 35, 0.64);
  --line: rgba(16, 18, 35, 0.10);
  --line-strong: rgba(16, 18, 35, 0.16);

  --primary: #6658ff;
  --secondary: #17b8ef;
  --accent: #ff4fc4;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;

  --font: Inter, Vazirmatn, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: Inter, Vazirmatn, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1180px;
  --radius: 22px;
  --radius-lg: 32px;
  --radius-xl: 42px;

  --shadow-sm: 0 10px 30px rgba(25, 28, 58, 0.07);
  --shadow-md: 0 22px 70px rgba(25, 28, 58, 0.12);
  --shadow-lg: 0 32px 110px rgba(25, 28, 58, 0.16);

  --header-h: 76px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --focus: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent);
}

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

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 30rem),
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--secondary) 16%, transparent), transparent 32rem),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34rem),
    var(--bg);
}

body.drawer-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
}

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

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus {
  outline: none;
}

:focus-visible {
  box-shadow: var(--focus);
}

::selection {
  background: color-mix(in srgb, var(--primary) 24%, transparent);
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.mobile-only {
  display: none !important;
}

.desktop-only {
  display: inline-flex !important;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.bg__grid {
  position: absolute;
  inset: 0;
  opacity: .38;
  background-image:
    linear-gradient(to right, rgba(16, 18, 35, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 18, 35, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 28%, #000 0, transparent 68%);
}

.bg__orb,
.bg__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: .72;
  transform: translateZ(0);
}

.bg__orb--a {
  width: 360px;
  height: 360px;
  top: 6%;
  inset-inline-start: -120px;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
}

.bg__orb--b {
  width: 420px;
  height: 420px;
  top: 2%;
  inset-inline-end: -150px;
  background: color-mix(in srgb, var(--secondary) 24%, transparent);
}

.bg__glow {
  width: 520px;
  height: 520px;
  bottom: -210px;
  left: 50%;
  translate: -50% 0;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.bg__noise {
  position: absolute;
  inset: 0;
  opacity: .32;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.7), transparent 16rem),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.45), transparent 18rem);
}

/* Accessibility */
.skip {
  position: fixed;
  z-index: 9999;
  top: 12px;
  inset-inline-start: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}

.skip:focus {
  transform: translateY(0);
}

.app-status {
  position: fixed;
  z-index: -1;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Buttons */
.btn,
.icon-btn,
.burger,
.nav__btn,
.drawer__close {
  border: 0;
  background: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: -.01em;
  transition:
    transform .18s var(--ease),
    box-shadow .18s var(--ease),
    background .18s var(--ease),
    border-color .18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 18px 46px color-mix(in srgb, var(--primary) 24%, transparent);
}

.btn--ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(16px);
}

.icon-btn,
.burger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .62);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(25, 28, 58, .06);
  backdrop-filter: blur(18px);
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.icon-btn:hover,
.burger:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
  background: rgba(255,255,255,.86);
}

.icon-btn svg,
.burger svg,
.drawer__close svg,
.nav__chev svg {
  width: 21px;
  height: 21px;
}


/* OreyX navigation critical desktop shell.
   Keeps the header production-clean before optional presentation styles finish loading. */
@media (min-width: 1024px) {
  .site-header .brand__text {
    display: none !important;
  }

  .site-header .brand {
    gap: 0;
  }

  .site-header .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 20px;
  }

  .site-header[data-navigation-style-state="loading"] .site-header__row {
    visibility: hidden;
    opacity: 0;
  }

  .site-header[data-navigation-style-state="ready"] .site-header__row {
    visibility: visible;
    opacity: 1;
    transition: opacity .14s ease;
  }

  .site-header .header-actions .icon-btn {
    display: inline-grid;
    place-items: center;
    align-items: center;
    justify-items: center;
    line-height: 1;
  }

  .site-header .header-actions .icon-btn svg {
    display: block;
    margin: auto;
  }
}



/* OreyX navigation critical tablet shell.
   Keeps tablet header clean before the selected presentation style finishes loading. */
@media (min-width: 720px) and (max-width: 1023.98px) {
  .site-header[data-navigation-style-state="loading"] .site-header__row {
    visibility: hidden;
    opacity: 0;
  }
  .site-header[data-navigation-style-state="ready"] .site-header__row {
    visibility: visible;
    opacity: 1;
    transition: opacity .14s ease;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-h);
  padding-top: max(10px, var(--safe-top));
  padding-bottom: 10px;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(247,247,255,.82), rgba(247,247,255,.48));
  border-bottom: 1px solid rgba(16,18,35,.07);
}

.site-header__row {
  display: grid;
  grid-template-columns: auto minmax(170px, auto) 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 58px;
}

.brand,
.drawer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.92), transparent 27%),
    linear-gradient(135deg, var(--primary), var(--secondary) 52%, var(--accent));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 26%, transparent);
}

.brand__text,
.drawer-brand__copy {
  display: grid;
  min-width: 0;
}

.brand__name,
.drawer-brand__name,
.footer-brand__name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 920;
  letter-spacing: -.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__tag,
.drawer-brand__tag {
  max-width: 210px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(16,18,35,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.50);
  backdrop-filter: blur(18px);
}

.nav__link,
.nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--text) 84%, transparent);
  font-size: 14px;
  font-weight: 800;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.nav__link:hover,
.nav__btn:hover {
  color: var(--text);
  background: rgba(255,255,255,.74);
}

.nav__chev {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-language {
  min-width: 116px;
}

.language-switcher {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
  color: var(--text);
  font-weight: 760;
  appearance: none;
}

html[dir="rtl"] .language-switcher {
  padding: 0 13px 0 34px;
}

/* Drawer */
.drawer,
.mega {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.drawer[data-open="1"],
.mega[data-open="1"] {
  pointer-events: auto;
}

.drawer__backdrop,
.mega__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 25, .36);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity .22s var(--ease);
}

.drawer[data-open="1"] .drawer__backdrop,
.mega[data-open="1"] .mega__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(420px, calc(100vw - 30px));
  padding: max(18px, var(--safe-top)) 18px max(18px, var(--safe-bottom));
  background: rgba(255,255,255,.90);
  border-inline-end: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
  transform: translateX(-104%);
  transition: transform .26s var(--ease);
  overflow-y: auto;
}

html[dir="rtl"] .drawer__panel {
  transform: translateX(104%);
}

.drawer[data-open="1"] .drawer__panel,
html[dir="rtl"] .drawer[data-open="1"] .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.drawer__close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(16,18,35,.06);
  color: var(--text);
}

.drawer__body {
  display: grid;
  gap: 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(16,18,35,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  font-weight: 850;
}

.drawer-language {
  margin-top: 18px;
}

/* Mega */
.mega__panel {
  position: absolute;
  top: calc(var(--header-h) + 10px);
  left: 50%;
  width: min(calc(100vw - 32px), var(--max));
  max-height: min(70vh, 620px);
  overflow-y: auto;
  translate: -50% -12px;
  opacity: 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(26px);
  transition: opacity .2s var(--ease), translate .2s var(--ease);
}

.mega[data-open="1"] .mega__panel {
  opacity: 1;
  translate: -50% 0;
}

.mega__inner {
  padding: 24px;
}

.mega__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.04em;
}

.mega__subtitle {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.mega__col {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.58);
}

.mega__col-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 920;
}

.mega__items {
  display: grid;
  gap: 8px;
}

.mega__item {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  transition: background .18s var(--ease);
}

.mega__item:hover {
  background: rgba(16,18,35,.045);
}

.mega__item-label {
  font-weight: 820;
}

.mega__item-desc {
  color: var(--muted);
  font-size: 13px;
}

/* Main */
.page-root {
  min-height: 52vh;
  padding-top: 28px;
  padding-bottom: 56px;
}

.page-fallback {
  padding: clamp(36px, 7vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.52));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 920;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.section {
  margin-block: clamp(28px, 6vw, 72px);
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

.section:first-child {
  margin-top: 0;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section__title,
.page-fallback h1,
.hero__title {
  font-family: var(--font-heading);
  color: var(--text);
  letter-spacing: -.055em;
  line-height: .98;
}

.section__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
}

.section__p,
.page-fallback p,
.hero__subtitle {
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  min-height: clamp(520px, 75vh, 780px);
}

.hero__copy {
  display: grid;
  align-content: center;
}

.hero__title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 8vw, 92px);
}

.hero__subtitle {
  max-width: 650px;
  margin: 22px 0 0;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__visual {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 26% 24%, color-mix(in srgb, var(--secondary) 22%, transparent), transparent 28%),
    radial-gradient(circle at 78% 76%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.52));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.hero-card {
  position: absolute;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.34)),
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 38%);
  box-shadow: 0 20px 58px rgba(24, 28, 58, .13);
}

.hero-card--a {
  width: 54%;
  height: 54%;
  top: 11%;
  inset-inline-start: 9%;
}

.hero-card--b {
  width: 44%;
  height: 42%;
  top: 22%;
  inset-inline-end: 8%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.38)),
    radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--secondary) 24%, transparent), transparent 42%);
}

.hero-card--c {
  width: 56%;
  height: 34%;
  bottom: 9%;
  inset-inline-start: 22%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.34)),
    radial-gradient(circle at 70% 50%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 42%);
}

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

.product-card {
  min-width: 0;
}

.product-card__link {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.product-card__link:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 24%, var(--line));
  box-shadow: var(--shadow-md);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 26%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 34%),
    rgba(255,255,255,.55);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.product-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 860;
  line-height: 1.35;
}

.product-card__price {
  margin: 0;
  color: var(--primary);
  font-weight: 920;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 36px 0 max(30px, var(--safe-bottom));
}

.footerMount {
  display: grid;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.7fr);
  gap: 26px;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-brand__name {
  font-size: 20px;
}

.footer-brand__note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

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

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col__title {
  margin: 0;
  font-size: 14px;
  font-weight: 920;
}

.footer-col__list {
  display: grid;
  gap: 8px;
}

.footer-col__link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  transition: color .18s var(--ease);
}

.footer-col__link:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* Toast / modal mounts */
.toast-mount {
  position: fixed;
  z-index: 180;
  right: 18px;
  bottom: calc(18px + var(--safe-bottom));
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
}

html[dir="rtl"] .toast-mount {
  right: auto;
  left: 18px;
}

.modal-mount {
  position: relative;
  z-index: 160;
}

/* Noscript */
.noscript-page {
  margin-block: 60px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

/* Responsive */
@media (max-width: 1100px) {
  .site-header__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-grid !important;
  }

  .brand {
    justify-self: center;
  }

  .brand__tag {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
  }

  .hero__visual {
    min-height: 360px;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .site-header {
    padding-bottom: 8px;
  }

  .site-header__row {
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .brand__name {
    max-width: 148px;
    font-size: 14px;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-btn,
  .burger {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .page-root {
    padding-top: 18px;
    padding-bottom: 34px;
  }

  .page-fallback {
    padding: 28px 20px;
    border-radius: 30px;
  }

  .hero {
    gap: 22px;
  }

  .hero__title {
    font-size: clamp(38px, 14vw, 58px);
  }

  .hero__subtitle {
    margin-top: 16px;
  }

  .hero__actions {
    display: grid;
  }

  .hero__visual {
    min-height: 300px;
    border-radius: 32px;
  }

  .section {
    margin-block: 38px;
    contain-intrinsic-size: 520px;
  }

  .section__head {
    display: grid;
    align-items: start;
  }

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

  .product-card__link {
    border-radius: 22px;
  }

  .product-card__body {
    padding: 12px;
  }

  .mega__panel {
    top: 82px;
    max-height: calc(100vh - 100px);
  }

  .mega__grid {
    grid-template-columns: 1fr;
  }

  .footerMount {
    padding: 20px;
    border-radius: 30px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 430px) {
  .brand__text {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

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

/* Print */
@media print {
  .site-header,
  .site-footer,
  .bg,
  .drawer,
  .mega,
  .toast-mount,
  .modal-mount {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .shell {
    width: 100%;
  }

  .page-root {
    padding: 0;
  }
}

/* ------------------------------------------------------------------
   oreyx Step 7 Layout Patch
   Header/footer/search/drawer/mega upgrades.
------------------------------------------------------------------ */

.site-header[data-scrolled="1"]::before {
  background:
    linear-gradient(to bottom, rgba(247,247,255,.94), rgba(247,247,255,.76));
  box-shadow: 0 12px 36px rgba(25, 28, 58, .08);
}

.nav__link[data-active="1"],
.nav__btn[data-active="1"] {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, #fff);
}

.header-cart {
  overflow: visible;
}

.cart-badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  display: grid;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(25, 28, 58, .16);
}

.cart-badge[data-hide="1"] {
  display: none;
}

.language-switcher-wrap {
  position: relative;
  display: block;
}

.language-switcher-wrap__icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 12px;
  display: grid;
  width: 18px;
  height: 18px;
  translate: 0 -50%;
  color: var(--muted);
  pointer-events: none;
}

.language-switcher-wrap__icon svg {
  width: 18px;
  height: 18px;
}

.language-switcher {
  padding-inline-start: 38px;
}

/* Search modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
}

.search-modal[data-open="1"] {
  pointer-events: auto;
}

.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 25, .42);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity .22s var(--ease);
}

.search-modal[data-open="1"] .search-modal__backdrop {
  opacity: 1;
}

.search-modal__panel {
  position: absolute;
  top: max(74px, calc(var(--safe-top) + 34px));
  left: 50%;
  width: min(720px, calc(100vw - 28px));
  max-height: min(72vh, 680px);
  translate: -50% -14px;
  opacity: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(28px);
  transition: opacity .22s var(--ease), translate .22s var(--ease);
}

.search-modal[data-open="1"] .search-modal__panel {
  translate: -50% 0;
  opacity: 1;
}

.search-modal__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.search-modal__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--muted);
}

.search-modal__icon svg {
  width: 22px;
  height: 22px;
}

.search-modal__input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
}

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

.search-modal__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: var(--text);
}

.search-modal__close svg {
  width: 20px;
  height: 20px;
}

.search-modal__results {
  display: grid;
  gap: 8px;
  max-height: calc(min(72vh, 680px) - 75px);
  overflow-y: auto;
  padding: 12px;
}

.search-modal__empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.search-result {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.search-result:hover,
.search-result:focus-visible {
  background: rgba(16,18,35,.045);
  border-color: var(--line);
}

.search-result__media {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 40%),
    rgba(16,18,35,.055);
  color: var(--primary);
}

.search-result__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result__media svg {
  width: 22px;
  height: 22px;
}

.search-result__body {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.search-result__title {
  overflow: hidden;
  font-weight: 880;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result__meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

/* Drawer additions */
.drawer-search {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.66);
  color: var(--muted);
  font-weight: 820;
}

.drawer-search svg {
  width: 20px;
  height: 20px;
}

.drawer-link[data-active="1"] {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  color: var(--primary);
}

.drawer-link--primary {
  color: var(--primary);
  font-weight: 920;
}

.drawer-link--sub {
  min-height: 42px;
  margin-inline-start: 12px;
  font-size: 14px;
}

.drawer-section {
  display: grid;
  gap: 8px;
}

.drawer-section__toggle {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(16,18,35,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  color: var(--text);
  font-weight: 900;
}

.drawer-section__chev {
  display: grid;
  width: 18px;
  height: 18px;
  transition: rotate .18s var(--ease);
}

.drawer-section__chev svg {
  width: 18px;
  height: 18px;
}

.drawer-section[data-open="1"] .drawer-section__chev {
  rotate: 180deg;
}

.drawer-section__content {
  display: none;
  gap: 8px;
}

.drawer-section[data-open="1"] .drawer-section__content {
  display: grid;
}

.drawer-section__label {
  margin: 12px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 920;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.drawer__foot {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.drawer-action {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  color: var(--text);
  font-weight: 850;
}

.drawer-action svg {
  width: 20px;
  height: 20px;
}

/* Mega additions */
.mega__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.mega__copy {
  min-width: 0;
}

.mega__top-cta {
  flex: 0 0 auto;
}

.mega__col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mega__col-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  color: var(--primary);
}

.mega__col-icon svg {
  width: 18px;
  height: 18px;
}

.footer-brand__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand__copy {
  min-width: 0;
}

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

.footer-contact {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.footer-col__link[aria-current="page"] {
  color: var(--primary);
  font-weight: 900;
}

@media (max-width: 760px) {
  .search-modal__panel {
    top: max(66px, calc(var(--safe-top) + 22px));
    width: min(100vw - 18px, 720px);
    border-radius: 24px;
  }

  .search-modal__head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search-modal__icon {
    display: none;
  }

  .mega__top {
    display: grid;
  }

  .mega__top-cta {
    width: 100%;
  }
}

/* ------------------------------------------------------------------
   oreyx Step 8 Renderer Patch
   Page body renderers: products, articles, breadcrumbs, contact, legal.
------------------------------------------------------------------ */

.content-card {
  width: min(100%, 920px);
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.section__link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: var(--primary);
  font-size: 14px;
  font-weight: 860;
}

.section__head--stacked {
  display: grid;
  justify-content: stretch;
}

.breadcrumb {
  margin-bottom: 22px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: color-mix(in srgb, var(--muted) 58%, transparent);
}

.breadcrumb__link {
  color: var(--muted);
}

.breadcrumb__link:hover {
  color: var(--primary);
}

.breadcrumb__current {
  color: var(--text);
}

.media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 160px;
  place-items: center;
  background:
    radial-gradient(circle at 30% 24%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 38%),
    radial-gradient(circle at 72% 68%, color-mix(in srgb, var(--secondary) 14%, transparent), transparent 36%),
    rgba(255,255,255,.56);
  color: var(--primary);
}

.media-placeholder svg {
  width: 38px;
  height: 38px;
}

.product-card {
  position: relative;
}

.product-card__link {
  position: relative;
}

.product-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.product-card__desc {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-card__compare,
.product-summary__compare {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: line-through;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--success);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.empty-state--rich {
  display: grid;
  gap: 8px;
  padding: 28px;
}

.empty-state__title {
  margin: 0;
  font-size: 22px;
}

.empty-state__body {
  margin: 0;
  color: var(--muted);
}

.product-gallery__main {
  aspect-ratio: 1 / 1;
  min-height: 360px;
  background: rgba(255,255,255,.56);
}

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

.product-summary__desc {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.product-summary__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.product-summary__stock {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 10%, #fff);
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
}

.product-summary__stock[data-status="out"] {
  background: color-mix(in srgb, var(--danger) 10%, #fff);
  color: var(--danger);
}

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

.article-card__link {
  display: grid;
  height: 100%;
}

.article-card__media {
  display: grid;
  place-items: center;
  color: var(--primary);
}

.article-card__media svg {
  width: 38px;
  height: 38px;
}

.article-card__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.article-shell__meta {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.article-shell__lead {
  color: var(--text) !important;
  font-size: clamp(19px, 2vw, 24px) !important;
  line-height: 1.55 !important;
}

.article-shell__back {
  margin-top: 22px;
}

.contact-item {
  color: var(--text);
}

.contact-item__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.contact-item__value {
  font-weight: 820;
}

.contact-form__title {
  margin: 0;
  font-size: 24px;
}

.contact-form__note,
.legal-notice {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  color: var(--muted);
}

.legal-notice {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .content-card {
    padding: 22px;
    border-radius: 30px;
  }

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

  .product-summary__actions {
    display: grid;
  }
}



/* ------------------------------------------------------------------
   Premium footer refinement
   Footer-only upgrade: keeps header, page sections, checkout, catalog,
   cart, and runtime behavior unchanged.
------------------------------------------------------------------ */
.site-footer {
  padding: clamp(34px, 5vw, 64px) 0 max(30px, var(--safe-bottom));
}

.footerMount {
  position: relative;
  overflow: hidden;
  gap: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: clamp(30px, 4vw, 44px);
  background:
    radial-gradient(circle at 6% 0%, color-mix(in srgb, var(--primary) 12%, transparent) 0, transparent 34%),
    radial-gradient(circle at 94% 10%, color-mix(in srgb, var(--secondary) 13%, transparent) 0, transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
  box-shadow: 0 26px 80px rgba(16,18,35,.09), var(--shadow-sm);
  backdrop-filter: blur(24px);
}

.footerMount::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.62), transparent 48%, rgba(255,255,255,.32));
  opacity: .8;
}

.footer-top--premium,
.footer-bottom--premium {
  position: relative;
  z-index: 1;
}

.footer-top--premium {
  display: grid;
  grid-template-columns: minmax(270px, .82fr) minmax(0, 1.5fr);
  gap: clamp(26px, 4vw, 46px);
  align-items: start;
}

.footer-brand--premium { display: grid; gap: 18px; min-width: 0; }
.footer-brand__mark { flex: 0 0 auto; }
.footer-brand__name { font-size: clamp(20px, 2vw, 25px); line-height: 1.08; letter-spacing: -.03em; font-weight: 950; }
.footer-brand__note { max-width: 460px; margin-top: 8px; font-size: 14px; line-height: 1.75; }
.footer-proof-row { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-proof { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--line) 72%, transparent); border-radius: 999px; background: rgba(255,255,255,.62); color: var(--text); font-size: 12px; font-weight: 860; box-shadow: 0 10px 24px rgba(16,18,35,.05); }
.footer-proof__icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 13%, #fff); color: var(--primary); font-size: 12px; font-weight: 950; }
.footer-contact-panel { display: grid; gap: 10px; width: min(100%, 520px); }
.footer-contact-card { display: grid; gap: 3px; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--line) 76%, transparent); border-radius: 20px; background: rgba(255,255,255,.66); color: var(--text); box-shadow: 0 14px 32px rgba(16,18,35,.05); transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease); }
.footer-contact-card[href]:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 28%, var(--line)); background: rgba(255,255,255,.86); }
.footer-contact-card--primary { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, #fff), rgba(255,255,255,.78)); }
.footer-contact-card__eyebrow { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.footer-contact-card__value { overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; font-weight: 850; }
.footer-cols--premium { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 26px); }
.footer-col--premium { min-width: 0; padding: 16px; border: 1px solid color-mix(in srgb, var(--line) 68%, transparent); border-radius: 24px; background: rgba(255,255,255,.42); }
.footer-col__title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--text); font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.footer-col__title::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent); }
.footer-col__list { gap: 6px; }
.footer-col__link { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 0; color: var(--muted); line-height: 1.35; text-decoration: none; }
.footer-col__link::after { content: ""; width: 0; height: 1px; background: currentColor; opacity: .52; transition: width .18s var(--ease); }
.footer-col__link:hover, .footer-col__link[aria-current="page"] { color: var(--primary); }
.footer-col__link:hover::after, .footer-col__link[aria-current="page"]::after { width: 18px; }
.footer-bottom--premium { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: clamp(22px, 3vw, 34px); padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
.footer-bottom__left, .footer-bottom__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.footer-copy, .footer-powered, .footer-bottom__link { color: var(--muted); font-size: 13px; font-weight: 760; }
.footer-powered { display: inline-flex; align-items: center; gap: 8px; }
.footer-powered::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--secondary); }
.footer-bottom__link { text-decoration: none; transition: color .18s var(--ease); }
.footer-bottom__link:hover, .footer-bottom__link[aria-current="page"] { color: var(--text); }
.legal-anchor-title { scroll-margin-top: 110px; }

@media (max-width: 1040px) {
  .footer-top--premium { grid-template-columns: 1fr; }
  .footer-cols--premium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-footer { padding-top: 28px; }
  .footerMount { padding: 18px; border-radius: 30px; }
  .footer-top--premium { gap: 20px; }
  .footer-brand__top { align-items: flex-start; }
  .footer-proof-row { display: grid; grid-template-columns: 1fr; }
  .footer-proof, .footer-contact-card { width: 100%; }
  .footer-cols--premium { grid-template-columns: 1fr; gap: 10px; }
  .footer-col--premium { padding: 14px; border-radius: 20px; }
  .footer-bottom--premium { display: grid; align-items: start; }
  .footer-bottom__left, .footer-bottom__links { align-items: flex-start; }
}

@media (max-width: 430px) {
  .footer-brand__top { display: grid; }
  .footer-bottom__links { display: grid; gap: 8px; }
}
