/* ==========================================================================
   SMOVF FRAGRANCE — COMPONENTS
   Buttons, badges, cards, media, forms.
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--black);
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 48px;                 /* comfortable tap target on mobile */
  padding: 0.85rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);     /* medium rounded corners */
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-button);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- Primary: SMOVF gold ----------------------------------------- */
.btn--primary {
  --btn-bg: var(--smovf-gold);
  --btn-fg: var(--text-on-gold);
  --btn-border: var(--smovf-gold);
}

.btn--primary:hover {
  --btn-bg: var(--smovf-gold-hover);
  --btn-border: var(--smovf-gold-hover);
}

/* ---------- Secondary: outlined ----------------------------------------- */
.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--black);
  --btn-border: var(--black);
}

.btn--secondary:hover {
  --btn-bg: var(--black);
  --btn-fg: var(--white);
}

/* On dark backgrounds the outline inverts, then fills with gold.
   Every dark surface on the site must be listed here — a black button on a
   black background is invisible, and that is exactly what happened when the
   hero and the CTA banner were missing from this list. */
.section--dark .btn--secondary,
.section--charcoal .btn--secondary,
.page-hero--dark .btn--secondary,
.hero .btn--secondary,
.cta-banner .btn--secondary,
.on-dark .btn--secondary {
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.5);
}

.section--dark .btn--secondary:hover,
.section--charcoal .btn--secondary:hover,
.page-hero--dark .btn--secondary:hover,
.hero .btn--secondary:hover,
.cta-banner .btn--secondary:hover,
.on-dark .btn--secondary:hover {
  --btn-bg: var(--smovf-gold);
  --btn-fg: var(--black);
  --btn-border: var(--smovf-gold);
}

/* ---------- Dark CTA: black with gold hover ------------------------------ */
.btn--dark {
  --btn-bg: var(--black);
  --btn-fg: var(--white);
  --btn-border: var(--black);
}

.btn--dark:hover {
  --btn-bg: var(--smovf-gold);
  --btn-fg: var(--black);
  --btn-border: var(--smovf-gold);
}

/* ---------- Sizes -------------------------------------------------------- */
.btn--lg { min-height: 56px; padding: 1.05rem 2.25rem; font-size: var(--fs-label); }
.btn--sm { min-height: 40px; padding: 0.6rem 1.1rem; font-size: 0.6875rem; }
/* A full-width button has room to wrap, so a long label is never clipped. */
.btn--block { width: 100%; white-space: normal; }

.btn[disabled],
.btn[aria-disabled="true"] {
  --btn-bg: var(--grey-light);
  --btn-fg: var(--text-muted);
  --btn-border: var(--grey-light);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Text link with gold arrow ----------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  color: var(--text-heading);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--smovf-gold);
}

