/* ReshamBD — storefront styles.
   Palette and component language carried over from ChatkhilBazar (css/styles.css):
   charcoal ink #2C2925 on warm paper #FFFDF8, cream #F6F3EE sections, taupe accents,
   2px radii, hairline borders, Cormorant Garamond display headings, DM Sans text. */

:root {
  --primary: #2C2925;
  --primary-hover: #1B1916;
  --primary-soft: #F3EFE8;
  --taupe: #8E877D;
  --taupe-deep: #6F685F;
  --gold: #A88B5C;
  --gold-light: #E7CC93;
  --sale: #B42318;
  --footer: #2C2925;

  --black: #2C2925;
  --bg: #FFFDF8;
  --white: #FFFFFF;
  --cream: #F6F3EE;
  --muted: #6E6862;
  --line: #E6E1D8;
  --line-strong: #CFC8BC;
  --mist: #DDD8D1;
  --focus-ring: rgba(44, 41, 37, 0.18);

  --radius: 2px;
  --shadow: 0 8px 24px rgba(44, 41, 37, 0.06);
  --shadow-lg: 0 14px 36px rgba(44, 41, 37, 0.10);

  --container: 1240px;
  --gutter: 20px;
  --font: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--black);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
s { text-decoration-thickness: 1px; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--white); }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--primary-soft); }
.btn--danger { border-color: var(--sale); color: var(--sale); }
.btn--danger:hover { background: var(--sale); color: var(--white); }

/* ---------- Announcement ---------- */
.announcement { background: var(--footer); color: rgba(255, 255, 255, 0.78); font-size: 12.5px; letter-spacing: .02em; text-align: center; }
.announcement p { padding: 7px var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, transform .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(44, 41, 37, .06); }
.site-header.is-hidden { transform: translateY(-100%); }
#site-header { position: sticky; top: 0; z-index: 50; }
.header-top {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  flex-shrink: 0; width: 42px; height: 42px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--black); }

.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--primary); border-radius: var(--radius);
  font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--primary);
  letter-spacing: .02em;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .14em; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.logo__sub { margin-top: 2px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.search-toggle {
  display: none; flex-shrink: 0; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--black);
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin-left: 0;
  padding: 0 16px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-ring); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--black); font-size: 15px;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.header-action {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: var(--radius); color: var(--black); font-size: 14px; font-weight: 500;
  transition: background-color .2s ease;
}
.header-action:hover { background: var(--primary-soft); }
.header-action__icon { position: relative; display: inline-flex; }
.header-action__label { white-space: nowrap; }
.cart-count {
  position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 9px; background: var(--primary); color: var(--white);
  font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}

/* Navigation drawer: opens from the left on every screen size */
.nav-overlay {
  position: fixed; inset: 0; z-index: 110; background: rgba(44, 41, 37, .42);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.main-nav {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 120;
  display: flex; flex-direction: column;
  width: min(85vw, 400px);
  background: var(--white);
  box-shadow: 10px 0 36px rgba(44, 41, 37, .14);
  overflow-y: auto;
  transform: translate3d(-100%, 0, 0);
  visibility: hidden;
  transition: transform .32s cubic-bezier(.22, .61, .36, 1), visibility .32s ease;
}
.main-nav.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-close {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--black);
}
.drawer-close:hover { background: var(--cream); }
.main-nav__inner { padding: 8px 0 24px; flex: 1; display: flex; flex-direction: column; }
.nav-list li > a {
  display: flex; align-items: center; min-height: 44px; padding: 10px 18px;
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--black);
}
.nav-list li > a:hover, .nav-list li > a.is-current { background: var(--primary-soft); }
.nav-list__strong { font-weight: 600; }
.nav-group {
  margin: 18px 18px 6px; font-family: var(--serif); font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}

/* About us sits at the bottom of the side menu, with at least 18px above it */
.nav-list--about { margin-top: auto; padding-top: 18px; }

