/* A-dam — Style System */

:root {
  --color-midcurrent-navy: #000e1f;
  --color-deep-cobalt: #0000c5;
  --color-twilight-slate: #1a2635;
  --color-graphite: #000000;
  --color-paper-white: #ffffff;
  --color-morning-mist: #f4f4f4;
  --color-cloud-veil: #e6e7e9;
  --color-soft-stone: #dcdddf;
  --color-slate-gray: #666e79;
  --color-sunbeam: #fff48d;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-brand: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-arabic: "Thmanyah Sans", "Inter", ui-sans-serif, system-ui, sans-serif;

  --text-caption: 11px;
  --leading-caption: 1.4;
  --text-body: 16px;
  --leading-body: 1.4;
  --text-subheading: 20px;
  --leading-subheading: 1.2;
  --text-heading-sm: 26px;
  --leading-heading-sm: 1.2;
  --text-heading: 30px;
  --leading-heading: 1.1;
  --text-heading-lg: 44px;
  --leading-heading-lg: 1.1;
  --text-display: 70px;
  --leading-display: 1;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  --spacing-4: 4px;
  --spacing-6: 6px;
  --spacing-8: 8px;
  --spacing-10: 10px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-72: 72px;

  --page-max-width: 1200px;
  --card-padding: 16px;
  --element-gap: 10px;

  --radius-pill: 30px;
  --radius-none: 0;

  --surface-page: var(--color-morning-mist);
  --surface-card: var(--color-paper-white);
  --surface-brand: var(--color-midcurrent-navy);
  --surface-accent: var(--color-deep-cobalt);
  --surface-muted: #f5f5f5;
  --surface-footer: var(--color-paper-white);
  --color-footer-text: var(--color-graphite);
  --color-footer-muted: var(--color-slate-gray);
}

/* Thrifting Global–inspired cream / olive / charcoal theme */
html[data-theme="parchment"] {
  --color-midcurrent-navy: #1c1c1c;
  --color-deep-cobalt: #5a6b4a;
  --color-twilight-slate: #3f4a36;
  --color-graphite: #1c1c1c;
  --color-paper-white: #fbf8f2;
  --color-morning-mist: #f3efe6;
  --color-cloud-veil: #e4dfd4;
  --color-soft-stone: #d6d0c4;
  --color-slate-gray: #6b6660;
  --color-sunbeam: #c4b48a;
  --surface-page: #f3efe6;
  --surface-card: #fbf8f2;
  --surface-brand: #1c1c1c;
  --surface-accent: #5a6b4a;
  --surface-muted: #ebe6db;
  --surface-footer: #161616;
  --color-footer-text: #f5f1ea;
  --color-footer-muted: #a8a39a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-brand);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-midcurrent-navy);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] {
  direction: rtl;
  --font-brand: var(--font-arabic);
  --font-weight-regular: 300;
  --font-weight-medium: 300;
  --font-weight-semibold: 300;
  --font-weight-bold: 300;
  --font-weight-black: 300;
}

html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] a,
html[lang="ar"] p,
html[lang="ar"] span,
html[lang="ar"] label,
html[lang="ar"] li {
  font-family: var(--font-arabic);
  font-weight: 300;
}

/* Keep top + bottom nav layout LTR in Arabic */
html[lang="ar"] .site-header,
html[lang="ar"] .site-header .nav,
html[lang="ar"] .bottom-nav {
  direction: ltr;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 32px, var(--page-max-width));
  margin-inline: auto;
}

/* —— Announcement —— */
.announcement {
  background: var(--surface-accent);
  color: var(--color-paper-white);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-16);
  position: relative;
  z-index: 40;
}

.announcement__btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  display: grid;
  place-items: center;
  color: var(--color-paper-white);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.announcement__btn:hover {
  opacity: 1;
}

.announcement__btn--prev {
  left: 4px;
}

.announcement__btn--next {
  right: 4px;
}

.announcement__msg {
  font-size: 12px;
  line-height: 1.4;
  font-weight: var(--font-weight-regular);
  text-align: center;
  padding-inline: 48px;
}

/* —— Nav —— */
.site-header {
  background: var(--color-paper-white);
  border-bottom: 1px solid var(--color-cloud-veil);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav {
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--spacing-16);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--spacing-20);
}

.nav__links a {
  font-size: 14px;
  color: var(--color-graphite);
  font-weight: var(--font-weight-regular);
  transition: opacity 0.2s ease;
}

.nav__links a:hover {
  opacity: 0.55;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  justify-self: center;
}

.nav__mark {
  width: 28px;
  height: 18px;
  color: var(--color-graphite);
}

.nav__wordmark {
  font-size: 18px;
  font-weight: var(--font-weight-black);
  letter-spacing: 0;
  line-height: 1;
  color: var(--color-graphite);
}

