/* Obito Perfumes: page CSS on top of the taste-skill system (assets/system.css).
   Only what the kit has no class for: the catalogue (filters, tiles), the cart and detail dialogs,
   the language switch and the right-to-left page. Every size, colour and radius is a system token. */

/* ---------- Arabic: a face with Arabic letters, no negative tracking (it breaks the joins) ---------- */
html[lang="ar"] {
  --font-display: "Instrument Serif", "Noto Sans Arabic", Georgia, serif;
  --font-text: "Instrument Sans", "Noto Sans Arabic", system-ui, sans-serif;
  --display-tracking: 0; --display-tracking-xl: 0;
}
html[lang="ar"] :is(h1, h2, h3, .t-h1, .t-h2, .close__word, .footer__lede, .nav__logo) { letter-spacing: 0; }
html[lang="ar"] .close__word, .ltr { direction: ltr; }
bdi[dir="ltr"] { unicode-bidi: isolate; }

/* the kit draws left to right; mirror what points or sits on one side */
[dir="rtl"] :is(.m-arrow, .btn::after, .link::after) { transform: scaleX(-1); }
[dir="rtl"] .mo-pc__step { border-left: 0; border-right: 2px solid var(--line); padding-left: 0; padding-right: var(--s-5); }
[dir="rtl"] [data-moment="pinned-chapters"].is-live .mo-pc__step.is-on { border-right-color: var(--accent); }
@media (min-width: 640px) { [dir="rtl"] [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step { border-right: 0; padding-right: 0; } }
@media (min-width: 1024px) {
  [dir="rtl"] .nav--split .nav__links > .nav__item:nth-child(1 of .nav__item) > .nav__link { padding-left: var(--s-3); padding-right: 0; }
}

/* ---------- nav: the language switch and the cart beside the main button ---------- */
.lang { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); }
.lang button {
  height: 38px; min-width: 40px; padding: 0 var(--s-2); border: 0; border-radius: calc(var(--r-btn) - 2px);
  background: none; color: var(--muted); font: 500 var(--t-small)/1 var(--font-text); cursor: pointer;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang button[lang="ar"] { font-family: "Noto Sans Arabic", var(--font-text); }
.cart-link { display: inline-flex; align-items: center; gap: var(--s-2); height: 44px; border: 0; background: none; color: var(--ink); font: 500 15px/1 var(--font-text); cursor: pointer; }
.cart-link [data-icon] svg { width: 20px; height: 20px; display: block; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 500 var(--t-label)/1 var(--font-text); font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump 400ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }
@media (max-width: 1023px) {
  /* the cart stays in the bar beside the main button on a tablet and a phone */
  .nav:not(.is-open) .nav__actions > .cart-link { display: inline-flex; }
  .nav.is-open .nav__actions .lang { justify-self: center; }
  .nav.is-open .nav__actions .cart-link { justify-content: center; }
}
@media (max-width: 639px) {
  .logo-rest, .cart-word { display: none; }
  .cart-link { width: 44px; justify-content: center; position: relative; }
  .cart-count { position: absolute; top: 2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 11px; }
}

.hero__emphasis { color: var(--accent); display: block; }

/* ---------- shop ---------- */
main > section.shop { height: auto; min-height: 100svh; }
.shop__promo { font-size: var(--t-body); color: var(--ink); }
.shop__promo strong { font-weight: 500; color: var(--accent); }
.shop__count { margin-bottom: var(--s-5); }

.filters { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); }
.filters__top { display: grid; grid-template-columns: minmax(0, 1fr) 260px auto; gap: var(--s-4); align-items: end; }
.field :is(input, select, textarea) {
  width: 100%; height: 48px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.4 var(--font-text);
}
.field textarea { height: auto; min-height: 88px; padding-block: var(--s-3); resize: vertical; }
.field :is(input, select, textarea):focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.filters__search input { padding-inline-start: 44px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5e62' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px 50% / 18px; }
[dir="rtl"] .filters__search input { background-position: calc(100% - 14px) 50%; }

.switch { display: inline-flex; align-items: center; gap: var(--s-3); height: 48px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line-strong); transition: background var(--dur) var(--ease); }
.switch__ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); transition: transform var(--dur) var(--ease); }
.switch input:checked + .switch__ui { background: var(--action); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
[dir="rtl"] .switch input:checked + .switch__ui::after { transform: translateX(-16px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--action); outline-offset: 2px; }

.filters__row { row-gap: var(--s-5); }
.filters__row > .filter-group { grid-column: 1 / -1; }
@media (min-width: 1280px) {
  .filters__row > .filter-group--gender { grid-column: 1 / span 5; }
  .filters__row > .filter-group--when { grid-column: 6 / -1; }
}
.filter-group { display: grid; gap: var(--s-3); align-content: start; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.chips__sep { width: 1px; height: 24px; margin-inline: var(--s-2); background: var(--line-strong); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2); height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--ink);
  font: 500 var(--t-small)/1 var(--font-text); cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { border-color: color-mix(in oklab, var(--ink) 40%, transparent); }
.chip[aria-pressed="true"] { background: color-mix(in oklab, var(--accent) 10%, var(--bg)); border-color: var(--accent); color: var(--accent); }
.chip [data-icon] svg { width: 16px; height: 16px; display: block; }

/* houses: logo tiles in rows that wrap, never a row that scrolls sideways */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: var(--s-2); }
.brand-tile {
  position: relative; display: grid; place-items: center; height: 56px; padding: var(--s-2) var(--s-6) var(--s-2) var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
[dir="rtl"] .brand-tile { padding: var(--s-2) var(--s-4) var(--s-2) var(--s-6); }
.brand-tile:hover { border-color: var(--line-strong); }
.brand-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in oklab, var(--accent) 6%, var(--bg)); }
.brand-tile img { display: block; max-width: 100%; max-height: 22px; width: auto; height: auto; }
.brand-tile img.is-tall { max-height: 36px; }
.brand-tile .brand-name { font: 500 var(--t-small)/1.2 var(--font-text); text-align: center; }
.brand-tile .brand-count { position: absolute; top: 6px; inset-inline-end: 8px; font: 500 var(--t-label)/1 var(--font-text); color: var(--muted); font-variant-numeric: tabular-nums; }
.brands__more { justify-self: start; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 var(--t-body)/1 var(--font-text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; cursor: pointer; }
.brands__more:hover { text-decoration-color: currentColor; }
.brands__more[hidden] { display: none; }
.brands.is-collapsed > :nth-child(n + 7) { display: none; }

/* the catalogue on the 12-column lines: four tiles a row at 1440 (span 3), three from 1024, two below */
.shop__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); }
@media (max-width: 1279px) { .shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); } }

