/* ============================================================================
   Pibbi skin — loaded after transplant.css, before theme-fonts / theme-colors.
   ----------------------------------------------------------------------------
   The theme is the pebble family's markup and behaviour, restyled after the
   pibbi. baby & kids store concept: rounded Fredoka headings over DM Sans body
   copy, a cream canvas (#f9f2e9) with deep green-ink text (#24342c), soft
   sage / butter / sky / coral bands, pillowy rounded cards and wavy edges.

   Colours come from Theme settings (Colors) and each section's own pickers, so
   nothing here hard-codes a section surface. What this sheet owns:
     1. type + shape tokens          8. our story: card + split layouts
     2. buttons + header link        9. testimonials: quote cards
     3. header (+ wavy edge)        10. hot items: story layout
     4. product cards               11. community marquee + service highlights
     5. collection cards: circles   12. footer (+ newsletter band)
     6. product tabs                13. collection, product, blog, pages
     7. collection highlight: pill tabs
   Theme settings > Typography still wins: theme-fonts prints after this sheet.
   ============================================================================ */

/* 1. Type + shape tokens --------------------------------------------------- */
@media (max-width: 1024px) { :root { --pb-wave-w: 13rem; --pb-wave-h: 3rem; } }
@media (max-width: 640px) { :root { --pb-wave-w: 10rem; --pb-wave-h: 2.3rem; } }
:root {
  --pb-round: "Fredoka", "Arial Rounded MT Bold", "Noto Sans TC", sans-serif;
  --pb-sans: "DM Sans", "Helvetica Neue", "Noto Sans TC", Arial, sans-serif;
  --pb-radius: 1.6rem;
  --pb-line: rgb(var(--color-foreground) / 0.18);
  /* the reference's soft sine edge (160 x 36, smaller on tablets and phones): the
     header's hangs down from its lower edge, the newsletter band's meets the footer */
  --pb-wave-w: 16rem;
  --pb-wave-h: 3.6rem;
  --pb-wave-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 36' preserveAspectRatio='none'%3E%3Cpath d='M0 0H160V14C140 26 100 26 80 14C60 2 20 2 0 14Z'/%3E%3C/svg%3E");
  --pb-wave-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 36' preserveAspectRatio='none'%3E%3Cpath d='M0 0H160V18C140 30 100 30 80 18C60 6 20 6 0 18Z'/%3E%3C/svg%3E");

  --font-heading--family: var(--pb-round);
  --font-heading--weight: 500;
  --font-heading--letter-spacing: -0.02em;
  --font-highlight--family: var(--pb-round);
  --font-highlight--weight: 500;
  --font-body--family: var(--pb-sans);
  --font-body--weight: 400;
  --font-subheading--family: var(--pb-sans);
  --font-subheading--weight: 600;
  --font-subheading--letter-spacing: 0;
  --font-subheading--transform: none;
  --font-subheading--size: calc(1.3rem * var(--font-body--scale, 1));
  --font-navigation--family: var(--pb-sans);
  --font-navigation--transform: none;
  --font-navigation--letter-spacing: 0;
  --font-button--family: var(--pb-sans);
  --font-button--weight: 600;
  --font-button--transform: none;
  --font-button--letter-spacing: 0;
  --font-pcard-title--family: var(--pb-sans);
  --font-pcard-title--weight: 500;
  --font-pcard-title--size: calc(1.8rem * var(--font-body--scale, 1));
  --font-pcard-title--transform: none;
  --font-pcard-price--family: var(--pb-sans);
  --font-pcard-price--weight: 400;
  --font-pcard-badge--family: var(--pb-sans);
  --font-pcard-badge--weight: 600;

  --font-size--paragraph: calc(1.6rem * var(--font-body--scale, 1));
  --font-size--paragraph-small: calc(1.4rem * var(--font-body--scale, 1));
  --font-size--mega-title: calc(clamp(4rem, 2.9rem + 1.8vw, 5.6rem) * var(--font-heading--scale, 1));
  --font-size--h1: calc(clamp(3.6rem, 3.1rem + 0.8vw, 4.4rem) * var(--font-heading--scale, 1));
  --font-size--h2: calc(clamp(2.8rem, 2.3rem + 0.8vw, 3.6rem) * var(--font-heading--scale, 1));
  --font-size--h3: calc(clamp(2.4rem, 2.1rem + 0.4vw, 2.8rem) * var(--font-heading--scale, 1));
  --font-size--h4: calc(2.2rem * var(--font-heading--scale, 1));
  --font-size--h5: calc(1.8rem * var(--font-heading--scale, 1));
  --font-size--h6: calc(1.6rem * var(--font-heading--scale, 1));
  --font-h1--line-height: calc(1.15 * var(--font-heading--line-height-scale, 1));
  --font-h2--line-height: calc(1.15 * var(--font-heading--line-height-scale, 1));
  --font-h3--line-height: calc(1.2 * var(--font-heading--line-height-scale, 1));

  --button-corner-radius: 1rem;
  --badge-corner-radius: 99rem;
  --input-border-radius: 1rem;
  --product-card-media-radius: var(--pb-radius);
  --dialog-radius: var(--pb-radius);
  --button-height: 5rem;
}
/* the navigation keeps its 600 weight whatever the body weight select says
   (theme-fonts writes the body weight onto --font-navigation--weight) */
.header, .menu-drawer { --font-navigation--weight: 600; }

