/**
 * Unified header + hero (front) — from zarin-home-new-unified-header-hero.html
 * Live search panel/overlay styles stay in zarrin-front.css (.head_search_*)
 */

:root {
  --za-primary: #6f3bea;
  --za-primary-dark: #4b1fbc;
  --za-primary-soft: #f1ecff;
  --za-ink: #171426;
  --za-muted: #70697d;
  --za-border: rgba(77, 40, 161, 0.12);
  --za-white: #fff;
  --za-success: #14915c;
  --za-container: none;   /* full-width on all monitors */
  --za-shadow: 0 22px 60px rgba(48, 25, 105, 0.12);
}

/* =========================================================
   TOP — HEADER + HERO = ONE SECTION (front page)
   ========================================================= */
.za-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 760px;
  color: var(--za-ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(116, 67, 235, 0.19), transparent 31%),
    radial-gradient(circle at 88% 12%, rgba(196, 177, 255, 0.28), transparent 31%),
    radial-gradient(circle at 50% 100%, rgba(126, 85, 239, 0.12), transparent 38%),
    linear-gradient(180deg, #fbf9ff 0%, #f8f5ff 54%, #ffffff 100%);
}

.za-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(111, 59, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 59, 234, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 60%, transparent 100%);
}

.za-top::after {
  content: "";
  position: absolute;
  top: -420px;
  left: 50%;
  z-index: -2;
  width: 1000px;
  height: 1000px;
  transform: translateX(-50%);
  border: 1px solid rgba(111, 59, 234, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 110px rgba(111, 59, 234, 0.025),
    0 0 0 220px rgba(111, 59, 234, 0.015);
  pointer-events: none;
}

.za-container {
  width: 100%;
  padding-inline: clamp(14px, 3vw, 48px);
  margin-inline: auto;
  box-sizing: border-box;
}

/* Desktop header: align with homepage content width */
.za-header > .za-container {
  max-width: 1300px;
}

/* =========================================================
   HEADER — light chrome from zarin-account-final-header-hero.html
   Mega menu panels stay in za-mega-menu.css
   ========================================================= */
.za-header.site-header {
  position: relative;
  z-index: 100;
  display: block;
  width: 100%;
  min-height: 82px;
  background: rgba(255, 255, 255, 0.72);
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(111, 59, 234, 0.10);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

/* Inner pages: solid sticky header */
body:not(.home) .za-header.site-header,
.za-header.za-header--standalone {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 8px 28px rgba(48, 25, 105, 0.06);
}

.za-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  min-height: 82px;
}

.za-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-height: 50px;
  text-decoration: none;
  color: inherit;
}

.za-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(111, 59, 234, 0.16);
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, #9d72ff, #6332d6);
  box-shadow: 0 10px 26px rgba(107, 55, 221, 0.22), inset 0 1px rgba(255, 255, 255, 0.36);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.6px;
  flex-shrink: 0;
  direction: ltr;
}

.za-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.za-brand-mark::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 60px;
  top: -15px;
  left: -12px;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(35deg);
  pointer-events: none;
}

.za-brand-mark--logo {
  width: auto;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.za-brand-mark--logo::after {
  display: none;
}

.za-brand-mark--logo img {
  width: auto;
  height: 46px;
  max-height: 46px;
  max-width: 190px;
  object-fit: contain;
}

.za-brand-copy {
  display: grid;
  line-height: 1.2;
  white-space: nowrap;
}

.za-brand-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.za-brand-copy small,
.za-brand-copy span {
  display: block;
  margin-top: 5px;
  color: #887e95;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.8px;
  direction: ltr;
}

/* WP menu inside new header shell — top-level only; mega stays as-is */
.za-menu.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  margin: 0 auto;
}

.za-menu .main-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}

.za-menu .main-nav-list > li {
  position: relative;
}

.za-menu .main-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  color: #5e576a;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.za-menu .main-nav-list > li > a:hover,
.za-menu .main-nav-list > li.current-menu-item > a,
.za-menu .main-nav-list > li.current-menu-ancestor > a {
  color: var(--za-primary-dark);
  background: rgba(111, 59, 234, 0.08);
}

.za-menu .main-nav-list > li.is-mega-open > a {
  color: var(--za-primary);
  background: transparent;
}

.za-menu .main-nav-list > li.za-mega-trigger.is-mega-open::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 10px;
  background: var(--za-primary);
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
  z-index: 1030;
  pointer-events: none;
}

