/* Favourite Products only. The static grid remains the no-JavaScript fallback. */
@font-face {
  font-family: 'TOC Product Jost';
  src: url('../fonts/jost/Jost-Regular-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'TOC Product Jost Light';
  src: url('../fonts/jost/Jost-Light-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

html body.home main section.products#catalogue {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

html body.home main section.products#catalogue .product-carousel {
  width: 100%;
  min-width: 0;
}

html body.home main section.products#catalogue .product-carousel.is-ready .product-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

html body.home main section.products#catalogue .product-carousel.is-ready .product-grid,
html body.home main section.products#catalogue .product-carousel.is-ready .product-grid img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (hover: hover) and (pointer: fine) {
  html body.home main section.products#catalogue .product-carousel.is-ready .product-viewport,
  html body.home main section.products#catalogue .product-carousel.is-ready .product-image-reveal {
    cursor: grab !important;
  }
  html body.home main section.products#catalogue .product-carousel.is-ready .product-viewport.is-pointer-dragging,
  html body.home main section.products#catalogue .product-carousel.is-ready .product-viewport.is-pointer-dragging .product-image-reveal {
    cursor: grabbing !important;
  }
}

html body.home main section.products#catalogue .product-carousel.is-ready .product-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: var(--toc-products-gap, 31.51px) !important;
  width: max-content !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  animation: none !important;
  transition: transform 1s cubic-bezier(.45, 0, .2, 1) !important;
  will-change: transform !important;
}

html body.home main section.products#catalogue .product-carousel.is-ready .product-grid.is-resetting {
  transition: none !important;
}

html body.home main section.products#catalogue .product-carousel.is-ready .product-grid.is-pointer-dragging {
  transition: none !important;
}

html body.home main section.products#catalogue .product-carousel.is-ready .product-grid > article.product-card,
html body.home main section.products#catalogue .product-carousel.is-ready .product-grid > article.product-card[aria-hidden="true"] {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  flex: 0 0 var(--toc-product-card-width) !important;
  width: var(--toc-product-card-width) !important;
  min-width: var(--toc-product-card-width) !important;
  max-width: var(--toc-product-card-width) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  scroll-snap-align: none !important;
}

html body.home main section.products#catalogue .product-carousel.is-ready .product-grid > article.product-card > img {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  aspect-ratio: 374.12 / 352.87;
  object-fit: cover !important;
}

/* Each supplied product has a paired product/in-situ photo reveal. */
html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 374.12 / 352.87;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: transparent !important;
  cursor: pointer;
  flex: 0 0 auto !important;
  -webkit-appearance: none;
  appearance: none;
}

html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  object-fit: cover !important;
  transform-origin: center center;
  transition: opacity .32s ease, transform .32s ease !important;
}

html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal > .product-image-default {
  opacity: 1 !important;
  transform: scale(1) !important;
}

html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal > .product-image-styled {
  opacity: 0 !important;
  transform: scale(1) !important;
}

@media (hover: hover) and (pointer: fine) {
  html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal:hover > .product-image-default {
    opacity: 0 !important;
    transform: scale(1.055) !important;
  }
  html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal:hover > .product-image-styled {
    opacity: 1 !important;
    transform: scale(1.055) !important;
  }
}

html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal.is-revealed > .product-image-default {
  opacity: 0 !important;
  transform: scale(1.055) !important;
}

html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal.is-revealed > .product-image-styled {
  opacity: 1 !important;
  transform: scale(1.055) !important;
}

html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal:focus-visible {
  outline: 2px solid #087da7 !important;
  outline-offset: 3px !important;
}

html body.home main section.products#catalogue .product-carousel.is-ready .product-grid > article.product-card > h3,
html body.home main section.products#catalogue .product-carousel.is-ready .product-grid > article.product-card > .product-price {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Caption typography and white panel follow the supplied Figma text frames. */
html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card {
  background: #fff !important;
  border-radius: 19.77px 19.77px 10.16px 10.16px !important;
  box-shadow: none !important;
}

html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > h3 {
  height: auto !important;
  min-height: 60px !important;
  max-height: none !important;
  overflow: visible !important;
  color: #000 !important;
  margin: 20.04px 0 0 !important;
  padding: 0 30px !important;
  background: #fff !important;
  font-family: 'TOC Product Jost', 'Arial Narrow', 'Instrument Sans', Arial, sans-serif !important;
  font-size: 30px !important;
  line-height: 30px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > h3 span {
  font: inherit !important;
  line-height: 30px !important;
  white-space: normal !important;
}

html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  height: auto !important;
  min-height: 24px !important;
  max-height: none !important;
  margin: 21.38px 0 20.04px !important;
  padding: 0 30px !important;
  color: #000 !important;
  background: #fff !important;
  font-family: 'Inter', 'Instrument Sans', Arial, sans-serif !important;
  font-size: 20px !important;
  line-height: 24px !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
}

/* The shared span typography otherwise overrides the Inter price row. */
html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price,
html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price * {
  font-family: 'Inter', Arial, sans-serif !important;
}

html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price .product-price-main,
html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price .product-quantity {
  display: inline-block;
  white-space: nowrap;
}

html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price .product-quantity {
  margin-left: auto;
  text-align: right;
  font-weight: 300 !important;
}

