/* ============================================================================
   MR. HABIBI DESIGN LAYER
   The base stylesheet is inherited from a previous project and is deliberately left
   alone: it encodes hard-won fixes (no parallax on the hero, no backdrop-filter,
   no container queries on the card grid). This block only *re-skins*.

   The visual language is jeweller's black: a warm near-black field, everything
   separated by hairlines rather than fills, gold used as a rule and a foil rather
   than as a large surface. Large gold areas read cheap; 1px gold rules read
   expensive. That is the whole trick, so the rules below are thin and few.
   ========================================================================== */

/* ---- A gold hairline under the section headings, the signature mark ---- */
.section-heading,
.craft-heading {
  position: relative;
}
.section-heading::after,
.craft-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(-1 * var(--space-5));
  width: 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--amber-bright), transparent);
}

/* The eyebrow gets a leading rule: gold, 6mm-ish, then the letterspaced label.
   This is the single most recognisable part of the identity, so it repeats on
   every section. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75em;
  color: var(--amber-bright);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  flex: 0 0 auto;
  background: var(--amber);
  opacity: 0.85;
}
/* In the hero the rule is longer and brighter — it is the first thing read. */
.hero .eyebrow::before { width: 2.5rem; }

/* ---- Hero: raise the type and hold the gold ---- */
.hero h1 > span {
  /* The wordmark face, oversized, with a faint gold bloom behind it. */
  text-shadow: 0 0 3.5rem color-mix(in srgb, var(--amber) 28%, transparent);
  letter-spacing: 0.02em;
}
.hero h1 > small {
  color: var(--amber-bright);
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-size: 0.72em;
}

/* "Parfum" under the name: the second half of the wordmark, set as a rule-flanked
   letterspaced line rather than a subtitle, so the hero reads as a maker's mark. */
.hero-sub {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 0;
  color: var(--amber-bright);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.52em;
  text-transform: uppercase;
}
.hero-sub::before,
.hero-sub::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--amber);
  opacity: 0.8;
}
.hero-intro {
  max-width: 31rem;
  color: var(--cream-soft);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.75;
}

/* ---- Product cards: hairline frame, gold on hover, no fill changes ---- */
.product-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--gradient-card);
  /* A single hairline inside the frame, inset 6px, is what separates a jeweller's
     card from a generic bordered one. Painted with a pseudo-element so it never
     affects layout or the grid's row heights. */
}
.product-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid color-mix(in srgb, var(--amber) 16%, transparent);
  border-radius: 1px;
  pointer-events: none;
  transition: border-color var(--duration-medium) var(--ease-soft);
}
.product-card:hover {
  border-color: color-mix(in srgb, var(--amber) 55%, transparent);
  box-shadow: 0 1.5rem 3rem color-mix(in srgb, var(--shadow) 70%, transparent);
  transform: translate3d(0, -3px, 0);
}
.product-card:hover::after {
  border-color: color-mix(in srgb, var(--amber) 30%, transparent);
}

/* The bottle art is already lit from inside; lifting contrast slightly on hover
   reads as a spot moving over the product rather than as a zoom. */
.product-card:hover .product-image img {
  transform: scale(1.02);
  filter: saturate(1.06) brightness(1.04);
}

.product-category {
  color: var(--amber);
  letter-spacing: 0.20em;
}
.product-name {
  letter-spacing: 0.005em;
}
.product-scent {
  letter-spacing: 0.01em;
}

/* Gold price, set in the display face — the one place gold type is allowed to
   carry a whole word, because a price is the thing being looked for. */
.product-price {
  color: var(--amber-bright);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}

.add-button {
  border-color: color-mix(in srgb, var(--amber) 40%, transparent);
  color: var(--amber-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.66rem;
}
.add-button:hover {
  border-color: var(--amber-bright);
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  color: var(--cream);
}

/* ---- Filter chips: gold pill when active, hairline when not ---- */
.filter-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-round);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.66rem;
}
.filter-chip[aria-pressed="true"] {
  border-color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  color: var(--cream);
}
.filter-chip:hover {
  border-color: color-mix(in srgb, var(--amber) 55%, transparent);
  color: var(--cream);
}

/* ---- Buttons: gold fill only on the primary action ---- */
.button--primary {
  background: var(--amber-bright);
  color: var(--ink-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.button--primary:hover {
  background: var(--cream);
  color: var(--ink-deep);
}
.button--secondary {
  border-color: color-mix(in srgb, var(--amber) 45%, transparent);
  color: var(--amber-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.button--secondary:hover {
  border-color: var(--amber-bright);
  color: var(--cream);
}

/* ---- The house section: a gold-ruled list, numbers in display type ---- */
.process-list li > span {
  color: var(--amber-bright);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.process-list li {
  border-top: 1px solid var(--line-soft);
}
.process-list li h3 {
  letter-spacing: 0.01em;
}

/* ---- Closing note: the quote is the highest-contrast type on the page ---- */
.closing-note h2 {
  color: var(--cream);
  letter-spacing: 0.005em;
}
.text-link {
  color: var(--amber-bright);
  text-decoration-color: color-mix(in srgb, var(--amber) 60%, transparent);
  text-underline-offset: 0.3em;
}
.text-link:hover {
  color: var(--cream);
  text-decoration-color: var(--amber-bright);
}

/* ---- Nav: gold hover, gold underline that grows from the left ---- */
.nav-links a {
  position: relative;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: var(--amber-bright);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-medium) var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---- Footer: hairline top rule, gold wordmark ---- */
.site-footer {
  border-top: 1px solid var(--line-soft);
}

/* ---- Order tray and modals: gold border, black glass ---- */
.order-tray {
  border-top: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
}
.order-total strong {
  color: var(--amber-bright);
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.modal-shell {
  border: 1px solid var(--line);
  border-radius: 2px;
}
.quick-price {
  color: var(--amber-bright);
}

/* ---- Focus ring: gold, and clearly visible on black ---- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

/* ---- Header on a phone: it was overflowing by 9px ----
   At 390px the content box is 350px, but wordmark (150) + gap (24) + nav (151) + gap (24)
   + palette button (30) = 379. Flex items with default min-width refuse to shrink below
   their content, so the palette button was pushed 9px past the right edge and the whole
   page scrolled sideways — the single most obvious mobile break there is.
   Tightening the gap and the wordmark on small screens is enough to fit; no link has to
   be dropped. */
@media (max-width: 48rem) {
  .site-header__inner { gap: var(--space-3); }
  .site-header__inner > .wordmark { flex: 0 1 auto; min-width: 0; }
  .site-header__inner > .wordmark .wordmark__name { font-size: 1.5rem; }
  .site-header__inner > .wordmark .wordmark__sub { font-size: 0.55rem; letter-spacing: 0.26em; }
  .nav-links { gap: 0.9rem; min-width: 0; }
  .nav-links a { letter-spacing: 0.06em; }
  /* The palette menu must not hang off the right edge when the trigger sits near it. */
  .theme-picker__menu { right: 0; width: min(13rem, calc(100vw - 2 * var(--gutter))); }
}

/* ---- Reduced motion: the card lift goes away, the hairlines stay ---- */
@media (prefers-reduced-motion: reduce) {
  .product-card:hover { transform: none; }
  .nav-links a::after { transition: none; }
}