.product { display: grid; grid-template-rows: auto 1fr; gap: 0; align-content: start; background: var(--bg); }
.product__info { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--s-3); padding: var(--s-5) var(--s-4); border-bottom: 1px solid var(--line-strong); }
.product .tile__media { --tile-ratio: 4 / 5; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; }
.product .tile__media > img { display: block; }
@media (hover: hover) and (pointer: fine) { .product .tile__media:hover > img { transform: scale(1.03); } }
.product.is-out .tile__media > img { filter: grayscale(.85); opacity: .7; }
.product__badges { position: absolute; top: var(--s-3); inset-inline-start: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-1); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s-2); border-radius: 999px; background: var(--bg); color: var(--ink); font: 500 var(--t-label)/1 var(--font-text); }
.badge--sale { background: var(--action); color: var(--action-ink); }
.badge--out { background: var(--ink); color: var(--bg); }
.product__brand { font: 500 var(--t-label)/1.3 var(--font-text); color: var(--muted); }
.product .tile__head { flex-direction: column; align-items: flex-start; gap: var(--s-1); }
.product .tile__head h3 { font-family: var(--font-display); font-size: calc(var(--t-card) * 1.25); line-height: 1.15; letter-spacing: 0; font-weight: 400; }
.product .tile__facts { margin-top: 0; }
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-2); }
.price__now { font-weight: 600; color: var(--accent); }
.price__was { font-size: var(--t-small); color: var(--muted); text-decoration: line-through; }
.wear { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.wear > span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--surface); color: var(--c, var(--ink)); }
.wear svg { width: 15px; height: 15px; display: block; }
.product .btn-row { gap: var(--s-2) var(--s-4); align-self: end; margin-top: var(--s-2); }
.product .btn-row .btn--primary { padding-inline: var(--s-4); }
.product .btn-row .btn--secondary { padding-inline: 0; }
@media (max-width: 639px) {
  .filters__top { grid-template-columns: 1fr; }
  .shop__grid { gap: var(--s-6) var(--gutter); }
  .product .tile__head { flex-direction: column; gap: var(--s-1); }
  .price { align-items: flex-start; }
  .product .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
  .product .btn-row .btn { width: 100%; font-size: var(--t-small); }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 1023px) { .filters__top { grid-template-columns: 1fr 1fr; } .filters__search { grid-column: 1 / -1; } }