.nav__utils {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-16);
}

.nav__util {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-graphite);
}

.nav__icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--color-graphite);
  transition: opacity 0.2s ease;
}

.nav__icon:hover {
  opacity: 0.55;
}

.nav__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - 104px);
  min-height: calc(100dvh - 104px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--surface-muted);
}

/* display:flex on .hero beats the [hidden] attribute without !important */
[data-shop-chrome][hidden],
[data-shop-chrome].is-shop-chrome-hidden {
  display: none !important;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.9s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero__dots {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(0, 14, 31, 0.22);
  cursor: pointer;
}

.hero__dot.is-active {
  background: var(--color-midcurrent-navy);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--page-max-width));
  margin: 0 auto;
  padding: 0 0 64px;
  color: var(--color-midcurrent-navy);
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  line-height: 1.2;
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, var(--text-heading-lg));
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-heading-lg);
  max-width: 12ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-10);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-midcurrent-navy);
  color: var(--color-paper-white);
}

.btn--primary:hover {
  background: var(--color-twilight-slate);
}

.btn--on-dark {
  background: var(--color-paper-white);
  color: var(--color-midcurrent-navy);
}

.btn--ghost {
  background: transparent;
  color: var(--color-midcurrent-navy);
  border: 1px solid var(--color-cloud-veil);
}

.btn--ghost-light {
  background: transparent;
  color: var(--color-paper-white);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* —— Sections —— */
.section {
  padding: 64px 0;
}

.section--tight {
  padding: 48px 0;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--spacing-16);
  margin-bottom: var(--spacing-32);
}

.section__head-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.section__title {
  margin: 0;
  font-size: clamp(28px, 4vw, var(--text-heading));
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-heading);
  color: var(--color-midcurrent-navy);
}

.section__link {
  appearance: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-slate-gray);
  border: none;
  border-bottom: 1px solid var(--color-soft-stone);
  border-radius: 0;
  padding: 0 0 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section__link:hover {
  color: var(--color-midcurrent-navy);
  border-color: var(--color-midcurrent-navy);
}

.section__count {
  font-size: 13px;
  color: var(--color-slate-gray);
}

/* —— Category grid —— */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.category-card {
  background: transparent;
  display: flex;
  flex-direction: column;
}

.category-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: transparent;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover .category-card__media img {
  transform: scale(1.04);
}

.category-card__label {
  margin: 0;
  padding: 16px 12px 20px;
  text-align: center;
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-midcurrent-navy);
}

/* —— Product grid —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.product-grid__item {
  display: flex;
  min-height: 100%;
}

.product-grid__item.is-collapsed {
  display: none;
}

.product-grid__item .product-card {
  flex: 1;
  width: 100%;
}

.catalog-more {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
}

.catalog-more__btn {
  min-width: 160px;
}

.product-card {
  height: 100%;
  background: var(--surface-card);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background-color 0.25s ease;
}

.product-card:hover {
  background: var(--surface-muted);
}

.product-card__media {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card__meta {
  margin: 2px 0 0;
  min-height: 1.4em;
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-slate-gray);
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-height: 1.4em;
  font-size: var(--text-caption);
  color: var(--color-graphite);
  line-height: var(--leading-caption);
  text-decoration: none;
}

.product-card__store-logo {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
  display: block;
}

.product-card__brand:hover,
.product-card__brand:focus-visible {
  color: var(--color-midcurrent-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-card__name {
  margin: 2px 0 0;
  min-height: calc(1.3em * 2);
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-midcurrent-navy);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.product-card__price {
  margin: 4px 0 0;
  min-height: 1.4em;
  font-size: 13px;
  color: var(--color-slate-gray);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.product-card__price s {
  color: var(--color-soft-stone);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  min-height: 1.2em;
}

.rating__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--color-midcurrent-navy);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.rating__score {
  font-size: 11px;
  color: var(--color-slate-gray);
  line-height: 1.4;
}

/* —— Editorial text —— */
.editorial {
  text-align: center;
  padding: 72px 0;
  background: var(--surface-page);
  border-block: 1px solid var(--color-cloud-veil);
}

.editorial__title {
  margin: 0 auto 16px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--color-midcurrent-navy);
  max-width: 18ch;
}

.editorial__body {
  margin: 0 auto;
  max-width: 640px;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-slate-gray);
}

/* —— Sustainability split —— */
.sustain {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  min-height: 520px;
  background: var(--surface-page);
}

.sustain__copy {
  padding: 72px 48px 72px max(24px, calc((100vw - var(--page-max-width)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.sustain__title {
  margin: 0;
  font-size: clamp(24px, 3vw, var(--text-heading-sm));
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-heading-sm);
  color: var(--color-midcurrent-navy);
  max-width: 14ch;
}

.sustain__body {
  margin: 0;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-slate-gray);
  max-width: 38ch;
}

.sustain__media {
  min-height: 420px;
  overflow: hidden;
}

.sustain__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Multipack banner —— */
.banner-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--color-paper-white);
  border-block: 1px solid var(--color-cloud-veil);
}

