/* SUN GROUP — Premium E-commerce Homepage */
:root {
  --bg: #0a2f24;
  --bg-deep: #07261d;
  --bg-mid: #0d3d2e;
  --bg-soft: #124a38;
  --gold: #c9a96e;
  --gold-light: #e2c892;
  --gold-dark: #a8894f;
  --cream: #f3efe6;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --text: #f7f4ee;
  --card: #f7f4ee;
  --ink: #1a2e26;
  --star: #d4a84b;
  --radius: 14px;
  --header-h: 78px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(7, 38, 29, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(7, 38, 29, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  gap: 28px;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 450;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}

.nav-desktop a:hover,
.nav-desktop a.active { color: var(--gold-light); }

.nav-desktop a.active::after,
.nav-desktop a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.icon-btn:hover {
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold-light);
}

.cart-btn { position: relative; }

.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-deep);
  border-top: 1px solid rgba(201, 169, 110, 0.12);
  padding: 12px 20px 20px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-weight: 500;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  width: 100%;
  /* Cinematic wide ratio matching design mockup */
  aspect-ratio: 16 / 9;
  min-height: 560px;
  max-height: min(820px, 88dvh);
  margin-top: 0;
  overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 38, 29, 0.88) 0%, rgba(7, 38, 29, 0.45) 48%, rgba(7, 38, 29, 0.25) 100%),
    var(--hero-img) center center / cover no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 1s ease, visibility 1s, transform 6s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, transparent 20%, rgba(7, 38, 29, 0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 64px;
  max-width: 640px;
  margin-left: max(20px, calc((100% - 1200px) / 2 + 20px));
  margin-right: auto;
  animation: fadeUp 0.9s ease both;
}

.hero-slide.active .hero-content { animation: fadeUp 0.9s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tags {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 0.95;
  color: var(--gold-light);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 420px;
  margin-bottom: 32px;
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 169, 110, 0.35);
}

.btn span { transition: transform 0.25s; }
.btn:hover span { transform: translateX(4px); }

.hero-meta {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.scroll-down {
  pointer-events: auto;
  position: absolute;
  left: max(20px, calc((100% - 1200px) / 2 + 20px));
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  position: relative;
}

.scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 10px; height: 3px;
  background: var(--gold-light);
  animation: scrollPulse 1.8s ease infinite;
}

@keyframes scrollPulse {
  0% { left: 0; opacity: 1; }
  100% { left: 30px; opacity: 0; }
}