body { font-family: var(--font-body--family); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .mega-title {
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h5, h6, .h5, .h6 { letter-spacing: 0; }
.text-subheading, .text-subheading p {
  font-family: var(--font-body--family);
  font-size: calc(1.3rem * var(--font-body--scale, 1));
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.color-subtext, .rte .color-subtext { opacity: 1; }
.hopscotch-section .text-block.h1, .hopscotch-section .text-block.h1 p {
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight);
  font-size: var(--font-size--h2);
  line-height: var(--font-h2--line-height);
  letter-spacing: -0.02em;
}

/* the page's own colour pair, read at the root before a section's pickers replace it */
:root { --pb-page-background: var(--color-background, 255 255 255); --pb-page-foreground: var(--color-foreground, 0 0 0); }

/* 2. Buttons ---------------------------------------------------------------- */
.btn {
  min-height: var(--button-height);
  padding-inline: 2.4rem;
  font-family: var(--font-button--family);
  font-size: calc(1.6rem * var(--font-body--scale, 1));
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.btn:not(.btn--icon-only) { border-radius: 1rem; }
.btn:not(.btn--icon-only)::before, .btn:not(.btn--icon-only)::after { border-radius: 1rem !important; }
/* the family's sliding pill icon is not part of this look: one label and an arrow */
.btn--icon-solid .btn__icon, .btn--icon-solid-desktop .btn__icon { display: none !important; }
/* the base (and transplant.css) reserve room on the right for that hidden pill: even it out */
html .btn.btn--icon-solid { padding-inline-end: var(--button-padding-inline, 2.4rem); }
@media (min-width: 768px) { html .btn.btn--icon-solid-desktop { padding-inline-end: var(--button-padding-inline, 2.4rem); } }
.btn--icon-solid .btn__text, .btn--icon-solid-desktop .btn__text { opacity: 1 !important; transform: none !important; }
.btn--icon-solid .btn__text::after, .btn--icon-solid-desktop .btn__text::after {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1.6rem;
  margin-inline-start: 1.2rem;
  vertical-align: -0.25rem;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12h15m-6-6 6 6-6 6"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12h15m-6-6 6 6-6 6"/></svg>') center / contain no-repeat;
}
.pb-arrow { width: 1.6rem; height: 1.6rem; flex: none; }
.btn .pb-arrow { margin-inline-start: 1.2rem; }

/* the draft's underlined header link: "Explore all products →" */
.pb-head-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-family: var(--font-body--family);
  font-size: calc(1.5rem * var(--font-body--scale, 1));
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.pb-head-link .pb-arrow { width: 1.5rem; height: 1.5rem; transition: transform .25s ease; }
.pb-head-link:hover .pb-arrow { transform: translateX(0.3rem); }

/* 3. Header -------------------------------------------------------------------- */
.header {
  --padding-block-start: 0 !important;
  --padding-block-end: 0 !important;
  --padding-block-start-mobile: 0 !important;
  --padding-block-end-mobile: 0 !important;
}
.header .header__top { min-height: 8.8rem; }
@media (max-width: 989px) { .header .header__top { min-height: 6.8rem; } }
/* logo left, menu centred, icons right */
@media (min-width: 1024px) {
  .header--logo-left { --header-grid-template: "logo nav icons" / 1fr auto 1fr; }
}
.header--logo-left .header__navigation { margin-inline-start: 0; }
.header__background-inner { border-radius: 0 !important; box-shadow: none !important; border: 0 !important; }
/* the wavy lower edge: the reference's soft sine in the header's own colour */
.header__background-inner::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(100% - 1px);
  height: var(--pb-wave-h);
  background: rgb(var(--color-background));
  -webkit-mask: var(--pb-wave-down) 0 0 / var(--pb-wave-w) var(--pb-wave-h) repeat-x;
          mask: var(--pb-wave-down) 0 0 / var(--pb-wave-w) var(--pb-wave-h) repeat-x;
  pointer-events: none;
}
.header__logo--text {
  font-family: var(--font-heading--family);
  font-size: calc(clamp(2.4rem, 2rem + 0.6vw, 3rem) * var(--font-body--scale, 1));
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.header__menu .menu__item, .header__menu summary .menu__item {
  font-family: var(--font-navigation--family);
  font-size: calc(1.6rem * var(--font-body--scale, 1));
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
/* hover = a small coral dot under the label: the family's filled pill (::before)
   and its inverted label are switched off */
.header__menu .menu__item::before { display: none !important; }
.header__menu .menu__item { position: relative; }
.header__menu .menu__item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #e98a9b;
  transform: translateX(-50%) scale(0);
  transition: transform .25s ease;
}
.header__menu .menu__item:hover, .header__menu details[open] > summary .menu__item { color: inherit; }
.header__menu .menu__item:hover::after, .header__menu details[open] > summary .menu__item::after,
.header__menu .menu__item[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.header__icons a, .header__icons button { color: inherit; }
.cart-count-bubble, .cart-count { border-radius: 999px !important; }
.mega-menu { border-radius: 0 0 var(--pb-radius) var(--pb-radius) !important; }
/* small menus run on from the header: the reference's line down the side, none along the top */
.header .dropdown { box-shadow: inset -1px 0 rgb(var(--color-border) / var(--color-border-alpha)); }

/* 4. Product cards ----------------------------------------------------------- */
.product-card__title, .product-card__title .reversed-link__text {
  font-family: var(--font-body--family);
  font-size: calc(1.8rem * var(--font-body--scale, 1));
  font-weight: 500;
  line-height: calc(1.35 * var(--font-body--line-height-scale, 1));
  text-transform: none;
}
.product-card__price, .product-card__price .price, .product-card__price .money {
  font-family: var(--font-body--family);
  font-size: calc(1.5rem * var(--font-body--scale, 1));
  font-weight: 400;
}
.product-card__media { background: rgb(var(--color-foreground) / 0.05); border-radius: var(--pb-radius); }
.badge {
  font-family: var(--font-body--family);
  font-size: calc(1.2rem * var(--font-body--scale, 1));
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* 5. Collection cards, Layout "Round pictures" ---------------------------------- */
.collection-tabs--circles .collection-card__image {
  --border-radius: 50% !important;
  border-radius: 50%;
  aspect-ratio: 1;
  overflow: hidden;
}
.collection-tabs--circles .collection-card__image .media { --ratio: 1 !important; --ratio-mobile: 1 !important; height: 100%; }
.collection-tabs--circles .collection-card__image img { width: 100%; height: 100%; object-fit: cover; }
.collection-tabs--circles .collection-card__inner { align-items: center; padding-inline: clamp(0.4rem, 1vw, 2rem); }
.collection-tabs--circles .collection-card__content { align-items: center; text-align: center; }
.collection-tabs--circles .collection-card__title {
  font-family: var(--font-body--family);
  font-size: calc(1.6rem * var(--font-body--scale, 1));
  font-weight: 600;
  letter-spacing: 0;
}
.collection-tabs .section__header { margin-block-end: clamp(2.4rem, 2.5vw, 3.6rem); }
.collection-tabs--circles .collection-card__image { width: min(100%, 21rem); margin-inline: auto; transition: transform .35s ease, box-shadow .35s ease; }
html .collection-tabs--circles .media-hover__element, html .collection-tabs--circles .collection-card:hover .media-hover__element { transform: none !important; }
@media (hover: hover) {
  .collection-tabs--circles .collection-card:hover .collection-card__image { transform: translateY(-0.4rem); box-shadow: 0 1rem 2.5rem rgb(38 58 43 / 0.12); }
}
/* the card is a .reversed-link: no underline drawn under the whole card on hover */
html .collection-tabs--circles .collection-card.reversed-link { background-image: none; }
.collection-tabs--circles .collection-card:has(:focus-visible) .collection-card__image { outline: 3px solid #cf6c51; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .collection-tabs--circles .collection-card__image { transition: none; } }

/* 6. Product tabs ------------------------------------------------------------------ */
.section--featured-collection .section__header { row-gap: 2.4rem; }
@media (min-width: 768px) { .section--featured-collection .section__header > .pb-head-link { margin-inline-start: auto; } }
/* the tab row sits under the heading, centred, as one segmented control */
@media (min-width: 768px) {
  .section--featured-collection .section__header { flex-wrap: wrap; }
  .section--featured-collection .tabs__header { order: 3; flex: 1 0 100%; display: flex; justify-content: center; }
}
.section--featured-collection .tabs__header-inner .swipe__inner {
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 1.4rem;
  background: rgb(var(--color-background-secondary));
  justify-content: center;
  flex-wrap: nowrap;
}
.section--featured-collection .tabs__button {
  min-width: 14rem;
  min-height: 4.8rem;
  padding-inline: 2.4rem;
  border-radius: 1rem !important;
  background: transparent;
  color: rgb(var(--color-foreground));
  font-family: var(--font-body--family);
  font-size: calc(1.6rem * var(--font-body--scale, 1));
  font-weight: 500;
  text-transform: none;
  transition: background-color .2s, color .2s;
}
.section--featured-collection .tabs__button:hover:not([aria-selected="true"]) { background: rgb(var(--color-foreground) / 0.08); }
@media (max-width: 767px) { .section--featured-collection .tabs__button { min-width: 0; flex: 1; padding-inline: 1rem; font-size: calc(1.4rem * var(--font-body--scale, 1)); } }
.section--featured-collection .tabs__button::before { display: none !important; }
.section--featured-collection .tabs__button[aria-selected="true"] {
  background: rgb(var(--color-primary-button-background));
  color: rgb(var(--color-primary-button-text));
}
.product-tabs--single .tabs__header { display: none !important; }
/* three per row: the slider stays inside the page width; a slide outside the
   column is hidden, not just clipped (no click, no Tab) */
.product-tabs--cols-3 .swiper-initialized .swiper-slide:not(.swiper-slide-visible) { visibility: hidden; }

/* 7. Collection highlight, Layout "Pill tabs" --------------------------------------
   Heading row, a row of pills, then one card: the photo on the left and a light
   panel on the right with the item's subheading, title, text and button. */
.collection-highlight--tabs { padding-block: clamp(5.6rem, 6vw, 8.8rem); }
.collection-highlight--tabs .collection-highlight__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "intro intro" "pills pills" "image panel";
  gap: 0;
}
.collection-highlight--tabs .collection-highlight__content {
  display: contents;
}
.collection-highlight--tabs .collection-highlight__content-header { display: none; }
.collection-highlight--tabs .collection-highlight__intro {
  grid-area: intro;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.6rem 4rem;
  margin-block-end: 2.8rem;
}
.collection-highlight__intro .text-subheading { margin: 0 0 1.2rem; }
.collection-highlight__heading { margin: 0; }
.collection-highlight__intro-text { margin: 1.2rem 0 0; font-size: calc(1.6rem * var(--font-body--scale, 1)); opacity: 0.8; }
.collection-highlight--tabs .collection-highlight__content-body {
  grid-area: pills;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2rem;
}
.collection-highlight--tabs .collection-highlight__title {
  min-height: 0;
  margin: 0;
  padding: 0.9rem 2.4rem;
  border: 1px solid rgb(var(--color-foreground) / 0.3);
  border-radius: 99rem;
  color: rgb(var(--color-foreground));
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.collection-highlight--tabs .collection-highlight__title::after,
.collection-highlight--tabs .collection-highlight__title-thumbnail { display: none !important; }
.collection-highlight--tabs .collection-highlight__title h2 {
  --font-size: calc(1.5rem * var(--font-body--scale, 1)) !important;
  --font-size-mobile: calc(1.5rem * var(--font-body--scale, 1)) !important;
  font-family: var(--font-body--family) !important;
  font-size: calc(1.5rem * var(--font-body--scale, 1)) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}
.collection-highlight--tabs .collection-highlight__title[aria-current="true"] {
  background: rgb(var(--color-foreground));
  border-color: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  padding-inline-end: 2.4rem;
}
.collection-highlight--tabs .collection-highlight__title:hover:not([aria-current="true"]) { border-color: rgb(var(--color-foreground)); }
.collection-highlight--tabs .collection-highlight__images {
  grid-area: image;
  aspect-ratio: auto;
  min-height: clamp(32rem, 32vw, 46rem);
  border-radius: var(--pb-radius) 0 0 var(--pb-radius);
  overflow: hidden;
}
.collection-highlight--tabs .collection-highlight__images .image-card { --border-radius: 0 !important; border-radius: 0; }
.collection-highlight--tabs .image-card__content { display: none; }
.collection-highlight--tabs .collection-highlight__content-footer {
  grid-area: panel;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  height: auto !important;
  padding: clamp(3.2rem, 5vw, 7.2rem);
  border-radius: 0 var(--pb-radius) var(--pb-radius) 0;
  /* a card in the page's own colours (Theme settings > Colors), readable on any section colour */
  --color-background: var(--pb-page-background);
  --color-foreground: var(--pb-page-foreground);
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
}
/* every item's text shares one grid cell (the component only fades them): the markup
   leaves the first in flow and takes the others out, so a switch squeezed the new text
   beside the hidden first one */
.collection-highlight--tabs .collection-highlight__preview {
  grid-area: 1 / 1;
  position: relative;
  align-items: flex-start;
  text-align: start;
  gap: 1.6rem;
}
.collection-highlight--tabs .collection-highlight__preview-title {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-family: var(--font-body--family);
  font-size: calc(1.3rem * var(--font-body--scale, 1));
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.collection-highlight--tabs .collection-highlight__preview-title::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #cf6c51;
}
.collection-highlight__preview-heading { margin: 0; max-width: 16ch; font-size: var(--font-size--h3); line-height: var(--font-h3--line-height); }
.collection-highlight--tabs .collection-highlight__preview-text { max-width: 44ch; font-size: calc(1.6rem * var(--font-body--scale, 1)); line-height: 1.7; }
.collection-highlight--tabs .collection-highlight__preview-text p { margin: 0; }
.collection-highlight__preview-button { margin-block-start: 0.8rem; }
@media (min-width: 768px) {
  .collection-highlight--tabs.collection-highlight--image-right .collection-highlight__wrapper { grid-template-areas: "intro intro" "pills pills" "panel image"; }
  .collection-highlight--tabs.collection-highlight--image-right .collection-highlight__images { border-radius: 0 var(--pb-radius) var(--pb-radius) 0; }
  .collection-highlight--tabs.collection-highlight--image-right .collection-highlight__content-footer { border-radius: var(--pb-radius) 0 0 var(--pb-radius); }
}
@media (max-width: 767px) {
  .collection-highlight--tabs .collection-highlight__wrapper {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "pills" "image" "panel";
  }
  .collection-highlight--tabs .collection-highlight__content-body { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--page-padding, 1.6rem)); padding-inline: var(--page-padding, 1.6rem); }
  .collection-highlight--tabs .collection-highlight__title { flex: none; }
  .collection-highlight--tabs .collection-highlight__images { min-height: 0; aspect-ratio: 4 / 3; border-radius: var(--pb-radius) var(--pb-radius) 0 0; }
  .collection-highlight--tabs .collection-highlight__content-footer { align-items: start; border-radius: 0 0 var(--pb-radius) var(--pb-radius); padding: 3.2rem 2.4rem; }
}

/* 8. Our story: card + split ----------------------------------------------------------- */
.our-story--card, .our-story--split { overflow: hidden; }
.our-story--card .custom-section__content, .our-story--split .custom-section__content { flex-direction: row-reverse; }
.our-story--card .custom-section__content > .group-block, .our-story--split .custom-section__content > .group-block { flex: 1 1 50%; }
.our-story--card .our-story__media-col, .our-story--split .our-story__media-col { --padding-inline-start: 0 !important; --padding-inline-end: 0 !important; padding: 0 !important; align-self: stretch; }
.our-story--card .our-story__media-col .group-block-content,
.our-story--split .our-story__media-col .group-block-content,
.our-story--card .image-with-badges, .our-story--split .image-with-badges,
.our-story--card .image-with-badges__media, .our-story--split .image-with-badges__media { height: 100%; }
.our-story--card .image-with-badges__media .media, .our-story--split .image-with-badges__media .media { --ratio: auto !important; height: 100%; min-height: 100%; }
.our-story--card .image-with-badges__media img, .our-story--split .image-with-badges__media img { width: 100%; height: 100%; object-fit: cover; }
.our-story--card .image-with-badges__media, .our-story--split .image-with-badges__media { border-radius: 0 !important; }
.our-story--card .custom-section__content, .our-story--split .custom-section__content { --padding-block-start: 0 !important; --padding-block-end: 0 !important; --padding-block-start-mobile: 0 !important; --padding-block-end-mobile: 0 !important; padding-block: 0 !important; }
.our-story--card .group-block:not(.our-story__media-col), .our-story--split .group-block:not(.our-story__media-col) { padding: clamp(4rem, 6vw, 8.8rem) clamp(2.4rem, 7vw, 10rem) !important; }
/* the copy reads at the draft's sizes: a heading, a paragraph, a button */
.our-story--card .text-block.custom-font-size, .our-story--split .text-block.custom-font-size {
  --font-size: var(--font-size--h2) !important;
  --font-size-mobile: var(--font-size--h2) !important;
  max-width: 14ch;
}
/* card: a rounded card inside the page width, the copy centred */
.our-story--card { border-radius: var(--pb-radius); margin-block: clamp(3.2rem, 4vw, 5.6rem); }
.hopscotch-section:has(.our-story--card) { background: rgb(var(--color-background)); }
.our-story--card .group-block:not(.our-story__media-col) .group-block-content { align-items: center; text-align: center; }
.our-story--card .text-block { --width: auto !important; margin-inline: auto; text-align: center; justify-content: center; }
.our-story--card .text-block p { text-align: center; margin-inline: auto; }
.our-story--card .text-block.custom-font-size { --font-size: calc(clamp(2.6rem, 2.5vw, 3.6rem) * var(--font-heading--scale, 1)) !important; max-width: 13ch; }
.our-story--card .text-block.custom-font-size p { text-wrap: balance; }
.our-story--card .text-block.color-subtext { max-width: 36rem; font-size: calc(1.5rem * var(--font-body--scale, 1)); }
.our-story--card .our-story__media-col { min-height: clamp(28rem, 26vw, 38rem); }
/* split: full bleed, photo half and copy half */
.our-story--split { max-width: none; padding-inline: 0; }
.our-story--split .our-story__media-col { min-height: clamp(36rem, 40vw, 58rem); }
/* no photo: the copy alone, centred */
.our-story--text-only .group-block-content { align-items: center !important; text-align: center; }
@media (max-width: 767px) {
  .our-story--card .custom-section__content, .our-story--split .custom-section__content { flex-direction: column-reverse; }
  .our-story--card { margin-inline: var(--page-padding, 1.6rem); }
  .our-story--card .our-story__media-col, .our-story--split .our-story__media-col { min-height: 0; aspect-ratio: 4 / 3; }
}

/* 9. Testimonials, Layout "Row of quote cards" -------------------------------------- */
.testimonials-cards { padding-block: clamp(5.6rem, 7vw, 9.6rem); }
.testimonials-cards__header { max-width: 56rem; margin: 0 auto clamp(3.2rem, 4vw, 4.8rem); text-align: center; }
.testimonials-cards__title { margin: 0; }
.testimonials-cards__header .text-subheading { margin: 0 0 1.2rem; }
.testimonials-cards__text { margin: 1.6rem 0 0; font-size: calc(1.6rem * var(--font-body--scale, 1)); opacity: 0.8; }
.testimonial-parallax-header .testimonials-cards__text { text-align: center; }
.testimonials-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(1.2rem, 1.6vw, 2.4rem);
}
.testimonials-cards__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: clamp(3.2rem, 3vw, 4.8rem) clamp(2.4rem, 3vw, 4rem);
  border-radius: var(--pb-radius);
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  text-align: center;
}
.pb-quote { color: #cf6c51; }
.testimonials-cards__quote { margin: 0; }
.testimonials-cards__quote p { margin: 0; font-size: calc(1.8rem * var(--font-body--scale, 1)); line-height: 1.6; }
.testimonials-cards__author { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; margin-top: auto; }
.testimonials-cards__avatar { width: 6.4rem; height: 6.4rem; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 0.3rem rgb(var(--color-background)), 0 0 0 0.4rem rgb(var(--color-foreground) / 0.12); }
.testimonials-cards__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonials-cards__rule { width: 2.4rem; height: 1px; background: #cf6c51; }
.testimonials-cards__name { font-size: calc(1.4rem * var(--font-body--scale, 1)); font-weight: 600; opacity: 0.75; }

/* 10. Hot items, Layout "Story" --------------------------------------------------------- */
.products-highlight__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.6rem 4rem;
  margin-block-end: clamp(2.4rem, 3vw, 4rem);
}
.products-highlight__head .text-subheading { margin: 0 0 1.2rem; }
.products-highlight__head-title { margin: 0; }
.products-highlight--story .products-highlight__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "banner copy" "products products";
  gap: 0 clamp(3.2rem, 5vw, 8rem);
  align-items: center;
}
.products-highlight--story .products-highlight__banner { grid-area: banner; order: 0 !important; padding: 0 !important; }
.products-highlight--story .products-highlight__products { display: contents; }
.products-highlight--story .section-header-block { grid-area: copy; padding: 0 !important; }
.products-highlight--story .section-header-block .text-block.custom-font-size {
  --font-size: var(--font-size--h3) !important;
  --font-size-mobile: var(--font-size--h3) !important;
}
.products-highlight--story .section-header-block .text-block { --text-align-mobile: start !important; }
.products-highlight--story .section-header-block .btn {
  min-height: 0;
  padding: 0.6rem 0;
  border-radius: 0 !important;
  border-bottom: 1px solid currentColor;
  background: transparent !important;
  color: inherit !important;
}
.products-highlight--story .section-header-block .btn::before, .products-highlight--story .section-header-block .btn::after { display: none; }
.products-highlight--story .products-highlight__products-carousel {
  grid-area: products;
  flex-direction: column;
  align-items: stretch;
  margin-block-start: clamp(2.4rem, 3vw, 4rem);
  padding-block-start: 2.4rem;
  border-top: 1px solid var(--pb-line);
}
/* the family's banner layout bottom-aligns this row: stack the title over the slider */
.products-highlight--banner .products-highlight__products-carousel:has(> .products-highlight__products-title) { flex-direction: column; align-items: stretch; justify-content: flex-end; }
@media (max-width: 767px) { .products-highlight--banner .products-highlight__products-title { margin-block-start: 2.4rem; } }
.products-highlight__products-title {
  margin: 0 0 1.6rem;
  font-family: var(--font-body--family);
  font-size: calc(1.8rem * var(--font-body--scale, 1));
  font-weight: 500;
  letter-spacing: 0;
}
.products-highlight--story .swiper-wrapper { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 34rem), 1fr)); gap: 1.6rem 3.2rem; transform: none !important; }
.products-highlight--story .swiper-slide { width: auto !important; margin: 0 !important; }
.products-highlight--story .carousel__controls { display: none !important; }
.products-highlight--story .product-card--horizontal .product-card__media { width: 9.6rem; border-radius: 1.2rem; }
.products-highlight--story .banner, .products-highlight--story .products-highlight__banner-image { border-radius: var(--pb-radius); }
@media (max-width: 767px) {
  .products-highlight--story .products-highlight__wrapper { grid-template-columns: 1fr; grid-template-areas: "banner" "copy" "products"; gap: 2.4rem; }
}

