/* ============================================================
   GemImpression® — wholesale.css
   Wholesale Order Page
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.wh-hero {
  padding: calc(var(--nav-height) + 5rem) 0 5rem;
  background:
    linear-gradient(120deg, rgba(22, 15, 12, 0.88) 0%, rgba(49, 29, 18, 0.78) 48%, rgba(30, 19, 12, 0.92) 100%),
    url('https://commons.wikimedia.org/wiki/Special:Redirect/file/Amber%20Fort%20Jaipur%2001.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.wh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 40%, rgba(196,129,58,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.wh-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -25% auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,168,112,0.16) 0%, rgba(224,168,112,0) 68%);
  pointer-events: none;
}
.wh-hero .container { position: relative; z-index: 1; }
.wh-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}
.wh-hero-copy {
  max-width: 640px;
}
.wh-hero .section-label { color: var(--rose-gold-light, #e0a870); }
.wh-hero h1 {
  color: #f5ead8;
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin: 0.75rem 0 1.25rem;
  line-height: 1.1;
}
.wh-hero h1 em {
  color: var(--rose-gold-light, #e0a870);
  font-style: italic;
}
.wh-hero-sub {
  color: rgba(245, 234, 216, 0.72);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.wh-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.wh-hero-visual {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: end;
}
.wh-hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  min-height: 220px;
  margin: 0;
}
.wh-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wh-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 8, 6, 0.06) 22%, rgba(12, 8, 6, 0.74) 100%);
}
.wh-hero-photo-main {
  grid-row: span 2;
  min-height: 420px;
}
.wh-hero-photo-side {
  min-height: 190px;
}
.wh-hero-photo figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: white;
  font-size: 0.95rem;
  line-height: 1.6;
}
.wh-hero-insight {
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(247, 237, 221, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}
.wh-hero-insight span {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(245, 234, 216, 0.74);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.wh-hero-insight strong {
  color: #fff4e6;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.5;
}
.wh-hero .btn-secondary {
  background: rgba(245,234,216,0.14);
  color: #f5ead8;
  border-color: rgba(245,234,216,0.55);
}

.wh-hero .btn-secondary:hover {
  background: rgba(245,234,216,0.24);
  color: white;
  border-color: rgba(245,234,216,0.85);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.wh-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.wh-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--rose-gold-light, #e0a870);
  line-height: 1;
}
.wh-stat span {
  font-size: 0.8125rem;
  color: rgba(245,234,216,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wh-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .wh-stat-divider { display: none; }
  .wh-hero-stats { gap: 1.5rem 2rem; }
}
@media (max-width: 980px) {
  .wh-hero-shell {
    grid-template-columns: 1fr;
  }

  .wh-hero-copy {
    max-width: none;
  }
}
@media (max-width: 640px) {
  .wh-hero-visual {
    grid-template-columns: 1fr;
  }

  .wh-hero-photo-main {
    min-height: 300px;
  }

  .wh-hero-photo-side {
    min-height: 180px;
  }
}

/* ── BENEFITS ─────────────────────────────────────────────── */
.wh-benefits { background: var(--cream); }
.wh-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .wh-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .wh-benefits-grid { grid-template-columns: 1fr; }
}
.wh-benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--t-normal), transform var(--t-normal);
}
.wh-benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.wh-benefit-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.wh-benefit-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}
.wh-benefit-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--charcoal-mid);
}

/* ── TIERS ────────────────────────────────────────────────── */
.wh-tiers {
  background:
    linear-gradient(180deg, rgba(244, 236, 224, 0.96) 0%, rgba(239, 229, 214, 0.96) 100%),
    url('https://commons.wikimedia.org/wiki/Special:Redirect/file/City%20Palace%20Jaipur.jpg') center/cover no-repeat;
}
.wh-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .wh-tiers-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
.wh-tier-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(252,247,241,0.98) 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t-normal), transform var(--t-normal), border-color var(--t-normal);
}
.wh-tier-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  opacity: 0.95;
}
.wh-tier-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.9) 38%, rgba(255,255,255,0.98) 100%);
  pointer-events: none;
}
.wh-tier-card > * {
  position: relative;
  z-index: 1;
}
.wh-tier-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.wh-tier-featured {
  border-color: var(--rose-gold);
  box-shadow: var(--shadow-rose);
}
.wh-tier-retail::before {
  background:
    linear-gradient(135deg, rgba(61, 31, 100, 0.82) 0%, rgba(138, 74, 138, 0.58) 100%),
    url('https://commons.wikimedia.org/wiki/Special:Redirect/file/Hawa%20Mahal%2C%20Jaipur.jpg') center/cover no-repeat;
}
.wh-tier-boutique::before {
  background:
    linear-gradient(135deg, rgba(10, 42, 26, 0.82) 0%, rgba(42, 154, 90, 0.55) 100%),
    url('https://commons.wikimedia.org/wiki/Special:Redirect/file/Amber%20Fort%20Jaipur%2001.jpg') center/cover no-repeat;
}
.wh-tier-elite::before {
  background:
    linear-gradient(135deg, rgba(26, 26, 42, 0.84) 0%, rgba(74, 90, 160, 0.56) 100%),
    url('https://commons.wikimedia.org/wiki/Special:Redirect/file/City%20Palace%20Jaipur.jpg') center/cover no-repeat;
}
.wh-tier-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rose-gold);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.wh-tier-header { margin-bottom: 1.25rem; }
.wh-tier-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-gold);
  background: var(--rose-gold-pale);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.6rem;
}
.wh-tier-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.wh-tier-moq {
  font-size: 0.8125rem;
  color: var(--charcoal-light);
}
.wh-tier-discount {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--rose-gold);
  margin-bottom: 0.9rem;
}
.wh-tier-intro {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--charcoal-mid);
  margin-bottom: 1.35rem;
}
.wh-tier-features {
  list-style: none;
  margin-bottom: 1.75rem;
}
.wh-tier-features li {
  font-size: 0.9rem;
  padding: 0.4rem 0;
  color: var(--charcoal-mid);
  border-bottom: 1px solid var(--border);
}
.wh-tier-features li:last-child { border-bottom: none; }
.wh-tier-features li.muted { color: var(--charcoal-muted); text-decoration: line-through; opacity: 0.6; }
.wh-tier-btn { width: 100%; justify-content: center; }

