.home-merch-categories {
  margin-block: clamp(30px, 3.6vw, 50px);
  scroll-margin-top: 20px;
}
.home-merch-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: clamp(27px, 2.4vw, 35px);
}
.home-merch-heading h2,
.home-shelf .section-title {
  font-size: clamp(25px, 3.2vw, 42px);
  line-height: 1.07;
  font-weight: 850;
  letter-spacing: -.05em;
}
.home-merch-heading > a {
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-merch-heading > a span { display: inline-block; margin-left: .2em; }
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "spicy spicy sweets sweets" "spicy spicy chips drinks" "gum jelly gummies gummies" "candy candy gummies gummies";
  grid-auto-rows: minmax(clamp(90px, 8vw, 125px), auto);
  gap: clamp(8px, 1vw, 16px);
}
.home-category-card {
  container-type: inline-size;
  position: relative;
  min-width: 0;
  display: flex;
  padding: clamp(14px, 1.8vw, 26px) clamp(12px, 1.6vw, 24px) 44px;
  border-radius: clamp(15px, 1.7vw, 26px);
  background: #f8e451;
  color: #211d1a;
}
.home-category-card[data-group="latyao"] { grid-area: spicy; background: #ffb58a; }
.home-category-card[data-group^="dragee,"] { grid-area: sweets; background: #f4d1df; }
.home-category-card[data-group="chips"] { grid-area: chips; }
.home-category-card[data-group="drinks"] { grid-area: drinks; background: #cae8db; }
.home-category-card[data-group="gum"] { grid-area: gum; background: #d7e4f7; }
.home-category-card[data-group="jelly"] { grid-area: jelly; background: #f6e8b8; }
.home-category-card[data-group="marmalade"] { grid-area: gummies; background: #e8d8f2; }
.home-category-card[data-group^="candy,"] { grid-area: candy; background: #fbdacb; }
.home-category-card strong {
  font-size: clamp(20px, 13.8cqw, 32px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.home-category-card:is([data-group="latyao"], [data-group="marmalade"]) strong { font-size: clamp(28px, 10cqw, 56px); }
.home-category-arrow {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #28231e55;
  border-radius: 50%;
  font: 19px/1 Arial, sans-serif;
}
@media (max-width: 700px) {
  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "spicy sweets" "spicy chips" "drinks gum" "jelly gummies" "candy candy";
    grid-auto-rows: minmax(90px, auto);
  }
  .home-category-card strong { font-size: clamp(16px, 13cqw, 25px); }
  .home-category-card[data-group="marmalade"] strong { font-size: clamp(17px, 14cqw, 27px); }
  .home-category-card[data-group="latyao"] strong { font-size: clamp(22px, 18cqw, 38px); }
}
@media (hover: hover) {
  .home-category-card:hover strong,
  .home-spotlight-copy h3 a:hover { text-decoration: underline; text-underline-offset: .15em; }
}
.home-page .home-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: none;
  grid-auto-flow: row dense;
}
.home-tiles > .home-tile {
  grid-area: span var(--tile-height) / span var(--tile-width);
  isolation: isolate;
  overflow: hidden;
}
.home-tiles .home-tile strong {
  position: relative;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 13.8cqw, 32px);
}
.home-tiles .home-tile--large strong { font-size: clamp(28px, 10cqw, 56px); }
.home-tile__photo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
@media (max-width: 700px) {
  .home-page .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tiles > .home-tile {
    grid-area: span var(--tile-height-mobile, var(--tile-height)) / span var(--tile-width-mobile);
  }
  .home-tiles .home-tile strong { font-size: clamp(16px, 13cqw, 25px); }
  .home-tiles .home-tile--large strong { font-size: clamp(22px, 18cqw, 38px); }
  .home-tiles .home-tile--compact-title strong { font-size: clamp(17px, 14cqw, 27px); }
}
.home-spotlight[hidden],
.home-shelf[hidden],
.home-merch-categories[hidden],
.home-spotlight-shuffle[hidden] { display: none; }
.home-spotlight {
  position: relative;
  isolation: isolate;
  display: grid;
  --photo-column: 36%;
  grid-template-columns: minmax(0, 1fr) var(--photo-column);
  grid-template-areas: "heading ." "copy ." "buy ." "stock .";
  gap: 4px clamp(15px, 2.5vw, 36px);
  align-content: center;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 30px);
  padding: clamp(16px, 2vw, 28px) clamp(18px, 2.8vw, 40px);
  background: #e5efd8;
  color: #182318;
}
.home-spotlight h2 {
  grid-area: heading;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: clamp(14px, 1.25vw, 19px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.home-spotlight h2 svg { flex: none; width: 28px; height: 28px; }
.home-shelf .section-title svg { flex: none; }
.home-spotlight-product { display: contents; }
.home-spotlight-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: var(--photo-column);
  display: grid;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  place-items: center;
}
.home-spotlight-image::before {
  content: "";
  position: absolute;
  width: 105%;
  max-width: 180px;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f9f8d8;
}
.home-spotlight-image img {
  position: absolute;
  width: 120%;
  max-width: none;
  height: clamp(310px, 39vw, 555px);
  rotate: -29deg;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.home-spotlight-seen .home-spotlight-image img { animation: home-merch-photo .55s cubic-bezier(.16,.78,.26,1) both; }
.home-spotlight-copy {
  grid-area: copy;
  align-self: center;
  min-width: 0;
}
.home-spotlight-seen .home-spotlight-copy { animation: home-merch-title .36s ease-out both; }
.home-spotlight-copy h3 {
  margin: 0;
  font-weight: 850;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.08;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}
.home-spotlight-meta {
  margin: .28em 0 0;
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 450;
  line-height: 1.4;
  color: #3b4739;
}
.home-spotlight-buy {
  grid-area: buy;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 5px;
}
.home-spotlight-buy > strong {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}
.home-spotlight-buy .to-cart {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  border-radius: 13px;
  padding: 10px 17px;
  font-size: 14px;
  line-height: 1.2;
}
.home-spotlight-buy .to-cart[data-selection="empty"] {
  background: #223b27;
  color: #fff;
}
.home-spotlight-stock {
  grid-area: stock;
  align-self: center;
  display: block;
  margin: 0;
  color: #41503e;
  font-size: 12px;
  font-weight: 500;
}
.home-spotlight-shuffle {
  grid-area: shuffle;
  justify-self: start;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 5px 0 0;
  color: #223b27;
  font-size: 14px;
  font-weight: 700;
}
.home-spotlight-shuffle span {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}
.home-spotlight-shuffle:hover { text-decoration: underline; }
.home-shelf .carousel .pcard {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.home-shelf .carousel .pcard__img { border: 0; background: transparent; box-shadow: none; }
.home-shelf .pcard__link img { position: relative; }
.home-shelf-more {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  grid-row: 1 / -1;
  padding: clamp(14px, 2vw, 28px);
  border: 1px solid #e6e2d4;
  border-radius: 18px;
  background: #fcf9ef;
  color: #191919;
  font-size: clamp(17px, 2vw, 28px);
  font-weight: 750;
  line-height: 1.15;
  scroll-snap-align: start;
}
.home-shelf-more > :last-child { font-size: 1.5em; line-height: 1; }
.home-shelf-more:hover { background: #f7f1cf; }
.home-shelf-more:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.home-shelf .pcard__name {
  font-weight: 750;
  line-height: 1.25;
}
.home-shelf-details,
.home-shelf .stock-note {
  color: #55524f;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  margin-top: 4px;
}
.home-shelf .pcard__labels:empty { display: none; }
.home-detail-category { display: none; }
@media (max-width: 650px) {
  #home-categories { margin-top: 16px; }
  .home-detail-country { display: none; }
  .home-detail-category { display: inline; }
  .home-shelf .stock-note, .home-spotlight-stock { font-style: italic; }
  .home-shelf .carousel-section .sec-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 30px 0 8px;
  }
  .home-shelf .carousel-section .section-title {
    margin: 0;
    gap: 8px;
    line-height: 1.15;
    overflow: visible;
  }
  .home-shelf .section-title svg { width: 30px; height: auto; }
  .home-shelf .carousel-controls {
    justify-content: flex-end;
    align-items: center;
    margin: 0;
  }
  .home-shelf .arrows button { width: 44px; height: 44px; }
  .home-shelf .carousel { grid-auto-columns: calc((100% - 12px) / 2); column-gap: 12px; }

  /* Rows within a shelf share tracks even when names or stickers wrap on one product. */
  @supports (grid-template-rows: subgrid) {
    .home-shelf .carousel { grid-template-rows: repeat(7, auto); row-gap: 0; }
    .home-shelf .carousel > .pcard {
      display: grid;
      grid-row: span 7;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-items: start;
    }
    .home-shelf .pcard__img { grid-row: 1; width: 100%; }
    .home-shelf .carousel > .pcard > .pcard__labels {
      grid-row: 2;
      min-height: 0;
      max-height: none;
      height: auto;
    }
    .home-shelf .carousel > .pcard > .pcard__labels:empty { display: none; }
    .home-shelf .pcard__select { grid-row: 3; }
    .home-shelf .pcard__body {
      display: grid;
      grid-row: 4 / span 4;
      grid-template-rows: subgrid;
      align-self: stretch;
      align-items: start;
    }
    .home-shelf .pcard__price { grid-row: 1; }
    .home-shelf .pcard__name { grid-row: 2; }
    .home-shelf-details { grid-row: 3; }
    .home-shelf .stock-note { grid-row: 4; }
  }
}
.home-merch-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
@keyframes home-merch-photo {
  from { opacity: .35; transform: scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes home-merch-title {
  from { opacity: .35; transform: translateX(-36px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .home-merch-heading > a { font-size: 13px; }
  .home-spotlight {
    gap: 2px 8px;
    padding: 12px 14px 6px;
  }
  .home-spotlight-image::before { width: min(100%, 88px); }
  .home-spotlight-buy { position: relative; z-index: 1; }
  .home-spotlight-copy h3 { font-size: clamp(18px, 4.65vw, 24px); }
  .home-spotlight-buy { gap: 8px 14px; }
  .home-spotlight-shuffle { justify-self: end; width: max-content; padding: 0; font-size: 12px; }
  .home-spotlight-shuffle span { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-spotlight-seen .home-spotlight-image img, .home-spotlight-seen .home-spotlight-copy { animation: none; }
}

.home-spotlight :is(h2, .home-spotlight-buy, .home-spotlight-stock) { z-index: 1; }
.home-spotlight-copy { position: relative; z-index: 1; margin-inline-end: clamp(-48px, -3vw, -12px); }
.home-spotlight-shuffle {
  grid-area: auto; position: absolute; z-index: 2; top: 8px; right: 14px;
  padding: 0 10px; border-radius: 18px; background: #e5efd8;
}
@media (max-width:650px) {
  .home-spotlight { --photo-column: 34%;
    grid-template-areas: "heading heading" "copy ." "buy buy" "stock stock"; }
  .home-spotlight h2 { padding-right: 38px; min-height: 36px; }
  .home-spotlight-shuffle { right: 6px; top: 4px; width: 44px; height: 44px; justify-content: center; font-size: 0; gap: 0; }
  .home-spotlight-image img { height: clamp(150px, 44vw, 250px); }
  .home-spotlight-copy { margin-inline-end: -8px; }
}
