/*
 * Beranda (Main and Mobile boards).
 * Contents: banner, category strip, Lagi banyak dibeli, Lagi promo, Rakit setup, Baru masuk,
 * Ulasan pembeli, FAQ, help CTA.
 */

/* The beranda sits on the light grey canvas of the Main board. Every section is a full-width block
   that meets the next with the same padding (no margins stacking up at a colour edge), and the
   backgrounds alternate: the canvas for the categories, Rakit setup, FAQ and help; white for the
   product rows and the reviews; the light world tints for the voucher band and "Lagi promo", so
   everything about saving shares one colour. */
body.home {
  background: var(--bg);
}

body.home .site-main {
  padding-bottom: 0;
}

body.home .site-main > section:not(.hero) {
  margin-top: 0;
  padding-block: var(--section-gap);
}

/* White bands for the sections in the content width. */
body.home .popular,
body.home .new-arrivals {
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}

body.home .site-footer {
  margin-top: 0;
}

/* Banner: uploaded images only, full width, edge to edge (owner, 17 October 2026) */
.hero {
  position: relative;
}

/* 3:1 like the banner images, never lower than 360px or taller than 600px. */
.hero-slider {
  position: relative;
  height: clamp(360px, 33.333vw, 600px);
  overflow: hidden;
  background: var(--surface-soft);
}

.hero-slider__track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-banner {
  position: relative;
  display: block;
  height: 100%;
  color: var(--ink);
}

.hero-banner__media {
  display: block;
  height: 100%;
}

.hero-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Optional title over the left of the image; the admin leaves that part of the banner calm. */
.hero-banner__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 32px;
}

.hero-slide--light .hero-banner {
  color: var(--on-dark);
}

.hero-banner__title {
  max-width: 12em;
  font-size: var(--title-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: var(--tracking-title);
}

.hero-banner__desc {
  max-width: 28em;
  margin-top: 12px;
  font-size: var(--text-lg);
  opacity: .86;
}

.hero-banner__cta {
  margin-top: 22px;
}

.hero-slider__controls {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  padding: 0 6px;
  border-radius: var(--r-pill);
}

.hero-dot {
  position: relative;
  width: 14px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
}

.hero-dot::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--line-dashed);
  transition: width var(--t-med) ease, background var(--t-med) ease;
}

.hero-dot[aria-current="true"] {
  width: 28px;
}

.hero-dot[aria-current="true"]::before {
  width: 22px;
  background: var(--ink);
}

.hero-slider__arrows {
  display: flex;
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* Categories under the banner, like jete.id and Casetify: big photo cards in two rows that scroll
   sideways, the first one tall. Until a photo is set, the cards take turns in the three pastels. */

.cats__inner {
  position: relative;
}

.cats__track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 188px);
  grid-auto-columns: 232px;
  justify-content: safe center;
  gap: 14px;
  padding: 1px;
}

.cats__track > li:first-child {
  grid-row: span 2;
}

/* A handful of tiles: one row of equal cards across the width. */
.cats__track--few {
  grid-auto-flow: row;
  grid-template-rows: 210px;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
}

.cats__track--few > li:first-child {
  grid-row: auto;
}

.cats__track--few > li:first-child .cat-card__name {
  font-size: var(--text-xl);
}

.cats__track--few > li:first-child .type-tile__initial {
  font-size: 132px;
}

.cat-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--tile-bg, var(--surface-soft));
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

.cats__track > li:nth-child(3n + 1) .cat-card { --tile-bg: var(--tile-blue-1); --tile-fg: var(--tile-blue-ink); }
.cats__track > li:nth-child(3n + 2) .cat-card { --tile-bg: var(--tile-lilac-1); --tile-fg: var(--tile-lilac-ink); }
.cats__track > li:nth-child(3n) .cat-card { --tile-bg: var(--tile-rose-1); --tile-fg: var(--tile-rose-ink); }

.cat-card img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}

.cat-card:hover img {
  transform: scale(1.04);
}