/* 11. Community marquee + service highlights ------------------------------------------- */
.shop-the-look-section .shop-the-look__title { font-family: var(--font-heading--family); font-size: var(--font-size--h2); }
.shop-the-look-section .marquee__items { align-items: flex-start; padding-block-end: 10rem; }
.shop-the-look-section .marquee__items > * { margin-inline: 1.2rem; }
.shop-the-look-section .lookbook-card { --border-radius: 2.2rem !important; border-radius: 2.2rem; width: clamp(25rem, 28vw, 44rem) !important; flex: none; }
.shop-the-look-section .lookbook-card .media { --ratio: 0.88 !important; --ratio-mobile: 0.88 !important; }
.shop-the-look-section .lookbook-card:nth-child(4n+2), .shop-the-look-section .lookbook-card:nth-child(4n+4) { width: clamp(21rem, 21vw, 34rem) !important; }
.shop-the-look-section .lookbook-card:nth-child(4n+2) { margin-block-start: 6rem; }
.shop-the-look-section .lookbook-card:nth-child(4n+3) .media { --ratio: 1.03 !important; --ratio-mobile: 1.03 !important; }
.shop-the-look-section .lookbook-card:nth-child(4n+4) { margin-block-start: 10rem; }
.shop-the-look-section .lookbook-card img { transition: none; transform: none !important; }
@media (max-width: 600px) {
  .shop-the-look-section .marquee__items > * { margin-inline: 0.8rem; }
  .shop-the-look-section .lookbook-card:nth-child(4n+2) { margin-block-start: 3.2rem; }
  .shop-the-look-section .lookbook-card:nth-child(4n+4) { margin-block-start: 5.2rem; }
  .shop-the-look-section .marquee__items { padding-block-end: 5.2rem; }
}
.shop-the-look-section .custom-section__content { padding-block-end: clamp(5.6rem, 6vw, 8rem); }
.service-highlights__title { margin: 0 0 clamp(3.2rem, 4vw, 5.6rem); text-align: center; }
.icon-box.icon-box--standard { border: 0 !important; background: transparent; }
.icon-box .icon-box__icon {
  display: grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgb(var(--color-foreground) / 0.6);
  border-radius: 50%;
}
.icon-box .icon-box__icon .icon { width: 3.2rem; height: 3.2rem; }
.icon-box .icon-box__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.icon-box .icon-box__content h3 { font-family: var(--font-body--family); font-size: calc(1.8rem * var(--font-body--scale, 1)); font-weight: 500; }

