/* =========================================================
   ELEGANT LAYER: loaded after elys.css
   One gold accent, serif display headings, more breathing room,
   quieter badges, header that slims on scroll, soft page fades.
   Remove this file's <link> in includes/header.php to switch it off.
   ========================================================= */
:root {
    --accent: #c9a44c;      /* the one gold: rings, icons, lines */
    --accent-ink: #8a6a2a;  /* same gold, deep enough for small text on white */
    --accent-soft: rgba(201, 164, 76, .16);
    --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --ease-soft: cubic-bezier(.2, .7, .2, 1);
}
::selection { background: var(--accent); color: #000; }

/* ---------- Page crossfade: the browser's own view transition, so navigation is never held back ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---------- Gentler reveal, staggered through --i ---------- */
.reveal { transform: translateY(18px); transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-soft);
    transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Serif display headings (body stays Jost) ---------- */
.ely-title, .sec-head h2, .ely-pick-text h2, .ely-seo h2, .gift-text h2, .page-hero h1, .pinfo h1,
.ely-hero-text h1, .ely-hero-text h2, .duo-card h3, .note-card h3 {
    font-family: var(--display); font-weight: 500; letter-spacing: .005em; }
/* every other page/section heading follows suit; the bold poster titles of the banners, mega sale and deals hero keep their own type */
#main :is(h1, h2):not(.bnr-title, .ms-title, .deals-hero h1) { font-family: var(--display); font-weight: 500; letter-spacing: .005em; }
.ely-title { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(34px, 4vw, 54px); }
.ely-pick-text h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; }
.ely-seo h2 { font-size: clamp(30px, 3vw, 42px); }
.pinfo h1 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.05; }
.ely-hero-text h1, .ely-hero-text h2 { line-height: 1; }
.page-hero h1 { font-weight: 500; }
/* a thin gold rule under centred section titles */
.ely-title::after { content: ''; display: block; width: 46px; height: 1px; margin: 18px auto 0; background: var(--accent); }
.ely-dark .ely-title::after { margin-bottom: 18px; }
.col-kicker { color: var(--accent-ink); }
.col-kicker + .ely-title { margin-top: 0; }
.ely-eyebrow { letter-spacing: .3em; }

/* ---------- More white space ---------- */
.ely-sec { padding: 96px 0; }
.ely-more { margin-top: 48px; }
.grid { gap: 44px 28px; }
@media (max-width: 900px) { .grid { gap: 30px 14px; } }
@media (max-width: 700px) {
    .ely-sec { padding: 62px 0; }
    .ely-title { margin-bottom: 30px; }
    .ely-title::after { margin-top: 14px; }
}