/* A photo gets a soft shade at the top so the white name reads on any picture. */
.cat-card--photo::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 62%;
  background: linear-gradient(180deg, var(--scrim), transparent);
}

.cat-card--photo {
  color: var(--on-dark);
}

.cat-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
}

.cat-card__name {
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.cats__track > li:first-child .cat-card__name {
  font-size: var(--title-banner);
  letter-spacing: var(--tracking-title);
}

.cat-card__count {
  color: var(--tile-fg, var(--muted));
  font-size: var(--text-sm);
  font-weight: 600;
}

.cat-card--photo .cat-card__count {
  color: inherit;
  opacity: .85;
}

/* Until the category has a photo: its initial, large, in the card's pastel ink. */
.cat-card .type-tile__initial {
  position: absolute;
  right: -.04em;
  bottom: -.24em;
  z-index: -1;
  font-size: 132px;
  line-height: 1;
  opacity: .16;
}

.cats__track > li:first-child .type-tile__initial {
  font-size: 260px;
}

/* "Semua produk" closes the row in the fourth pastel, mint, after blue, lilac and rose. */
.cats__track > li:last-child .cat-card--all {
  --tile-bg: var(--tile-mint-1);
  --tile-fg: var(--tile-mint-ink);
}

.cat-card__icon {
  display: grid;
  place-items: center;
  align-self: flex-end;
  width: 44px;
  height: 44px;
  margin: 0 16px 16px 0;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--teal);
  transition: transform var(--t-fast) var(--ease-out);
}

.cat-card--all:hover .cat-card__icon {
  transform: translateX(2px);
}

.cats__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  translate: 0 -50%;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.cats__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.cats__arrow--prev {
  left: calc(var(--gutter) - 18px);
}

.cats__arrow--next {
  right: calc(var(--gutter) - 18px);
}

/* Scroll rows (Lagi promo, Baru masuk) always show part of the next card, so they read as
   scrollable (owner, 17 October 2026). */
.rail__track {
  padding: 1px 1px 4px;
}

/* A row that fits (few products) sits in the middle instead of leaving a gap on the right. */
.rail__track {
  justify-content: safe center;
}

.rail__track > .product-card {
  flex: 0 0 calc((100% - 3 * 16px) / 3.6);
}

.rail__track--wide > .product-card {
  flex-basis: calc((100% - 5 * 16px) / 5.4);
}

/* Vouchers in their own full-width band under the categories, in the deep Levino green (owner,
   November 2026: the page's one big colour field): the title on the
   left, tickets of a fixed width on the right. One voucher stays a ticket instead of stretching
   across the page; more line up leftwards and scroll. */
body.home .site-main > .voucher-strip {
  padding-block: 28px;
  background: var(--teal-strong);
}

.voucher-strip__panel {
  display: flex;
  align-items: center;
  gap: 28px;
}

.voucher-strip__head {
  flex: 0 0 270px;
}

.voucher-strip__title {
  font-size: var(--title-banner);
  line-height: 1.15;
  letter-spacing: var(--tracking-title);
  color: var(--on-dark);
}

.voucher-strip__head p {
  margin-top: 6px;
  color: color-mix(in srgb, var(--on-dark) 78%, transparent);
  font-size: var(--text-meta);
}

.vouchers {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 12px;
  padding: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.vouchers::-webkit-scrollbar {
  display: none;
}

/* Push the tickets to the right edge; an auto margin still lets a long row scroll from its start. */
.vouchers > .voucher:first-child {
  margin-left: auto;
}

/* A ticket: two notches cut where the code stub starts. */
.voucher {
  --stub: 132px;
  display: flex;
  flex: 0 0 380px;
  min-height: 84px;
  scroll-snap-align: start;
  border-radius: var(--r-thumb);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-mask: radial-gradient(circle 7px at calc(100% - var(--stub)) 0, transparent 96%, var(--ink) 100%) top / 100% 51% no-repeat, radial-gradient(circle 7px at calc(100% - var(--stub)) 100%, transparent 96%, var(--ink) 100%) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 7px at calc(100% - var(--stub)) 0, transparent 96%, var(--ink) 100%) top / 100% 51% no-repeat, radial-gradient(circle 7px at calc(100% - var(--stub)) 100%, transparent 96%, var(--ink) 100%) bottom / 100% 51% no-repeat;
}