.shop__empty { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-8) 0; }

/* ---------- how an order works (the dark band): the paired photographs crop to their bottles ---------- */
#how .mo-pc__visual > img { object-position: 50% 35%; }
#how .mo-pc__visuals { border-radius: var(--r-lg); overflow: hidden; }

/* ---------- questions ---------- */
.faq__aside .link { margin-top: var(--s-2); }
.faq__item { scroll-margin-top: calc(var(--nav) + var(--s-5)); }

/* ---------- footer ---------- */
.footer__btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footer__btn:hover { color: var(--action); }
@media (max-width: 639px) { .footer__btn { min-height: 44px; } }
.footer__tm { color: var(--muted); font-size: var(--t-label); }

/* ---------- dialogs: the cart (a sheet at the side) and a perfume's details ---------- */
html:has(dialog[open]) { overflow: hidden; }
dialog.sheet { padding: 0; border: 0; background: var(--bg); color: var(--ink); max-width: none; max-height: none; }
dialog.sheet::backdrop { background: rgb(28 29 31 / .5); }
dialog.sheet[open] { animation: sheet-in 260ms var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } }
.sheet--cart { margin: 0 0 0 auto; width: min(460px, 100vw); height: 100dvh; }
[dir="rtl"] .sheet--cart { margin: 0 auto 0 0; }
.sheet--cart[open] { animation-name: drawer-in; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.sheet__in { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-size: var(--t-h3); }
.sheet__head h2 small { font: 400 var(--t-body)/1 var(--font-text); color: var(--muted); }
.sheet__body { overflow-y: auto; padding: var(--s-5); display: grid; gap: var(--s-6); align-content: start; }
.sheet__foot { padding: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-3); }
.sheet__send { width: 100%; height: 48px; }
.sheet__send [data-icon] svg { width: 18px; height: 18px; display: block; }
.sheet__row { display: flex; justify-content: space-between; gap: var(--s-4); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--bg); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: color-mix(in oklab, var(--bg) 94%, var(--ink)); }
.icon-btn svg { width: 18px; height: 18px; display: block; }
.text-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 var(--t-small)/1.2 var(--font-text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; cursor: pointer; }
.text-btn:hover { text-decoration-color: currentColor; }

.cart-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--r-sm); }
.cart-item__brand { font: 500 var(--t-label)/1.3 var(--font-text); color: var(--muted); }
.cart-item__name { font-weight: 500; }
.cart-item__size { font-size: var(--t-small); color: var(--muted); margin-bottom: var(--s-2); }
.cart-item__side { display: grid; justify-items: end; align-content: space-between; gap: var(--s-2); }
.cart-item__price { font-weight: 500; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-btn); }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.stepper button:hover { background: color-mix(in oklab, var(--bg) 92%, var(--ink)); }
.stepper svg { width: 16px; height: 16px; display: block; }
.stepper output { min-width: 28px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.cart-empty { display: none; gap: var(--s-3); justify-items: start; }
.sheet--cart.is-empty .cart-empty { display: grid; }
.sheet--cart.is-empty :is(.order-form, .sheet__foot) { display: none; }
.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.order-form__title { grid-column: 1 / -1; font-weight: 500; }
.order-form .field label { font-size: var(--t-small); font-weight: 500; }
.totals { margin: 0; display: grid; gap: var(--s-2); }
.totals > div { display: flex; justify-content: space-between; gap: var(--s-4); }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 500; font-size: var(--t-lead); }
#savingsRow dd { color: var(--accent); font-size: var(--t-body); }