.za-menu .main-nav-list > li.menu-item-has-children > a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0.75;
  margin: 0;
  transition: transform 0.2s ease;
}

.za-menu .main-nav-list > li.menu-item-has-children:hover > a::after,
.za-menu .main-nav-list > li.menu-item-has-children:focus-within > a::after {
  transform: rotate(135deg) translateY(-1px);
}

.za-menu .main-nav-list > li.za-mega-trigger.is-mega-open > a::after {
  transform: rotate(-45deg) translateY(-1px);
}

.za-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-direction: row;
  position: relative;
  z-index: 6;
}

.za-icon-btn,
.za-nav-actions .icon-btn,
.za-nav-actions .cart-icon-btn.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(111, 59, 234, 0.12);
  border-radius: 13px;
  color: #51495d;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  backdrop-filter: blur(8px);
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.za-icon-btn:hover,
.za-nav-actions .icon-btn:hover,
.za-nav-actions .cart-icon-btn.icon-btn:hover {
  color: var(--za-primary-dark);
  background: #fff;
  border-color: rgba(111, 59, 234, 0.2);
  transform: translateY(-1px);
}

.za-icon-btn svg,
.za-nav-actions .icon-btn svg,
.za-nav-actions .cart-icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.za-nav-actions .zarinacc-cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.za-nav-actions .cart-count-badge,
.za-nav-actions .header-cart-count {
  position: absolute;
  top: -5px;
  left: -5px;
  right: auto;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #21130a;
  background: #ffcd70;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.za-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(111, 59, 234, 0.12);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #9364ff, #6932dc);
  box-shadow: 0 12px 28px rgba(113, 53, 226, 0.28);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.za-login:hover {
  color: #fff;
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(113, 53, 226, 0.38);
}

.za-login svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.za-account-menu {
  position: relative;
  flex: 0 0 auto;
  z-index: 7;
}

.za-account-menu__toggle {
  max-width: 168px;
}

.za-account-menu__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 88px;
}

.za-account-menu__caret {
  width: 14px !important;
  height: 14px !important;
  transition: transform 0.18s ease;
}

.za-account-menu.is-open .za-account-menu__caret {
  transform: rotate(180deg);
}

.za-account-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: auto;
  inset-inline-end: 0;
  z-index: 80;
  min-width: 180px;
  width: max-content;
  max-width: min(240px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgba(86, 50, 164, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(48, 24, 110, 0.16);
  box-sizing: border-box;
}

.za-account-menu__dropdown[hidden] {
  display: none !important;
}

.za-account-menu.is-open .za-account-menu__dropdown {
  display: grid;
  gap: 2px;
}

.za-account-menu__dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2f2545;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.za-account-menu__dropdown a:hover {
  background: rgba(91, 36, 207, 0.08);
  color: var(--za-primary-dark, #4b1fbc);
}

.za-account-menu__dropdown .za-account-menu__logout {
  color: #b42318;
}

.za-account-menu__dropdown .za-account-menu__logout:hover {
  background: rgba(180, 35, 24, 0.08);
  color: #912018;
}

.za-drawer__account {
  display: grid;
  gap: 4px;
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(86, 50, 164, 0.1);
}

.za-drawer__account-name {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #2f2545;
}

.za-drawer__account a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2f2545;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: rgba(91, 36, 207, 0.04);
}

.za-drawer__account a:hover {
  background: rgba(91, 36, 207, 0.1);
}

.za-drawer__account .za-drawer__logout {
  color: #b42318;
  background: rgba(180, 35, 24, 0.06);
}

.za-mobile-toggle {
  display: none;
}

/* =========================================================
   HERO
   ========================================================= */
.za-hero {
  --za-hero-mx: 72%;
  --za-hero-my: 38%;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 585px;
  padding: 62px 0 72px;
  isolation: isolate;
  overflow: hidden;
}

/* atmosphere layer: spotlight + orbs */
.za-hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.za-hero-spotlight {
  position: absolute;
  inset: -15%;
  background: radial-gradient(
    580px circle at var(--za-hero-mx) var(--za-hero-my),
    rgba(111, 59, 234, 0.22),
    rgba(183, 155, 248, 0.1) 34%,
    transparent 58%
  );
  will-change: background;
  transition: background 0.08s linear;
}

.za-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  pointer-events: none;
}