/* 12. Footer ------------------------------------------------------------------------------ */
.footer { --border-radius: 0 !important; border-radius: 0 !important; overflow: clip !important; -webkit-mask-image: none !important; }
.footer .footer__top:has(.footer__newsletter-band) { padding-block-start: 0 !important; }
/* the newsletter: its own cream band above the footer, centred, with the wavy edge */
.footer__newsletter-band {
  position: relative;
  margin-block-end: clamp(4.8rem, 6vw, 8rem);
  padding-block: clamp(5.6rem, 7vw, 9.6rem) clamp(4.8rem, 6vw, 8rem);
  /* the page colour reaches both window edges without widening the layout (the
     footer clips the overflow); a box-shadow would also fill the wave's gaps */
  background: rgb(var(--color-background));
  border-image: conic-gradient(rgb(var(--color-background)) 0 0) fill 0 / / 0 100vmax;
  color: rgb(var(--color-foreground));
}
.footer__newsletter-band::after {
  content: "";
  position: absolute;
  inset-inline: -100vmax;
  top: calc(100% - 1px);
  height: var(--pb-wave-h);
  background: rgb(var(--color-background));
  -webkit-mask: var(--pb-wave-band) 0 0 / var(--pb-wave-w) var(--pb-wave-h) repeat-x;
          mask: var(--pb-wave-band) 0 0 / var(--pb-wave-w) var(--pb-wave-h) repeat-x;
}
.footer__newsletter-band .group-block-content { flex-direction: column !important; align-items: center !important; text-align: center; gap: 1.6rem !important; }
.footer__newsletter-band .text-block.h1, .footer__newsletter-band .text-block.h1 p { font-size: var(--font-size--h2); margin: 0; }
.footer__newsletter-band .newsletter { --size-style-width: 100% !important; align-items: center !important; text-align: center !important; max-width: 52rem; width: 100%; }
.footer__newsletter-band .newsletter-form__field { flex-direction: row !important; align-items: center; gap: 0 !important; border-bottom: 1px solid rgb(var(--color-foreground)); width: 100%; max-width: max(28rem, calc(50.5rem * var(--band-field-width, 100) / 100)); margin-inline: auto; }
.footer__newsletter-band .newsletter-form__field input { flex: 1; min-width: 0; min-height: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 1.5rem 0.6rem; font-size: calc(1.6rem * var(--font-body--scale, 1)); color: inherit; outline: none; }
html .footer__newsletter-band .newsletter-form__button {
  position: static; inset: auto; transform: none; translate: none; margin: 0; align-self: center; width: auto; height: auto; min-height: 4.4rem; padding: 1.2rem 0.5rem;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; color: rgb(var(--color-foreground)) !important;
  display: inline-flex; align-items: center; gap: 1rem; font-size: calc(1.5rem * var(--font-body--scale, 1)); font-weight: 600; white-space: nowrap;
}
html .footer__newsletter-band .newsletter-form__button::before, html .footer__newsletter-band .newsletter-form__button::after { display: none !important; }
.footer__newsletter-band .newsletter-form__button .icon--caret-right { display: none; }
.footer__newsletter-band .newsletter-form__button .pb-arrow { width: 2rem; height: 2rem; transition: transform .24s ease; }
.footer__newsletter-band .newsletter-form__button:hover .pb-arrow { transform: translateX(0.6rem); }
html .footer__newsletter-band .newsletter-form__button.loading .pb-arrow, html .footer__newsletter-band .newsletter-form__button.btn--loading .pb-arrow { opacity: 0; }
.footer__newsletter-band .newsletter-form__wrapper { flex-direction: column-reverse; }
.footer .h5, .footer .accordion__summary .h5 {
  font-family: var(--font-body--family);
  font-size: calc(1.2rem * var(--font-body--scale, 1));
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer__brand-name { display: block; margin-block-end: 1.6rem; color: inherit; font-family: var(--font-heading--family); font-size: calc(3.6rem * var(--font-body--scale, 1)); font-weight: 600; line-height: 1; letter-spacing: -0.02em; text-decoration: none; }
.footer__brand-logo { display: inline-block; margin-block-end: 1.6rem; }
.footer__brand-logo img { max-height: 6.4rem; width: auto; }
.footer__top-block--text .rte { font-size: calc(1.8rem * var(--font-body--scale, 1)); font-style: italic; line-height: 1.4; opacity: 1; }
.footer .accordion__content a { font-weight: 600; }

/* 13. Pages --------------------------------------------------------------------------------- */

/* 3b. Hero slideshow: the statement centred on the photo, a cream button, dots ------ */
.section-slideshow .slide__content {
  --h-alignment: center !important;
  --h-alignment-mobile: center !important;
  --v-alignment: center !important;
  --v-alignment-mobile: center !important;
  text-align: center;
}
.section-slideshow .slide__inner {
  --horizontal-alignment: center !important;
  --horizontal-alignment-mobile: center !important;
  align-items: center !important;
  text-align: center;
}
.section-slideshow .slide__inner .text-block.custom-font-size {
  --font-size: var(--font-size--mega-title) !important;
  --font-size-mobile: calc(4rem * var(--font-heading--scale, 1)) !important;
  text-shadow: 0 1px 2.4rem rgb(0 0 0 / 0.18);
}
/* the theme's button colours, swapped on the photo: label colour as the fill, button colour as the text */
.section-slideshow .slide__inner .btn--primary {
  background: rgb(var(--color-primary-button-text));
  border-color: rgb(var(--color-primary-button-text));
  color: rgb(var(--color-primary-button-background));
}
.section-slideshow .slide__inner .btn--primary::before { background: rgb(var(--color-primary-button-background)); }
/* icon-solid buttons never grow the ::before fill, so hover paints the button itself */
.section-slideshow .slide__inner .btn--primary:hover {
  background: rgb(var(--color-primary-button-background));
  border-color: rgb(var(--color-primary-button-background));
  color: rgb(var(--color-primary-button-text));
}
.section-slideshow .carousel__counter, .section-slideshow .carousel__controls-buttons { display: none !important; }
.section-slideshow .slideshow__controls { left: 0; right: 0; justify-content: center; }
.section-slideshow .carousel__controls { justify-content: center !important; width: 100%; }
.section-slideshow .swiper-pagination.swiper-pagination-bullets {
  position: static;
  display: flex;
  gap: 1.6rem;
  width: auto !important;
  height: auto;
  background: none !important;
}
.section-slideshow .swiper-pagination-bullet {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0 !important;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: transparent;
  opacity: 1;
}
.section-slideshow .swiper-pagination-bullet-active { background: #fff; }

/* 8b. Our story card sizing: the copy sets the height, the photo fills its half */
.our-story--card { max-width: calc(var(--page-width, 144rem) - 2 * var(--page-padding, 2.4rem)); width: calc(100% - 2 * var(--page-padding, 2.4rem)); margin-inline: auto; padding: 0; }
.our-story--card .our-story__media-col, .our-story--split .our-story__media-col { position: relative; }
.our-story--card .our-story__media-col .group-block-content, .our-story--split .our-story__media-col .group-block-content { position: absolute; inset: 0; }
.our-story--card .image-with-badges__media .media, .our-story--split .image-with-badges__media .media { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.our-story--card .image-with-badges__media .media img, .our-story--split .image-with-badges__media .media img { position: absolute; inset: 0; }
@media (max-width: 767px) {
  html .our-story--card .custom-section__content, html .our-story--split .custom-section__content { flex-direction: column !important; }
  .our-story--card .our-story__media-col, .our-story--split .our-story__media-col { order: -1 !important; width: 100%; }
}

/* 10b. Story: the photo fills its half; the read link is a plain underlined link */
.products-highlight--story .products-highlight__banner { width: 100%; }
/* the family turns the copy block into display:contents on phones and orders its
   pieces around the products; the story keeps it one block */
html .products-highlight--story .section-header-block { display: flex !important; }
html .products-highlight--story .section-header-block > * { order: 0 !important; }
.products-highlight--story .section-header-block .btn { border: 0 !important; border-bottom: 1px solid currentColor !important; box-shadow: none !important; }
/* the band ends in its wave, not a hairline (the divider is a hidden md:flex utility, !important) */
html body .footer__newsletter-band .divider { display: none !important; }
.products-highlight--story .products-highlight__banner-image .media { --ratio: 1.25 !important; --ratio-mobile: 1.25 !important; }
.footer .accordion__content a, .footer .footer__top-block .rte a { font-size: calc(1.5rem * var(--font-body--scale, 1)); }
/* a footer text column without a heading is a plain blurb: no accordion row on phones */
.footer__top-block--text .accordion__summary:not(:has(.h5)) { display: none; }
.footer__top-block--text details:not(:has(.accordion__summary .h5)) .accordion__content { display: block !important; height: auto !important; opacity: 1 !important; visibility: visible !important; }

/* 13. Pages ----------------------------------------------------------------------------- */
/* product page: a rounded title, soft chips, the platform's description tabs as pills */
.product__title { font-family: var(--font-heading--family); font-weight: var(--font-heading--weight); font-size: var(--font-size--h1); line-height: var(--font-h1--line-height); letter-spacing: -0.02em; }
.variant-option__button-label:not(.variant-option__button-label--has-swatch) { border-radius: 1rem !important; }
.variant-option__button-label:not(.variant-option__button-label--has-swatch)::before,
.variant-option__button-label:not(.variant-option__button-label--has-swatch)::after { border-radius: 1rem !important; }
.quantity-selector { border-radius: 1rem !important; }
html .prod-desc-tab {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 1.6rem !important;
  padding: 0;
  border: 0;
  list-style: none;
}
html .prod-desc-tab li.tablinks {
  float: none;
  margin: 0;
  padding: 0.9rem 2rem;
  border: 1px solid rgb(var(--color-foreground) / 0.25);
  border-radius: 99rem;
  background: transparent;
  color: rgb(var(--color-foreground));
  font-family: var(--font-body--family);
  font-size: calc(1.4rem * var(--font-body--scale, 1));
  font-weight: 600;
  cursor: pointer;
}
html .prod-desc-tab li.tablinks.active {
  background: rgb(var(--color-foreground));
  border-color: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
}
html .prod-desc-tab-content { padding: 1.6rem 0; border: 0; background: transparent; }
html .tab_drawer_heading { border-radius: 1rem; }
/* cart drawer: floats from 1200px, so all four corners are round; flush right below that,
   so only its open side is. The voucher box takes the buttons' radius. */
.dialog--drawer-right.cart-drawer { border-radius: var(--dialog-radius) 0 0 var(--dialog-radius); overflow: hidden; }
@media (min-width: 1200px) { .dialog--drawer-right.cart-drawer { border-radius: var(--dialog-radius); } }
.voucher-toggle-wrapper .voucher-toggle { border-radius: var(--button-corner-radius); }
.cart-drawer__header .h4 { font-family: var(--font-heading--family); font-weight: var(--font-heading--weight); }
/* a busy submit keeps its enabled fill: product-form.js also sets `disabled`, which
   reference.css fades to half — the cream spinner then sat on a 2.9:1 grey-green */
html .btn.loading:disabled, html .btn.loading[disabled] { opacity: 1; }
/* a sold-out picture tile fades as a whole (the family dims only the picture, and the
   value's label kept full strength next to it) */
.product-form__input .variant-option__button-label:has(> .variant-img-label):has(> input:is(.disabled, :disabled)) { opacity: 0.45; }
.product-form__input .variant-option__button-label:has(> .variant-img-label):has(> input:is(.disabled, :disabled)) > .variant-img-label { opacity: 1; }
/* an SVG logo (viewBox only) has no intrinsic size: give it the cap as its height */
.header__logo img.logo[src*=".svg"] { height: var(--logo-max-height, 48px); width: auto; }
/* the busy subscribe shows its ring in the text colour (the button has no fill here) */
html .footer__newsletter-band .newsletter-form__button .loading-spinner { color: rgb(var(--color-foreground)) !important; }
.our-story--card .text-block.color-subtext { color: rgb(var(--color-foreground)); }

/* 13b. Product gallery: the reference's slider — a column of small rounded thumbnails
   beside one large rounded photo on desktop, a thumbnail row under it on phones */
.gallery { --gallery-radius: 2.2rem; }
.gallery__main { background: #ead2bc33; }
.thumb { border: 1px solid transparent; border-radius: 1.6rem; background: #ead2bc33; }
.thumb img { aspect-ratio: 0.85; }
.thumb:hover { border-color: rgb(var(--color-foreground) / 0.3); }
.thumb.is-active, .thumb.is-active:hover { border-color: #4d7348; }
@media (min-width: 768px) {
  .gallery--thumbs { --gallery-thumbs: 0rem; display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); gap: 1.4rem; align-items: start; }
  /* the rail and the photo sit as one group, centred in the gallery column */
  .gallery--thumbs.gallery--cover { grid-template-columns: 8.6rem min(calc(100% - 10rem), calc(var(--gallery-max-h) * (var(--gallery-ratio)))); justify-content: center; }
  .gallery--thumbs .gallery__main { grid-column: 2; grid-row: 1; }
  /* cover centres the frame with auto margins, which shrinks it to nothing in a grid cell:
     the track above already has the frame's width */
  .gallery--thumbs.gallery--cover .gallery__main { margin-inline: 0; width: 100%; }
  .gallery--thumbs .gallery__thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-height: var(--gallery-max-h);
    margin: 0;
    padding: 0;
    overflow: hidden auto;
    scrollbar-width: none;
  }
  .gallery--thumbs .gallery__thumbs .thumb { flex: none; width: 100%; }
}
@media (max-width: 767px) {
  .gallery__thumbs { grid-auto-columns: calc((100% - 4 * 0.9rem) / 5); gap: 0.9rem; }
}

/* 13c. Store locator (templates/store-locator): one store at a time, details on the
   left and the map on the right */
.store-visit__title { margin: 0 0 2.8rem; }
.store-visit__title span { color: #cf6c51; }
.store-visit { --sv-muted: rgb(var(--color-foreground) / 0.75); }
.store-visit [hidden] { display: none; }
.store-visit__tabs { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-block-end: 2.4rem; }
.store-visit__tab {
  min-height: 4rem;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: 3rem;
  background: #e9eddf;
  color: #445d48;
  font-family: var(--font-body--family);
  cursor: pointer;
  font-size: calc(1.4rem * var(--font-body--scale, 1));
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.2s, color 0.2s;
}
.store-visit__tab:hover { background: #dce5d5; }
.store-visit__tab[aria-selected="true"] { background: #243b30; color: #fffaf2; }
.store-visit__tab:focus-visible { outline: 2px solid #cf6c51; outline-offset: 2px; }
.store-visit__filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin-block-end: 2.8rem; }
.store-visit__filter { display: grid; gap: 0.6rem; font-size: calc(1.3rem * var(--font-body--scale, 1)); font-weight: 500; }
.store-visit__filter .select { display: flex; width: 100%; }
.store-visit__filter select { flex: 1 1 auto; width: 100%; min-width: 0; }
/* the picker and the details share the left column, so the map starts level with the
   picker: each panel covers both rows of the grid, and the picker sits above it */
@media (min-width: 768px) {
  .store-visit, .store-visit__panel { display: grid; column-gap: clamp(3.2rem, 5vw, 7.2rem); align-items: start; }
  .store-visit { grid-template: auto 1fr / minmax(0, 1fr) minmax(0, 1.05fr); }
  .store-visit__tabs, .store-visit__filters { grid-area: 1 / 1; z-index: 1; }
  .store-visit__panel { grid-area: 1 / 1 / 3 / 3; grid-template: subgrid / subgrid; }
  .store-visit__details { grid-area: 2 / 1; }
  .store-visit__map { grid-area: 1 / 2 / 3 / 3; }
}
html .store-locator .store-visit__details { display: block; }
.store-visit__name {
  margin: 0 0 2.4rem;
  font-family: var(--font-body--family);
  font-size: calc(2.8rem * var(--font-heading--scale, 1));
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}
.store-visit__facts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.4rem; }
.store-visit__label {
  margin: 0 0 0.6rem;
  font-family: var(--font-body--family);
  font-size: calc(1.3rem * var(--font-body--scale, 1));
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--sv-muted);
}
html .store-locator .location-detail address { margin: 0; color: inherit; }
.store-visit address span, .store-visit .store-locator__hours > span { display: block; line-height: 1.6; }
.store-visit .store-locator__hours { margin: 0; }
.store-visit .is-muted { font-size: calc(1.4rem * var(--font-body--scale, 1)); color: var(--sv-muted); }
.store-visit__time { white-space: nowrap; }
.store-visit__status { margin-block-start: 0.4rem; }
.store-visit .is-open { font-weight: 600; color: #42653f; }
.store-visit .is-closed { font-weight: 600; color: #a8452c; }
.store-visit__navigate {
  display: inline-block;
  margin-block-start: 0.8rem;
  font-size: calc(1.4rem * var(--font-body--scale, 1));
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.store-visit__contact {
  display: grid;
  grid-template-columns: 10.8rem minmax(0, 1fr);
  gap: 2.4rem;
  margin-block-start: 2.6rem;
  padding-block-start: 2.2rem;
  border-block-start: 1px solid var(--pb-line);
}
.store-visit__contact h3 {
  margin: 0;
  font-family: var(--font-body--family);
  font-size: calc(1.6rem * var(--font-body--scale, 1));
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}
.store-visit__contact dl { display: grid; grid-template-columns: 1fr 1.45fr; gap: 1.8rem; margin: 0; }
.store-visit__contact dd { margin: 0; font-size: calc(1.5rem * var(--font-body--scale, 1)); line-height: 1.6; }
.store-visit__contact dt { font-weight: 400; }
.store-visit :is(dd a, .store-visit__navigate):hover { color: #4d7348; }
.store-visit__map { height: 42rem; border-radius: 2.4rem; overflow: hidden; background: #e0e7d5; }
.store-visit__map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 1023px) {
  .store-visit__facts { grid-template-columns: 1fr; gap: 1.8rem; }
  .store-visit__contact dl { grid-template-columns: 1fr; gap: 1.2rem; }
  .store-visit__contact dl > div { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 1.4rem; align-items: baseline; }
  .store-visit__contact dt { margin: 0; }
  .store-visit__map { height: 44rem; }
}
@media (max-width: 767px) {
  .store-visit__title { margin-block-end: 2.4rem; }
  .store-visit__tabs, .store-visit__name { margin-block-end: 2rem; }
  .store-visit__filters { grid-template-columns: 1fr; gap: 1.2rem; }
  .store-visit__map { margin-block-start: 2.8rem; }
  .store-visit__name { font-size: calc(2.4rem * var(--font-heading--scale, 1)); }
  .store-visit__facts { grid-template-columns: 1.1fr 1fr; gap: 2rem; }
  .store-visit__contact { grid-template-columns: 9.2rem minmax(0, 1fr); margin-block-start: 2.2rem; padding-block-start: 1.8rem; }
  .store-visit__map { height: 30rem; border-radius: 2rem; }
}
@media (max-width: 380px) { .store-visit__facts { grid-template-columns: 1fr; } }
