/* Blooms — the skin over the platform's section library.

   An editorial boutique skin: a warm cream ground, a deep oxblood accent,
   white cards and generous gutters. Every value here is a measured token,
   not an eyeballed one:

     body      bg #f3e9dd · colour #272a32 · 16px/26px
     card      white · radius 8px · border 1px #fffef0
               shadow 0 5px 20px rgba(103,113,122,.06)
     stage     white · ~1:1 · image cover, radius 10px
     name      20px / 600 / 24px · price 17px / 600 / #6d272b
     heart     40px disc · white · border 1px #cbcbcb
     heading   30px / 600 / 45px
     gutter    30px a side (content 1209 in a 1269 page)

   The display face is itself a bold face, so weight 600 on it renders
   heavier than 600 on the body face — the headings and prices ask for 700
   here to land on the same visual weight. And the storefront is
   `box-sizing: content-box`, so sizes below are the content box.

   Logical properties only: the storefront is Arabic-first and the same
   stylesheet has to hold up mirrored. */

/* ── the token layer ─────────────────────────────────────────────────── */

:root {
  --ox-primary: var(--tc-primary, #6d272b);
  --ox-primary-dark: var(--tc-primary-700, #470105);
  --ox-primary-light: var(--tc-primary-400, #934d51);
  --ox-ground: var(--tc-background, #f3e9dd);
  --ox-surface: var(--tc-surface, #ffffff);
  --ox-ink: var(--tc-text, #272a32);
  /* The muted tone is a literal rather than the platform's token: #9ca3af is
     only 2.54:1 on white at the 12px this theme uses it for — under the
     WCAG AA 4.5:1 floor the platform's accessibility gate enforces. */
  --ox-muted: #656565;
  --ox-line: #fffef0;
  /* The colour of a product NAME's link — a shade darker than the body ink
     in the light palette, and the theme's own link token so the dark palette
     can flip it with everything else. */
  --ox-link: #1f2937;
  /* the wishlist heart's rim */
  --ox-heart-line: #cbcbcb;
  /* The header's height, fixed so the layers that stick below it can sit
     under it rather than on it. */
  --ox-header-h: 60px;
  --ox-shadow: 0 5px 20px rgba(103, 113, 122, .06);
  --ox-gutter: 30px;
  --ox-gap: var(--ts-gap-2, 16px);
  --ox-radius: var(--tr-card, 8px);
  --ox-display: var(--tf-heading, system-ui, -apple-system, "Segoe UI", sans-serif);
  --ox-body: var(--tf-body, system-ui, -apple-system, "Segoe UI", sans-serif);
}

/* ── the dark palette ─────────────────────────────────────────────────── */

/* The theme paints its OWN dark mode. The runtime owns the choice — a
   [data-theme="dark"] attribute on <html>, kept on this device — and this
   stylesheet owns the colours: every token is overridden, so the library's
   own sections follow the theme into the dark the same way they follow it
   into the light.

   The selector is :root[data-theme="dark"], the same one the platform's
   derived dark block uses. This stylesheet is linked from the body, after
   that block, so equal specificity lets this palette win. A weaker
   attribute selector lost the ground and the brand to the platform.

   The oxblood is INVERTED rather than darkened: on a near-black ground a
   deep oxblood primary would disappear, so the accent becomes the blush
   family and the ink on top of it becomes near-black. */
:root[data-theme="dark"] {
  --tc-background: #17140f;
  --tc-surface: #221d17;
  --tc-text: #f4ede3;
  --tc-text-muted: #a89d8f;
  --tc-primary: #e9b6b9;
  /* The primary ramp inverts with the palette: on a dark ground the "darker"
     shades have to become the LIGHTER ones, or the tagline (--ox-primary-light)
     and the announcement band lose their contrast. */
  --tc-primary-300: #f7dfe0;
  --tc-primary-400: #f0cbcd;
  --tc-primary-600: #e2b0b3;
  --tc-primary-700: #d99a9e;
  --tc-primary-rgb: 233, 182, 185;
  --tc-accent: #e2b98a;
  --tc-on-primary: #211610;
  --tc-danger: #f08a80;
  --tc-danger-rgb: 240, 138, 128;
  --tc-success-700: #86d6a2;

  --ox-muted: #a89d8f;
  --ox-line: #3b332b;
  --ox-link: #f0e7db;
  --ox-heart-line: #56493d;
  --ox-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

/* ── the shell ───────────────────────────────────────────────────────── */

body {
  /* The platform derives its muted tone as 45% of the text colour toward the
     ground — on this warm cream that lands near 3.4:1, under the 4.5:1 floor
     for the small text the library prints in it (the sort label, the review
     count, the "from" price). The theme's own muted tone passes on both the
     cream ground and the white cards. It is set on BODY, not :root, because
     the shell writes the platform's token block inline AFTER this stylesheet:
     a value declared on the body wins for everything inside it, without
     !important and without touching the platform's own tokens. */
  --tc-text-muted: var(--ox-muted);
  /* The platform's "open" badge prints its success green on a 12% tint of the
     same green over the cream ground — 3.71:1, under the floor. The theme
     darkens the success tone it inherits so the badge reads on this ground. */
  --tc-success-700: #14663a;
  background: var(--ox-ground);
  color: var(--ox-ink);
  font-family: var(--ox-body);
  font-size: 16px;
  line-height: 26px;
}

/* ── header: the wordmark at the inline start, actions at the inline end ── */

.mbs-header {
  background: var(--ox-ground);
  border-block-end: 0;
}

/* The header sticks to the top, and the layers that stick BELOW it stack
   under it. The library reads --mbs-sticky-top for that offset but never
   sets it, so a sticky category strip landed on the header's own top edge
   and hid behind it. */
:root {
  --mbs-sticky-top: var(--ox-header-h);
}

/* The library's centred variant is a 1fr/auto/1fr grid, which floats the
   actions into the middle; the brand belongs at the inline start and the
   actions at the inline end, the way the real storefront reads. */
.mbs-header--centered .mbs-header__bar {
  grid-template-columns: auto 1fr;
}

.mbs-header--centered .mbs-header__brand {
  justify-self: start;
}

.mbs-header--centered .mbs-header__actions {
  justify-self: end;
}

.mbs-header__bar {
  margin-inline: 0;
  padding-inline: var(--ox-gutter);
  min-block-size: var(--ox-header-h);
}

.mbs-header__title {
  font-family: var(--ox-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ox-primary);
}

.mbs-header__tagline {
  color: var(--ox-primary-light);
  font-size: .72rem;
}

/* The actions are the only way in on a phone: a 44px target, and a visible
   one when it is reached. */
.mbs-header__btn {
  border-radius: var(--tr-pill, 999px);
  min-inline-size: 44px;
  min-block-size: 44px;
  transition: background-color .15s ease;
}

.mbs-header__btn:hover {
  background: color-mix(in srgb, var(--ox-primary) 10%, transparent);
}

/* ── announcement: the dark oxblood strip ────────────────────────────── */

.mbs-announcement-bar {
  background: var(--ox-primary-dark);
  color: var(--tc-on-primary, #fff);
  font-size: .8rem;
}

.mbs-announcement-bar__text {
  font-weight: 600;
}

/* ── the search field: a wide pill under the bar ─────────────────────── */

.mbs-search-bar {
  background: var(--ox-ground);
  margin-inline: 0;
  padding: 8px var(--ox-gutter);
}

/* The field itself is a CARD, not a hole in the ground: the library paints
   it in the background token, which on the theme's warm ground made it
   invisible — and in the dark palette it was the ground on the ground. */
.mbs-search-bar__field {
  background: transparent;
  border: 0;
  border-block-end: 1px solid color-mix(in srgb, var(--ox-ink) 22%, transparent);
  color: var(--ox-ink);
  min-block-size: 44px;
  border-radius: 0;
  transition: border-color .4s cubic-bezier(.22, 1, .36, 1);
}

/* The library takes the input's own outline away, so the FIELD has to give
   the focus ring back — otherwise a keyboard user has no idea where they
   are typing. */
.mbs-search-bar__field:focus-within {
  border-color: color-mix(in srgb, var(--ox-primary) 45%, var(--ox-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ox-primary) 16%, transparent);
}

.mbs-search-bar__input::placeholder {
  color: var(--ox-muted);
}

/* The grid's own search field gets the same treatment. */
.mbs-product-grid__search {
  background: var(--ox-surface);
  border-color: var(--ox-line);
  color: var(--ox-muted);
  border-radius: var(--ox-radius);
}

.mbs-product-grid__search:focus-within {
  border-color: color-mix(in srgb, var(--ox-primary) 45%, var(--ox-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ox-primary) 16%, transparent);
}

.mbs-product-grid__input::placeholder {
  color: var(--ox-muted);
}

/* ── category strip: a white band under the header ───────────────────── */

.mbs-category-nav {
  background: transparent;
  border-block-end: 0;
}

.mbs-category-nav__list {
  margin-inline: 0;
  padding-inline: var(--ox-gutter);
}

.mbs-category-nav__link {
  color: var(--ox-ink);
  font-family: var(--ox-body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mbs-category-nav--tabs .mbs-category-nav__link:hover,
.mbs-category-nav__link[aria-current="true"] {
  color: var(--ox-primary);
  border-block-end-color: var(--ox-primary);
}

/* ── hero: an inset banner with rounded corners, not a full bleed ───── */

.mbs-hero-cover {
  position: relative;
  margin-inline: 0;
  border-radius: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
}

/* The library's image variant sets the banner's height at a higher
   specificity than the skin's own rule, so the height has to be stated
   here. Tall enough that the campaign photograph reads as a room, not a
   colour bar. */
.mbs-hero-cover--image.has-media {
  min-block-size: clamp(460px, 70vh, 760px);
}

.mbs-hero-cover--image.has-media .mbs-hero-cover__img {
  object-position: center 42%;
}

/* A scrim only behind the type, so the coat and the window stay visible. */
.mbs-hero-cover--image.has-media .mbs-hero-cover__media::after {
  background: linear-gradient(to inline-end, rgba(20, 8, 10, .62) 0%, rgba(20, 8, 10, .18) 46%, rgba(20, 8, 10, .05) 100%);
}

.mbs-hero-cover__title,
.mbs-hero-cover__sub {
  text-shadow: 0 1px 16px rgba(20, 8, 10, .35);
}

/* The media has to leave the grid flow: left in it, the image's own
   intrinsic height sizes the banner instead of the banner's own height. */
.mbs-hero-cover--image.has-media > .mbs-hero-cover__media {
  position: absolute;
  inset: 0;
}

/* Without a cover image the library paints a LIGHT surface and keeps the
   default dark text, so the skin must not darken it — a dark backdrop with
   the library's dark headline is unreadable. The oxblood-dark backdrop
   belongs to the image variant only, where the library overlays the text. */
.mbs-hero-cover {
  background: var(--ox-ground);
}

.mbs-hero-cover--image.has-media {
  background: var(--ox-primary-dark);
}

.mbs-hero-cover__title {
  font-family: var(--ox-display);
  font-weight: 700;
  letter-spacing: -.01em;
}

.mbs-hero-cover__cta {
  background: var(--ox-surface);
  color: var(--ox-primary);
  border-radius: var(--tr-pill, 999px);
  font-weight: 600;
}

/* ── section headings: centred and heavy, the way the real site reads ── */

.mbs-featured-rail__title,
.mbs-product-grid__title,
.mbs-gallery__title,
.mbs-faq__title,
.mbs-stories-rail__title,
.mbs-about__title,
.mbs-lookbook__title {
  font-family: var(--ox-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--ox-ink);
  text-align: start;
  margin-inline: var(--ox-gutter);
  margin-block: 64px 20px;
}

/* ── rails and grids on the same 30px gutter as the real site ───────── */

.mbs-product-grid {
  margin-inline: 0;
  padding-inline: var(--ox-gutter);
}

.mbs-featured-rail {
  margin-inline: 0;
  padding-inline: 0;
}

.mbs-featured-rail__track {
  padding-inline: var(--ox-gutter);
}

/* ── the product card ────────────────────────────────────────────────── */

.mbs-card-product {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* The stage is white and the garment fills it, the way the real cards
   are shot: the photo carries its own background and is cropped to a
   near-square frame with a 10px radius. The image is taken out of flow —
   left in it, the image's own height sizes the stage and a portrait photo
   would stretch the card. An absolutely positioned REPLACED element
   resolves `auto` to its intrinsic size, so the frame is sized explicitly. */
.mbs-card-product__media {
  aspect-ratio: 3 / 4;
  background: var(--ox-surface);
  overflow: hidden;
  border-radius: 2px;
}

.mbs-card-product__img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* The air between the frame and the name is part of the real card. */
.mbs-card-product__body {
  padding: 35px 15px 15px;
  gap: 4px;
}

.mbs-card-product__name {
  font-family: var(--ox-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  text-align: start;
  color: var(--ox-ink);
  margin-block-end: 4px;
}

/* The real card sizes the LINK inside the heading, not the heading. */
.mbs-card-product__name .mbs-card-product__link {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ox-link);
}

.mbs-card-product__price {
  font-family: var(--ox-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 26px;
  color: var(--ox-muted);
}

.mbs-card-product__was,
.mbs-price__was {
  color: var(--ox-muted);
  font-weight: 400;
}

/* the wishlist heart: a white disc in the media's inline end corner */
.mbs-card-product__fav {
  inline-size: 40px;
  block-size: 40px;
  inset-block-start: 4px;
  inset-inline-end: 4px;
  background: var(--ox-surface);
  border: 1px solid var(--ox-heart-line);
  box-shadow: none;
  color: var(--ox-muted);
}

.mbs-card-product__fav .mbs-icon {
  padding: 4px;
}

.mbs-card-product__flags {
  inset-block-start: 8px;
  inset-inline-start: 8px;
}

.mbs-card-product__flag {
  background: var(--ox-primary);
  color: var(--tc-on-primary, #fff);
  border: 0;
  border-radius: 4px;
  font-weight: 600;
}

.mbs-card-product__option {
  border: 1px solid var(--ox-line);
  border-radius: var(--tr-pill, 999px);
  color: var(--ox-muted);
}

/* Sizes and colours, as a short row of pills. A count ("12 options")
   only remains when a piece has no readable variant names. */
.mbs-card-product__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.mbs-card-product__option {
  display: inline-flex;
  align-items: center;
  min-block-size: 22px;
  padding-inline: 8px;
  border: 1px solid var(--ox-line);
  border-radius: 999px;
  background: var(--ox-ground);
  color: var(--ox-ink);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .02em;
}

.mbs-card-product__option.is-more {
  border: 0;
  background: transparent;
  padding-inline: 0;
  color: var(--ox-muted);
}

.mbs-card-product__hint,
.mbs-card-product__meta {
  color: var(--ox-muted);
  font-size: .75rem;
}

/* ── the new-in rail's photo card ────────────────────────────────────── */

/* The real site uses the SAME card in its rails as in its grid, so the
   rail card is dressed to match the product card exactly. */
.mbs-card-photo {
  background: var(--ox-surface);
  border: 1px solid var(--ox-line);
  border-radius: 8px;
  box-shadow: var(--ox-shadow);
}

.mbs-card-photo__media {
  aspect-ratio: 1 / 1;
  background: var(--ox-surface);
}

.mbs-card-photo__img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.mbs-card-photo__body {
  padding: 35px 15px 15px;
  gap: 4px;
}

.mbs-card-photo__name {
  font-family: var(--ox-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  text-align: start;
  color: var(--ox-ink);
  margin-block-end: 4px;
}

.mbs-card-photo__name .mbs-card-photo__link {
  font-size: 17px;
  font-weight: 600;
  color: var(--ox-link);
}

.mbs-card-photo__fav {
  inline-size: 40px;
  block-size: 40px;
  inset-block-start: 4px;
  inset-inline-end: 4px;
  background: var(--ox-surface);
  border: 1px solid var(--ox-heart-line);
  box-shadow: none;
  color: var(--ox-muted);
}

.mbs-card-photo__fav .mbs-icon {
  padding: 4px;
}

.mbs-price__now {
  font-family: var(--ox-display);
  font-weight: 600;
  color: var(--ox-primary);
}

/* ── the offers strip: a dark oxblood band ───────────────────────────── */

.mbs-offers-strip {
  background: var(--ox-primary);
  color: var(--tc-on-primary, #fff);
}

.mbs-offers-strip__title {
  color: var(--tc-on-primary, #fff);
  font-family: var(--ox-display);
  font-weight: 700;
}

.mbs-offers-strip__label {
  background: color-mix(in srgb, var(--ox-primary-dark) 55%, transparent);
  color: var(--tc-on-primary, #fff);
}

/* The prices on THIS band's own ground. The library paints the sale price in
   the platform's danger red and the struck price in the muted tone — both are
   unreadable on a dark oxblood band (1.61:1 and 1.82:1), so the theme's own
   band carries its own ink: the reverse colour for the price, a soft blush for
   the struck one. The selectors carry the library's `.is-offer` qualifier so
   they outrank its compound rule. */
.mbs-offers-strip .mbs-price.is-offer .mbs-price__now,
.mbs-offers-strip .mbs-price .mbs-price__now {
  color: var(--tc-on-primary, #fff);
}

.mbs-offers-strip .mbs-price.is-offer .mbs-price__was,
.mbs-offers-strip .mbs-price .mbs-price__was {
  color: color-mix(in srgb, var(--tc-on-primary, #fff) 72%, transparent);
}

/* ── the lookbook (this theme's own section) ─────────────────────────── */

.mbs-lookbook {
  background: var(--ox-ground);
  padding-block: calc(var(--ox-gap) * 2);
}

.mbs-lookbook__head {
  padding-inline: var(--ox-gutter);
  margin-block-end: var(--ox-gap);
}

.mbs-lookbook__title {
  font-family: var(--ox-display);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0;
  text-align: center;
}

.mbs-lookbook__sub {
  color: var(--ox-muted);
  font-size: .85rem;
  margin: .25rem 0 0;
  text-align: center;
}

.mbs-lookbook__rail {
  display: flex;
  gap: var(--ox-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--ox-gutter);
  padding-block-end: var(--ox-gap);
  scrollbar-width: thin;
  /* it is a real <ul> (the frames are <li>, so the list semantics are
     honest) — the browser's list chrome has to go */
  margin: 0;
  list-style: none;
}

.mbs-lookbook__card {
  flex: 0 0 auto;
  inline-size: min(78vw, 290px);
  scroll-snap-align: start;
  background: var(--ox-surface);
  border: 1px solid var(--ox-line);
  border-radius: 8px;
  box-shadow: var(--ox-shadow);
  overflow: clip;
}

.mbs-lookbook__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mbs-lookbook__img {
  inline-size: 100%;
  /* The width/height attributes are the no-layout-shift hint; without an
     explicit block-size they WIN over aspect-ratio and the frame renders
     at the attribute's height (a 320x1200 card). Both dimensions have to
     be stated, the way the library states them on its own images. */
  block-size: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: color-mix(in srgb, var(--ox-primary) 6%, var(--ox-ground));
  display: block;
}

.mbs-lookbook__meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 16px 15px;
  text-align: start;
}

.mbs-lookbook__name {
  font-family: var(--ox-display);
  font-weight: 600;
  font-size: .92rem;
}

.mbs-lookbook__note {
  color: var(--ox-muted);
  font-size: .8rem;
}

/* ── stories, gallery, faq, about ────────────────────────────────────── */

.mbs-stories-rail__title {
  font-family: var(--ox-display);
}

.mbs-gallery__img {
  border-radius: 10px;
}

.mbs-faq {
  background: var(--ox-surface);
  margin-inline: var(--ox-gutter);
  border-radius: 8px;
  box-shadow: var(--ox-shadow);
}

.mbs-faq__item {
  border-block-end: 1px solid var(--ox-line);
}

.mbs-faq__q {
  font-family: var(--ox-display);
  font-weight: 600;
}

.mbs-about__title {
  font-family: var(--ox-display);
  font-weight: 700;
}

.mbs-about__img {
  border-radius: 10px;
}

/* ── the rhythm of the page ──────────────────────────────────────────────
   The library gives every section its own padding and they do not agree
   (24, 16, 12), so the page reads as a stack of unrelated bands rather
   than one column. The theme sets ONE rhythm: every content block gets the
   same vertical space and the same 30px gutter as the hero and the rails. */
.mbs-product-grid,
.mbs-gallery,
.mbs-about,
.mbs-hours,
.mbs-location,
.mbs-reviews,
.mbs-testimonials,
.mbs-banners-slider,
.mbs-featured-rail,
.mbs-stories-rail {
  padding-inline: var(--ox-gutter);
  padding-block: calc(var(--ox-gap) * 1.75);
}

/* The section headings sit on the same baseline as everything else, with
   room to breathe above and below. */
.mbs-product-grid__title,
.mbs-gallery__title,
.mbs-stories-rail__title,
.mbs-reviews__title,
.mbs-testimonials__title,
.mbs-about__title {
  margin-block-end: var(--ox-gap);
}

/* The category headings inside the grid are a level below the section
   heading, so they are the ink at a smaller size — never another 30px
   display line competing with the section title above it. */
.mbs-product-grid__group-title {
  display: block;
  margin-block: var(--ox-gap) var(--ox-gap);
  font-family: var(--ox-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ox-ink);
}

/* ── the product card: alive, not a sticker ────────────────────────────── */

.mbs-card-product {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mbs-card-product:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ox-primary) 28%, var(--ox-line));
  box-shadow: 0 10px 26px rgba(103, 113, 122, .14);
}

/* The add button: a press state, and a sold-out state that reads as
   unavailable rather than as a broken button. */
.mbs-card-product__add,
.mbs-card-photo__add {
  background: transparent;
  color: var(--ox-ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-block-size: 32px;
  padding: 0;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .4s cubic-bezier(.22, 1, .36, 1);
}

.mbs-card-product__add:hover {
  filter: brightness(1.08);
}

.mbs-card-product__add:active {
  transform: scale(.98);
}

.mbs-card-product__add:disabled {
  background: rgba(var(--tc-text-rgb, 17, 17, 17), .10);
  color: var(--ox-muted);
  cursor: not-allowed;
}

/* The wishlist heart: a touch target that reads as a control. */
.mbs-card-product__fav {
  transition: transform .15s ease, background-color .15s ease;
}

.mbs-card-product__fav:hover {
  transform: scale(1.06);
}

/* The "from" prefix is a hint, not a price. */
.mbs-price__from {
  color: var(--ox-muted);
  font-weight: 400;
}

/* ── the header ───────────────────────────────────────────────────────── */

.mbs-header {
  box-shadow: 0 1px 0 rgba(var(--tc-text-rgb, 17, 17, 17), .04);
}

/* ── footer and the bottom furniture ─────────────────────────────────── */

.mbs-footer {
  background: var(--ox-surface);
  color: var(--ox-ink);
  margin-block-start: 0;
}

/* Gift cards, loyalty and hours stay on the page, but closed and quiet
   so they don't sit between the clothes. */
#mb-section-giftcards,
#mb-section-loyalty,
#mb-section-hours {
  margin-block: 8px;
}

.mbs-gc__head {
  cursor: pointer;
  list-style: none;
}

.mbs-gc__head::-webkit-details-marker {
  display: none;
}

.mbs-gc__card:not([open]) .mbs-gc__sub {
  display: none;
}

.mbs-loyalty-card,
.mbs-hours {
  padding-block: 12px;
}

/* The product view: the photograph first, the name as the headline,
   the size and colour as pills. */
.mb-prod-gallery {
  background: var(--ox-surface);
  border-radius: 12px;
  overflow: hidden;
}

.mb-prod-img {
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.mb-prod-head h2 {
  font-family: var(--ox-display);
  font-weight: 600;
  letter-spacing: -.01em;
}

.mb-dim-opt span,
.mb-opt span {
  border-radius: 999px;
}

.mbs-footer__inner {
  margin-inline: 0;
  padding-inline: var(--ox-gutter);
}

.mbs-footer__name {
  font-family: var(--ox-display);
  font-weight: 700;
  color: var(--ox-primary);
}

.mbs-footer a {
  color: var(--ox-ink);
}

.mbs-bottom-tabbar__nav {
  background: var(--ox-surface);
  border-block-start: 1px solid var(--ox-line);
}

.mbs-bottom-tabbar__tab.is-on {
  color: var(--ox-primary);
}

.mbs-floating-cart {
  background: var(--ox-primary);
  color: var(--tc-on-primary, #fff);
  border-radius: var(--tr-pill, 999px);
  font-weight: 600;
  box-shadow: var(--ox-shadow);
}

/* ── a11y: the focus ring the library does not already draw ──────────── */

/* The library draws its own focus rings on its controls, and those resolve
   to --tc-primary, so they are already oxblood. The lookbook is this
   theme's own section, so it needs one of its own. */
.mbs-lookbook a:focus-visible,
.mbs-lookbook button:focus-visible {
  outline: 2px solid var(--ox-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .mbs-lookbook__rail {
    scroll-behavior: auto;
  }
}

/* ── gift cards ──────────────────────────────────────────────────────── */

/* The buy side of the gift-card feature: a card on the page ground, the
   denominations as chips, and the purchase fields in a grid. The theme's
   own section, so it carries the theme's own ink and line. */
.mbs-gc {
  margin-inline: var(--ox-gutter);
}

.mbs-gc__card {
  background: var(--ox-surface);
  border-radius: 8px;
  box-shadow: var(--ox-shadow);
  padding: clamp(20px, 4vw, 40px);
  max-inline-size: 720px;
  margin-inline: auto;
}

.mbs-gc__head {
  margin-block-end: var(--ox-space, 24px);
}

.mbs-gc__title {
  font-family: var(--ox-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 42px;
  color: var(--ox-ink);
  margin: 0;
}

.mbs-gc__sub {
  margin: 6px 0 0;
  color: var(--ox-muted, #6b6b6b);
  font-size: 15px;
  line-height: 24px;
}

.mbs-gc__amounts {
  border: 0;
  margin: 0 0 var(--ox-space, 24px);
  padding: 0;
}

.mbs-gc__legend,
.mbs-gc__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ox-ink);
  margin-block-end: 8px;
}

.mbs-gc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 14px;
}

.mbs-gc__chip {
  min-block-size: 44px;
  padding-inline: 18px;
  border: 1px solid var(--ox-line);
  border-radius: var(--tr-pill, 999px);
  background: var(--ox-surface);
  color: var(--ox-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.mbs-gc__chip.is-on {
  background: var(--ox-primary);
  border-color: var(--ox-primary);
  color: var(--tc-on-primary, #fff);
}

.mbs-gc__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-block-end: 16px;
}

.mbs-gc__field--wide {
  grid-column: 1 / -1;
}

.mbs-gc__input {
  inline-size: 100%;
  min-block-size: 46px;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--ox-line);
  border-radius: 10px;
  background: var(--ox-surface);
  color: var(--ox-ink);
  font: inherit;
  font-size: 15px;
}

.mbs-gc__input--area {
  min-block-size: 76px;
  resize: vertical;
}

.mbs-gc__input:focus-visible {
  outline: 2px solid var(--ox-primary);
  outline-offset: 1px;
}

.mbs-gc__cta {
  inline-size: 100%;
  min-block-size: 50px;
  margin-block-start: 20px;
  border: 0;
  border-radius: 10px;
  background: var(--ox-primary);
  color: var(--tc-on-primary, #fff);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.mbs-gc__cta:focus-visible {
  outline: 2px solid var(--ox-ink);
  outline-offset: 2px;
}

/* The search under the hero is a second menu. The grid keeps the one
   field, drawn as a line rather than a box. */
#mb-section-search {
  display: none;
}

.mbs-product-grid__tools .mbs-product-grid__search {
  display: flex;
  background: transparent;
  border: 0;
  border-block-end: 1px solid color-mix(in srgb, var(--ox-ink) 22%, transparent);
  border-radius: 0;
  box-shadow: none;
}

.mbs-card-photo {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.mbs-card-photo__media {
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ox-surface);
}

.mbs-card-photo__body {
  padding-inline: 0;
  background: transparent;
}

.mbs-card-photo__img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.mbs-lookbook__card {
  overflow: hidden;
}

/* The product page is the whole screen: the photograph on one side,
   the name and the choices on the other. */
.mbs-header__view.mbs-header__view--product.is-active {
  justify-content: stretch;
  background: var(--ox-ground);
  align-items: stretch;
}

.mbs-header__view--product .mbs-header__panel {
  max-inline-size: none;
  display: flex;
  flex-direction: column;
  block-size: 100%;
  max-block-size: 100%;
  background: var(--ox-ground);
}

.mbs-header__view--product .mbs-header__panel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  overflow: hidden;
  min-block-size: 0;
}

.mbs-header__view--product [data-mb-product-mount] {
  display: flex;
  flex: 1;
  min-block-size: 0;
}

.mbs-header__view--product .mb-prod {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  grid-template-rows: minmax(0, 1fr) auto;
  align-self: stretch;
  block-size: auto;
  min-block-size: 0;
  max-block-size: none;
}

.mbs-header__view--product .mb-prod-gallery,
.mbs-header__view--product .mb-prod-body {
  min-inline-size: 0;
  max-inline-size: 100%;
}

/* The library frame is 4:3. Paired with a full-screen height that makes
   the photograph wider than its column, so the details cover half of it. */
.mbs-header__view--product .mb-prod-gallery {
  grid-column: 1;
  grid-row: 1 / -1;
  aspect-ratio: auto;
  inline-size: auto;
  align-self: stretch;
  block-size: auto;
  min-block-size: 0;
  background: #ece7df;
  border-radius: 0;
  overflow: hidden;
}

.mbs-header__view--product .mb-prod-img {
  inline-size: 100%;
  max-inline-size: none;
  block-size: 100%;
  max-block-size: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.38);
  transform-origin: center 28%;
  background: #ece7df;
}

.mbs-header__view--product .mb-prod-body {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  padding: 72px 40px 24px;
  background: var(--ox-ground);
  max-block-size: 100%;
  overflow: auto;
  position: relative;
  z-index: 1;
}

.mbs-header__view--product .mb-prod-cta {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0;
  padding: 12px 40px 24px;
  background: var(--ox-ground);
  z-index: 2;
}

/* A clothing order has no tip. */
.mb-tip {
  display: none;
}

.mbs-header__view--product .mb-prod-related {
  display: none;
}

/* A full day of quarter-hour buttons is a timetable, not a cart.
   Days and times each stay on one scrolling line. */
.mb-slot-days,
.mb-slot-times {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.mbs-header__view--product .mb-prod-head h2 {
  font-family: var(--ox-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.mbs-header__view--product .mb-dim-opt span,
.mbs-header__view--product .mb-opt span {
  border-radius: 999px;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), background-color .35s cubic-bezier(.22, 1, .36, 1);
}

.mbs-header__view--product .mb-place {
  border-radius: 999px;
  background: var(--ox-primary);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .mbs-header__view--product .mb-prod {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    overflow: auto;
  }

  .mbs-header__view--product .mb-prod-gallery {
    grid-column: 1;
    grid-row: 1;
  }

  .mbs-header__view--product .mb-prod-body {
    grid-column: 1;
    grid-row: 2;
  }

  .mbs-header__view--product .mb-prod-cta {
    grid-column: 1;
    grid-row: 3;
  }

  .mbs-header__view--product .mb-prod-gallery,
  .mbs-header__view--product .mb-prod-img {
    block-size: 58vh;
    max-block-size: 58vh;
  }
}

.mbs-card-product__add:hover,
.mbs-card-photo__add:hover {
  filter: none;
  color: var(--ox-primary);
}

.mbs-category-nav__link {
  position: relative;
}

.mbs-category-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -6px;
  block-size: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: inline-start;
}

/* Motion that stays visible: the campaign keeps drifting, type rises
   once, and each product rises as it enters the screen. */
@media (prefers-reduced-motion: no-preference) {
  .mbs-hero-cover__img {
    animation: ox-drift 22s cubic-bezier(.45, 0, .55, 1) infinite alternate;
  }

  .mbs-hero-cover__content > * {
    animation: ox-rise 1s cubic-bezier(.22, 1, .36, 1) both;
  }

  .mbs-hero-cover__content > :nth-child(2) {
    animation-delay: .15s;
  }

  .mbs-hero-cover__content > :nth-child(3) {
    animation-delay: .3s;
  }

  .mbs-card-product,
  .mbs-card-photo,
  .mbs-lookbook__card {
    animation: ox-rise .85s cubic-bezier(.22, 1, .36, 1) both;
  }

  .mbs-featured-rail__track > :nth-child(2) .mbs-card-photo,
  .mbs-product-grid__grid > :nth-child(2) {
    animation-delay: .08s;
  }

  .mbs-featured-rail__track > :nth-child(3) .mbs-card-photo,
  .mbs-product-grid__grid > :nth-child(3) {
    animation-delay: .16s;
  }

  .mbs-featured-rail__track > :nth-child(4) .mbs-card-photo,
  .mbs-product-grid__grid > :nth-child(4) {
    animation-delay: .24s;
  }

  @supports (animation-timeline: view()) {
    .mbs-card-product,
    .mbs-card-photo,
    .mbs-lookbook__card {
      animation: ox-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
      animation-delay: 0s;
    }
  }

  .mbs-card-product__img,
  .mbs-card-photo__img,
  .mbs-lookbook__img {
    transition: transform .9s cubic-bezier(.22, 1, .36, 1);
  }

  .mbs-card-product:hover .mbs-card-product__img,
  .mbs-card-photo:hover .mbs-card-photo__img,
  .mbs-lookbook__card:hover .mbs-lookbook__img {
    transform: scale(1.06);
  }

  .mbs-category-nav__link::after,
  .mbs-header__btn,
  .mbs-hero-cover__cta {
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), color .4s cubic-bezier(.22, 1, .36, 1), background-color .4s cubic-bezier(.22, 1, .36, 1);
  }

  .mbs-category-nav__link:hover::after,
  .mbs-category-nav__link[aria-current="true"]::after {
    transform: scaleX(1);
  }

  .mbs-hero-cover__cta:hover {
    transform: translateY(-2px);
  }
}

@keyframes ox-drift {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

@keyframes ox-rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mbs-hero-cover__img,
  .mbs-hero-cover__content > *,
  .mbs-card-product,
  .mbs-card-photo,
  .mbs-lookbook__card {
    animation: none;
  }
}