.za-orb-a {
  width: 340px;
  height: 340px;
  top: -90px;
  right: -50px;
  border: 1px solid rgba(231, 221, 255, 0.7);
  background: radial-gradient(circle at 35% 35%, rgba(183, 155, 248, 0.18), transparent 68%);
}

.za-orb-b {
  width: 480px;
  height: 480px;
  left: -140px;
  bottom: -160px;
  border: 1px solid rgba(240, 235, 255, 0.8);
  background: radial-gradient(circle at 60% 40%, rgba(111, 59, 234, 0.12), transparent 70%);
}

.za-orb-c {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 20%;
  opacity: 0.7;
  border: 1px solid rgba(231, 221, 255, 0.5);
  background: radial-gradient(circle at 50% 50%, rgba(183, 155, 248, 0.14), transparent 72%);
}

@media (prefers-reduced-motion: reduce) {
  .za-orb { transition: none; }
  .za-hero-spotlight {
    background: radial-gradient(
      580px circle at 72% 38%,
      rgba(111, 59, 234, 0.16),
      transparent 58%
    );
  }
}

/* Make sure hero content sits above atmosphere */
.za-hero > .za-container {
  position: relative;
  z-index: 1;
}

.za-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  align-items: center;
  gap: 54px;
  width: 100%;
}

.za-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 0 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(111, 59, 234, 0.16);
  border-radius: 999px;
  color: var(--za-primary-dark);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 9px 25px rgba(55, 29, 112, 0.04);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}

.za-hero-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #23b875;
  box-shadow: 0 0 0 5px rgba(35, 184, 117, 0.1);
  flex-shrink: 0;
}

.za-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.35;
  letter-spacing: -0.8px;
  color: var(--za-ink);
  font-weight: 900;
}

.za-hero-accent {
  color: var(--za-primary);
  background: linear-gradient(90deg, #7c4dff 0%, #5b29ce 58%, #8d66fb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.za-hero-lead {
  max-width: 710px;
  margin: 17px 0 0;
  color: var(--za-muted);
  font-size: 15px;
  line-height: 2;
}

/* Live search — Digikala behavior; new visual shell */
.za-search-card.search-box.head_search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  max-width: 720px;
  width: 100%;
  height: auto;
  margin-top: 23px;
  margin-inline: 0;
  padding: 7px;
  border: 1px solid rgba(100, 62, 184, 0.14);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow: 0 19px 46px rgba(55, 29, 112, 0.08);
  backdrop-filter: blur(11px);
  position: relative;
  z-index: 3;
  animation: none;
}

/* Neon border — animated conic sweep around hero search */
@property --za-neon-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.za-hero .za-search-card.search-box.head_search {
  border-color: transparent;
  overflow: visible;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.35),
    0 0 16px rgba(111, 59, 234, 0.28),
    0 0 36px rgba(129, 85, 245, 0.16),
    0 19px 46px rgba(55, 29, 112, 0.08);
  animation: za-search-neon-glow 2.6s ease-in-out infinite;
}

.za-hero .za-search-card.search-box.head_search::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: 19px;
  padding: 2px;
  background: conic-gradient(
    from var(--za-neon-angle),
    transparent 0%,
    transparent 8%,
    #c4b5fd 14%,
    #a78bfa 20%,
    #6f3bea 28%,
    #8155f5 34%,
    #ddd6fe 40%,
    transparent 48%,
    transparent 58%,
    #a78bfa 66%,
    #4b1fbc 74%,
    #c4b5fd 82%,
    transparent 90%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: za-search-neon-spin 2.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(111, 59, 234, 0.55));
}

.za-hero .za-search-card.search-box.head_search > * {
  position: relative;
  z-index: 1;
}

@keyframes za-search-neon-spin {
  to {
    --za-neon-angle: 360deg;
  }
}

@keyframes za-search-neon-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(167, 139, 250, 0.3),
      0 0 14px rgba(111, 59, 234, 0.22),
      0 0 28px rgba(129, 85, 245, 0.12),
      0 19px 46px rgba(55, 29, 112, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(196, 181, 253, 0.55),
      0 0 22px rgba(111, 59, 234, 0.42),
      0 0 48px rgba(129, 85, 245, 0.28),
      0 19px 46px rgba(55, 29, 112, 0.1);
  }
}

body.zarinacc-search-open .za-hero .za-search-card.search-box::before {
  animation-duration: 1.4s;
  filter: drop-shadow(0 0 10px rgba(111, 59, 234, 0.75));
}