.hero-side-text {
  position: absolute;
  right: 28px;
  top: 50%;
  writing-mode: vertical-rl;
  transform: rotate(180deg) translateY(50%);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hero-pager {
  position: absolute;
  right: 28px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
}

.pager-line {
  width: 28px;
  height: 1px;
  background: rgba(201, 169, 110, 0.5);
}

/* ========== SECTIONS ========== */
.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head.center {
  justify-content: center;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.section-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.text-link {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s, gap 0.25s;
}

.text-link:hover { color: var(--gold-light); gap: 12px; }

/* ========== CATEGORIES ========== */
.categories {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.category-row {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 12px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.category-item {
  flex: 0 0 auto;
  width: 130px;
  text-align: center;
  scroll-snap-align: start;
  transition: transform var(--transition);
}

.category-item:hover { transform: translateY(-6px); }

.category-circle {
  width: 110px;
  height: 110px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(201, 169, 110, 0.45);
  box-shadow:
    0 0 0 6px rgba(201, 169, 110, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.category-item:hover .category-circle {
  border-color: var(--gold);
  box-shadow:
    0 0 0 8px rgba(201, 169, 110, 0.14),
    0 16px 36px rgba(0, 0, 0, 0.35);
}

.category-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--cream);
}

.category-item p {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ========== PRODUCTS ========== */
.products { background: var(--bg); }

.carousel-nav { display: flex; gap: 8px; }

.nav-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s;
}

.nav-arrow:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

.product-track-wrap { overflow: hidden; }

.product-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.product-track::-webkit-scrollbar { display: none; }

.product-card {
  flex: 0 0 calc((100% - 80px) / 5);
  min-width: 200px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.product-card:hover { transform: translateY(-6px); }

.product-img {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: #e8e4dc;
}

.product-body { padding: 16px 16px 18px; }

.product-body h3 {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  min-height: 2.5em;
  color: var(--ink);
}

.stars {
  font-size: 0.78rem;
  color: var(--star);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.stars span {
  color: #7a7a7a;
  letter-spacing: 0;
  margin-left: 4px;
}

.stars.gold { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.price s {
  color: #9a9a9a;
  font-size: 0.82rem;
  margin-left: 6px;
}

.add-cart {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-mid);
  color: var(--cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.add-cart:hover {
  background: var(--gold-dark);
  transform: scale(1.06);
}

/* ========== PROMO ========== */
.promo {
  padding: 0;
  background: linear-gradient(90deg, var(--bg-deep) 0%, var(--bg-mid) 55%, #163f30 100%);
  overflow: hidden;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 480px;
  align-items: center;
  gap: 40px;
}

.promo-copy { padding: 60px 20px 60px 0; }

.promo-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 16px;
  writing-mode: horizontal-tb;
}

.promo-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.promo-text {
  color: var(--muted);
  max-width: 360px;
  margin-bottom: 28px;
  font-size: 1.05rem;
  font-weight: 300;
}

.promo-visual {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.promo-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.promo-index {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
}

/* ========== TRUST ========== */
.trust-bar {
  background: var(--bg-deep);
  border-block: 1px solid rgba(201, 169, 110, 0.12);
  padding: 36px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.35);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
}

.trust-item p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(201, 169, 110, 0.4);
  transform: translateY(-4px);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid var(--gold);
}

.testimonial-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
  line-height: 1.45;
}

.testimonial-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

/* ========== NEWSLETTER ========== */
.newsletter {
  background: var(--bg-soft);
  padding: 40px 0;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.newsletter-copy {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold);
}

.newsletter-copy h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-light);
  font-weight: 600;
}

.newsletter-copy p {
  color: var(--muted);
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 480px;
  min-width: 260px;
}

.newsletter-form input {
  flex: 1;
  background: var(--white);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 6px;
  outline: none;
}

.newsletter-form input::placeholder { color: #888; }

/* ========== FOOTER ========== */
.site-footer {
  background: #051c15;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.3);
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: background 0.25s, color 0.25s;
}

.socials a:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

.footer-grid h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.footer-grid ul li { margin-bottom: 10px; }

.footer-grid ul a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.25s;
}

.footer-grid ul a:hover { color: var(--gold-light); }

.contact-list li {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-bottom-inner a {
  margin-left: 18px;
  color: var(--muted);
}

.footer-bottom-inner a:hover { color: var(--gold); }

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--gold);
  color: var(--bg-deep);
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s, opacity 0.35s;
  z-index: 2000;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .product-card { flex: 0 0 calc((100% - 40px) / 3); }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  .promo-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .promo-copy {
    padding: 48px 0 24px;
    text-align: center;
  }

  .promo-text { margin-inline: auto; }

  .promo-visual { min-height: 300px; }
  .promo-visual img { min-height: 300px; }

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

  .testimonial-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .hero-side-text { display: none; }

  .hero {
    aspect-ratio: 4 / 3;
    min-height: 480px;
    max-height: 78dvh;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }

  .container { width: calc(100% - 28px); }

  .section { padding: 64px 0; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head.center { align-items: center; }

  .hero {
    aspect-ratio: 3 / 4;
    min-height: 560px;
    max-height: 85dvh;
  }

  .hero-content {
    margin-left: 14px;
    margin-right: 14px;
    text-align: left;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 72px;
  }

  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }

  .scroll-down { bottom: 28px; left: 14px; font-size: 0.65rem; }
  .hero-pager { right: 14px; bottom: 28px; font-size: 0.95rem; }

  .product-card { flex: 0 0 calc((100% - 16px) / 2); min-width: 150px; }

  .product-body { padding: 12px; }
  .product-body h3 { font-size: 0.8rem; min-height: 2.6em; }
  .price strong { font-size: 0.92rem; }

  .category-item { width: 108px; }
  .category-circle { width: 92px; height: 92px; }

  .trust-grid { grid-template-columns: 1fr; gap: 18px; }

  .newsletter-inner { flex-direction: column; align-items: stretch; }
  .newsletter-form { max-width: none; flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-inner a { margin: 0 10px; }
}

@media (max-width: 400px) {
  .product-card { flex: 0 0 78%; }
}

/* ========== STOREFRONT PAGES (Laravel) ========== */
.page-main {
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 64px;
  min-height: 60vh;
}

.page-hero {
  padding: calc(var(--header-h) + 48px) 0 40px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-light);
  font-weight: 600;
}

.page-hero p {
  color: var(--muted);
  margin-top: 8px;
  font-weight: 300;
}

.flash {
  width: min(1200px, calc(100% - 40px));
  margin: 12px auto;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.flash-wrap {
  position: relative;
  z-index: 900;
  padding-top: calc(var(--header-h) + 8px);
  margin-bottom: -8px;
}

/* Overlay below fixed header on pages with hero / page-hero */
body:has(.hero) .flash-wrap,
body:has(.page-hero) .flash-wrap {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding-top: 8px;
  margin-bottom: 0;
  pointer-events: none;
}
body:has(.hero) .flash-wrap .flash,
body:has(.page-hero) .flash-wrap .flash {
  pointer-events: auto;
  box-shadow: var(--shadow);
}

.flash-success {
  background: rgba(201, 169, 110, 0.18);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--gold-light);
}

.flash-error {
  background: rgba(180, 40, 40, 0.2);
  border: 1px solid rgba(220, 80, 80, 0.45);
  color: #ffb4b4;
}

.auth-links {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: var(--bg-deep);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: var(--shadow);
  z-index: 50;
}

.account-menu { position: relative; }
.account-menu:hover .auth-links,
.account-menu:focus-within .auth-links { display: block; }

.auth-links a,
.auth-links button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  color: var(--cream);
  font-size: 0.88rem;
  cursor: pointer;
}

.auth-links a:hover,
.auth-links button:hover {
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold-light);
}

.search-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: min(320px, 80vw);
  background: var(--bg-deep);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
  z-index: 50;
}