.banner-split__copy {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.banner-split__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--color-midcurrent-navy);
  max-width: 12ch;
}

.banner-split__body {
  margin: 0;
  color: var(--color-slate-gray);
  max-width: 42ch;
}

.banner-split__media {
  min-height: 420px;
}

.banner-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Newsletter —— */
.newsletter {
  padding: 80px 0;
  text-align: center;
  background: var(--surface-page);
}

.newsletter__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  color: var(--color-slate-gray);
}

.newsletter__title {
  margin: 0 auto 28px;
  font-size: clamp(32px, 5vw, var(--text-display));
  font-weight: var(--font-weight-black);
  line-height: var(--leading-display);
  color: var(--color-midcurrent-navy);
  max-width: 10ch;
}

.newsletter__form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.search-input,
.newsletter__input {
  height: 44px;
  min-width: min(100%, 280px);
  flex: 1;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-cloud-veil);
  background: var(--color-paper-white);
  font: inherit;
  font-size: 15px;
  color: var(--color-midcurrent-navy);
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input::placeholder,
.newsletter__input::placeholder {
  color: var(--color-slate-gray);
}

.search-input:focus,
.newsletter__input:focus {
  border-color: var(--color-soft-stone);
}

/* —— Footer —— */
.site-footer {
  background: var(--surface-footer);
  border-top: 1px solid var(--color-cloud-veil);
  padding: 64px 0 0;
  color: var(--color-footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand__name {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: var(--font-weight-black);
}

.footer-brand__text {
  margin: 0;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-footer-muted);
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--color-footer-text);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--color-footer-muted);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-footer-text);
}

.footer-meta {
  border-top: 1px solid color-mix(in srgb, var(--color-footer-muted) 28%, transparent);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.footer-meta__copy {
  font-size: 12px;
  color: var(--color-footer-muted);
}

.after-rain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.after-rain a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6eb5e8;
  transition: color 0.2s ease;
}

.after-rain a:hover {
  color: #8ec8f0;
}

.after-rain-mark {
  display: block;
  width: 2.75rem;
  height: 1.65rem;
  background-color: #6eb5e8;
  -webkit-mask-image: url("../images/after-rain-logo-mark.png");
  mask-image: url("../images/after-rain-logo-mark.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.2s ease;
}

.after-rain a:hover .after-rain-mark {
  background-color: #8ec8f0;
}

.after-rain__name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6eb5e8;
}

/* —— Mobile bottom nav —— */
.bottom-nav {
  display: none;
}

/* —— Search overlay —— */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 14, 31, 0.28);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 16px 24px;
  overflow: auto;
}

.search-overlay.is-open {
  display: flex;
}

.search-overlay__shell {
  width: min(560px, 100%);
  display: grid;
  gap: 10px;
  animation: rise-in 0.35s ease both;
}

.search-overlay__panel {
  background: var(--color-paper-white);
  border: 1px solid var(--color-cloud-veil);
  border-radius: var(--radius-pill);
  padding: 8px;
  display: flex;
  gap: 8px;
}

.search-overlay__panel .search-input {
  border: none;
  flex: 1;
}

.search-overlay__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-graphite);
}

.search-overlay__results {
  background: var(--color-paper-white);
  border: 1px solid var(--color-cloud-veil);
  border-radius: 18px;
  padding: 12px;
  max-height: min(60vh, 480px);
  overflow: auto;
}

.search-group + .search-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-cloud-veil);
}

.search-group__label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-slate-gray);
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.search-hit {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.search-hit:hover,
.search-hit:focus-visible {
  background: rgba(0, 14, 31, 0.04);
}

.search-hit img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-muted);
}

.search-hit__logo {
  object-fit: contain;
  background: transparent;
  border-radius: 12px;
}

.search-hit strong {
  display: block;
  font-size: 13px;
  color: var(--color-midcurrent-navy);
}

.search-hit small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--color-slate-gray);
}

.search-empty {
  margin: 8px 4px;
  font-size: 13px;
  color: var(--color-slate-gray);
}

/* —— Store page —— */
.store-page__back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--color-graphite);
  text-decoration: none;
}

.store-page__back:hover,
.store-page__back:focus-visible {
  color: var(--color-midcurrent-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.store-page__head {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
  align-items: end;
}

@media (min-width: 768px) {
  .store-page__head {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
  }
}

.store-page__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate-gray);
}

.store-page__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.store-page__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  display: block;
}

.store-page__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--color-midcurrent-navy);
}

.store-page__tagline {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--color-graphite);
}