@media (prefers-reduced-motion: reduce) {
  .za-hero .za-search-card.search-box.head_search,
  body.zarinacc-search-open .za-hero .za-search-card.search-box {
    animation: none;
  }

  .za-hero .za-search-card.search-box.head_search::before,
  body.zarinacc-search-open .za-hero .za-search-card.search-box::before {
    animation: none;
    --za-neon-angle: 120deg;
  }
}

.za-search-field {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
}

.za-search-icon,
.za-search-card .head_search_icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--za-primary, #7434e8);
  font-size: inherit;
  line-height: 1;
  flex: none;
}

.za-search-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
}

.za-search-card input,
.za-search-card .head_search_field {
  width: 100%;
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  color: var(--za-ink);
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  box-shadow: none;
}

.za-search-card input::placeholder,
.za-search-card .head_search_field::placeholder {
  color: #9991a4;
}

.za-search-btn,
.za-search-card > button[type="submit"] {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #8155f5, var(--za-primary-dark));
  cursor: pointer;
  box-shadow: 0 10px 23px rgba(72, 30, 184, 0.18);
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  white-space: nowrap;
}

body.zarinacc-search-open .za-search-card.search-box {
  animation: none;
  border-color: rgba(111, 59, 234, 0.45);
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.14), 0 19px 46px rgba(55, 29, 112, 0.1);
  z-index: 10220;
}

body.zarinacc-search-open .za-hero .za-search-card.search-box {
  animation: za-search-neon-glow 1.6s ease-in-out infinite;
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.55),
    0 0 24px rgba(111, 59, 234, 0.45),
    0 0 52px rgba(109, 74, 255, 0.22),
    0 19px 46px rgba(55, 29, 112, 0.1);
}

.za-hero-copy {
  position: relative;
}

.za-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  justify-content: flex-start;
  color: inherit;
  font-size: inherit;
}

.za-hero-actions.quick-stats {
  justify-content: flex-start;
  margin-top: 14px;
  gap: 10px;
  color: inherit;
  font-size: inherit;
  flex-direction: column;
  align-items: flex-start;
}

.za-recent-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.za-recent-searches[hidden] {
  display: none !important;
}