/* ---------- Buttons on cards and pages ---------- */
.price { font-size: 16px; font-weight: 500; letter-spacing: .01em; color: var(--black); font-variant-numeric: tabular-nums; }
.price--old { font-size: 13px; color: var(--muted); }
.product-card__off { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--sale); }

/* ---------- Hero slider: photo-only banners, each one links to the admin's URL ---------- */
.hero { background: var(--cream); overflow: hidden; padding-top: 28px; }
.hero .container { padding-left: 0; padding-right: 0; }
.hero__track {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 6%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative;
  flex: 0 0 88%;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--primary-soft);
  scroll-snap-align: center;
}
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.hero__dots { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 26px 0 40px; }
.hero__dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: var(--line-strong); cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.hero__dot.is-active { width: 40px; background: var(--primary); }
@media (min-width: 1024px) {
  .hero-slide { aspect-ratio: 2.4 / 1; }
}

/* ---------- Section headings (shared with ChatkhilBazar home) ---------- */
.home-head { text-align: center; margin-bottom: 52px; }
.home-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.home-eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.home-title {
  font-family: var(--serif); font-size: clamp(36px, 4.2vw, 56px); font-weight: 500;
  line-height: 1.08; color: var(--black);
}
.home-sub { margin-top: 12px; color: var(--muted); font-size: 15px; }

.home-sect { padding: 88px 0 0; }
.home-sect:last-of-type { padding-bottom: 96px; }
.home-sect__head { margin-bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.home-sect__title { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 42px); font-weight: 500; line-height: 1.12; }
.home-sect__more { display: flex; justify-content: center; margin-top: 48px; }
.home-sect__foot { display: none; }
.home-sect__link { font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--black); padding-bottom: 2px; white-space: nowrap; }
.home-sect--cream { background: var(--cream); padding: 88px 0 96px; margin-top: 88px; }

/* Category tiles */
.home-cats { padding: 88px 0 24px; }
.home-cats__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 18px; }
.home-cat { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.home-cat__frame {
  width: 100%; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--cream);
  transition: transform .4s ease, box-shadow .4s ease;
}
.home-cat__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.home-cat:hover .home-cat__frame { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.home-cat:hover .home-cat__frame img { transform: scale(1.04); }
.home-cat__name { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.2; }

/* Collections */
.collections-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.collection-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; padding: 28px; overflow: hidden; border-radius: var(--radius); color: var(--black);
  background: var(--cream);
}
.collection-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.collection-card:hover .collection-card__img { transform: scale(1.04); }
.collection-card__panel {
  position: relative; background: var(--white); padding: 22px 22px 20px; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.collection-card__panel > span { display: block; }
.collection-card__title { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.1; }
.collection-card__text { margin-top: 8px; font-size: 14px; color: var(--muted); }
.collection-card__cta { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; border-bottom: 1px solid var(--black); display: inline-block !important; padding-bottom: 2px; }

/* ---------- Product grid and cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.product-card__media {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--cream);
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: var(--radius);
  background: var(--primary); color: var(--white); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.product-card__badge--muted { background: var(--white); color: var(--muted); border: 1px solid var(--line-strong); }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 40px 0 2px; }
.product-card__shop { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.product-card__name { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
/* Add to cart sits at the foot of every card, so buttons line up across a row. */
.product-card__actions { display: flex; margin-top: auto; padding-top: 14px; }
.product-card__cart { flex: 1 1 auto; width: 100%; min-width: 0; }
/* Home page cards (no button): the name link covers the whole card, so a tap anywhere opens the product */
.product-card--plain .product-card__name a::after { content: ""; position: absolute; inset: 0; }
.quick-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick-sizes[hidden] { display: none; }
.quick-sizes__btn {
  min-width: 40px; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); color: var(--primary); font-size: 14px; cursor: pointer;
}
.quick-sizes__btn:hover { border-color: var(--primary); background: var(--primary-soft); }