.sheet--detail { margin: auto; width: min(1040px, calc(100vw - 2 * var(--gut))); max-height: min(860px, calc(100dvh - 48px)); border-radius: var(--r-lg); overflow: hidden; }
.detail { position: relative; display: grid; grid-template-columns: 5fr 6fr; max-height: inherit; }
.detail__media { position: relative; background: var(--surface); }
.detail__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail__close { position: absolute; top: var(--s-4); inset-inline-end: var(--s-4); z-index: 2; }
.detail__info { overflow-y: auto; max-height: min(860px, calc(100dvh - 48px)); padding: var(--s-7) var(--s-7) var(--s-6); display: grid; gap: var(--s-5); align-content: start; }
.detail__brand { font: 500 var(--t-small)/1.3 var(--font-text); color: var(--muted); }
.detail__info h2 { font-size: var(--t-h3); line-height: 1.15; margin-top: calc(-1 * var(--s-4)); padding-inline-end: var(--s-8); }
.detail__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.detail__tags > span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--s-3); border-radius: 999px; background: var(--surface); font: 500 var(--t-label)/1 var(--font-text); }
.detail__tags svg { width: 14px; height: 14px; }
.detail__desc { max-width: 60ch; }
.detail .price { flex-direction: row; align-items: baseline; gap: var(--s-3); font-size: var(--t-lead); }
.detail__buy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.detail__buy .btn--secondary { padding-inline: var(--s-2); }
.detail__part { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.detail__part h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: 0; }
.notes-tier { display: grid; gap: var(--s-2); }
.notes-tier h4 { font: 500 var(--t-label)/1.3 var(--font-text); color: var(--muted); }
.note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.note { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-block: 0; padding-inline: 6px var(--s-3); border-radius: 999px; background: var(--surface); font-size: var(--t-small); }
.note__ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--c); }
.note__ico svg { width: 14px; height: 14px; display: block; }
.accords { display: grid; gap: var(--s-2); }
.accord { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: var(--s-3); font-size: var(--t-small); }
.accord > span { display: inline-flex; align-items: center; gap: 6px; }
.accord > span svg { width: 15px; height: 15px; color: var(--c); }
.accord > i { display: block; height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.accord > i::before { content: ""; display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--c); }
.wear-grid { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-5); align-items: center; }
.wear-grid h4 { font: 500 var(--t-small)/1.3 var(--font-text); color: var(--muted); }
.wear-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.wear-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--s-3); border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: var(--t-small); }
.wear-pill svg { width: 15px; height: 15px; }
.wear-pill.on { border: 1px solid transparent; background: var(--surface); color: var(--ink); font-weight: 500; }
.wear-pill.on svg { color: var(--c); }
.wear-pill:not(.on) { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.detail__source { font-size: var(--t-small); color: var(--muted); }
.detail__source a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@media (max-width: 767px) {
  .sheet--detail { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .detail { grid-template-columns: 1fr; overflow-y: auto; max-height: 100dvh; height: 100%; }
  .detail__media { aspect-ratio: 4 / 3; }
  .detail__media img { object-position: 50% 35%; }
  .detail__info { overflow: visible; max-height: none; padding: var(--s-6) var(--gut) var(--s-7); }
  .accord { grid-template-columns: 128px minmax(0, 1fr); }
  .order-form { grid-template-columns: 1fr; }
}

/* ---------- the toast after adding to the cart ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); transform: translate(-50%, 12px);
  display: flex; align-items: center; gap: var(--s-3); width: max-content; max-width: calc(100vw - 2 * var(--gut));
  padding: var(--s-2); border-radius: var(--r-md); background: var(--p-inv-bg); color: var(--p-inv-ink);
  opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s 200ms;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.toast img { width: 40px; height: 50px; object-fit: cover; border-radius: var(--r-sm); }
.toast button { height: 40px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-btn); background: var(--p-inv-ink); color: var(--p-inv-bg); font: 500 var(--t-small)/1 var(--font-text); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open], .cart-count.bump { animation: none; } .toast { transition: none; } }
.nav__logo .logo-rest { margin-inline-start: -2px; }
.filter-group__head { display: flex; align-items: center; gap: var(--s-4); min-height: 24px; }
.filter-group__head .text-btn { min-height: 24px; font-size: var(--t-label); }
.filter-group__head .text-btn[hidden] { display: none; }

/* Obito's own mark: the ring of the O with a perfume drop inside */
.mark[data-mark="drop"] { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.5a10.5 10.5 0 1 1 0 21 10.5 10.5 0 0 1 0-21zm0 2.6a7.9 7.9 0 1 0 0 15.8 7.9 7.9 0 0 0 0-15.8z'/%3E%3Cpath d='M12 6.6c-1.9 2.4-3.6 4.6-3.6 6.7a3.6 3.6 0 0 0 7.2 0c0-2.1-1.7-4.3-3.6-6.7z'/%3E%3C/svg%3E"); }


/* ---------- the catalogue's tiles: the photograph on a warm panel ---------- */
.product .tile__media { background: var(--surface); border-radius: var(--r-sm) var(--r-sm) 0 0; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .product .tile__media { transition: box-shadow var(--dur) var(--ease); }
  .product .tile__media:hover { box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 45%, transparent), 0 18px 40px -24px color-mix(in oklab, var(--accent) 60%, transparent); }
}
/* a photograph that only exists small sits at its own size in the middle of the panel */
.product .tile__media > img.is-small { inset: auto; top: 50%; left: 50%; width: min(var(--nw), 100%); height: auto; max-height: 100%; transform: translate(-50%, -50%); border-radius: var(--r-sm); }
@media (hover: hover) and (pointer: fine) { .product .tile__media:hover > img.is-small { transform: translate(-50%, -50%) scale(1.02); } }
.product .tile__media > img.is-small { position: absolute; object-fit: contain; }
.product .tile__media { position: relative; aspect-ratio: 4 / 5; }

/* the last tile: a perfume that is not on the list */
.product--ask .ask {
  display: grid; align-content: center; justify-items: start; gap: var(--s-3); aspect-ratio: 4 / 5; padding: var(--s-6);
  border-radius: var(--r-md); background: var(--p-inv-bg); color: var(--p-inv-ink);
}
.product--ask .ask .mark { width: 40px; height: 40px; background: var(--accent); }
.product--ask .ask h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h3); line-height: 1.1; letter-spacing: 0; color: var(--p-inv-ink); }
.product--ask .ask p { color: var(--p-inv-muted); }
.product--ask .ask .btn--secondary { color: var(--p-inv-ink); padding-inline: 0; }
@media (max-width: 639px) { .product--ask .ask { padding: var(--s-4); } .product--ask .ask h3 { font-size: var(--t-card); } }