.za-recent-searches__label {
  color: var(--za-muted, #8a8296);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.za-recent-searches__chips,
.za-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.za-quick-label {
  color: var(--za-muted, #8a8296);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.za-quick-link,
.za-hero-actions .quick-stat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(86, 50, 164, 0.09);
  border-radius: 9px;
  color: #6b6377;
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: 0.2s ease;
}

.za-hero-actions .za-recent-chip {
  border-color: rgba(86, 50, 164, 0.16);
  color: var(--za-primary-dark, #5632a4);
  background: rgba(111, 59, 234, 0.06);
}

.za-quick-link:hover,
.za-hero-actions .quick-stat-chip:hover {
  color: var(--za-primary-dark);
  background: #fff;
}

.za-hero-actions > span {
  color: var(--za-muted);
  font-size: 12px;
  font-weight: 700;
}

/* Mobile CTAs — hidden on desktop, shown under 760px */
.za-hero-ctas {
  display: none;
}

.za-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.za-hero-cta svg,
.za-hero-cta__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.za-hero-cta--primary {
  color: #fff;
  background: var(--za-primary, #7434e8);
  box-shadow: 0 6px 18px rgba(116, 52, 232, 0.13);
}

.za-hero-cta--primary:hover {
  background: var(--za-primary-dark, #5723b7);
  color: #fff;
}

.za-hero-cta--ghost {
  color: var(--za-primary-dark, #5723b7);
  background: transparent;
  padding-inline: 8px;
  gap: 7px;
}

.za-hero-core-caption--mobile,
.za-hero-art-caption {
  display: none;
}

/* HERO VISUAL — ZA core + floating product nodes (from final-header-hero.html) */
.za-hero-visual {
  position: relative;
  z-index: 2;
  min-height: 470px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.za-hero-visual-glow {
  position: absolute;
  width: 390px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 91, 255, 0.32) 0%, rgba(111, 59, 234, 0.12) 42%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.za-hero-orbit {
  position: absolute;
  border: 1px solid rgba(141, 91, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.za-hero-orbit::before,
.za-hero-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8d66fb;
  box-shadow: 0 0 14px rgba(141, 91, 255, 0.55);
}

.za-hero-orbit::before { top: 14%; left: 17%; }
.za-hero-orbit::after { right: 7%; bottom: 27%; width: 5px; height: 5px; }

.za-hero-orbit-one {
  width: 400px;
  height: 400px;
  transform: rotate(-17deg);
}

.za-hero-orbit-two {
  width: 315px;
  height: 315px;
  border-style: dashed;
  opacity: 0.72;
  transform: rotate(24deg);
}

.za-hero-core {
  position: relative;
  z-index: 3;
  width: 225px;
  height: 285px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 25% 12%, rgba(255, 255, 255, 0.26), transparent 24%),
    linear-gradient(145deg, rgba(55, 29, 110, 0.97), rgba(112, 57, 226, 0.88) 62%, rgba(153, 102, 255, 0.84));
  box-shadow:
    0 34px 70px rgba(48, 25, 105, 0.28),
    0 0 80px rgba(126, 74, 242, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.26);
  transform: rotateY(-7deg) rotateX(3deg);
  overflow: hidden;
  animation: za-hero-core-float 6s ease-in-out infinite;
}

.za-hero-core::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 25px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.za-hero-core-topline {
  position: absolute;
  inset: 18px 18px auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.9px;
  direction: ltr;
}

.za-hero-core-topline i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #40d9b4;
  box-shadow: 0 0 13px rgba(64, 217, 180, 0.72);
}

.za-hero-core-mark {
  position: relative;
  z-index: 2;
  width: 115px;
  height: 115px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 24px 46px rgba(28, 9, 71, 0.34);
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -3px;
  direction: ltr;
}

.za-hero-core-brand {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

.za-hero-core-caption {
  position: relative;
  z-index: 2;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 600;
}

.za-hero-node {
  position: absolute;
  z-index: 4;
  min-height: 48px;
  padding: 7px 10px 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(48, 25, 105, 0.14), inset 0 1px rgba(255, 255, 255, 0.9);
  color: #271d35;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: za-hero-node-float 5s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.za-hero-node:hover {
  box-shadow: 0 20px 40px rgba(48, 25, 105, 0.2);
  color: var(--za-primary-dark);
}

.za-hero-node-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  overflow: hidden;
  background: var(--node-bg, rgba(111, 59, 234, 0.1));
  color: var(--node-color, var(--za-primary-dark));
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5);
}

.za-hero-node-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.za-hero-node-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: -0.3px;
}

.za-hero-node-label {
  white-space: nowrap;
  direction: ltr;
  font-size: 13px;
  font-weight: 700;
}

.za-hero-node--pos-chatgpt { top: 49px; right: 17px; --node-bg: rgba(49, 177, 138, 0.14); --node-color: #169872; }
.za-hero-node--pos-gemini { top: 91px; left: 2px; --node-bg: rgba(80, 137, 255, 0.15); --node-color: #3b6fd4; animation-delay: -0.7s; }
.za-hero-node--pos-claude { bottom: 87px; right: -1px; --node-bg: rgba(220, 123, 77, 0.15); --node-color: #c56a3d; animation-delay: -1.4s; }
.za-hero-node--pos-runway { bottom: 31px; left: 34px; --node-bg: rgba(111, 59, 234, 0.1); --node-color: #4b1fbc; animation-delay: -2s; }
.za-hero-node--pos-grok { top: 224px; left: -21px; --node-bg: rgba(23, 20, 38, 0.08); --node-color: #271d35; animation-delay: -2.7s; }

.za-hero-toast {
  position: absolute;
  z-index: 5;
  right: 52px;
  bottom: 8px;
  min-height: 55px;
  padding: 9px 11px 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(48, 25, 105, 0.12);
  color: #271d35;
  animation: za-hero-node-float 5.6s ease-in-out -1.2s infinite;
}

.za-hero-toast-check {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(42, 195, 151, 0.13);
  color: #169872;
}

.za-hero-toast-check svg {
  width: 18px;
  height: 18px;
}

.za-hero-toast span {
  display: grid;
  line-height: 1.35;
}

.za-hero-toast strong {
  font-size: 11px;
  font-weight: 850;
}

.za-hero-toast small {
  margin-top: 4px;
  color: #776b82;
  font-size: 9px;
  font-weight: 600;
}

@keyframes za-hero-core-float {
  0%, 100% { transform: rotateY(-7deg) rotateX(3deg) translateY(0); }
  50% { transform: rotateY(-5deg) rotateX(1deg) translateY(-9px); }
}

@keyframes za-hero-node-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* TRUST STRIP */
.za-top-trust {
  position: relative;
  z-index: 6;
  width: 100%;
  border-top: 1px solid rgba(86, 50, 164, 0.08);
  border-bottom: 1px solid rgba(86, 50, 164, 0.08);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(10px);
}

.za-top-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.za-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 86px;
  padding: 14px 18px;
  border-left: 1px solid rgba(86, 50, 164, 0.08);
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease;
}

.za-trust-item:last-child {
  border-left: 0;
}

.za-trust-item:hover {
  background: rgba(255, 255, 255, 0.55);
}

.za-trust-copy {
  min-width: 0;
  text-align: right;
}

.za-trust-title {
  display: block;
  margin: 0 0 4px;
  color: var(--za-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.za-trust-sub {
  display: block;
  color: var(--za-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
}

.za-trust-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  color: var(--za-primary, #6f3bea);
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.za-trust-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

/* Front page: no old hero card spacing */
.home main > .za-hero,
body.home .za-top + main {
  /* hero is outside main when wrapped in header */
}

body.home main#za-home-main {
  --site-max: 1300px;
  padding-top: 0;
}

/* All homepage sections (except hero / .za-top) share 1300 content width */
body.home #za-home-main > .section-shell,
body.home #za-home-main .za-container {
  max-width: 1300px;
  width: 100%;
  margin-inline: auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Override legacy header breakpoint (1040) — unified design uses 960 */
@media (min-width: 961px) {
  .za-menu.main-nav {
    display: flex !important;
  }
  .za-mobile-toggle {
    display: none !important;
  }
  .za-login,
  .za-account-menu {
    display: inline-flex !important;
  }
}

@media (max-width: 1180px) {
  .za-nav {
    gap: 16px;
  }
  .za-menu .main-nav-list > li > a {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 1120px) {
  .za-hero-grid {
    gap: 30px;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  }

  .za-hero-visual {
    min-height: 420px;
    transform: scale(0.9);
    transform-origin: center;
  }
}

@media (max-width: 960px) {
  .za-header.site-header,
  .za-nav {
    min-height: 74px;
  }

  .za-nav {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  .za-menu.main-nav {
    display: none !important;
  }

  .zarinacc-mega-backdrop {
    display: none !important;
  }

  .za-mobile-toggle {
    display: grid;
  }

  .za-login {
    padding-inline: 14px;
  }

  .za-hero {
    min-height: auto;
    padding: 36px 0 24px;
  }

  .za-hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .za-hero-copy {
    text-align: right;
  }

  .za-hero-kicker {
    margin-inline: 0;
  }

  .za-hero h1 {
    max-width: none;
    margin-inline: 0;
  }

  .za-hero-lead {
    margin-inline: 0;
    max-width: 36em;
  }

  .za-search-card {
    margin-inline: 0;
  }

  .za-hero-actions {
    justify-content: flex-start;
  }

  .za-quick-links {
    justify-content: flex-start;
  }

  .za-hero-visual {
    width: min(100%, 520px);
    min-height: 410px;
    margin: 0 auto;
    transform: scale(0.92);
    transform-origin: center;
  }

  .za-hero-toast {
    right: 28px;
  }

  .za-top-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .za-trust-item {
    justify-content: flex-start;
    min-height: 0;
    padding: 12px 10px;
    border-left: 0;
  }

  .za-trust-item:nth-child(2) {
    border-left: 0;
  }

  .za-trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(86, 50, 164, 0.08);
  }
}

/* Mobile hero — matches zarin-home-mobile.html first section */
@media (max-width: 760px) {
  .za-container {
    padding-inline: 16px;
  }

  .za-top {
    min-height: auto;
    background:
      linear-gradient(135deg, #faf8ff 30%, #f1eafa);
  }

  .za-top::before,
  .za-top::after,
  .za-hero-atmosphere {
    display: none;
  }

  .za-header.site-header,
  .za-nav {
    min-height: 66px;
  }

  .za-nav {
    min-height: 66px;
    gap: 8px;
  }

  .za-brand {
    gap: 8px;
    min-height: 44px;
  }

  .za-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .za-brand-mark--logo {
    width: auto;
    height: 44px;
    border-radius: 0;
  }

  .za-brand-mark--logo img {
    height: 44px;
    max-height: 44px;
    max-width: 116px;
  }

  .za-icon-btn,
  .za-nav-actions .icon-btn,
  .za-nav-actions .cart-icon-btn.icon-btn,
  .za-mobile-toggle {
    width: 42px;
    height: 44px;
    border-radius: 12px;
  }

  .za-nav-actions {
    gap: 8px;
  }

  .za-nav-actions .za-login {
    width: 42px;
    min-width: 42px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .za-nav-actions .za-login span,
  .za-account-menu__name,
  .za-account-menu__caret {
    display: none;
  }

  body.home .za-header-search {
    display: none;
  }

  .za-hero {
    padding: 26px 0 12px;
  }

  .za-hero-grid {
    gap: 12px;
  }

  .za-hero-kicker {
    display: block;
    min-height: 0;
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    color: var(--za-primary, #7434e8);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .za-hero-kicker-dot {
    display: none;
  }

  .za-hero h1 {
    font-size: 29px;
    line-height: 1.6;
    letter-spacing: -0.6px;
  }

  .za-hero-accent {
    display: inline;
    white-space: normal;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--za-primary, #7434e8);
    color: var(--za-primary, #7434e8);
  }

  .za-hero-lead {
    margin: 10px 0 18px;
    max-width: 450px;
    font-size: 13px;
    line-height: 1.95;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  /* Search stays one row; keep text submit button */
  .za-hero .za-search-card.search-box.head_search,
  .za-search-card.search-box.head_search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    padding: 5px;
    border-radius: 14px;
    border: 1px solid #ddd0ef;
    background: #fff;
    box-shadow: 0 10px 26px rgba(62, 28, 92, 0.03);
  }

  .za-hero .za-search-card.search-box.head_search::before {
    display: none;
  }

  .za-search-field {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
  }

  .za-search-card input,
  .za-search-card .head_search_field {
    min-height: 42px;
    padding-inline: 4px;
    font-size: 16px;
  }

  .za-search-btn,
  .za-search-card > button[type="submit"] {
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 0 14px;
    flex: none;
    font-size: 12px;
  }

  .za-hero-actions {
    margin-top: 8px;
    gap: 6px;
  }

  /* Keep mobile hero closer to the mock: hide recent chips */
  .za-hero .za-recent-searches {
    display: none !important;
  }

  .za-quick-label {
    display: none;
  }

  .za-quick-links {
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
    -webkit-overflow-scrolling: touch;
  }

  .za-quick-links::-webkit-scrollbar {
    display: none;
  }

  .za-quick-link,
  .za-hero-actions .quick-stat-chip {
    min-height: 40px;
    padding: 5px 9px;
    border: 1px solid #e4d9f2;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.63);
    font-size: 11px;
    white-space: nowrap;
    flex: none;
  }

  /* Show all quick links; scroll horizontally */
  .za-quick-links .quick-stat-chip:nth-child(n + 4) {
    display: inline-flex;
  }

  .za-recent-searches__chips .za-recent-chip:nth-child(n + 3) {
    display: inline-flex;
  }

  .za-hero-ctas {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 8px;
    margin-top: 15px;
  }

  .za-hero-cta {
    font-size: 12px;
    padding: 11px 7px;
    min-height: 48px;
  }

  .za-hero-cta svg {
    width: 18px;
  }

  /* Compact light art like mock */
  .za-hero-visual {
    height: 142px;
    min-height: 142px;
    max-width: 450px;
    width: 100%;
    margin: 4px auto 0;
    transform: none;
    overflow: visible;
  }

  .za-hero-visual-glow,
  .za-hero-orbit,
  .za-hero-toast,
  .za-hero-art-caption {
    display: none !important;
  }

  .za-hero-visual::before {
    content: "";
    position: absolute;
    inset: 5% 8%;
    border-radius: 50%;
    border: 1px solid #dfd2f4;
    transform: rotate(-8deg);
    pointer-events: none;
  }

  .za-hero-visual::after {
    content: "";
    position: absolute;
    inset: 20% 17%;
    border-radius: 50%;
    background: radial-gradient(circle, #dbc6ff, transparent 70%);
    z-index: -1;
    pointer-events: none;
  }

  .za-hero-core {
    width: 116px;
    height: 102px;
    padding: 8px 6px;
    border: 1px solid #e4d9f4;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff, #f7f1ff);
    box-shadow: 0 24px 60px rgba(99, 60, 169, 0.1), inset 0 2px 1px #fff;
    transform: rotate(-5deg);
    animation: none;
    color: var(--za-ink);
  }

  .za-hero-core::before {
    display: none;
  }

  .za-hero-core-topline {
    display: none;
  }

  .za-hero-core-mark {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--za-primary, #7434e8);
    font-size: 33px;
    letter-spacing: -3px;
    font-weight: 700;
    line-height: 1.2;
    font-family: Arial, sans-serif;
  }

  .za-hero-core-brand {
    margin-top: 2px;
    color: var(--za-ink);
    font-size: 11px;
    font-weight: 700;
  }

  .za-hero-core-caption:not(.za-hero-core-caption--mobile) {
    display: none;
  }

  .za-hero-core-caption--mobile {
    display: block;
    margin-top: 2px;
    color: #807190;
    font: 5px/1.7 Arial, sans-serif;
    letter-spacing: 1px;
  }

  .za-hero-node {
    min-height: 40px;
    padding: 7px 8px;
    border: 1px solid #e7dcef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(56, 34, 91, 0.04);
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    animation: none;
    --node-bg: transparent;
  }

  .za-hero-node-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: 10px;
  }

  .za-hero-node-icon img {
    width: 14px;
    height: 14px;
  }

  .za-hero-node-label {
    font-size: 10px;
  }

  .za-hero-node--pos-chatgpt {
    top: 3px;
    right: 1%;
    left: auto;
    bottom: auto;
  }

  .za-hero-node--pos-gemini {
    top: 6px;
    left: 0;
    right: auto;
    bottom: auto;
  }

  .za-hero-node--pos-claude {
    top: auto;
    bottom: 2px;
    left: 2%;
    right: auto;
  }

  .za-hero-node--pos-runway {
    top: auto;
    bottom: 5px;
    right: 0;
    left: auto;
  }

  .za-hero-node--pos-grok {
    display: none;
  }

  .za-top-trust {
    padding-block: 10px 22px;
    border-top: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .za-top-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .za-trust-item {
    justify-content: flex-start;
    gap: 8px;
    min-height: 0;
    padding: 9px;
    border: 1px solid #e7ddf1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.47);
  }

  .za-trust-item:nth-child(-n + 2),
  .za-trust-item:nth-child(2),
  .za-trust-item:last-child {
    border-left: 1px solid #e7ddf1;
    border-bottom: 1px solid #e7ddf1;
  }

  .za-trust-icon {
    width: 19px;
    height: 19px;
    color: var(--za-primary, #7434e8);
  }

  .za-trust-icon svg {
    width: 19px;
    height: 19px;
  }

  .za-trust-title {
    margin: 0;
    font-size: 11px;
  }

  .za-trust-sub {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.5;
  }
}

@media (max-width: 700px) {
  .za-container {
    padding-inline: 16px;
  }
}

@media (max-width: 359px) {
  .za-container {
    padding-inline: 14px;
  }

  .za-hero h1 {
    font-size: 26px;
  }

  .za-hero-cta {
    font-size: 11px;
  }

  .za-brand-mark--logo img {
    max-width: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .za-top *,
  .za-top *::before,
  .za-top *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Suppress legacy front hero when new unified top is present */
.za-top ~ main .hero.hero-box {
  display: none;
}

/* ========== Global search modal (inner pages) ========== */
.za-search-modal {
  position: fixed;
  inset: 0;
  z-index: 10240;
  display: grid;
  place-items: start center;
  padding: 18px 16px 24px;
}

.za-search-modal[hidden] {
  display: none !important;
}

.za-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 40, 0.48);
  backdrop-filter: blur(4px);
}

.za-search-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin-top: 56px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(100, 62, 184, 0.14);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(40, 18, 90, 0.22);
}

.za-search-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.za-search-modal__title {
  font-size: 14px;
  font-weight: 800;
  color: #2d2150;
}

.za-search-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(95, 43, 211, 0.08);
  color: #5f2bd3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.za-search-card--modal {
  margin-top: 0 !important;
  max-width: none !important;
  box-shadow: none !important;
  background: #f6f3fb !important;
}

body.za-search-modal-open {
  overflow: hidden;
}

/* Modal already dims the page — hide Digikala cutout overlay */
body.za-search-modal-open .head_search_overlay {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 720px) {
  .za-search-modal {
    padding: 0;
    place-items: stretch;
  }

  .za-search-modal__sheet {
    margin-top: 0;
    min-height: 100%;
    border-radius: 0;
    border: 0;
    padding: 12px 12px 20px;
  }

  .za-search-modal__head {
    margin-bottom: 12px;
  }
}