/* Soft shadow on cards and panels across the storefront */
.product-card,
.bag-line,
.co-section,
.confirm__card,
.collection-card,
.home-cat__frame,
.pay-option,
.info {
  box-shadow: 0 2px 10px rgba(44, 41, 37, .08);
}

/* Orders page list */
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.order-row__id { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.order-row__total { text-align: right; font-weight: 600; }
.order-row__meta { grid-column: 1; color: var(--muted); font-size: 14px; }

/* Mobile bottom bar (phones only) */
.bottom-nav { display: none; }
@media (max-width: 767px) {
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: var(--white); border-top: 1px solid var(--line); padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 14px rgba(44, 41, 37, .06);
  }
  .bottom-nav__item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0; color: var(--muted); font-family: var(--serif); font-size: 12px; line-height: 1.25; text-decoration: none; }
  .bottom-nav__item.is-current { color: var(--primary); font-weight: 600; }
  body.has-bottom-nav { padding-bottom: 62px; }
  /* Hides like the top bar: slides down out of sight (the extra 20px keeps its shadow off the screen edge) */
  .bottom-nav { transition: transform .3s ease; }
  .bottom-nav.is-hidden { transform: translateY(calc(100% + 20px)); }
}

/* Top bar without borders: the header line, menu button, logo, search button and search box */
.site-header,
.menu-toggle,
.logo__mark,
.search-toggle,
.search {
  border: 0;
}

/* Soft shadow under the top bar only (negative spread keeps it off the sides and top) */
.site-header {
  box-shadow: 0 3px 6px -3px rgba(44, 41, 37, .16);
}

/* Live search: results under the bar */
.search-results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 80;
  max-height: 70vh; overflow-y: auto; padding: 8px 0;
  background: var(--white); box-shadow: 0 12px 28px rgba(44, 41, 37, .12);
}
.search-results[hidden] { display: none; }
.search-results__item {
  display: flex; align-items: center; gap: 14px; padding: 10px 20px; color: var(--black); text-decoration: none;
}
.search-results__item:hover, .search-results__item:focus-visible { background: var(--primary-soft); }
.search-results__item img { width: 52px; height: 65px; flex-shrink: 0; object-fit: cover; border-radius: var(--radius); background: var(--cream); }
.search-results__name { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.search-results__meta { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.search-results__all {
  display: block; padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--black);
  text-decoration: underline; text-underline-offset: 4px;
}
.search-results__empty { padding: 16px 20px; font-size: 14px; color: var(--muted); }

/* Phones: the search box opens inside the top bar, in place of the logo */
@media (max-width: 767px) {
  .site-header .search {
    position: static; flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; padding: 0 12px; gap: 8px;
    border-radius: var(--radius); background: var(--cream);
  }
  .site-header.search-open .logo { display: none; }
  .site-header.search-open .search-toggle { display: none; }
  .site-header.search-open .search { display: flex; animation: search-expand .25s ease both; }
  .site-header.search-open .search__close { display: inline-flex; }
  .site-header .search:focus-within { border-color: transparent; box-shadow: none; }
}

/* The box opens from the right, so it grows leftward towards the menu button */
.site-header .search { transform-origin: right center; }
@keyframes search-expand { from { opacity: 0; transform: scaleX(.5); } to { opacity: 1; transform: none; } }

/* Close (×) inside the search box: shown on phones while the box is open */
.search__close {
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.search__close:hover { color: var(--black); }

/* Top bar logo image, centred between the menu and search buttons */
.logo--image { justify-content: center; }
.logo__image { display: block; height: 36px; width: auto; max-width: 100%; }
/* Side menu header: logo and name side by side */
.logo--drawer { flex: none; justify-content: flex-start; gap: 10px; padding-left: 0; }
.logo--drawer .logo__image { height: 22px; }
.logo--drawer .logo__name { white-space: nowrap; font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: .03em; }
.logo--drawer { align-items: center; }

/* Footer is dark: show the black logo in white */
.footer-brand__logo { height: 46px; width: auto; filter: invert(1); }

/* Promo band */
.promo-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin-top: 40px; padding: 36px 40px; border-radius: var(--radius); background: var(--primary); color: var(--white);
}
.promo-band__title { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.1; }
.promo-band p { margin-top: 8px; color: rgba(255, 255, 255, .75); }
.promo-band .btn--primary { background: var(--white); border-color: var(--white); color: var(--primary); }

/* ---------- Empty and status states ---------- */
.empty-state { text-align: center; padding: 72px 20px; }
.empty-state__title { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.empty-state p { margin-top: 10px; color: var(--muted); }
.empty-state .btn { margin-top: 26px; }

/* ---------- Listing / shop page ---------- */
.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.page-head__eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.page-head__title { margin-top: 10px; font-family: var(--serif); font-size: clamp(38px, 4.6vw, 58px); font-weight: 500; line-height: 1.05; }
.page-head__text { margin-top: 12px; color: var(--muted); max-width: 620px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0; }
.crumbs a:hover { color: var(--black); text-decoration: underline; }

.shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 32px 0 96px; align-items: start; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.shop-toolbar__count { font-size: 14px; color: var(--muted); }
.shop-toolbar__right { display: flex; align-items: center; gap: 10px; }
.select, .input, .textarea {
  height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); color: var(--black); font-size: 15px; outline: none; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.select:focus, .input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-ring); }
