/* ═══════════════════════════════════════════════════════════════
   RAINORA V2 — PAGE-SPECIFIC STYLES
═══════════════════════════════════════════════════════════════ */

/* ═══════════════ HERO SECTION ═══════════════ */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(92vh - var(--nav-h));
  display: grid; align-items: center;
  background: var(--gradient-hero);
  padding: clamp(34px, 6vw, 80px) 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196,154,75,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(207,94,128,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(260px, 520px) 1fr;
  align-items: center; gap: clamp(20px, 4vw, 60px);
}
.hero-copy { color: #F5F0E8; }
.hero-overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .18em;
  color: var(--gold-400); text-transform: uppercase; margin-bottom: 16px;
}
.hero-overline::before {
  content: ''; width: 36px; height: 2px;
  background: var(--gold-400); border-radius: 2px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 7vw, 92px);
  font-weight: 900; line-height: 1.02;
  letter-spacing: -.06em; color: #fff;
  margin-bottom: 20px;
}
.hero-title span {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle {
  font-size: clamp(14px, 1.2vw, 17px);
  color: #B8B0A4; line-height: 2;
  max-width: 620px; margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-actions .btn-ghost { color: rgba(255,255,255,.8); }
.hero-actions .btn-ghost:hover { color: #fff; background: rgba(255,255,255,.08); }

.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.hero-trust__item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.hero-trust__item svg { color: var(--gold-400); width: 18px; height: 18px; }

/* ═══════════════ HERO SLIDER (3D Carousel) ═══════════════ */
.pf-stage-wrap {
  position: relative;
  width: 100%;
}
.pf-stage {
  position: relative;
  height: min(70vh, 720px);
  min-height: 480px;
}
.pf-slide {
  position: absolute;
  left: 50%;
  bottom: 10%;
  height: 60%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: all .72s var(--ease);
  will-change: transform, opacity, filter;
}
.pf-slide img {
  height: 100%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 30px 50px rgba(196,154,75,.4));
  user-select: none;
  pointer-events: none;
  object-fit: contain;
}
.pf-navs {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.pf-navs .icon-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: #fff;
}
.pf-navs .icon-btn:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
}
.pf-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.pf-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.3);
  transition: .25s var(--ease);
  cursor: pointer;
}
.pf-dot.active {
  background: var(--gradient-cta);
  width: 26px;
  box-shadow: 0 4px 12px rgba(196,154,75,.5);
}

/* ═══════════════ PRODUCT DETAIL PAGE ═══════════════ */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
  padding: 32px 0;
}
.product-detail__gallery { position: sticky; top: calc(var(--nav-h) + 20px); }
.gallery-main {
  aspect-ratio: 1; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--gold-50), var(--bg-secondary));
  display: grid; place-items: center; overflow: hidden;
  cursor: zoom-in; border: 1px solid var(--border);
}
[data-theme="dark"] .gallery-main {
  background: linear-gradient(135deg, var(--surface-2), var(--bg-secondary));
}
.gallery-main img {
  width: 70%; height: 80%; object-fit: contain;
  transition: transform .3s var(--ease);
}
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-top: 12px;
}
.gallery-thumb {
  aspect-ratio: 1; border-radius: var(--radius-md);
  border: 2px solid var(--border); overflow: hidden;
  background: var(--bg-secondary); cursor: pointer;
  transition: border-color .2s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-detail__info { padding: 8px 0; }
.pdp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 800; margin-bottom: 12px;
  background: var(--gold-50); color: var(--accent-dark);
}
[data-theme="dark"] .pdp-badge { background: var(--surface-2); }
.pdp-brand {
  font-size: 13px; color: var(--text-muted);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.pdp-title {
  font-family: var(--font-serif); font-size: var(--text-h1);
  font-weight: 900; line-height: 1.15; margin: 8px 0 12px;
}
.pdp-rating {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-muted); margin-bottom: 20px;
}
.pdp-rating__stars { color: #E6A53E; font-size: 16px; }
.pdp-rating a { color: var(--accent); text-decoration: underline; }

.pdp-price {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.pdp-price__current {
  font-size: 28px; font-weight: 900; color: var(--accent-dark);
}
[data-theme="dark"] .pdp-price__current { color: var(--gold-400); }
.pdp-price__old {
  font-size: 18px; color: var(--text-muted);
  text-decoration: line-through;
}
.pdp-price__discount {
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--danger-bg); color: var(--danger);
  font-size: 13px; font-weight: 800;
}

/* PDP Meta */
.pdp-meta {
  display: grid; gap: 12px; margin-bottom: 24px;
}
.pdp-meta__row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-secondary);
}
.pdp-meta__row svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.pdp-meta__row.warning svg { color: var(--warning); }
.pdp-meta__row strong { color: var(--text); }

