/* Responsive breakpoints and reduced-motion overrides (keep loaded last). */
@media (max-width: 1320px) {
  .search-trigger { flex: none; min-width: 0; width: 42px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
}

@media (max-width: 1180px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .intent-scroller { grid-template-columns: repeat(8, 160px); }
}

/* iPad landscape and small laptops: keep the links, just tighter. */
@media (max-width: 1100px) {
  .header-row { gap: 8px; }
  .main-nav > a, .nav-item > a { padding: 8px 9px; font-size: 13px; }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .only-mobile { display: grid !important; }
}
/* set by shell.js when the admin's links don't fit on one row: first tighten, then fall back to the menu button */
.nav-tight .site-header .wrap { width: min(100% - 2 * var(--gutter), 1360px); }
.nav-tight .header-row { gap: 14px; }
.nav-tight .main-nav { gap: 0; }
.nav-tight .main-nav > a, .nav-tight .nav-item > a { padding: 8px 9px; font-size: 13.5px; }
.nav-tight .search-trigger { flex: none; min-width: 0; width: 42px; padding: 0; justify-content: center; margin-right: 0; }
.nav-tight .search-trigger span, .nav-tight .search-trigger kbd { display: none; }
.nav-tight .layout-classic .logo-word.long { font-size: 14px; letter-spacing: .12em; white-space: normal; line-height: 1.15; max-width: 10em; }
.nav-collapsed .main-nav, .nav-collapsed .header-nav-row { display: none; }
.nav-collapsed .only-mobile { display: grid !important; }

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
  .hero { padding-top: 28px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-proof { justify-content: center; }
  .trust-strip .wrap { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .graha-grid { grid-template-columns: 1fr 1fr; }
  .cosmos-grid, .reviews-wrap, .checkout, .pdp, .qv { grid-template-columns: 1fr; }
  .gallery, .summary { position: static; }
  .purpose-grid { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .journey::before { display: none; }
  .journal-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .review-track { grid-auto-columns: 70%; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 82vh; z-index: 85; background: var(--bg); border-radius: 24px 24px 0 0; padding: 8px 20px 20px; transform: translateY(105%); transition: transform .35s var(--ease); box-shadow: 0 -20px 60px rgba(0,0,0,.4); border-top: 1px solid var(--line-2); }
  .filters.open { transform: none; }
  .filters-head { display: flex !important; }
  .filter-toggle { display: inline-flex; }
  .finder-form { grid-template-columns: 1fr; }
  .sticky-buy { display: flex; }
  .wear-guide { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .p-body { padding: 12px; }
  .p-name { font-size: 13.5px; }
  .p-price b { font-size: 16px; }
  .p-meta { display: none; }
  .quick { display: none; }
  .graha-grid { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 1fr; }
  .pick .gem-svg { width: 110px; height: 110px; margin: 0 auto; }
  .finder-panel { padding: 20px; }
  .purpose-grid { grid-template-columns: 1fr 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .review-track { grid-auto-columns: 88%; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .assure { grid-template-columns: 1fr; }
  .buy-row { grid-template-columns: auto 1fr; }
  .buy-row .btn-ghost { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 16px 10px; gap: 10px; }
  .trust-item svg { width: 24px; height: 24px; }
  .logo-word { font-size: 15.5px; letter-spacing: .18em; }
  .header-actions { gap: 2px; }
  .site-header .icon-btn { width: 40px; height: 40px; }
  /* Narrow phones: the theme switch moves into the menu so the row never overflows. */
  #theme-btn { display: none; }
  .logo { gap: 9px; }
  .logo-mark { width: 34px; height: 34px; }
  #cur-btn { display: none; }
  .search-trigger { display: none; }
  .only-mobile-sm { display: grid !important; }
  .fab { right: 14px; bottom: 14px; }
  .co-section { padding: 20px; }
  .modal { padding: 22px 18px; border-radius: 20px; }
  .overlay.center { padding-top: 4vh; }
  .stone-caption .name { font-size: 26px; }
  .hero-ring { width: min(270px, 78vw); }
  .hero-stage .orbit { inset: 0 12% 28%; }
  .stone-caption { min-height: 64px; }
  .stone-caption .meta { font-size: 13px; }
  .stone-dot { width: 28px; height: 28px; }
  .hero-hint { display: none; }
  .hero h1 { font-size: 44px; margin: 12px 0 14px; }
  .hero-ctas { margin: 22px 0 26px; }
  .hero-proof b { font-size: 22px; }
  .compare-tray { left: 16px; right: 16px; transform: none; border-radius: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

.filters-head { display: none; justify-content: space-between; align-items: center; padding: 10px 0; position: sticky; top: 0; background: var(--bg); z-index: 1; }
.filters-head h3 { font-size: 24px; }

/* ============ refinement layer: responsive ============ */
@media (max-width: 980px) {
  .hero-proof div:first-child { padding-left: 26px; }
  .hero-copy .eyebrow::after { content: ''; display: inline-block; width: 26px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; opacity: .65; }
  .gallery { width: 100%; max-width: 560px; margin-inline: auto; }
  .pdp { gap: 28px; }
  .finder-form.finder-form-stone { grid-template-columns: 1fr 1fr; }
  .finder-form-stone .btn { grid-column: 1 / -1; }
  .section-head { margin-bottom: 28px; }
}

@media (max-width: 640px) {
  .grid-products.grid-shop { grid-template-columns: 1fr 1fr; }
  .finder-form.finder-form-stone { grid-template-columns: 1fr; }
  .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-proof div, .hero-proof div:first-child { padding: 0 8px; }
  .hero-proof span { font-size: 11px; line-height: 1.35; }
  .section-head .eyebrow::before, .section-head[style*="center"] .eyebrow::after { width: 16px; }
  /* The hero line fills a phone's width; the rules either side would wrap onto their own line. */
  .hero-copy .eyebrow::before, .hero-copy .eyebrow::after { display: none; }
  .eyebrow { font-size: 10.5px; letter-spacing: .18em; }
  .p-price { flex-wrap: wrap; gap: 2px 8px; }
  .p-price b { font-size: 20px; }
  /* Small cards: one tag and smaller buttons, so the stone stays visible. */
  .p-tags { top: 8px; left: 8px; right: 46px; }
  .p-tags .tag:nth-child(n+2) { display: none; }
  .p-actions { top: 8px; right: 8px; gap: 4px; }
  .p-actions button { width: 32px; height: 32px; }
  .p-actions svg { width: 15px; height: 15px; }
  .p-name { font-size: 16px; }
  .pdp-price b { font-size: 32px; }
  .metal-grid { grid-template-columns: 1fr 1fr; }
  .metal { padding: 11px 12px; }
  .metal span { font-size: 13.5px; }
  .faq summary { font-size: 19px; padding: 18px 0; }
  .review p { font-size: 17px; }
  .muhurat-when { grid-template-columns: 1fr; }
  .muhurat-when b { font-size: 22px; }
  .toggle-row { padding: 12px 14px; }
  .tabs { padding: 6px; }
  .tab { padding: 9px 14px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  /* The hero stone still changes colour: a fade moves nothing, so it keeps its duration. */
  .hero { transition-duration: 1.4s !important; }
  .hero-ring .layer-facet, .hero-ring .layer-cab, .hero-ring .layer-eye { transition-duration: 1.2s !important; }
}