html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price .product-quantity strong {
  font-weight: 600 !important;
  font-style: normal !important;
}

html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price-label {
  font-weight: 300 !important;
}

html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price strong,
html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price em {
  font-size: 20px !important;
  line-height: 24px !important;
  font-weight: 600 !important;
}

html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price em {
  font-style: italic !important;
}

/* Keep the approved two-part titles on two lines across four-card desktops. */
@media (min-width: 1280px) {
  html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > h3 {
    font-family: 'TOC Product Jost Light', 'TOC Product Jost', 'Arial Narrow', Arial, sans-serif !important;
    font-weight: 300 !important;
  }
  html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > h3,
  html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price {
    padding-left: clamp(16px, calc(4.375vw - 54px), 30px) !important;
    padding-right: clamp(16px, calc(4.375vw - 54px), 30px) !important;
  }
}

@media (min-width: 1280px) and (max-width: 1599px) {
  html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > h3 {
    min-height: 60px !important;
    font-size: clamp(24px, 1.875vw, 30px) !important;
  }
}

html body.home main section.products#catalogue .product-controls {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 44px;
  margin: 18px 0 0;
}

html body.home main section.products#catalogue .product-controls[hidden] {
  display: none !important;
}

html body.home main section.products#catalogue .product-controls > button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #111;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font: 400 22px/1 'Instrument Sans', Arial, sans-serif;
  cursor: pointer;
}

html body.home main section.products#catalogue .product-controls > button:hover,
html body.home main section.products#catalogue .product-controls > button:focus-visible {
  background: #111;
  color: #fff;
}

html body.home main section.products#catalogue .product-controls :focus-visible,
html body.home main section.products#catalogue .product-viewport:focus-visible {
  outline: 2px solid #156c83;
  outline-offset: 3px;
}

html body.home main section.products#catalogue .product-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

html body.home main section.products#catalogue .product-dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

html body.home main section.products#catalogue .product-dots button::before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid #111;
  border-radius: 50%;
  background: transparent;
}

html body.home main section.products#catalogue .product-dots button.is-active::before {
  background: #111;
}

html body.home main section.products#catalogue .product-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 980px) {
  html body.home main section.products#catalogue .product-carousel.is-ready .product-grid {
    --toc-products-gap: 22px;
  }
}

@media (min-width: 521px) and (max-width: 980px) {
  html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > h3,
  html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > .product-price {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 520px) {
  html body.home main section.products#catalogue .product-carousel {
    order: 2;
  }
  html body.home main section.products#catalogue .product-carousel.is-ready .product-viewport {
    width: calc(100% - 15px);
    margin: 0 0 0 15px;
  }
  html body.home main section.products#catalogue .product-carousel.is-ready .product-grid {
    --toc-products-gap: 10px;
    --toc-product-next-peek: 36px;
  }
  html body.home main section.products#catalogue .product-carousel.is-ready .product-grid > article.product-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  /* Supplied PNGs already include photo shadows; avoid a doubled mobile frame. */
  html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal {
    box-shadow: none !important;
  }
  /* Legacy fixed image height otherwise extends below the responsive photo
     frame and crops products on phones. Keep both photo states fully visible. */
  html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal > img {
    min-height: 0 !important;
    object-fit: contain !important;
  }
  html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal.is-revealed > .product-image-default,
  html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal.is-revealed > .product-image-styled,
  html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal:hover > .product-image-default,
  html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal:hover > .product-image-styled {
    transform: scale(1) !important;
  }
  html body.home main section.products#catalogue .product-carousel.is-ready .product-grid > article.product-card > h3 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  html body.home main section.products#catalogue .product-carousel.is-ready .product-grid > article.product-card > .product-price {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* The peek previews only the next photo, without cropped caption letters. */
  html body.home main section.products#catalogue .product-carousel.is-ready .product-grid > article.product-card[aria-hidden="true"] > h3,
  html body.home main section.products#catalogue .product-carousel.is-ready .product-grid > article.product-card[aria-hidden="true"] > .product-price {
    visibility: hidden !important;
  }
  html body.home main section.products#catalogue .product-controls {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.home main section.products#catalogue .product-carousel.is-ready .product-grid {
    transition: none !important;
  }
  html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal > img {
    transition: none !important;
  }
  html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal:hover > img,
  html body.home main section.products#catalogue .product-grid > article.product-card--reveal > .product-image-reveal.is-revealed > img {
    transform: none !important;
  }
}

/* v1.0.611: each supplied title span must occupy exactly one line. The
   narrowest measured card permits 21.77px at 320px and 18.05px at 521px;
   these curves keep a small margin under those limits in both engines. */
@media (max-width: 520px) {
  html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > h3 {
    font-size: clamp(21px, calc(9.57vw - 9.6px), 30px) !important;
  }
}

@media (min-width: 521px) and (max-width: 767px) {
  html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > h3 {
    font-size: clamp(17.5px, calc(5vw - 9px), 30px) !important;
  }
}

@media (min-width: 1280px) and (max-width: 1299px) {
  html body.home main section.products#catalogue .product-carousel .product-grid > article.product-card > h3 {
    font-size: 23.5px !important;
  }
}