/* ---------- the scent of the week ---------- */
.feature__media .tile__media { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--nav) - 2 * var(--s-8)); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); cursor: pointer; }
.feature__media .tile__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform var(--dur-slow, 600ms) var(--ease); }
@media (hover: hover) and (pointer: fine) { .feature__media .tile__media:hover > img { transform: scale(1.03); } }
.feature__text { display: grid; gap: var(--s-6); align-content: center; align-self: stretch; }
.feature__text h2 .muted { display: block; color: var(--accent); }
.feature__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); padding-block: var(--s-5); border-block: 1px solid var(--line); }
.feature__tier h3 { font: 500 var(--t-small)/1.3 var(--font-text); color: var(--muted); letter-spacing: 0; margin-bottom: var(--s-2); }
.feature__tier p { font-family: var(--font-display); font-size: var(--t-card); line-height: 1.3; }
.feature__buy { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-5); }
.feature__buy .price { font-size: var(--t-h3); font-family: var(--font-display); }
.feature__buy .price__now { font-weight: 400; }
.feature__buy .price__was { font-family: var(--font-text); }
.feature .btn-row { align-items: center; gap: var(--s-2) var(--s-5); }
.feature__more { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
@media (max-width: 1023px) {
  .feature__media .tile__media { aspect-ratio: 4 / 3; max-height: none; }
  .feature__notes { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* ---------- questions: a photograph under the heading ---------- */
.faq__photo { margin-top: var(--s-6); aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; }
.faq__photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 1023px) { .faq__photo { aspect-ratio: 16 / 10; } }

.product .tile__media:has(> img.is-small)::before {
  content: ""; position: absolute; inset: -24px; background: var(--small-bg) center / cover no-repeat;
  filter: blur(22px) saturate(1.15); opacity: .55;
}
.product .tile__media > img.is-small { z-index: 1; box-shadow: 0 14px 30px -18px rgb(20 16 18 / .55); }

/* The same Obito palette carries controls, product details and the closing page. */
::selection { background: var(--p-accent); color: var(--p-accent-ink); }
html { scrollbar-color: var(--p-muted) var(--p-bg); }
input, textarea { caret-color: var(--p-accent); }
.nav { border-top: 0; }
.nav__logo { white-space: nowrap; }
.lang { border: 0; padding: 0; gap: 0; }
.lang button { height: 44px; min-width: 38px; border-radius: var(--r-sm); }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--accent); }
.cart-count { background: var(--accent); color: var(--accent-ink); }
.filters { padding-block: var(--s-5); border-block: 1px solid var(--line-strong); }
.filter-group__head { justify-content: space-between; }
.brand-tile { background: transparent; }
.brand-tile:hover { background: var(--surface); }
.shop .section-head { max-width: 900px; }
.shop h2 > .muted { display: block; font: 400 var(--t-lead)/1.5 var(--font-text); margin-top: var(--s-4); color: var(--muted); }
.product .tile__head h3 { min-height: 2.3em; }
.product .tile__facts { min-height: 3em; }
.product .wear { align-self: start; }
.product .tile__media:hover { box-shadow: none; }
.feature__grid { align-items: start; }
.feature__text { align-content: start; }
.feature__text .section-head { margin-bottom: 0; }
.feature__notes { gap: var(--s-4); }
.feature__media .tile__media, #how .mo-pc__visuals, .faq__photo { border-radius: var(--r-sm); }
.feature .btn-row .btn--secondary:first-child { color: var(--accent); }
#how { --bg: var(--p-accent); --surface: #963d14; --ink: var(--p-bg); --muted: #f2d2bf; --accent: var(--p-bg); --action: var(--p-bg); --line: rgb(245 240 234 / .3); background: var(--bg); color: var(--ink); }
#how .mo-pc__step p { color: var(--ink); }
.footer .close__word { color: var(--p-accent); }
.sheet__head { border-top: 3px solid var(--accent); }
.sheet__head h2 { font-family: var(--font-display); }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__actions > .btn { display: none; }
}
@media (max-width: 1023px) {
  .feature__text { order: -1; }
  .feature__notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature__media .tile__media { max-height: 45svh; }
}
@media (max-width: 639px) {
  .product__info { padding: var(--s-4) var(--s-2); gap: var(--s-2); }
  .product .tile__head h3 { font-size: var(--t-card); }
  .product .tile__facts { font-size: var(--t-small); }
  .feature__notes { gap: var(--s-3); }
  .feature__tier p { font-size: var(--t-body); }
  .feature__media .tile__media { max-height: none; }
}

