/* Nagavally Collections — small custom layer on top of Tailwind utilities. */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: #FBF8F2;
  color: #1F2A25;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The logo is gold on black. On dark emerald surfaces, "screen" drops the black
   so only the gold shows. Swap for a transparent PNG/SVG logo when available. */
.logo-blend { mix-blend-mode: screen; }

/* Keyboard focus — always visible, gold ring */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid #C9A961;
  outline-offset: 3px;
  border-radius: 6px;
}
.on-light :focus-visible, .on-light:focus-visible { outline-color: #0F4C3A; }

/* Ornamental divider echoing the logo: —— ✦ —— */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  color: #B8934A;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 3.5rem;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament::after { background: linear-gradient(90deg, currentColor, transparent); }

/* Arch frames (temple-arch silhouette) */
.arch { border-radius: 999px 999px 1.25rem 1.25rem; }

/* Product image backdrops — soft studio-like tones */
.tone-champagne { background: radial-gradient(120% 90% at 50% 30%, #FFFDF8 0%, #F3E8D0 100%); }
.tone-sage      { background: radial-gradient(120% 90% at 50% 30%, #F7FBF8 0%, #D9E9DF 100%); }
.tone-blush     { background: radial-gradient(120% 90% at 50% 30%, #FFF9F6 0%, #F1DED5 100%); }
.tone-emerald   { background: radial-gradient(120% 90% at 50% 30%, #1A6B52 0%, #0B3B2E 100%); }

/* Subtle gold sheen line */
.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, #C9A961, transparent); }

/* Scroll-reveal (only animates if JS + motion allowed) */
.js-motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.js-motion .reveal.is-in { opacity: 1; transform: none; }

/* Lock page scroll when a drawer/modal is open */
body.no-scroll { overflow: hidden; }

/* Hide scrollbar for horizontal chip rows while keeping scroll */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Hero banner slider
   Phone (<768px): photo fills the slide, copy sits at the bottom over a scrim.
   Tablet/desktop: copy on the left over the slide colour; photo on the right, its left edge
   fading into that colour so the whole banner reads as one image. Photos are never stretched. */
.hero-slide { aspect-ratio: 4 / 5; min-height: 540px; max-height: 640px; }
@media (min-width: 640px)  { .hero-slide { aspect-ratio: auto; height: 560px; } }
@media (min-width: 768px)  { .hero-slide { height: 420px; min-height: 0; } }
@media (min-width: 1024px) { .hero-slide { height: 500px; } }
@media (min-width: 1280px) { .hero-slide { height: 540px; } }
.hero-img { object-position: var(--pos-m, 78% center); }
@media (max-width: 767px) {
  .hero-media-short {
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
}
@media (min-width: 768px) {
  .hero-img { object-position: var(--pos-d, center); }
  .hero-media {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
            mask-image: linear-gradient(to right, transparent 0, #000 38%);
  }
}
.hero-slide .hero-copy { opacity: 0; transform: translateY(16px); transition: opacity .6s ease .35s, transform .6s ease .35s; }
.hero-slide.is-active .hero-copy { opacity: 1; transform: none; }

/* Full-width banner variant (#hero[data-layout="full"]) */
#hero[data-layout="full"] { padding-top: 0; }
#hero[data-layout="full"] .hero-shell { max-width: none; padding-left: 0; padding-right: 0; }
#hero[data-layout="full"] .hero-frame { border-radius: 0; box-shadow: none; }
#hero[data-layout="full"] #hero-prev { left: 1.25rem; }
#hero[data-layout="full"] #hero-next { right: 1.25rem; }
@media (min-width: 768px) {
  /* keep the text aligned with the rest of the page content, however wide the screen */
  #hero[data-layout="full"] .hero-copywrap { width: 52%; padding-left: max(3rem, calc((100vw - 80rem) / 2 + 2rem)); }
}
@media (min-width: 1024px) { #hero[data-layout="full"] .hero-slide { height: 540px; } }
@media (min-width: 1280px) {
  #hero[data-layout="full"] .hero-slide { height: 580px; }
  #hero[data-layout="full"] .hero-media { width: 60%; }
}
@media (min-width: 1536px) { #hero[data-layout="full"] .hero-slide { height: 640px; } }

/* Wishlist heart — filled when saved */
.js-wish.is-wished { color: #B8934A; }
.js-wish.is-wished svg { fill: currentColor; }

/* Reserve header space before layout.js injects it (avoids layout shift) */
#nc-header { min-height: 98px; }
@media (min-width: 1024px) { #nc-header { min-height: 160px; } }

/* Accordion chevron rotation */
[data-accordion-trigger][aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Range input / checkbox accent */
input[type="checkbox"], input[type="radio"] { accent-color: #0F4C3A; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}