.voucher__main {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
}

.voucher__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--promo);
  font-weight: 800;
  line-height: 1;
}

.voucher__kicker {
  font-size: var(--text-meta);
}

/* The figure is the hook: big, with a light glint passing over it every few seconds. */
.voucher__big {
  background: linear-gradient(100deg, var(--promo) 42%, var(--tile-rose-2) 50%, var(--promo) 58%) 100% 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Room for descenders, which the text clip would cut. */
  padding-bottom: .1em;
  font-size: var(--title-section);
  line-height: 1.1;
  letter-spacing: var(--tracking-title);
  animation: voucher-glint 3.4s ease-in-out infinite;
}

@keyframes voucher-glint {
  0% { background-position: 100% 0; }
  55%,
  100% { background-position: 0 0; }
}

.voucher__terms,
.voucher__desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.voucher__desc {
  color: var(--body);
}

.voucher__code {
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: var(--stub);
  padding: 10px;
  border-left: 1.5px dashed var(--line-dashed);
  background: var(--mint);
}

.voucher__code-text {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 800;
  letter-spacing: .06em;
  text-overflow: ellipsis;
}

/* Lagi promo sits on a full-width soft green band, the one sale moment of the page. */
.promo-section {
  background: var(--promo-band-bg);
}

/* The promo panel opens the row and stays pinned at its left edge; the products slide under it.
   No shadow (owner, 17 October 2026). */
.rail__track--promo {
  --pin: 216px;
  padding: 0 1px 0 0;
  scroll-padding-left: calc(var(--pin) + 16px);
  /* Round the row's left corners like the panel, so no card peeks past its corners. */
  clip-path: inset(0 round var(--r-card) 0 0 var(--r-card));
}

.rail__track--promo > .product-card {
  flex-basis: calc((100% - var(--pin) - 4 * 16px) / 3.6);
}

.promo-band {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  flex: 0 0 var(--pin);
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px 20px;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--promo);
  color: var(--on-dark);
  scroll-snap-align: none;
}

/* Links turn teal on hover; the white text on the berry panel stays white. */
.promo-band:hover {
  color: var(--on-dark);
}

/* A light sweep crosses the panel every few seconds. */
.promo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--surface) 24%, transparent) 50%, transparent 65%);
  translate: -100% 0;
  animation: promo-sheen 5s var(--ease-out) 1.2s infinite;
  pointer-events: none;
}

@keyframes promo-sheen {
  0% { translate: -100% 0; }
  40%,
  100% { translate: 100% 0; }
}

.promo-band__label {
  font-size: var(--text-meta);
  font-weight: 700;
  opacity: .85;
}

.promo-band__value {
  font-size: calc(var(--title-display) * 1.4);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.promo-band__count {
  margin-top: 8px;
  font-size: var(--text-meta);
  font-weight: 600;
  opacity: .85;
}

/* Three discounted products fanned out like cards in a hand; they spread a little on hover. */
.promo-band__art {
  position: relative;
  flex: 1;
  align-self: stretch;
  min-height: 150px;
  margin: 12px 0;
}

.promo-band__art img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--surface);
  border-radius: var(--r-thumb);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  transition: transform var(--t-med) var(--ease-out);
  animation: promo-float 3.6s ease-in-out infinite alternate;
}

.promo-band__art img:nth-child(2) { animation-delay: -1.2s; }
.promo-band__art img:nth-child(3) { animation-delay: -2.4s; }

/* The photos bob gently; `translate` keeps their fanned `transform`. */
@keyframes promo-float {
  from { translate: 0 0; }
  to { translate: 0 -8px; }
}