.store-page__blurb {
  margin: 10px 0 0;
  max-width: 36rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-slate-gray);
}

.store-page__media {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-muted);
  aspect-ratio: 1;
  max-width: 280px;
}

.store-page__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* —— Product detail —— */
.product-page__back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--color-graphite);
  text-decoration: none;
}

.product-page__back:hover,
.product-page__back:focus-visible {
  color: var(--color-midcurrent-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-page__layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 768px) {
  .product-page__layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
}

.product-page__media {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-muted);
  aspect-ratio: 1;
}

.product-page__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-page__store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--color-graphite);
  text-decoration: none;
}

.product-page__store img {
  width: 22px;
  height: 22px;
}

.product-page__store:hover,
.product-page__store:focus-visible {
  color: var(--color-midcurrent-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-page__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
  color: var(--color-midcurrent-navy);
}

.product-page__meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--color-slate-gray);
}

.product-page__price {
  margin: 14px 0 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 1.25rem;
  color: var(--color-midcurrent-navy);
}

.product-page__price s {
  font-size: 0.95rem;
  color: var(--color-slate-gray);
}

.product-page__desc {
  margin: 16px 0 0;
  max-width: 36rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-graphite);
}

.product-page__facts {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.product-page__facts > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  font-size: 13px;
}

.product-page__facts dt {
  margin: 0;
  color: var(--color-slate-gray);
}

.product-page__facts dd {
  margin: 0;
  color: var(--color-midcurrent-navy);
}

.product-page__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product-page__actions .product-card__add,
.product-page__actions .product-qty {
  width: auto;
  min-width: 160px;
}

.product-page__tryon {
  min-height: 36px;
  padding: 8px 16px;
}

.product-page__related {
  margin-top: 40px;
}

a.product-card__media {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card__name a {
  color: inherit;
  text-decoration: none;
}

.product-card__name a:hover,
.product-card__name a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Settings overlay —— */
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 14, 31, 0.34);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.settings-overlay.is-open {
  display: flex;
}

.settings-overlay__panel {
  width: min(420px, 100%);
  background: var(--surface-card);
  border: 1px solid var(--color-cloud-veil);
  border-radius: 22px;
  padding: 18px 18px 22px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
  animation: rise-in 0.35s ease both;
}

.settings-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.settings-overlay__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-midcurrent-navy);
}

.settings-overlay__close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-graphite);
  cursor: pointer;
}

.settings-overlay__close:hover,
.settings-overlay__close:focus-visible {
  background: var(--color-cloud-veil);
}

.settings-overlay__body {
  display: grid;
  gap: 16px;
}

.settings-field {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--color-cloud-veil);
}

.settings-field__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-slate-gray);
}

.settings-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}

.settings-option {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--color-cloud-veil);
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--color-midcurrent-navy);
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.settings-option__code {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
}

.settings-option__mark {
  font-size: 11px;
  color: var(--color-slate-gray);
}

.settings-option:hover,
.settings-option:focus-visible {
  border-color: var(--color-soft-stone);
}

.settings-option.is-active {
  background: var(--surface-brand);
  border-color: var(--surface-brand);
  color: var(--color-paper-white);
}

.settings-option.is-active .settings-option__mark {
  color: color-mix(in srgb, var(--color-paper-white) 78%, transparent);
}

html[data-theme="parchment"] .settings-option.is-active {
  background: var(--surface-accent);
  border-color: var(--surface-accent);
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .nav__links,
  .nav__util-text {
    display: none;
  }

  .nav__menu-btn {
    display: grid;
  }

  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav__logo {
    justify-self: start;
  }

  .sustain,
  .banner-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sustain__copy,
  .banner-split__copy {
    padding: 48px 24px;
  }

  .sustain__media,
  .banner-split__media {
    min-height: 320px;
  }

  .hero {
    min-height: 72vh;
  }

  .hero__content {
    padding-bottom: 40px;
  }

  .newsletter__title {
    font-size: 44px;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--color-paper-white);
    border-top: 1px solid var(--color-cloud-veil);
  }

  .bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    color: var(--color-slate-gray);
    font-size: 10px;
    font-weight: var(--font-weight-medium);
    line-height: 1.1;
    text-decoration: none;
    background: none;
    border: none;
    padding: 4px 2px;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .bottom-nav__item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bottom-nav__item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bottom-nav__item.is-active,
  .bottom-nav__item:hover {
    color: var(--color-midcurrent-navy);
  }

  .bottom-nav__item.is-active svg {
    stroke-width: 2;
  }

  .site-footer {
    padding-bottom: 24px;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .category-card__label {
    padding: 8px 4px 10px;
    font-size: 10px;
    line-height: 1.25;
  }

  .announcement__msg {
    font-size: 11px;
    padding-inline: 36px;
  }

}