/* ── ORDER BUILDER ────────────────────────────────────────── */
.wh-order-section { background: var(--cream); }
.wh-order-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 960px) {
  .wh-order-layout { grid-template-columns: 1fr; }
}

/* Builder panel */
.wh-builder {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.wh-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--charcoal);
  color: #f5ead8;
  font-family: var(--font-serif);
  font-size: 0.975rem;
  font-weight: 600;
}
.wh-lines { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.wh-line {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #fdfaf6;
  position: relative;
  animation: wh-slide-in 0.2s ease;
}
@keyframes wh-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wh-line-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1fr 28px;
  gap: 0.6rem;
  align-items: end;
}
@media (max-width: 600px) {
  .wh-line-row { grid-template-columns: 1fr 1fr; }
  .wh-line-row .wh-line-remove { grid-column: 2; justify-self: end; }
}
.wh-line select,
.wh-line input[type="number"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s;
}
.wh-line select:focus,
.wh-line input[type="number"]:focus { border-color: var(--rose-gold); }
.wh-line label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal-light);
  margin-bottom: 0.25rem;
}
.wh-line-remove {
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--charcoal-muted);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wh-line-remove:hover { background: #fde8e8; border-color: #e87070; color: #c94040; }
.wh-line-price {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--charcoal-mid);
  display: flex;
  gap: 1rem;
}
.wh-line-price strong { color: var(--rose-gold); }
.wh-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--charcoal-muted);
}
.wh-empty-state p { margin-top: 0.5rem; font-size: 0.9rem; }

/* Summary bar */
.wh-builder-summary {
  padding: 1rem 1.5rem;
  background: #2c1a0e;
  color: #f5ead8;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.wh-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(245,234,216,0.65);
}
.wh-sum-row strong { color: rgba(245,234,216,0.9); }
.wh-sum-row.highlight { font-weight: 600; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.5rem; margin-top: 0.25rem; }
.wh-sum-row.highlight strong { color: var(--rose-gold-light, #e0a870); font-size: 1rem; }

/* Form side */
.wh-form-side h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.form-hint {
  font-size: 0.875rem;
  color: var(--charcoal-light);
  margin-bottom: 1.5rem;
}
.wh-fieldset {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.wh-fieldset legend {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 0 0.5rem;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--charcoal-mid);
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}
.form-input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(196,129,58,0.12);
}
.form-input.error { border-color: #e05252; }
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.55; }

/* Radio group */
.wh-radio-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.wh-radio-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--charcoal-mid);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
}
.wh-radio-option:has(input:checked) {
  border-color: var(--rose-gold);
  background: rgba(196,129,58,0.06);
  color: var(--charcoal);
  font-weight: 500;
}
.wh-radio-option input[type="radio"] { accent-color: var(--rose-gold); }

/* Submit */
.wh-submit-btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.wh-form-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--charcoal-light);
}
.wh-form-footer a { color: var(--rose-gold); text-decoration: underline; }

/* Success */
.wh-success {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
}
.wh-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.wh-success h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.wh-success p { color: var(--charcoal-mid); font-size: 0.975rem; line-height: 1.7; }
.wh-success-ref { color: var(--charcoal-muted); font-size: 0.85rem; margin-top: 0.75rem; font-family: monospace; }

/* ── FAQ ──────────────────────────────────────────────────── */
.wh-faq { background: var(--cream-dark, #F0E8D8); }
.wh-faq-list {
  max-width: 780px;
  margin: 0 auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.wh-faq-item { border-bottom: 1px solid var(--border); }
.wh-faq-item:last-child { border-bottom: none; }
.wh-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.15s;
}
.wh-faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--rose-gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.wh-faq-q[aria-expanded="true"]::after { content: '−'; }
.wh-faq-q:hover { color: var(--rose-gold); }
.wh-faq-a {
  display: none;
  padding: 0 1.5rem 1.25rem;
}
.wh-faq-a p {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--charcoal-mid);
}
.wh-faq-item.open .wh-faq-a { display: block; }

/* ── BOTTOM CTA ──────────────────────────────────────────── */
.wh-cta-banner {
  background: linear-gradient(135deg, #2c1a0e 0%, var(--charcoal) 100%);
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
}
.wh-cta-banner h2 {
  color: #f5ead8;
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.wh-cta-banner p {
  color: rgba(245,234,216,0.65);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}
.wh-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.wh-cta-banner .btn-secondary {
  color: #f5ead8;
  border-color: rgba(245,234,216,0.3);
}
.wh-cta-banner .btn-secondary:hover {
  background: rgba(245,234,216,0.1);
  border-color: rgba(245,234,216,0.6);
}
