/* Homepage slideshows: product shelf + Google reviews */

.arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(230, 237, 247, 0.03); color: var(--text-1); display: grid; place-items: center; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease); }
.arrow:hover { border-color: rgba(57, 255, 110, 0.55); background: rgba(57, 255, 110, 0.08); }
.arrow:active { transform: scale(0.96); }
.arrow svg { width: 20px; height: 20px; }
.slide-arrows { display: flex; gap: 10px; }

/* ---------- shelf ---------- */
.shelf { position: relative; }
.shelf-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 24vw, 310px); column-gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 28px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track:focus-visible { outline: none; }
.shelf-track:focus-visible .shelf-card:first-child { outline: 2px solid var(--cyan); outline-offset: 3px; }

.shelf-card { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease); }
.shelf-card:hover { transform: translateY(-6px); border-color: rgba(57, 255, 110, 0.35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(57, 255, 110, 0.06); }

.shelf-art { --a: rgba(57, 255, 110, 0.28); --b: rgba(6, 214, 214, 0.18); position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 90% at 25% 15%, var(--a), transparent 65%), radial-gradient(70% 80% at 95% 100%, var(--b), transparent 70%), #08101d; }
.t-prerolls .shelf-art { --a: rgba(184, 169, 106, 0.32); --b: rgba(57, 255, 110, 0.14); }
.t-vapes .shelf-art { --a: rgba(6, 214, 214, 0.3); --b: rgba(124, 58, 237, 0.2); }
.t-gummies .shelf-art { --a: rgba(168, 85, 247, 0.34); --b: rgba(6, 214, 214, 0.14); }
.t-beverages .shelf-art { --a: rgba(6, 214, 214, 0.26); --b: rgba(57, 255, 110, 0.18); }
.shelf-art .art-word { font-size: clamp(3.6rem, 2.8rem + 2vw, 5rem); -webkit-text-stroke-color: rgba(230, 237, 247, 0.16); transition: transform 1.2s var(--ease); }
.shelf-card:hover .art-word { transform: translateY(-50%) rotate(-6deg) scale(1.06); }
.shelf-art svg.glyph { position: relative; width: 74px; height: 74px; color: var(--text-1); filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5)); transition: transform 0.6s var(--ease); }
.shelf-card:hover .shelf-art svg.glyph { transform: translateY(-4px) scale(1.06); }
.shelf-art.has-photo { background: radial-gradient(80% 90% at 50% 40%, #f4f6f9, #d9dee6); }
.shelf-cat { position: absolute; left: 14px; top: 14px; z-index: 2; font: 400 var(--fs-xs) / 1 var(--font-tag); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-1); padding: 7px 10px; border-radius: 999px; background: rgba(4, 8, 15, 0.7); border: 1px solid var(--line); }
.shelf-art .chip { position: absolute; right: 14px; top: 14px; z-index: 2; }
.shelf-body { padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shelf-body h3 { font-size: var(--fs-lg); font-weight: 600; line-height: 1.2; color: var(--text-1); }
.shelf-meta { margin: 0; font-size: 0.875rem; color: var(--text-2); line-height: 1.45; }
.shelf-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.shelf-foot > div { display: flex; flex-direction: column; gap: 4px; }
.shelf-pot { font-size: 0.8125rem; font-weight: 600; color: var(--green-text); }
.shelf-foot .price { font-size: 1.25rem; }

.shelf-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.shelf-progress { flex: 1; max-width: 420px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.shelf-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); transform-origin: left; transform: scaleX(0.1); transition: transform 0.4s var(--ease); }
@media (max-width: 600px) { .shelf-track { grid-auto-columns: 78%; } }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.rating .tag { margin-bottom: 18px; }
.rating-score { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.rating-score .num { font: 400 clamp(5rem, 3.6rem + 6vw, 8.5rem) / 0.9 var(--font-display); color: var(--green); text-shadow: 0 0 60px rgba(57, 255, 110, 0.25); letter-spacing: 0.01em; }
.stars { display: inline-flex; gap: 4px; }
.stars svg { width: 22px; height: 22px; fill: #f5c542; }
.rating-score .stars svg { width: 28px; height: 28px; }
.rating p { color: var(--text-2); margin: 0 0 24px; }
.review-wrap { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: radial-gradient(90% 120% at 100% 0%, rgba(57, 255, 110, 0.09), transparent 55%), radial-gradient(70% 100% at 0% 100%, rgba(124, 58, 237, 0.12), transparent 60%), var(--card); overflow: hidden; }
.quote-mark { position: absolute; right: 28px; top: 22px; width: 76px; height: 76px; fill: rgba(57, 255, 110, 0.12); }
.review-stage { display: grid; min-height: 250px; }
.review { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; gap: 18px; opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0s linear 0.7s; }
.review.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0s; }
.review blockquote { margin: 0; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.5; font-weight: 400; color: var(--text-1); max-width: 54ch; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review figcaption b { display: block; font-weight: 600; color: var(--text-1); }
.review figcaption span:last-child { font-size: 0.8125rem; color: var(--text-3); }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--on-accent); background: linear-gradient(135deg, var(--green), var(--cyan)); flex: none; }
.review-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.review-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.review-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: var(--line-2); cursor: pointer; transition: width 0.4s var(--ease), background-color 0.3s; }
.review-dots button[aria-current="true"] { width: 28px; background: var(--green); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } .review-stage { min-height: 300px; } }
@media (prefers-reduced-motion: reduce) { .review { transition: none; } }

/* ---------- shelf tabs (category picker above the slideshow) ---------- */
.shelf-tabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: -8px calc(-1 * var(--gutter)) 18px; padding: 4px var(--gutter); }
.shelf-tabs::-webkit-scrollbar { display: none; }
.shelf-tabs button { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 18px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(230, 237, 247, 0.03); color: var(--text-2); font: 500 0.9375rem var(--font-body); cursor: pointer; transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.shelf-tabs button:hover { color: var(--text-1); border-color: rgba(230, 237, 247, 0.32); }
.shelf-tabs button[aria-selected="true"] { color: var(--bg); background: var(--text-1); border-color: var(--text-1); }
.shelf-tabs img, .shelf-tabs .tab-dot { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.shelf-tabs .tab-dot { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(57, 255, 110, 0.45), rgba(6, 214, 214, 0.2) 70%), #08101d; }
.shelf-tabs .tab-dot svg { width: 20px; height: 20px; color: #fff; }

/* closing card: hand-off to the full menu */
.shelf-end { position: relative; text-decoration: none; justify-content: flex-end; min-height: 100%; isolation: isolate; }
.shelf-end-photo { position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 80% at 30% 20%, rgba(57, 255, 110, 0.25), transparent 70%), #08101d; }
.shelf-end-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.shelf-end-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 8, 15, 0.1), rgba(4, 8, 15, 0.92)); }
.shelf-end-body { display: grid; gap: 10px; padding: 24px; }
.shelf-end-body b { font: 400 clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem) / 1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-display); }
.shelf-end-body svg { width: 28px; height: 28px; color: var(--green); transition: transform 0.4s var(--ease); }
.shelf-end:hover .shelf-end-body svg { transform: translateX(6px); }