.link-arrow svg {
  width: 15px; height: 15px;
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover { color: var(--accent-text); }
.link-arrow:hover svg { transform: translateX(4px); }

.section--dark .link-arrow,
.section--charcoal .link-arrow,
.page-hero--dark .link-arrow,
.hero .link-arrow,
.cta-banner .link-arrow,
.on-dark .link-arrow { color: var(--white); }

.section--dark .link-arrow:hover,
.section--charcoal .link-arrow:hover,
.page-hero--dark .link-arrow:hover,
.hero .link-arrow:hover,
.cta-banner .link-arrow:hover,
.on-dark .link-arrow:hover { color: var(--smovf-gold); }

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.6rem;
  background: var(--smovf-gold);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

/* Quieter variants so a grid never turns into a wall of gold */
.badge--outline {
  background: transparent;
  border: 1px solid var(--black);
  color: var(--black);
}

.badge--dark { background: var(--black); color: var(--white); }
.badge--muted { background: var(--grey-light); color: var(--charcoal); }

/* ==========================================================================
   MEDIA
   Fixed aspect ratios keep imagery consistent across every page.
   ========================================================================== */

.media {
  position: relative;
  overflow: hidden;
  background: var(--neutral);
  border-radius: var(--radius-lg);
}

/* A responsive image is wrapped in <picture> so a WebP <source> can sit beside
   it, which puts the <img> one level deeper. `display: contents` lets the img
   keep laying out as if it were the direct child it used to be — but the
   selector still has to name both shapes, because `display: contents` changes
   layout, not matching. */
.media > picture { display: contents; }

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.media--square   { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--product  { aspect-ratio: 4 / 5; }
.media--landscape{ aspect-ratio: 3 / 2; }
.media--wide     { aspect-ratio: 16 / 9; }
.media--flat     { border-radius: 0; }

/* ==========================================================================
   PRODUCT CARD
   Clean and visual. Image, name, category, price, short scent note, actions.
   ========================================================================== */

.product-card {
  position: relative; /* containing block for the wishlist button */
  display: flex;
  flex-direction: column;
  /* Card actions size themselves against the card, not the viewport — a card
     is ~270px wide in a four-column grid whatever the screen is doing. */
  container-type: inline-size;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.product-card:hover {
  border-color: var(--smovf-gold-line);
  box-shadow: var(--shadow);
}

.product-card:hover .media > img,
.product-card:hover .media > picture > img { transform: scale(1.04); }

.product-card__media {
  position: relative;
  display: block;
  background: var(--neutral);
}

.product-card__badges {
  position: absolute;
  top: var(--space-2xs);
  left: var(--space-2xs);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 1;
}

/* Wishlist toggle sits opposite the badges */
.product-card__wish {
  position: absolute;
  top: var(--space-2xs);
  right: var(--space-2xs);
  z-index: 1;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--charcoal);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.product-card__wish:hover,
.product-card__wish[aria-pressed="true"] {
  color: var(--smovf-gold-deep);
  border-color: var(--smovf-gold);
}

.product-card__wish[aria-pressed="true"] svg { fill: var(--smovf-gold); }
.product-card__wish svg { width: 17px; height: 17px; fill: none; }

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-3xs);
  padding: var(--space-md);
}

.product-card__category {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-card__name {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.2;
}

.product-card__name a:hover { color: var(--accent-text); }

/* Optional short scent description — kept to one or two lines */
.product-card__scent {
  margin: var(--space-3xs) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  margin-top: var(--space-xs);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
  color: var(--text-heading);
}

.product-card__price del {
  margin-left: var(--space-2xs);
  color: var(--text-muted);
  font-weight: var(--fw-regular);
  font-size: var(--fs-sm);
}

.product-card__actions {
  display: grid;
  gap: var(--space-2xs);
  margin-top: auto;
  padding-top: var(--space-md);
}

/* Side by side only once the card is genuinely wide enough for both labels.
   Below this they stack full-width, which also gives a bigger tap target. */
@container (min-width: 340px) {
  .product-card__actions { grid-template-columns: 1fr auto; }
}

/* ==========================================================================
   FEATURE / SOLUTION CARD  (B2B)
   ========================================================================== */

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.feature-card:hover { border-color: var(--smovf-gold-line); transform: translateY(-3px); }

.section--alt .feature-card { background: var(--white); }

.section--dark .feature-card,
.section--charcoal .feature-card {
  background: transparent;
  border-color: var(--border-on-dark);
}

.section--dark .feature-card:hover { border-color: var(--smovf-gold); }

/* Icon tile — gold on a soft gold tint */
.feature-card__icon,
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: var(--space-md);
  background: var(--smovf-gold-tint);
  border-radius: var(--radius);
  color: var(--smovf-gold-deep);
  flex: none;
}

.section--dark .icon-tile,
.section--dark .feature-card__icon,
.section--charcoal .icon-tile { color: var(--smovf-gold); }

.icon-tile svg,
.feature-card__icon svg { width: 24px; height: 24px; }

.feature-card h3 { font-size: var(--fs-h3); margin-bottom: var(--space-2xs); }

.feature-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.feature-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* Numbered process step. Same rule as .stat-value: readable gold on light,
   full brand gold on dark. */
.step__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent-text);
  display: block;
  margin-bottom: var(--space-xs);
}

.section--dark .step__number,
.section--charcoal .step__number,
.page-hero--dark .step__number,
.on-dark .step__number { color: var(--smovf-gold); }

/* ==========================================================================
   FORMS
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: var(--space-3xs); }
.field--full { grid-column: 1 / -1; }

.field > label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.field .req { color: var(--smovf-gold-deep); }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem var(--space-sm);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: var(--fs-body);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.textarea { min-height: 140px; padding-top: var(--space-xs); resize: vertical; }

.input::placeholder, .textarea::placeholder { color: var(--text-placeholder); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--smovf-gold);
  box-shadow: 0 0 0 3px var(--smovf-gold-tint);
}

.select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-sm) center;
  background-size: 12px;
  cursor: pointer;
}

.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--grey-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-grid { display: grid; gap: var(--space-md); }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox input {
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--smovf-gold);
  flex: none;
}

.form-note { font-size: var(--fs-xs); color: var(--text-muted); }

/* Form feedback message */
.form-status {
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--smovf-gold);
  background: var(--smovf-gold-tint);
  color: var(--charcoal);
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
}

.form-status[hidden] { display: none; }

/* Failed submissions keep the same block, recoloured — the message stays where
   the reader already looked for the success one. */
.form-status.is-error {
  border-left-color: var(--error-text);
  background: var(--error-tint);
  color: var(--error-text);
}