/* When the row comes into view (home.js), the discount badges pop in one after another. */
.promo-section.is-in .product-card__off {
  animation: promo-pop .5s var(--ease-out) both, off-wiggle 4s ease-in-out 1.5s infinite;
}

.promo-section.is-in .rail__track > :nth-child(2) .product-card__off { animation-delay: .08s; }
.promo-section.is-in .rail__track > :nth-child(3) .product-card__off { animation-delay: .16s; }
.promo-section.is-in .rail__track > :nth-child(4) .product-card__off { animation-delay: .24s; }
.promo-section.is-in .rail__track > :nth-child(5) .product-card__off { animation-delay: .32s; }

@keyframes promo-pop {
  0% { scale: .4; opacity: 0; }
  70% { scale: 1.12; opacity: 1; }
  100% { scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-band::before {
    display: none;
  }

  .promo-band__art img {
    animation: none;
  }

  .voucher__big {
    background: none;
    color: var(--promo);
    animation: none;
  }
}

.promo-band__art img:nth-child(1) { transform: translate(-100%, -44%) rotate(-12deg); }
.promo-band__art img:nth-child(2) { z-index: 1; transform: translate(-50%, -62%) rotate(3deg); }
.promo-band__art img:nth-child(3) { transform: translate(0, -40%) rotate(13deg); }

.promo-band:hover .promo-band__art img:nth-child(1) { transform: translate(-106%, -46%) rotate(-15deg); }
.promo-band:hover .promo-band__art img:nth-child(2) { transform: translate(-50%, -68%) rotate(2deg); }
.promo-band:hover .promo-band__art img:nth-child(3) { transform: translate(6%, -42%) rotate(16deg); }

.promo-band__cta {
  margin-top: auto;
}

/* Lagi banyak dibeli */
.product-grid--home {
  --cols: 5;
  --gap: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

/* Flex instead of grid so a short row (a tab with few products) sits in the middle. */
.product-grid--home > * {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
}

.brand-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 12px 12px 12px 20px;
  border-radius: var(--r-card);
}

.brand-dock__label {
  flex: none;
  font-size: var(--text-base);
  font-weight: 700;
}

.brand-dock__chips {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

/* Rakit setup */
.setup {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  grid-template-rows: 1fr repeat(6, auto) 1fr;
  grid-template-areas:
    "art ."
    "art tabs"
    "art title"
    "art desc"
    "art list"
    "art total"
    "art more"
    "art .";
  column-gap: 48px;
  padding: 28px 48px;
  border-radius: var(--r-lg);
  background: var(--tile-blue-1);
  transition: background .4s ease;
}

/* One flat pastel per set: the colour follows the tab. */
.setup--hp { background: var(--tile-lilac-1); }
.setup--meja { background: var(--tile-rose-1); }

.setup__panel {
  display: contents;
}

.setup__tabs {
  grid-area: tabs;
  justify-self: start;
  margin-bottom: 18px;
}

.setup__tabs .segmented__item {
  font-size: var(--text-meta);
}

.setup__title { grid-area: title; }

.setup__desc {
  grid-area: desc;
  max-width: 28em;
  margin-top: 12px;
  color: var(--body);
}

.setup__art {
  position: relative;
  grid-area: art;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 520 / 430;
}

.setup-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.setup-layer,
.setup-label {
  transition: opacity var(--t-med) ease;
}

.setup-layer.is-off,
.setup-label.is-off {
  opacity: .3;
}

.setup-label {
  position: absolute;
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px 0 9px;
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  transform: translateY(-50%);
}

.setup-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}

.setup-label--left { left: 0; }
.setup-label--right { right: 0; }

.setup-label--tablet-a { --dot: var(--dot-tablet-a); }
.setup-label--tablet-b { --dot: var(--dot-tablet-b); }
.setup-label--tablet-c { --dot: var(--dot-tablet-c); }
.setup-label--hp-a { --dot: var(--dot-hp-a); }
.setup-label--hp-b { --dot: var(--dot-hp-b); }
.setup-label--hp-c { --dot: var(--dot-hp-c); }
.setup-label--meja-a { --dot: var(--dot-meja-a); }
.setup-label--meja-b { --dot: var(--dot-meja-b); }
.setup-label--meja-c { --dot: var(--dot-meja-c); }

.setup-label--device {
  padding: 0 12px;
  border: 1px dashed var(--line-dashed);
  color: var(--muted);
  font-weight: 600;
}

.setup-label--device::before {
  display: none;
}

.setup__list {
  grid-area: list;
  margin-top: 24px;
  padding: 6px 18px;
  border-radius: var(--r-header);
}

.setup-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  cursor: pointer;
}