/* PDP Selectors */
.pdp-selector { margin-bottom: 20px; }
.pdp-selector__label {
  font-size: 13px; font-weight: 700; margin-bottom: 10px;
  display: flex; justify-content: space-between;
}
.pdp-selector__label span { color: var(--text-muted); font-weight: 500; }
.pdp-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-size {
  height: 44px; padding: 0 18px; border-radius: var(--radius-md);
  border: 1px solid var(--border-strong); font-size: 14px; font-weight: 600;
  transition: all .2s;
}
.pdp-size:hover { border-color: var(--accent); }
.pdp-size.active {
  border-color: var(--accent); background: var(--gold-50);
  color: var(--accent-dark);
}
[data-theme="dark"] .pdp-size.active { background: var(--surface-2); }

/* PDP CTAs */
.pdp-ctas { display: flex; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.pdp-ctas .btn-primary { flex: 1; min-width: 200px; }
.pdp-ctas .btn-secondary.pdp-icon-btn { width: 52px; padding: 0; }

/* PDP Trust */
.pdp-trust {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 20px; background: var(--bg-secondary);
  border-radius: var(--radius-lg); margin-top: 20px;
}
.pdp-trust__item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
}
.pdp-trust__item svg { width: 18px; height: 18px; color: var(--success); }

/* PDP Specs */
.specs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.spec-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; background: var(--surface);
}
.spec-item__label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.spec-item__value { font-size: 14px; font-weight: 600; }

/* ═══════════════ CHECKOUT ═══════════════ */
.checkout-layout {
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 32px; align-items: start;
}
.checkout-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; }
.checkout-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.checkout-summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.checkout-summary__item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.checkout-summary__item img {
  width: 52px; height: 52px; object-fit: contain;
  border-radius: var(--radius-sm); background: var(--gold-50);
}
[data-theme="dark"] .checkout-summary__item img { background: var(--surface-2); }
.checkout-summary__item-info { flex: 1; }
.checkout-summary__item-info b { display: block; font-size: 14px; }
.checkout-summary__item-info small { color: var(--text-muted); font-size: 12px; }

/* ═══════════════ FILTER SIDEBAR ═══════════════ */
.shop-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 32px; align-items: start;
}
.filter-sidebar {
  position: sticky; top: calc(var(--nav-h) + 20px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px;
}
.filter-section { margin-bottom: 24px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-section__title {
  font-size: 13px; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.filter-section__title button {
  font-size: 12px; color: var(--accent); font-weight: 600;
}
.filter-check {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 14px; cursor: pointer;
}
.filter-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--accent);
}
.filter-check__count { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* Price Range Slider */
.price-range { padding: 8px 0; }
.price-range__track {
  position: relative; height: 4px; background: var(--border);
  border-radius: 2px; margin: 16px 0;
}
.price-range__fill {
  position: absolute; height: 100%; background: var(--gradient-cta);
  border-radius: 2px;
}
.price-range input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 4px; background: transparent; position: relative; z-index: 2;
}
.price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent);
  border: 3px solid var(--surface); box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.price-range__labels {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 600;
}