.select { width: auto; padding-right: 36px; }
.input.is-invalid, .textarea.is-invalid { border-color: var(--sale); }
.field-error { display: none; margin-top: 6px; font-size: 13px; color: var(--sale); }
.field.has-error .field-error { display: block; }
.field.has-error .input, .field.has-error .textarea { border-color: var(--sale); }

.filter-toggle { display: none; }
.filters { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 28px; }
.filter-group h3 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.filter-list li + li { margin-top: 2px; }
.filter-list button, .filter-list a {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 10px; border: 0; border-radius: var(--radius); background: transparent; text-align: left; font-size: 15px;
}
.filter-list button:hover, .filter-list a:hover { background: var(--primary-soft); }
.filter-list .is-active { background: var(--primary); color: var(--white); }
.filter-list .is-active:hover { background: var(--primary-hover); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 46px; height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); font-size: 14px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.chip:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.clear-filters { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }

/* ---------- Product details ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding-bottom: 80px; align-items: start; }
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; position: sticky; top: 100px; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery__thumb {
  padding: 0; width: 84px; aspect-ratio: 3 / 4; border: 1px solid transparent; border-radius: var(--radius); overflow: hidden; background: var(--cream);
  opacity: .6; transition: opacity .2s ease, border-color .2s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--primary); }
.gallery__main { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; animation: fade-in .4s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.pdp__info { padding-top: 6px; }
.pdp__cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pdp__title { margin-top: 10px; font-family: var(--serif); font-size: clamp(36px, 4vw, 50px); font-weight: 500; line-height: 1.06; }
.pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.pdp__price .price { font-size: 26px; font-weight: 600; }
.pdp__price .price--old { font-size: 16px; }
.pdp__stock { margin-top: 10px; font-size: 14px; color: var(--muted); }
.pdp__stock.is-low { color: var(--sale); }
.pdp__desc { margin-top: 22px; color: #4D4841; line-height: 1.7; }
.opt { margin-top: 28px; }
.opt__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.opt__label span { font-weight: 400; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  position: relative; width: 40px; height: 40px; border-radius: 50%; padding: 0;
  border: 1px solid var(--line-strong); background: var(--swatch);
  transition: transform .2s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--primary); }
.swatch-name { margin-top: 10px; font-size: 14px; color: var(--muted); }
.qty-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-top: 30px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); height: 50px; }
.stepper button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--black); }
.stepper button:hover:not(:disabled) { background: var(--primary-soft); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 40px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.add-bag { flex: 1; min-width: 200px; height: 50px; }
.form-msg { margin-top: 12px; min-height: 22px; font-size: 14px; color: var(--sale); }
.form-msg.is-ok { color: #2F6B3F; }
.pdp__meta { margin-top: 30px; border-top: 1px solid var(--line); }
.pdp__meta details { border-bottom: 1px solid var(--line); }
.pdp__meta summary {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer;
  font-weight: 600; list-style: none;
}
.pdp__meta summary::-webkit-details-marker { display: none; }
.pdp__meta summary::after { content: "+"; font-size: 20px; font-weight: 400; }
.pdp__meta details[open] summary::after { content: "–"; }
.pdp__meta details p { padding: 0 0 18px; color: #4D4841; font-size: 15px; line-height: 1.7; }
.related { border-top: 1px solid var(--line); padding: 72px 0 96px; }

/* ---------- Bag ---------- */
/* Each item is one card: picture, details, then the quantity, remove and line total on one row */
.page-bag .crumbs { padding: 14px 0 4px; }
.page-bag .page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 8px 0 18px; }
.page-bag .page-head__title { margin-top: 0; font-size: clamp(32px, 3.6vw, 44px); }
.page-bag .bag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 24px 0 80px; align-items: start; }
.page-bag .bag-list { display: flex; flex-direction: column; gap: 12px; }
.bag-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 16px; background: var(--white); border-radius: var(--radius); }
.bag-line__img { width: 88px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.bag-line__img img { width: 100%; height: 100%; object-fit: cover; }
.bag-line__info { min-width: 0; }
.bag-line__name { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.2; }
.bag-line__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bag-line__meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
.bag-line .form-msg { margin-top: 6px; }
.bag-line__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.bag-line .stepper { height: 42px; }
.bag-line .stepper button { width: 38px; }
.bag-line__remove { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; }
.bag-line__remove:hover { color: var(--sale); }
.bag-line__total { min-width: 92px; text-align: right; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Order summary on the bag page: tighter spacing, promo field and button on one line */
.page-bag .summary { position: sticky; top: 96px; padding: 24px; }
.page-bag .summary h2 { font-size: 26px; }
.page-bag .promo-form { margin-top: 16px; }
.page-bag .promo-form .btn { margin-top: 0; }
.page-bag .form-msg { min-height: 0; margin-top: 8px; }
.page-bag .form-msg:empty { display: none; }
.page-bag .summary__rows { margin-top: 16px; gap: 10px; }
.page-bag .summary__total { margin-top: 4px; padding-top: 14px; }
.page-bag .summary #checkoutBtn { margin-top: 18px; }
.page-bag .summary__note { margin-top: 12px; }
@media (max-width: 1023px) {
  .page-bag .bag-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  .page-bag .page-head { padding-bottom: 14px; }
  .page-bag .page-head__title { font-size: 32px; }
  .page-bag .bag-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 14px 0 96px; }
  .bag-line { grid-template-columns: 84px minmax(0, 1fr); gap: 12px 14px; padding: 12px; }
  .bag-line__img { width: 84px; grid-row: 1 / span 2; }
  .bag-line__info { grid-column: 2; grid-row: 1; }
  .bag-line__buy { grid-column: 2; grid-row: 2; justify-content: space-between; gap: 8px; }
  .bag-line__total { min-width: 0; }
  .bag-line__name { font-size: 18px; }
  .bag-line .stepper { height: 40px; }
  .bag-line .stepper button { width: 32px; }
  .page-bag .summary { padding: 20px; }
}
.summary { position: sticky; top: 100px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.summary h2 { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.summary__rows { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.summary__row--muted { color: var(--muted); font-size: 14px; }
.summary__row--discount { color: #2F6B3F; }
.summary__total { padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.summary__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.summary .btn { margin-top: 22px; }
.promo-form { display: flex; gap: 8px; margin-top: 22px; }
.promo-form .input { height: 44px; text-transform: uppercase; }
.promo-form .btn { min-height: 44px; padding: 0 18px; }
.promo-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: #2F6B3F; }
.promo-applied button { background: none; border: 0; text-decoration: underline; color: var(--muted); font-size: 14px; }
.promo-hint { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding: 32px 0 96px; align-items: start; }
.co-section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.co-section:last-of-type { border-bottom: 0; }
.co-section h2 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-bottom: 20px; }
.co-section__sub { margin: -10px 0 18px; font-size: 14px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt-tag { font-weight: 400; color: var(--muted); }
.pay-option {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer; background: var(--white); transition: border-color .2s ease, background-color .2s ease;
}
.pay-option + .pay-option { margin-top: 10px; }
.pay-option:hover { border-color: var(--primary); }
.pay-option input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.pay-option__title { font-weight: 600; }
.pay-option__text { font-size: 14px; color: var(--muted); }
.pay-option.is-disabled { opacity: .55; cursor: not-allowed; }
.pay-option.is-disabled:hover { border-color: var(--line-strong); }
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pay-tag { margin-left: auto; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: var(--radius); white-space: nowrap; }
.co-items { display: flex; flex-direction: column; gap: 14px; }
.co-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 14px; }
.co-item img { width: 56px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--cream); }
.co-item__name { font-weight: 600; line-height: 1.3; }
.co-item__meta { color: var(--muted); font-size: 13px; }
.co-item__price { font-variant-numeric: tabular-nums; font-weight: 600; }
.place-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- Order confirmation ---------- */
.confirm { max-width: 760px; margin: 0 auto; padding: 72px 0 96px; text-align: center; }
.confirm__icon {
  width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%;
  background: var(--primary); color: var(--white);
  animation: pop .5s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.confirm__title { margin-top: 26px; font-family: var(--serif); font-size: clamp(38px, 5vw, 56px); font-weight: 500; line-height: 1.05; }
.confirm__text { margin-top: 14px; color: var(--muted); }
.confirm__number { margin-top: 26px; display: inline-block; padding: 12px 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 18px; font-weight: 600; letter-spacing: .06em; }
.confirm__card { margin-top: 40px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 28px; }
.confirm__card h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 14px; }
.confirm__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.confirm__row:last-child { border-bottom: 0; }
.confirm__row--total { font-weight: 700; font-size: 17px; }
.confirm__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: var(--radius); font-size: 12px; font-weight: 600; letter-spacing: .04em; background: var(--primary-soft); color: var(--primary); }

/* ---------- Info pages ---------- */
.info { max-width: 820px; padding: 56px 0 96px; }
.info section { padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.info h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; margin-bottom: 14px; }
.info p, .info li { color: #4D4841; line-height: 1.75; }
.info ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.info table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.info th, .info td { padding: 12px 14px; border: 1px solid var(--line); text-align: center; }
.info th { background: var(--cream); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: rgba(255, 255, 255, .72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand .logo__name { color: var(--white); }
.footer-brand p { margin-top: 18px; font-size: 15px; max-width: 320px; color: rgba(255, 255, 255, .7); }
.footer-col h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--white); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 15px; color: rgba(255, 255, 255, .72); transition: color .2s ease; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.footer-contact li > span { flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer-bottom a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Toasts ---------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  padding: 12px 20px; border-radius: var(--radius); background: var(--primary); color: var(--white); font-size: 14px;
  box-shadow: var(--shadow-lg); animation: toast-in .3s ease both; text-align: center;
}
.toast.is-leaving { opacity: 0; transition: opacity .4s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ---------- */
html.js .reveal:not(.is-visible) { opacity: 0; }
.reveal.is-visible { animation: reveal-up 1.2s cubic-bezier(.22, .61, .36, 1) backwards; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================ Tablet (<= 1023px) ============================ */
@media (max-width: 1023px) {
  :root { --gutter: 24px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 14px; }
  .collections-grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 300px; }
  .shop-layout { grid-template-columns: 1fr; gap: 0; }
  .filter-toggle { display: inline-flex; }
  .filters { display: none; position: static; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
  .filters.is-open { display: flex; }
  .pdp, .checkout-layout { grid-template-columns: 1fr; gap: 36px; }
  .gallery { position: static; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ============================ Phone (<= 767px) ============================ */
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .announcement p { font-size: 11.5px; padding: 6px 12px; }
  .header-top { gap: 10px; min-height: 51px; }
  .logo__mark { width: 36px; height: 36px; font-size: 20px; }
  .logo__name { font-size: 19px; letter-spacing: .1em; }
  .logo__sub { display: none; }
  .logo { flex: 1; min-width: 0; }
  .search-toggle { display: inline-flex; }
  .search { display: none; position: absolute; top: 100%; left: 0; right: 0; max-width: none; margin: 0; height: 52px; border-radius: 0; border-width: 1px 0; }
  .site-header { position: sticky; }
  .site-header.search-open .search { display: flex; }
  .site-header.search-open { border-bottom-color: var(--line); }
  .header-action__label { display: none; }
  .header-action { padding: 6px; }
  .home-head { margin-bottom: 30px; }
  .home-title { font-size: 34px; }
  .home-sect { padding-top: 50px; }
  .home-sect__head { margin-bottom: 22px; justify-content: center; text-align: center; }
  .home-sect__title { font-size: 28px; }
  .home-cats { padding-top: 38px; padding-bottom: 17px; }
  .home-sect__more { display: none; }
  .home-sect__head .home-sect__link { display: none; }
  .home-sect__foot { display: flex; justify-content: center; margin-top: 24px; padding-bottom: 10px; }
  /* Soft shadow along the top and bottom edge of each home section, and the bottom of Find your edit (phone only) */
  .home-sect, .home-cats { position: relative; }
  .home-sect::before, .home-sect::after, .home-cats::after {
    content: ""; position: absolute; left: 50%; width: 100vw; margin-left: -50vw; height: 10px; pointer-events: none;
  }
  .home-sect::before { top: -10px; background: linear-gradient(to bottom, rgba(44, 41, 37, 0), rgba(44, 41, 37, .045)); }
  .home-sect::after, .home-cats::after { bottom: -10px; background: linear-gradient(to bottom, rgba(44, 41, 37, .045), rgba(44, 41, 37, 0)); }
  .home-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .home-cat__name { font-size: 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .product-card__name { font-size: 17px; }
  .product-card__body { padding-right: 36px; }
  .promo-band { margin-top: 36px; padding: 26px 22px; }
  .promo-band__title { font-size: 28px; }
  .page-head { padding-top: 36px; }
  .home-sect--cream { padding: 42px 0 50px; margin-top: 50px; }
  /* Shop and category pages (phone): tighter spacing from the breadcrumb down to the products */
  .page-shop .crumbs { padding: 14px 0 6px; }
  .page-shop .page-head { padding: 14px 0 16px; }
  .page-shop .page-head__title { margin-top: 10px; }
  .page-shop .page-head__text { margin-top: 10px; }
  .page-shop .page-head__text:empty { display: none; }
  .page-shop .shop-layout { padding-top: 16px; }
  .page-shop .shop-toolbar { margin-bottom: 16px; gap: 12px; }
  .page-shop .product-grid { gap: 24px 12px; }
  .page-shop .empty-state { padding: 32px 20px; }
  .pdp { gap: 28px; }
  .gallery { grid-template-columns: 1fr; gap: 12px; }
  .gallery__thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery__thumb { width: 64px; flex-shrink: 0; }
  .pdp__title { font-size: 36px; }
  .summary { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .co-section h2 { font-size: 26px; }
  .confirm { padding: 48px 0 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
  .info section { scroll-margin-top: 90px; }
}

/* ============================ Small phone (<= 380px) ============================ */
@media (max-width: 380px) {
  .product-grid { gap: 28px 10px; }
  .product-card__name { font-size: 15px; }
  .price { font-size: 14px; }
  .logo__name { font-size: 17px; }
}

/* Search: collapsed to an icon on every screen; the box opens in the top bar (desktop and phone) */
.search-toggle { display: inline-flex; }
.site-header .search {
  display: none; position: static; flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; padding: 0 12px; gap: 8px;
  border: 0; border-radius: var(--radius); background: var(--cream); max-width: none;
}
.site-header .search:focus-within { border-color: transparent; box-shadow: none; }
.site-header.search-open .search { display: flex; animation: search-expand .25s ease both; }
.site-header.search-open .logo { display: none; }
.site-header.search-open .search-toggle { display: none; }
.site-header.search-open .search__close { display: inline-flex; }

/* Desktop: logo and brand name in the middle of the top bar */
.logo__name--bar { display: none; }
@media (min-width: 768px) {
  .logo__name--bar { display: inline; font-size: 26px; font-weight: 700; letter-spacing: .08em; }
  .header-top .logo--image { flex: 1 1 auto; min-width: 0; justify-content: center; }
  /* Desktop side menu: logo and name stay on the left */
  .logo--drawer { flex: none; justify-content: flex-start; padding-left: 0; }
}

/* Brand name: the lettering copied from the sample (assets/brand/brand-name.png) */
.brand-name { display: block; height: 36px; width: auto; max-width: 100%; }
.brand-name--drawer { height: 24.3px; }
.brand-name--bar { display: none; }
@media (min-width: 768px) { .brand-name--bar { display: block; } }

/* Side menu text 10% smaller (phone and desktop) */
.nav-list li > a { font-size: 16.2px; }
.nav-group { font-size: 9.9px; }

/* Brand name 10% smaller (side menu and desktop top bar) */
@media (min-width: 768px) {
  .brand-name--bar { height: 32.4px; }
}

/* Bottom bar icons: full black */
/* Icons from assets/icons: each is drawn in the current text colour */
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-img { display: block; }
.bottom-nav .icon { background-color: #000; }
/* The icon for the page the customer is on has a shadow underneath (same for every icon) */
.bottom-nav__item.is-current { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }

/* Top bar search and bag icons: full black, like the bottom bar icons */
.search-toggle, .header-action { color: #000; }

/* Category pop-up from the bottom bar: the page behind is blurred and only the pop-up stays sharp */
.bottom-nav__button { background: none; border: 0; cursor: pointer; }
.cat-sheet[hidden] { display: none; }
.cat-sheet { position: fixed; inset: 0; z-index: 55; }
.cat-sheet__overlay { position: absolute; inset: 0; background: rgba(44, 41, 37, .3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cat-sheet__panel { position: absolute; left: 0; right: 0; bottom: calc(55px + env(safe-area-inset-bottom)); max-height: 82vh; overflow-y: auto; background: var(--bg); border-radius: 16px 16px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); animation: sheet-up .3s ease both; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.cat-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cat-sheet__head .home-title { font-size: 30px; }
.cat-sheet__close { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); cursor: pointer; }
body.sheet-open { overflow: hidden; }

/* Side menu header: same height as the top navbar (phone 52px, desktop 76px) */
.drawer-head { height: 52px; padding: 0 18px; flex-shrink: 0; }
@media (min-width: 768px) { .drawer-head { height: 76px; } }

/* Phone side menu: leave room at the bottom so the last options scroll above the bottom bar */
@media (max-width: 767px) {
  .main-nav__inner { padding-bottom: 84px; }
}

/* Data-driven parts stay hidden until the store data has arrived, so no empty heading, filters or grid flash */
html.js:not(.data-ready) #heroSlides, html.js:not(.data-ready) #homeSections, html.js:not(.data-ready) .home-cats, html.js:not(.data-ready) .shop-layout { visibility: hidden; }