.setup-item + .setup-item {
  border-top: 1px solid var(--line);
}

.setup-item input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--teal-to);
}

.setup-item__thumb {
  display: none;
}

.setup-item__text {
  flex: 1;
  min-width: 0;
}

.setup-item__role {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
}

.setup-item__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: var(--text-base);
  font-weight: 600;
}

.setup-item__price {
  font-size: var(--text-base);
  font-weight: 700;
}

.setup__total {
  grid-area: total;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.setup__count {
  color: var(--muted);
  font-size: var(--text-meta);
}

.setup__sum {
  font-size: var(--title-section);
  font-weight: 800;
  letter-spacing: var(--tracking-title);
}

.setup__more {
  grid-area: more;
  margin-top: 10px;
  color: var(--teal-strong);
  font-size: var(--text-meta);
  font-weight: 600;
}

/* Ulasan pembeli: a full-width white band on the grey canvas, the rating as the headline on the left,
   cards on the right */
.reviews {
  background: var(--surface);
}

.reviews__inner {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.reviews__title {
  font-size: var(--title-display);
  line-height: 1.05;
  letter-spacing: var(--tracking-title);
}

.reviews__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
  color: var(--body);
  font-size: var(--text-base);
}

.reviews__stars {
  color: var(--star);
  font-size: var(--text-xl);
  letter-spacing: 2px;
}

.review-channels {
  margin-top: 24px;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.review-channels li + li {
  border-top: 1px solid var(--line);
}

.review-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: var(--text-meta);
  transition: background var(--t-fast) ease;
}

a.review-channel:hover {
  background: var(--surface-soft);
}

.review-channel__name {
  flex: 1;
  color: var(--ink);
  font-weight: 700;
}

.review-channel__figure {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.review-channel__figure strong {
  color: var(--ink);
  font-weight: 800;
}

.reviews__nav {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.review-channel__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Store logos at text height, so they read as labels, not ads. */
.review-channel__logo {
  width: auto;
  height: 22px;
}

.review-channel__logo--tokopedia {
  height: 17px;
}

.reviews__track {
  gap: 16px;
  padding: 1px 1px 4px;
}

/* Cards as on the approved Main board: photo on top when there is one, otherwise the quote alone, larger. */
.review-card {
  display: flex;
  flex: 0 0 290px;
  flex-direction: column;
  min-width: 0;
  padding: 8px 8px 14px;
  border-radius: var(--r-card);
}

.review-card__photo {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-radius: var(--r-thumb);
}

.review-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__count,
.review-card__from {
  position: absolute;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 700;
}

.review-card__count {
  right: 8px;
  bottom: 8px;
}

.review-card__from {
  top: 8px;
  left: 8px;
  border-radius: var(--r-xs);
  color: var(--body);
}

.review-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 12px 8px 0;
}

.review-card__who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-card__name {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.review-card__name strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 700;
}

.review-card__stars {
  color: var(--muted);
  font-size: var(--text-sm);
}

.review-card__stars .stars {
  font-size: var(--text-base);
  letter-spacing: 1.5px;
}

.review-card__quote {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.review-card__quote--long {
  font-size: 18px;
  -webkit-line-clamp: 6;
}

.review-card__quote.is-open {
  display: block;
}

.review-card__more {
  align-self: flex-start;
  margin-top: -6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font-size: var(--text-sm);
  font-weight: 600;
}

.review-card__product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.review-card__product img {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.review-card__product > span {
  min-width: 0;
}

.review-card__product strong {
  display: block;
  overflow: hidden;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.review-card__product span span {
  display: block;
  color: var(--muted);
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.faq__intro .section-sub {
  margin-top: 12px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Help CTA */
.help-cta {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 380px);
  justify-content: center;
  align-items: center;
  gap: 40px 120px;
  padding: 40px 48px;
  border-radius: var(--r-lg);
  background: var(--help-bg);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}

.help-cta__title {
  max-width: 14.5em;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.help-cta__text > p {
  max-width: 30em;
  margin-top: 14px;
  color: var(--body);
}

.help-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.chat-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  justify-self: end;
  font-size: var(--text-meta);
  line-height: 1.4;
}

.chat-mock__bubble--buyer {
  align-self: flex-end;
  width: 210px;
  padding: 6px;
  border-radius: 16px 16px 4px 16px;
  background: var(--tile-mint-1);
  box-shadow: 0 0 0 1px rgba(14, 42, 51, .05), 0 6px 14px -10px rgba(22, 72, 92, .35);
}

.chat-mock__bubble--buyer img {
  width: 100%;
  border-radius: 11px;
}

.chat-mock__bubble--buyer p {
  padding: 8px 6px 4px;
}

.chat-mock__bubble--admin {
  align-self: flex-start;
  width: 260px;
  padding: 12px;
  border-radius: 16px 16px 16px 4px;
}

.chat-mock__product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 6px;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  line-height: 1.3;
}

.chat-mock__product img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.chat-mock__product strong {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 600;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.chat-mock__price {
  font-weight: 800;
}

.chat-mock__note {
  padding-left: 4px;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Tablet */
@media (max-width: 980px) {
  .faq,
  .help-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-grid--home {
    --cols: 3;
  }

  .rail__track > .product-card,
  .rail__track--wide > .product-card {
    flex-basis: calc((100% - 3 * 16px) / 3.3);
  }

  .voucher-strip__head {
    flex-basis: 170px;
  }

  .voucher {
    flex-basis: 340px;
  }

  .rail__track--promo {
    --pin: 184px;
  }

  .rail__track--promo > .product-card {
    flex-basis: calc((100% - var(--pin) - 3 * 16px) / 2.4);
  }

  .promo-band {
    padding: 18px 16px 16px;
  }

  .promo-band__value {
    font-size: var(--title-display);
  }

  .promo-band__art img {
    width: 70px;
  }

  .setup {
    column-gap: 32px;
    padding: 28px;
  }

  .chat-mock {
    justify-self: start;
  }
}

/* Phones: Mobile board */
@media (max-width: 767px) {
  .hero-slider {
    height: auto;
    overflow: visible;
    background: none;
  }

  .hero-slider__track {
    position: static;
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .hero-slider__track::-webkit-scrollbar {
    display: none;
  }

  .hero-slide {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 4 / 5;
    opacity: 1;
    visibility: visible;
    scroll-snap-align: start;
  }

  /* Without a phone image for every banner, the slides keep the desktop shape and the title
     moves under the image; all slides stay the same height. */
  .hero-slider--wide .hero-slider__track {
    align-items: stretch;
  }

  .hero-slider--wide .hero-slide {
    aspect-ratio: auto;
  }

  .hero-slider--wide .hero-banner__media {
    height: auto;
    aspect-ratio: 3 / 1;
  }

  .hero-slider--wide .hero-banner {
    color: var(--ink);
  }

  .hero-slider--wide .hero-banner__text {
    position: static;
    padding-block: 14px 0;
  }

  .hero-banner__text {
    justify-content: flex-end;
    padding-bottom: 24px;
  }

  .hero-banner__title {
    font-size: var(--title-banner);
  }

  .hero-banner__desc {
    margin-top: 6px;
    font-size: var(--text-base);
  }

  .hero-banner__cta {
    margin-top: 14px;
  }

  .hero-slider__controls {
    position: static;
    justify-content: center;
    margin-top: 10px;
  }

  .hero-slider__dots {
    background: none;
    box-shadow: none;
  }

  .cats__track {
    grid-template-rows: repeat(2, 128px);
    grid-auto-columns: 136px;
    gap: 10px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 1px var(--gutter);
    scroll-padding: 0 var(--gutter);
  }

  .cat-card {
    border-radius: var(--r-thumb);
  }

  .cat-card__text {
    padding: 10px 12px;
  }

  .cat-card__name,
  .cats__track > li:first-child .cat-card__name {
    font-size: var(--text-base);
    letter-spacing: 0;
  }

  .cats__track > li:first-child .cat-card__name {
    font-size: var(--text-xl);
  }

  .cat-card__count {
    font-size: var(--text-xs);
  }

  .cat-card .type-tile__initial {
    font-size: 92px;
  }

  .cats__track > li:first-child .type-tile__initial {
    font-size: 180px;
  }

  .cats__track--few {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 132px;
  }

  .cats__track--few > li:first-child .type-tile__initial {
    font-size: 92px;
  }

  .cat-card__icon {
    width: 36px;
    height: 36px;
    margin: 0 10px 10px 0;
  }

  .product-grid--home {
    --cols: 2;
    --gap: 8px;
  }

  .rail__track {
    gap: 10px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 4px;
    scroll-padding: 0 var(--gutter);
  }

  .rail__track > .product-card,
  .rail__track--wide > .product-card {
    flex-basis: 44%;
  }

  body.home .site-main > .voucher-strip {
    padding-block: 20px;
  }

  .voucher-strip__panel {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .voucher-strip__head {
    flex: none;
  }

  .voucher-strip__title {
    font-size: var(--text-xl);
  }

  .voucher-strip__head p {
    margin-top: 2px;
    font-size: var(--text-sm);
  }

  .vouchers {
    align-items: flex-start;
    gap: 10px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 1px var(--gutter);
    scroll-padding: 0 var(--gutter);
  }

  .vouchers > .voucher:first-child {
    margin-left: 0;
  }

  .voucher {
    --stub: 120px;
    flex-basis: 84%;
    min-height: 72px;
  }

  .voucher:only-child {
    flex-basis: 100%;
  }

  .voucher__code-text {
    font-size: var(--text-sm);
    letter-spacing: .03em;
  }

  .voucher__main {
    padding: 12px 14px;
  }

  .voucher__big {
    font-size: var(--title-banner);
  }

  /* Phones: the panel is simply the first card of the row and scrolls away with it. */
  .rail__track--promo {
    --pin: 40%;
    padding: 2px var(--gutter) 4px;
    scroll-padding-left: var(--gutter);
    clip-path: none;
  }

  .rail__track--promo > .product-card {
    flex-basis: 44%;
  }

  .promo-band {
    position: relative;
    padding: 14px 12px 12px;
    border-radius: var(--r-thumb);
    scroll-snap-align: start;
  }

  .promo-band__label,
  .promo-band__count {
    font-size: var(--text-sm);
  }

  .promo-band__value {
    font-size: var(--title-section);
  }

  .promo-band__art {
    min-height: 96px;
    margin: 6px 0;
  }

  .promo-band__art img {
    width: 54px;
    border-width: 2px;
  }


  .rail__all {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--teal);
    font-size: var(--text-meta);
  }

  .promo .section-head,
  .new-arrivals .section-head {
    align-items: baseline;
    margin-bottom: 12px;
  }

  /* Mobile board: six products, then "Lihat semua produk". */
  .product-grid--home > :nth-child(n + 7 of :not([hidden])) {
    display: none;
  }

  .popular .section-head {
    display: block;
  }

  .popular .section-head__actions {
    margin: 10px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .popular .segmented {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0;
    background: none;
  }

  .popular .segmented__item {
    flex: none;
    padding: 0 14px;
    border: 1px solid rgba(14, 42, 51, .12);
    background: var(--surface);
    font-size: var(--text-meta);
  }

  .popular .segmented__item[aria-selected="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--on-dark);
    box-shadow: none;
  }

  .brand-dock {
    display: none;
  }

  .popular__all {
    margin-top: 12px;
  }

  .setup {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "tabs" "title" "desc" "art" "list" "total" "more";
    padding: 16px;
  }

  .setup__tabs {
    justify-self: stretch;
    margin-bottom: 12px;
    padding: 3px;
  }

  .setup__tabs .segmented__item {
    flex: 1 1 0;
    justify-content: center;
    height: 34px;
    padding: 0 8px;
    font-size: var(--text-sm);
  }

  .setup__desc {
    margin-top: 4px;
    font-size: var(--text-meta);
  }

  .setup__art {
    width: 80%;
    margin-top: 10px;
  }

  .setup-label {
    display: none;
  }

  .setup__list {
    margin-top: 12px;
    padding: 2px 12px;
  }

  .setup-item {
    gap: 10px;
    min-height: 44px;
    padding: 9px 0;
  }

  .setup-item input {
    order: 3;
  }

  .setup-item__thumb {
    display: block;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    object-fit: cover;
  }

  .setup-item__role {
    font-size: var(--text-xs);
  }

  .setup-item__name {
    font-size: var(--text-meta);
    line-height: 1.3;
  }

  .setup__total {
    margin-top: 12px;
  }

  .setup__total > div {
    display: none;
  }

  .setup__total .btn {
    width: 100%;
    height: 46px;
  }


  .reviews__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .reviews__title {
    font-size: var(--title-section);
  }

  .reviews__summary {
    margin-top: 6px;
    font-size: var(--text-meta);
  }

  .reviews__stars {
    font-size: var(--text-lg);
  }

  .review-channels {
    margin-top: 16px;
  }

  .review-channel {
    padding: 12px 14px;
    font-size: var(--text-sm);
  }

  .reviews__track {
    gap: 10px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 4px;
    scroll-padding: 0 var(--gutter);
  }

  .review-card {
    flex-basis: 236px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--r-header);
  }

  .review-card__photo {
    height: 132px;
    border-radius: 0;
  }

  .review-card__count,
  .review-card .avatar,
  .review-card .source-chip {
    display: none;
  }

  .review-card__body {
    gap: 4px;
    padding: 10px 12px 12px;
  }

  .review-card__stars { order: 1; }
  .review-card__quote { order: 2; }
  .review-card__who { order: 3; margin-top: 4px; }
  .review-card__product { order: 4; }

  .review-card__quote,
  .review-card__quote--long {
    font-size: var(--text-meta);
    font-weight: 400;
    line-height: 1.4;
    -webkit-line-clamp: 4;
  }

  .review-card__more { order: 2; margin-top: 0; font-size: var(--text-xs); }

  .review-card__stars .stars {
    font-size: var(--text-sm);
    letter-spacing: 1px;
  }

  .review-card__from {
    height: 22px;
    padding: 0 8px;
    font-size: var(--text-2xs);
  }

  .review-card__name {
    font-size: var(--text-xs);
  }

  .review-card__name strong {
    display: inline;
    margin-right: 4px;
    font-size: var(--text-xs);
  }

  .review-card__product {
    padding: 0;
    background: none;
    font-size: var(--text-xs);
  }

  .review-card__product img {
    display: none;
  }

  .faq {
    gap: 10px;
  }

  .faq__list {
    gap: 0;
    overflow: hidden;
    border-radius: var(--r-header);
    box-shadow: var(--shadow-panel);
  }

  .faq__list .faq-item {
    border-radius: 0;
    box-shadow: none;
  }

  .faq__list .faq-item + .faq-item {
    border-top: 1px solid var(--line);
  }

  .faq__list .faq-item__sign {
    width: auto;
    height: auto;
    background: none;
    color: var(--muted);
    font-size: 18px;
  }
}