/* ---------- Header: translucent, slims down on scroll ---------- */
.header { transition: background .35s, box-shadow .35s; }
.header-inner { transition: height .35s var(--ease-soft); }
.header .logo-emblem { transition: height .35s var(--ease-soft); }
.nav > ul > li > a { transition: padding .35s var(--ease-soft), color .3s; }
.nav > ul > li > a::after { background: var(--accent); }
.header.scrolled { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.header.scrolled .header-inner { height: 62px; }
.header.scrolled .logo-emblem { height: 46px; }
.header.scrolled .nav > ul > li > a { padding-top: 20px; padding-bottom: 20px; }
.header.scrolled .nav > ul > li > a::after { bottom: 15px; }
@media (max-width: 900px) {
    .header.scrolled .header-inner { height: 54px; }
    .header.scrolled .logo-emblem { height: 38px; }
}

/* ---------- Product cards ---------- */
/* boxed photo fades in over the cut-out on hover (pointer devices only) */
.pcard-media.has-cut .img-hover { object-fit: cover; opacity: 0; transition: opacity .7s var(--ease-soft), transform 1.2s var(--ease-soft); }
.pcard:hover .pcard-media.has-cut .img-hover { opacity: 1; transform: scale(1.03); }
@media (hover: none) { .pcard-media.has-cut .img-hover { display: none; } }
.pcard-notes { margin: -2px 0 8px; font-size: 11.5px; letter-spacing: .05em; color: var(--accent-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard:hover .pcard-title a { opacity: 1; color: var(--accent-ink); }
/* quiet badges: thin gold outline for the discount, plain gold words for Best Seller / New */
.pcard-badges .badge-sale { background: rgba(255, 255, 255, .94); color: var(--accent-ink); border: 1px solid var(--accent); letter-spacing: .1em; }
.pcard-badges .badge-new { background: none; border: 0; color: var(--accent-ink); padding: 2px 1px; font-size: 9px; letter-spacing: .18em; }
@media (max-width: 600px) {
    .pcard-badges .badge-new { font-size: 7.5px; letter-spacing: .12em; padding: 1px; }
    .pcard-notes { font-size: 10.5px; letter-spacing: .02em; }
}
.star > span, .section-dark .star > span, .ely-dark .star > span { background: var(--accent); }

/* ---------- Collection rings: one gold, plus the price line used on product pages ---------- */
.col-item:hover .col-name { color: var(--accent-ink); }
.col-sub { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--accent-ink); }
/* the orbit and its glow reach past the disc, so keep them inside the track (no sideways page scroll on phones) */
.related-rings { overflow: hidden; padding: 30px 16px 10px; }
@media (max-width: 600px) { .col-sub { font-size: 12px; margin-top: 4px; } }

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); padding: 30px 0; background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; justify-content: center; }
.trust-ico { flex: 0 0 52px; height: 52px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-ink);
    display: inline-flex; align-items: center; justify-content: center; background: radial-gradient(circle, #fff 55%, var(--accent-soft)); }
.trust-ico .ico { stroke-width: 1.2; }
.trust-item b { display: block; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.trust-item span { font-size: 12.5px; color: var(--g500); }
@media (max-width: 900px) {
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
    .trust-item { justify-content: flex-start; }
}
@media (max-width: 480px) {
    .trust-bar { padding: 24px 0; }
    .trust-item { gap: 10px; }
    .trust-ico { flex-basis: 42px; height: 42px; }
    .trust-ico .ico { width: 21px; height: 21px; }
    .trust-item b { font-size: 12.5px; letter-spacing: .02em; }
    .trust-item span { font-size: 11px; }
}

/* ---------- Shop by scent ---------- */
.scent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.scent-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; color: #111; text-decoration: none;
    transition: box-shadow .5s var(--ease-soft), transform .5s var(--ease-soft), opacity 1.1s var(--ease-soft); }
.scent-tile::before { content: ''; position: absolute; left: 50%; top: 33%; width: 64%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 0 0 12px rgba(255, 255, 255, .25); }
.scent-fresh  { background: linear-gradient(165deg, #f1f7f5 0%, #d3e5df 100%); }
.scent-woody  { background: linear-gradient(165deg, #f3ece3 0%, #d9c6ad 100%); }
.scent-amber  { background: linear-gradient(165deg, #f8eed9 0%, #e3c487 100%); }
.scent-floral { background: linear-gradient(165deg, #faf0f1 0%, #ebcdd3 100%); }
.scent-tile img { position: absolute; left: 50%; top: 35%; height: 44%; width: auto; translate: -50% -50%;
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .2)); transition: transform .7s var(--ease-soft); }
.scent-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.scent-copy b { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; }
.scent-copy small { font-size: 12.5px; color: rgba(0, 0, 0, .62); }
.scent-copy em { margin-top: 10px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.scent-copy em .ico { transition: transform .4s var(--ease-soft); }
.scent-tile:hover { box-shadow: 0 24px 50px rgba(0, 0, 0, .12); transform: translateY(-6px); }
.scent-tile:hover img { transform: translateY(-8px) rotate(-4deg) scale(1.04); }
.scent-tile:hover em .ico { transform: translateX(4px); }
@media (max-width: 900px) {
    .scent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .scent-copy { padding: 0 14px 16px; }
    .scent-copy small { font-size: 11.5px; }
    .scent-copy em { font-size: 10px; letter-spacing: .12em; margin-top: 6px; }
}
/* phones: taller tile, smaller bottle and title so two-line names ("Fresh & Citrus") clear the bottle */
@media (max-width: 600px) {
    .scent-tile { aspect-ratio: 3 / 4.6; }
    .scent-tile::before { top: 28%; width: 58%; }
    .scent-tile img { top: 28%; height: 34%; }
    .scent-copy b { font-size: 21px; }
    .scent-copy small { font-size: 11px; line-height: 1.35; }
}

/* ---------- Brand story strip ---------- */
.story-strip { position: relative; background: #0b0b0b; color: #fff; padding: 100px 0; text-align: center; overflow: hidden; }
.story-strip::before, .story-strip::after { content: ''; position: absolute; left: 50%; width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); }
.story-strip::before { top: 0; }
.story-strip::after { bottom: 0; transform: rotate(180deg); }
.story-inner { max-width: 920px; }
.story-mark { display: inline-block; color: var(--accent); margin-bottom: 26px; }
.story-mark .logo-emblem { height: 54px; width: auto; }
.story-line { margin: 0 auto; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.25; }
.story-sign { display: block; margin-top: 26px; font-size: 11.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); }
.story-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
    color: #fff; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.story-link:hover { color: var(--accent); }
@media (max-width: 700px) { .story-strip { padding: 70px 0; } .story-mark .logo-emblem { height: 44px; } }

/* ---------- Gifting ---------- */
.gift-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.gift-grid > * { min-width: 0; }
.gift-img { position: relative; order: 2; } /* image on the right: "How to pick" below has it on the left */
.gift-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.gift-tag { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px;
    background: rgba(255, 255, 255, .94); color: var(--accent-ink); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.gift-text .col-kicker { text-align: left; padding-left: 0; letter-spacing: .26em; font-size: 12px; }
.gift-text h2 { font-size: clamp(36px, 4vw, 58px); line-height: 1.05; margin: 0 0 28px; }
.gift-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 18px; }
.gift-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--g700); }
.gift-list li .ico { flex: 0 0 auto; color: var(--accent-ink); margin-top: 2px; }
.gift-list b { color: #000; font-weight: 600; }
@media (max-width: 900px) {
    .gift-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .gift-img { order: 0; }
    .gift-img img { aspect-ratio: 1 / 1; }
}

/* ---------- Tester box: warm ivory panel so the orange & black box pops ---------- */
.tbox-sec { background: linear-gradient(180deg, #fbf7f0 0%, #f4ece0 100%); overflow: hidden; }
.tbox-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.tbox-grid > * { min-width: 0; }
.tbox-media { position: relative; padding: 0 70px 70px 0; }
.tbox-media::before { content: ''; position: absolute; top: -18px; left: -18px; right: 52px; bottom: 52px; border: 1px solid var(--accent); border-radius: 12px; pointer-events: none; }
.tbox-main { display: block; position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(60, 35, 10, .18); }
.tbox-main img { display: block; width: 100%; aspect-ratio: 816 / 600; object-fit: cover; transition: transform 1.2s var(--ease-soft); }
.tbox-main:hover img { transform: scale(1.04); }
.tbox-alt { position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 640 / 740; object-fit: cover; border: 6px solid #fff; border-radius: 8px;
    box-shadow: 0 20px 40px rgba(60, 35, 10, .2); }
.tbox-seal { position: absolute; top: 24px; left: 24px; width: 82px; height: 82px; border-radius: 50%; background: #0b0b0b; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase;
    box-shadow: 0 0 0 4px rgba(11, 11, 11, .12), inset 0 0 0 1px var(--accent); }
.tbox-seal b { font-family: var(--display); font-weight: 500; font-size: 34px; line-height: .9; letter-spacing: 0; color: var(--accent); }
.tbox-text .col-kicker { text-align: left; padding-left: 0; letter-spacing: .26em; font-size: 12px; }
.tbox-text h2 { font-size: clamp(36px, 4vw, 58px); line-height: 1.05; margin: 0 0 18px; }
.tbox-lead { font-size: 15.5px; line-height: 1.7; color: var(--g700); margin: 0 0 26px; max-width: 480px; }
.tbox-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid rgba(201, 164, 76, .35); }
.tbox-list li { display: flex; align-items: center; gap: 16px; padding: 12px 2px; border-bottom: 1px solid rgba(201, 164, 76, .35); }
.tbox-num { font-family: var(--display); font-size: 15px; color: var(--accent-ink); width: 22px; }
.tbox-list i { flex: 0 0 auto; width: 10px; height: 26px; border-radius: 3px 3px 2px 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 3px 6px rgba(0, 0, 0, .12); }
.tbox-list b { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.2; color: #111; }
.tbox-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.tbox-price s { color: var(--g500); font-size: 16px; }
.tbox-price b { font-family: var(--display); font-weight: 600; font-size: 38px; line-height: 1; color: #000; }
.tbox-price span { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--accent-ink); border: 1px solid var(--accent); padding: 4px 9px; border-radius: 30px; }
.tbox-perks { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 22px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--g500); }
.tbox-perks .ico { color: var(--accent-ink); }
.tbox-perks span { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) {
    .tbox-grid { grid-template-columns: minmax(0, 1fr); gap: 46px; }
    .tbox-media { padding: 0 44px 54px 0; }
    .tbox-media::before { top: -10px; left: -10px; right: 34px; bottom: 44px; }
}
@media (max-width: 600px) {
    .tbox-media { padding: 0 28px 48px 0; }
    .tbox-media::before { display: none; }
    .tbox-alt { width: 40%; border-width: 4px; }
    .tbox-seal { top: 12px; left: 12px; width: 62px; height: 62px; font-size: 8px; }
    .tbox-seal b { font-size: 26px; }
    .tbox-list b { font-size: 19px; }
    .tbox-list li { padding: 10px 2px; }
    .tbox-perks { font-size: 10.5px; }
}

/* ---------- Reviews ---------- */
.ely-rating strong { font-family: var(--display); font-weight: 500; font-size: 68px; }
.ely-tslider .tcard { border-color: var(--g200); border-top: 2px solid var(--accent); border-radius: 4px; padding: 30px; }
.ely-tslider .tcard blockquote { font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.45; color: #222; }
.ely-tslider .tcard blockquote::before { content: '\201C'; display: block; height: 26px; font-size: 54px; line-height: 1; color: var(--accent); }
.ely-tslider .tcard footer a { color: var(--accent-ink); }

/* ---------- Product page: gold notes pyramid ---------- */
.note-card { border-color: rgba(201, 164, 76, .35); }
.note-card .num { font-family: var(--display); color: var(--accent); opacity: .7; }
.note-chips span { border-color: rgba(201, 164, 76, .5); border-radius: 30px; }

/* ---------- Form errors: clearly red (the theme's black-on-white made them easy to miss) ---------- */
.field .err { color: #b3261e; font-size: 12.5px; font-weight: 500; margin-top: 6px; }
.field:has(.err) input, .field:has(.err) select, .field:has(.err) textarea { border-color: #b3261e; background: #fff7f6; }
.alert-error { border-color: #b3261e; color: #8c1d18; background: #fff7f6; }
.checkout .btn[disabled] { opacity: .75; cursor: wait; }

/* ---------- Motion off for people who ask ---------- */
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    .reveal { transition: none; }
    .header-inner, .header .logo-emblem, .nav > ul > li > a { transition: none; }
}