.search-wrap { position: relative; }
.search-wrap.open .search-panel { display: block; }

.search-panel form {
  display: flex;
  gap: 8px;
}

.search-panel input {
  flex: 1;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 6px;
  outline: none;
}

/* Product card link + actions */
.product-card a.product-link { color: inherit; display: block; }
.product-card .product-img { display: block; }
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.product-actions .btn {
  padding: 8px 12px;
  font-size: 0.78rem;
  flex: 1;
  justify-content: center;
}
.btn-outline {
  border: 1px solid rgba(201, 169, 110, 0.55);
  color: var(--gold-light);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(201, 169, 110, 0.12);
}
.btn-dark {
  background: var(--bg-mid);
  color: var(--cream);
}
.btn-dark:hover { background: var(--bg-soft); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-grid .product-card {
  flex: none;
  min-width: 0;
  width: 100%;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.shop-filters select,
.shop-filters input,
.form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.28);
  color: var(--cream);
  padding: 12px 14px;
  border-radius: 8px;
  outline: none;
  width: 100%;
}

.shop-filters select {
  min-width: 180px;
  width: auto;
}

.shop-filters input[type="search"] {
  min-width: 220px;
  width: auto;
  background: #fff;
  color: var(--ink);
}

.shop-filters select option { color: #111; background: #fff; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-card,
.content-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: var(--radius);
  padding: 28px;
}

.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
}

.auth-wrap h1 {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 2rem;
  margin-bottom: 8px;
}

.auth-wrap .muted { color: var(--muted); margin-bottom: 24px; }

.auth-meta {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.auth-meta a { color: var(--gold); }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.product-media {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e4dc;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-thumbs button {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #e8e4dc;
}

.gallery-thumbs button.active,
.gallery-thumbs button:hover {
  border-color: var(--gold);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.key-highlights {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: var(--radius);
  padding: 22px 20px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.key-highlights h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 600;
}

.key-highlights ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.key-highlights li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.key-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.18);
}

.product-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold-light);
  margin-bottom: 12px;
  line-height: 1.15;
}

.product-sku {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.product-info .price {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.product-info .price strong { color: var(--cream); font-size: 1.5rem; }
.product-info .price s { color: var(--muted); margin-left: 8px; font-size: 1rem; }

.product-lead {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 22px;
  line-height: 1.55;
  font-size: 1rem;
}

.stock-note {
  margin-top: 14px;
  font-size: 0.85rem;
}

.stock-note.in-stock { color: #8fd4a8; }
.stock-note.out-stock { color: #f0a0a0; }

.product-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.product-description-block,
.product-specs-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.product-description-block h2,
.product-specs-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.product-desc-full {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.75;
}

.product-desc-empty {
  color: var(--muted);
  font-style: italic;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.specs-table th,
.specs-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.specs-table th {
  width: 42%;
  color: var(--cream);
  font-weight: 600;
  padding-right: 12px;
}

.specs-table td { color: var(--muted); }

.buy-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.qty-input {
  width: 80px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

/* Cart */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  color: var(--gold-light);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.25);
}

.cart-table td {
  padding: 16px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #e8e4dc;
}

.cart-item h3 {
  font-size: 0.95rem;
  color: var(--cream);
  margin-bottom: 4px;
}

.cart-item .variant {
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
}

.cart-summary .row.total {
  color: var(--gold-light);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 169, 110, 0.25);
}

.link-danger {
  color: #ff9a9a;
  font-size: 0.82rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 20px;
}

.payment-option {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 10px;
  cursor: pointer;
}

.payment-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.08);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.order-lines { margin-bottom: 16px; }
.order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--muted);
}

.order-line strong { color: var(--cream); }

.thanks-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.thanks-box h1 {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.order-number {
  display: inline-block;
  margin: 12px 0 24px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--gold);
  letter-spacing: 0.06em;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.orders-table th {
  color: var(--gold-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.orders-table td { color: var(--muted); }
.orders-table a { color: var(--gold); }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold-light);
}

.pagination-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.pagination-wrap nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 110, 0.28);
  color: var(--cream);
  font-size: 0.88rem;
}

.pagination-wrap .active span,
.pagination-wrap [aria-current="page"] span {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.empty-state a { color: var(--gold); }

.prose {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  color: var(--gold-light);
  margin: 28px 0 12px;
  font-size: 1.6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
}

.razorpay-waiting {
  text-align: center;
  padding: 80px 20px;
}

.razorpay-waiting h1 {
  font-family: var(--font-display);
  color: var(--gold-light);
  margin-bottom: 12px;
}

@media (max-width: 1100px) {
  .product-media {
    grid-template-columns: 1fr;
  }
  .key-highlights {
    position: static;
  }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail,
  .product-content-grid,
  .cart-layout,
  .checkout-grid,
  .contact-grid,
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
    display: block;
    width: 100%;
  }
  .cart-table tr {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cart-table td { border: none; padding: 6px 0; }
}
