/* Wholesale page redesign. Loaded after site.css; uses its Persian-blue tokens only. */

/* ── Header: quiet, hairline ─────────────────────────────────────────── */
.header { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.logo { gap: .7rem; }
.logo img { height: 34px; }
.logo > span { font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.2; }
.logo small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
html[dir="rtl"] .logo small { letter-spacing: 0; text-transform: none; font-size: .75rem; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero.wh-hero-wrap {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(60% 120% at 100% 0, rgb(84 112 212 / .55), transparent 60%),
    linear-gradient(135deg, var(--primary-900) 0%, #0f2173 52%, var(--primary-700) 100%);
}
.hero.wh-hero-wrap::before {                       /* Persian eight-point-star lattice, fading out */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background: url("../images/pattern.svg") 0 0 / 80px 80px; background-image: url("../images/pattern.svg");
  -webkit-mask-image: radial-gradient(60% 110% at 88% 10%, #000, transparent 72%);
  mask-image: radial-gradient(60% 110% at 88% 10%, #000, transparent 72%);
}
html[dir="rtl"] .hero.wh-hero-wrap::before {
  -webkit-mask-image: radial-gradient(60% 110% at 12% 10%, #000, transparent 72%);
  mask-image: radial-gradient(60% 110% at 12% 10%, #000, transparent 72%);
}
.hero.wh-hero-wrap::after { content: none; }
.wh-hero { max-width: 1120px; padding-top: clamp(2.8rem, 7vw, 5.5rem); padding-bottom: clamp(6.5rem, 11vw, 9rem); }
.wh-hero > * { max-width: 640px; }
.wh-hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 1.05; letter-spacing: -.025em; font-weight: 900; margin: 0 0 .5rem; }
html[dir="rtl"] .wh-hero h1 { letter-spacing: 0; line-height: 1.25; }
.wh-hero .hero-lead { font-size: clamp(1.15rem, 3vw, 1.6rem); font-weight: 700; color: #fff; margin: 0 0 1rem; line-height: 1.35; }
.wh-hero .hero-sub { font-size: clamp(.98rem, 1.6vw, 1.1rem); color: rgb(255 255 255 / .78); line-height: 1.75; margin: 0; }
.wh-cta { margin-top: 1.8rem; min-height: 50px; padding-inline: 1.7rem; border-radius: 12px; }
.wh-cta i { font-size: .8rem; transition: transform .2s var(--ease); }
.wh-cta:hover i { transform: translateX(3px); }
html[dir="rtl"] .wh-cta:hover i { transform: translateX(-3px); }

/* ── Main: why (left) + form (right) ─────────────────────────────────── */
.wh-main { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-bottom: 4rem; }
.wh-form-col { margin-top: -6rem; position: relative; z-index: 2; scroll-margin-top: 90px; }
.wh-why { padding-top: 2.6rem; position: sticky; top: 92px; }

.wh-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); font-weight: 700; margin: 0 0 .4rem; }
html[dir="rtl"] .wh-label { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.why-list { list-style: none; margin: 0; padding: 0; }
.wh-item { display: grid; grid-template-columns: 28px 1fr; gap: 1.1rem; padding: 1.35rem 0; border-top: 1px solid var(--border); }
.wh-item:first-child { border-top: 0; }
.wh-item svg { width: 26px; height: 26px; margin-top: .15rem; fill: none; stroke: var(--accent-strong); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wh-item h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .3rem; letter-spacing: -.005em; }
.wh-item p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }

/* ── Form card ───────────────────────────────────────────────────────── */
.wh-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(1.4rem, 3.2vw, 2.4rem); box-shadow: 0 30px 60px -28px rgb(11 26 94 / .45), 0 2px 6px rgb(11 26 94 / .06); }
.wh-card .sec + .sec { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.wh-step { display: flex; align-items: center; gap: .8rem; font-size: 1.1rem; font-weight: 800; margin: 0 0 1.3rem; }
.wh-step b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-700); color: #fff; font-size: .85rem; font-weight: 800; }
html[dir="rtl"] .wh-step b { font-size: .9rem; }
.wh-card .fields { gap: 1.1rem; }
.wh-card .field label { font-size: .85rem; font-weight: 600; }
.wh-card .field input, .wh-card .field select, .wh-card .field textarea {
  min-height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); padding: .7rem .95rem; font-size: 1rem;
}
.wh-card .field textarea { min-height: 96px; }
.wh-card .field input:hover, .wh-card .field select:hover, .wh-card .field textarea:hover { border-color: var(--primary-300); }
.wh-card .field input:focus, .wh-card .field select:focus, .wh-card .field textarea:focus { border-color: var(--primary-600); background: var(--surface); box-shadow: 0 0 0 4px rgb(58 88 204 / .18); outline: none; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; top: 50%; inset-inline-end: 1rem; width: 8px; height: 8px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 2.6rem; cursor: pointer; }
.filebox { border-radius: 12px; border-width: 1px; border-style: dashed; }
.wh-card .btn-block.submit { margin-top: 2rem; min-height: 54px; border-radius: 12px; font-size: 1.02rem; gap: .7rem; }
.submit i { font-size: .8rem; transition: transform .2s var(--ease); }
.submit:hover i { transform: translateX(3px); }
html[dir="rtl"] .submit:hover i { transform: translateX(-3px); }
.wh-privacy { text-align: center; margin: 1rem 0 0; }

/* ── Tablet / phone ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .wh-main { grid-template-columns: 1fr; gap: 0; padding-bottom: 3rem; }
  .wh-why { position: static; padding: 2rem 0 .5rem; order: 1; }
  .wh-form-col { margin-top: 0; order: 2; padding-top: 1.2rem; }
  .wh-hero { padding-bottom: 3.2rem; }
}
@media (max-width: 720px) {
  .wh-hero h1 { font-size: 2.35rem; }
  .wh-hero .hero-lead { font-size: 1.15rem; }
  .wh-cta { width: 100%; }
  .wh-item { padding: 1.1rem 0; gap: .9rem; }
  .wh-item p { font-size: .92rem; }
  .wh-card { border-radius: 16px; padding: 1.25rem 1.1rem; box-shadow: var(--shadow-sm); }
  .wh-step { font-size: 1.02rem; margin-bottom: 1.1rem; }
  .wh-card .field input, .wh-card .field select, .wh-card .field textarea { font-size: 16px; }
}

/* Small phones: the catalog link becomes an icon so the header never crowds. */
@media (max-width: 480px) { .hide-xs { display: none; } .header-end .btn { padding-inline: .8rem; } }

/* Language switcher */
.langsw { display: inline-flex; align-items: center; padding: 2px; border: 1px solid var(--border); border-radius: 999px; direction: ltr; }
.langsw a { padding: .3rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.langsw a:hover { color: var(--text); }
.langsw a.on { background: var(--primary-700); color: #fff; }

/* The real file input stays focusable but takes no space (the generic input rule was forcing width:100%). */
.wh-card .field input.sr-only { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; border: 0; opacity: 0; overflow: hidden; pointer-events: none; }