/* Shop Toolbar */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.shop-toolbar__count { font-size: 14px; color: var(--text-muted); }
.shop-toolbar__actions { display: flex; gap: 8px; align-items: center; }
.shop-toolbar select {
  height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); font-size: 13px; font-weight: 600;
  outline: none;
}
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.view-toggle button {
  width: 40px; height: 38px; display: grid; place-items: center;
  color: var(--text-muted); transition: all .2s;
}
.view-toggle button.active { background: var(--accent); color: #fff; }
.mobile-filter-btn {
  display: none; height: 40px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; gap: 6px;
  align-items: center; background: var(--surface);
}

@media (max-width: 768px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .filter-sidebar.mobile-open {
    display: block; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 400; border-radius: 0;
    overflow-y: auto; padding-top: 60px;
  }
  .mobile-filter-btn { display: inline-flex; }
}

/* ═══════════════ REVIEWS ═══════════════ */
.reviews-summary {
  display: grid; grid-template-columns: auto 1fr;
  gap: 32px; align-items: center;
  padding: 24px; background: var(--bg-secondary);
  border-radius: var(--radius-xl); margin-bottom: 24px;
}
.reviews-summary__score {
  text-align: center; padding: 16px 24px;
}
.reviews-summary__number { font-size: 48px; font-weight: 900; color: var(--accent-dark); line-height: 1; }
[data-theme="dark"] .reviews-summary__number { color: var(--gold-400); }
.reviews-summary__stars { color: #E6A53E; font-size: 18px; margin: 8px 0 4px; }
.reviews-summary__count { font-size: 13px; color: var(--text-muted); }

.reviews-bars { display: grid; gap: 6px; }
.review-bar {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.review-bar__label { width: 24px; text-align: center; color: var(--text-muted); }
.review-bar__track {
  flex: 1; height: 8px; background: var(--border);
  border-radius: 4px; overflow: hidden;
}
.review-bar__fill { height: 100%; background: #E6A53E; border-radius: 4px; transition: width .5s; }
.review-bar__count { width: 32px; font-size: 12px; color: var(--text-muted); }

.review-card {
  padding: 20px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 12px;
}
.review-card__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.review-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-luxury); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 14px;
}
.review-card__author b { display: block; font-size: 14px; }
.review-card__author small { color: var(--text-muted); font-size: 12px; }
.review-card__verified {
  margin-left: auto; font-size: 11px; font-weight: 700;
  color: var(--success); display: flex; align-items: center; gap: 4px;
}
.review-card__stars { color: #E6A53E; font-size: 13px; margin-bottom: 8px; }
.review-card__text { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ═══════════════ CART PAGE ═══════════════ */
.cart-layout {
  display: grid; grid-template-columns: 1.3fr .7fr;
  gap: 32px; align-items: start;
}
.cart-items { display: grid; gap: 12px; }
.cart-summary-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.coupon-input {
  display: flex; gap: 8px; margin: 16px 0;
}
.coupon-input input {
  flex: 1; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); font-size: 14px; outline: none;
}
.coupon-input input:focus { border-color: var(--accent); }

/* Cart page item (larger) */
.cart-page-item {
  display: grid; grid-template-columns: 80px 1fr auto auto;
  gap: 16px; align-items: center;
  padding: 16px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.cart-page-item img {
  width: 80px; height: 80px; object-fit: contain;
  border-radius: var(--radius-md); background: var(--gold-50);
}
[data-theme="dark"] .cart-page-item img { background: var(--surface-2); }
.cart-page-item__info b { font-size: 15px; font-weight: 700; }
.cart-page-item__info small { color: var(--text-muted); font-size: 13px; }
.cart-page-item__price { font-weight: 800; font-size: 15px; white-space: nowrap; }

/* ═══════════════ CROSS-SELL ═══════════════ */
.cross-sell {
  margin-top: 32px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.cross-sell h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.cross-sell__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.cross-sell__item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; border: 1px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer;
  transition: border-color .2s;
}
.cross-sell__item:hover { border-color: var(--accent); }
.cross-sell__item img { width: 48px; height: 48px; object-fit: contain; border-radius: var(--radius-sm); }
.cross-sell__item b { font-size: 13px; display: block; }
.cross-sell__item small { color: var(--accent-dark); font-size: 12px; font-weight: 700; }

/* ═══════════════ PAGE VISIBILITY ═══════════════ */
.page { display: none; }
.page.active { display: block; animation: fadeIn .3s var(--ease); }

/* ═══════════════ SCROLL PROGRESS ═══════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 200; background: var(--gradient-cta);
  transform-origin: right; transform: scaleX(0);
}