/* Honeypot. Off-screen rather than display:none, because some bots skip fields
   they can tell are hidden. aria-hidden + tabindex keep it away from people. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   FILTERS / PILLS  (shop)
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  min-height: 40px;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: var(--charcoal);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}

.pill:hover { border-color: var(--black); color: var(--black); }

/* Selected filter — brand gold */
.pill[aria-pressed="true"] {
  background: var(--smovf-gold);
  border-color: var(--smovf-gold);
  color: var(--black);
}

.filter-row {
  display: flex;
  gap: var(--space-2xs);
  overflow-x: auto;
  padding-bottom: var(--space-2xs);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-row::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .filter-row { flex-wrap: wrap; overflow: visible; }
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3xs);
  list-style: none;
  margin: 0;
  padding: var(--space-md) 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: var(--space-3xs); }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb [aria-current="page"] { color: var(--text-heading); }

/* ==========================================================================
   ACCORDION
   ========================================================================== */

.accordion { border-top: 1px solid var(--border); }

.accordion details { border-bottom: 1px solid var(--border); }

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  min-height: 56px;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "";
  width: 12px; height: 12px;
  flex: none;
  border-right: 2px solid var(--smovf-gold-deep);
  border-bottom: 2px solid var(--smovf-gold-deep);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}

.accordion details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.accordion .accordion__panel { padding: 0 0 var(--space-md); color: var(--text-muted); }

/* ==========================================================================
   TABLE  (specification lists)
   ========================================================================== */

.spec-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 0;
  font-size: var(--fs-sm);
}

.spec-list dt,
.spec-list dd {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.spec-list dt { color: var(--text-muted); padding-right: var(--space-md); }
.spec-list dd { color: var(--text-heading); font-weight: var(--fw-medium); }

/* Two columns do not fit a long value on a small handset — stack instead. */
@media (max-width: 479px) {
  .spec-list { grid-template-columns: 1fr; }
  .spec-list dt { padding-bottom: 0; border-bottom: 0; }
  .spec-list dd { padding-top: var(--space-3xs); }
}

/* ==========================================================================
   QUANTITY STEPPER
   ========================================================================== */

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.qty button {
  width: 46px; height: 48px;
  background: none;
  border: 0;
  color: var(--text-heading);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.qty button:hover { background: var(--neutral); color: var(--accent-text); }

.qty input {
  width: 52px;
  height: 48px;
  border: 0;
  border-inline: 1px solid var(--border);
  text-align: center;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ==========================================================================
   TOAST
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-md);
  z-index: var(--z-toast);
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  max-width: min(420px, calc(100vw - 2rem));
  padding: var(--space-xs) var(--space-md);
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  transition: transform var(--dur-slow) var(--ease);
}

.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--smovf-gold); flex: none; }

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

/* On the narrowest phones a long label cannot fit on one line, and
   `white-space: nowrap` above turns that into a page that scrolls sideways.
   Wrapping is the lesser evil at this width — an awkward two-line button is
   still readable and still tappable, which a button running off the screen
   is not. Above 400px the labels fit and nowrap keeps them tidy. */
@media (max-width: 400px) {
  .btn {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    padding-inline: var(--space-md);
  }
}

.empty {
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.empty h3 { margin-bottom: var(--space-2xs); }

/* ==========================================================================
   SHARE ROW

   Icon-only buttons, sized to the 44px minimum touch target rather than to
   the 18px glyph inside them. Each carries a title as well as an aria-label,
   so the meaning is available to a pointer as well as to a screen reader —
   an unlabelled row of outlines is a guessing game otherwise.
   ========================================================================== */

.share__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: var(--space-2xs);
}

.share__row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }

.share__btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.share__btn:hover {
  border-color: var(--smovf-gold);
  background: var(--smovf-gold-tint);
  color: var(--black);
}

.share__btn svg { width: 18px; height: 18px; }

/* A qualifying line under a price — the deposit, what the term includes.
   Smaller and quieter than body copy, because it modifies the number above it
   rather than competing with it, but still at a size somebody has to be able
   to read before they commit to twelve months. */
.footnote {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 46ch;
}

/* ==========================================================================
   CLIENT WALL

   One image carrying many logos. It scrolls inside its own box rather than
   shrinking to fit: a wall of seventy marks squeezed into a phone's width is
   a grey smudge, and a smudge proves nothing. Given room to stay legible and
   a nudge to swipe, it stays the thing it is — evidence you can read a name
   off.
   ========================================================================== */

.client-wall {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2xs);
}

.client-wall img {
  display: block;
  /* Never below the width at which the smallest mark is still readable. */
  min-width: 720px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* The scrollable region is reachable by keyboard, so it needs a focus ring
   like anything else that takes focus. */
.client-wall:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