/* A spacious, three-part masthead. The shopping action stays with the products. */
:root { --nav: 88px; }
header.nav { background: var(--p-bg); }
.nav__bar { gap: var(--s-6); }
header .nav__logo { gap: var(--s-3); }
header .nav__logo .mark { width: 30px; height: 30px; }
.logo-type { display: grid; gap: 3px; font: 400 38px/.9 var(--font-display); letter-spacing: -.025em; }
header .nav__logo .logo-rest { display: block; margin: 0; font: 500 11px/1.2 var(--font-text); letter-spacing: .12em; }
.nav__links { gap: var(--s-3); }
.nav__link { font-size: 14px; }
.nav__actions { gap: var(--s-5); }
.lang button { color: var(--muted); min-width: 36px; border-radius: 0; }
.lang button[aria-pressed="true"] { background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.cart-link { border-inline-start: 1px solid var(--line-strong); padding-inline-start: var(--s-5); gap: var(--s-2); }
.cart-count { background: transparent; color: var(--accent); font-size: var(--t-small); min-width: 16px; padding: 0; }
.hero__emphasis { display: block; }
@media (min-width: 1024px) {
  .nav.nav--centre .nav__logo { font-size: inherit; }
}
@media (max-width: 1023px) {
  :root { --nav: 80px; }
  .nav .nav__bar { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; gap: var(--s-3); }
  .nav .nav__logo { grid-column: 1; }
  .nav .nav__actions { grid-column: 2; }
  .nav:not(.is-open) .nav__actions { margin: 0; width: 44px; justify-content: center; }
  .nav .nav__toggle { grid-column: 3; margin: 0; }
  .nav:not(.is-open) .nav__actions > .cart-link { padding-inline-start: var(--s-4); }
  .nav.is-open .nav__actions .cart-link { border: 0; padding-inline-start: 0; }
}
@media (max-width: 639px) {
  :root { --nav: 72px; }
  .logo-type { font-size: 30px; }
  header .nav__logo .mark { width: 25px; height: 25px; }
  header .nav__logo .logo-rest { font-size: 10px; }
  .cart-count { top: -2px; inset-inline-end: -4px; background: var(--accent); color: var(--accent-ink); font-size: 11px; }
  .cart-link { border: 0; padding: 0 !important; }
}
