﻿/* Single product page styles only, aligned to the site's base palette. */

:root {
  --brand: #0A2342;
  --brand-soft: rgba(10, 35, 66, 0.08);
  --white: #ffffff;
  --gray-light: #f7f7f7;
  --gray-soft: #f2f5f9;
  --text: #111827;
  --muted: #6b7280;

  --ink: var(--text);
  --ink-soft: var(--muted);
  --ink-mute: var(--muted);
  --ink-faint: #94a3b8;
  --emerald: #16a34a;
  --emerald-deep: #15803d;
  --emerald-bg: #dcfce7;
  --emerald-border: #16a34a;
  --amber: #f59e0b;
  /* Promo: verde emerald (mesma família do "Frete grátis") - preço promocional, tag OFERTA, badge sale */
  --promo: #16a34a;
  --promo-deep: #15803d;
  --promo-bg: #dcfce7;
  --promo-border: #16a34a;
  --promo-text: #15803d;
  --promo-on: #ffffff;
  /* CTA "Comprar agora": laranja - decisão rápida, checkout */
  --cta-buy: #ea580c;
  --cta-buy-deep: #c2410c;
  --cta-buy-shadow: rgba(234, 88, 12, 0.18);
  --cta-buy-shadow-hover: rgba(234, 88, 12, 0.24);
  --sale: #dc2626;         /* vermelho - escassez, último dia */
  --rule: #e2e8f0;
  --rule-strong: #cbd5e1;
  --ff-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-2xl: 32px;
  --text-3xl: 40px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 28px;
  --s7: 40px;
  --s8: 56px;
  --s9: 80px;
  --container: 1280px;
  --container-pad: 24px;
  --r-sm: 6px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--white);
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color 180ms var(--ease); }
a:hover { color: var(--brand); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }
input { font: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

.utility {
  background: var(--brand);
  color: var(--white);
  font-family: var(--ff-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}
.utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: var(--s3);
}
.utility .promo { display: inline-flex; align-items: center; gap: var(--s2); }
.utility .promo .tag {
  background: var(--promo);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.utility .links { display: inline-flex; gap: var(--s5); color: rgba(255,255,255,0.74); }
.utility .links a:hover { color: var(--white); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #1e3a5f 70%);
  display: inline-grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 12px 28px rgba(10, 35, 66, 0.18);
}

.drawer {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 320ms var(--ease);
  display: flex;
  flex-direction: column;
  padding: var(--s7) var(--s5);
  gap: var(--s4);
  visibility: hidden;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer .drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s4);
}
.drawer a {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.drawer .drawer-close {
  font-family: var(--ff-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
}

.crumbs {
  font-family: var(--ff-mono);
  font-size: var(--text-xs);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s3);
}
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { color: var(--ink-faint); }

.section { padding: var(--s9) 0; }
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s8);
  padding: var(--s7) 0 var(--s9);
}
.gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s4);
  min-width: 0;
  max-width: 100%;
}
.gallery > * { min-width: 0; }
.gallery-thumbs button {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--gray-light);
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), opacity 160ms var(--ease);
  opacity: 0.7;
}
.gallery-thumbs button:hover {
  border-color: var(--rule-strong);
  opacity: 1;
}
.gallery-thumbs button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  opacity: 1;
}
.gallery-thumbs button.is-active {
  border-color: var(--brand);
  opacity: 1;
  box-shadow: 0 0 0 1px var(--brand);
}
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--gray-light);
  aspect-ratio: 4 / 4;
  position: relative;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fade na troca de imagem (controlado por JS via style.opacity) */
  transition: opacity 180ms var(--ease);
}

.pdp-info .pdp-cat {
  font-family: var(--ff-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s2);
}
.pdp-info h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--s3);
}
.pdp-info .rating-row {
  display: inline-flex;
  gap: var(--s3);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--ink-mute);
  margin-bottom: var(--s4);
  flex-wrap: wrap;
}
.pdp-info p.desc {
  font-size: var(--text-md);
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: var(--s5);
}
.pdp-info .price-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  margin: var(--s5) 0 var(--s4);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
}
.pdp-info .price-row .now {
  font-family: var(--ff-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text);
}
.pdp-info .price-row .price-stack {
  font-family: var(--ff-display);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.qty button { padding: 10px 14px; font-weight: 700; }
.qty input { width: 50px; border: 0; text-align: center; font-family: var(--ff-mono); font-weight: 600; }

/* Lock AJAX (estilo Amazon) */
.qty.is-locking {
    opacity: 0.55;
    pointer-events: none;
    cursor: wait;
}
.qty.is-locking button,
.qty.is-locking input {
    cursor: wait !important;
}
#pdp-add-to-cart-btn[aria-busy="true"] {
    cursor: wait;
    opacity: 0.85;
    position: relative;
}
#pdp-add-to-cart-btn[disabled] {
    cursor: wait;
    opacity: 0.7;
}
.pdp-cta {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: var(--s4);
}
.pdp-cta__form {
  display: flex;
  flex: 1 1 220px;
  min-width: 200px;
  align-items: center;
  gap: var(--s3);
}
.pdp-cta__add {
  flex: 1 1 auto;
  width: 100%;
  padding: 14px 22px;
}
.btn.pdp-cta__add {
  font-size: var(--text-base);
}
.pdp-cta__buy {
  flex: 1 1 220px;
  min-width: 200px;
  padding: 14px 22px;
  background: var(--cta-buy);
  color: var(--white);
  box-shadow: 0 4px 10px var(--cta-buy-shadow);
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn.pdp-cta__buy {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pdp-cta__buy:hover {
  color: var(--white);
  box-shadow: 0 6px 14px var(--cta-buy-shadow-hover);
  transform: translateY(-1px);
}
.pdp-cta__buy:focus-visible {
  outline: 3px solid rgba(234, 88, 12, 0.3);
  outline-offset: 2px;
}
.btn--brand.pdp-cta__add {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}
.btn--brand.pdp-cta__add:hover {
  background: #061a32;
  border-color: #061a32;
  color: var(--white);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--indigo { background: var(--brand); color: var(--white); box-shadow: 0 12px 28px rgba(10, 35, 66, 0.14); }
.btn--indigo:hover { background: #081f38; color: var(--white); }
.btn--ink { background: var(--text); color: var(--white); }
.btn--ink:hover { background: var(--brand); color: var(--white); }

.pdp-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
}
.pdp-features .pf {
  display: flex;
  gap: var(--s3);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.pdp-features .pf .ic {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.pdp-features .pf .ic svg {
  width: 60%;
  height: 60%;
  display: block;
}

.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}
/* === Cards com largura inteligente (nunca cortam no fim) ===
   Em vez de fixar o `flex-basis` em 25% - 15px (que estoura quando
   hÃ¡ mais cards do que cabem no carousel), calculamos a largura
   baseado no nÃºmero de cards visÃ­veis:

   - Alvo: sempre mostrar 5 cards inteiros em desktop e 1 em mobile,
     sem nenhum corte no fim do track.
   - O `flex-basis` Ã© `calc((100% - 4 * 20px) / 5)` = card_width * 5 + 4*gap = 100%.
   - Como o track-wrap tem `margin: 0 -24px; padding: 18px 24px 24px;`,
     o `100%` referencia a largura do `.products__track`, que Ã© igual
     Ã  largura do track-wrap (incluindo padding lateral). Isso Ã© o
     que queremos: o card ocupa a fraÃ§Ã£o certa do espaÃ§o visÃ­vel.
   - O `min-width: 0` libera o card para encolher abaixo do tamanho
     intrÃ­nseco do conteÃºdo (caso o nome do produto seja longo).
   - `scroll-snap-align: start` mantÃ©m o snap ao inÃ­cio de cada card. */
.product-card {
  flex: 0 0 calc((100% - 80px) / 5);
  min-width: 0;
  scroll-snap-align: start;
  max-width: none;
}
.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(10, 35, 66, 0.08);
  padding: 14px;
  /* box-shadow removido: estava criando uma sombra que cortava no
     fim da section, dando a impressÃ£o de que o card "vazava" para
     fora do container. */
  transition: transform var(--ease), border-color 180ms var(--ease);
}
.product-card__link:hover,
.product-card__link:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(10, 35, 66, 0.12);
}
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--gray-soft);
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 12px;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card .stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.product-card .stock .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
}
.product-card .name {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
  font-weight: 700;
}
.product-card .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.product-card .price .now {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}
.product-card .price .now ins {
  text-decoration: none;
  font-weight: 800;
  color: var(--promo-deep);
}
.product-card .price .now del {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.85;
}
.product-card .stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #f59e0b;
  margin-bottom: 12px;
}
.product-card .stars .count {
  color: var(--muted);
}
.product-card .product-btn {
  display: block;
  width: 100%;
  padding: 10px 18px;
  margin-top: auto;
  background: var(--brand);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  border: none;
  box-shadow: 0 4px 12px rgba(10, 35, 66, 0.12);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  letter-spacing: 0.01em;
}
.product-card .product-btn:hover,
.product-card .product-btn:focus-visible {
  transform: translateY(-2px);
  background: #081f38;
}

.products__nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--rule-strong);
  background: var(--white);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease), opacity 180ms var(--ease);
  font-weight: 700;
  font-size: 18px;
}

.carousel-btn:hover:not(:disabled),
.carousel-btn:focus-visible:not(:disabled) {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  transform: scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.products__track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -24px;
  padding: 18px 24px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  /* `overscroll-behavior-y: contain` foi removido: impedia o scroll
     vertical (roda do mouse) de propagar para a pÃ¡gina quando o
     cursor estava em cima do carrossel. Agora o wheel vertical
     rola a pÃ¡gina normalmente; o scroll horizontal do track
     continua funcionando via `overflow-x: auto`. */
}

.products__track-wrap::-webkit-scrollbar {
  height: 0;
}

.products__track-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.products__track-wrap::-webkit-scrollbar-thumb {
  background: var(--rule-strong);
  border-radius: 3px;
}

.products__track-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

.products__track {
  display: flex;
  gap: 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 4px 4px;
}

.products__track::after {
  content: "";
  flex: 0 0 10px;
}

.products__track::-webkit-scrollbar {
  display: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s4);
}

.section-head--related {
  margin-bottom: 0;
}

.shop-empty {
  padding: var(--s5);
  background: var(--gray-light);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}

@media (max-width: 960px) {
  .product-detail { grid-template-columns: 1fr; gap: var(--s6); }
  .product-card { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 760px) {
  :root { --container-pad: 16px; }
  .utility .links { display: none; }
  .gallery { grid-template-columns: 1fr; max-width: 100%; }
  .gallery > * { min-width: 0; }
  /* Mobile: thumbs em barra horizontal com scroll (UX padrão de e-commerce) */
  .gallery-thumbs {
    display: flex;
    grid-template-columns: none;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: var(--s2);
    padding-bottom: var(--s2);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .gallery-thumbs::-webkit-scrollbar { height: 0; display: none; }
  .gallery-thumbs button {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    scroll-snap-align: start;
  }
  /* Fix: grid items dentro de product-detail devem permitir encolhimento
     para evitar overflow horizontal quando conteúdo (ex: img 1024px)
     tem tamanho intrínseco maior que a viewport. */
  .product-detail,
  .product-detail > * { min-width: 0; }
  .pdp-features { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  /* Mobile: 1 card visível, largura quase total (deixa 10px
     para o padding lateral de 16px do wrap, mais 10px de gap
     virtual para o ::after). */
  .product-card { flex: 0 0 calc(100% - 26px); max-width: none; }
  .products__track-wrap { margin: 0 -16px; padding: 18px 16px 24px; }

  /* Specs and Reviews responsive */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Tablet (761-960px): 3 cards visÃ­veis. Mesma fÃ³rmula:
   (100% - 2 * 20px) / 3 = card_width * 3 + 2*gap = 100%. */
@media (min-width: 761px) and (max-width: 960px) {
  .product-card { flex: 0 0 calc((100% - 40px) / 3); }
}
/* =========================================================
   Reviews modal (estilo Mercado Livre)
   ========================================================= */
/* O bloqueio de scroll é feito no <html> via JS (mais confiável
   porque neste tema o <html> é quem controla overflow, não o body). */
body.scara-reviews-modal-open {
  /* Mantém o body com altura natural; quem trava é o html. */
  overscroll-behavior: contain;
}

.scara-reviews-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: var(--ff-body);
}

.scara-reviews-modal[hidden] { display: none; }

.scara-reviews-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: scara-fade-in 0.18s ease-out;
}

.scara-reviews-modal__panel {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scara-pop-in 0.22s ease-out;
}

@keyframes scara-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scara-pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.scara-reviews-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}

.scara-reviews-modal__head h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.scara-reviews-modal__close {
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-mute);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.scara-reviews-modal__close:hover,
.scara-reviews-modal__close:focus {
  background: var(--gray-soft);
  color: var(--text);
  outline: none;
}

.scara-reviews-modal__summary {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--gray-soft);
  flex-shrink: 0;
}

.scara-reviews-modal__score {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scara-reviews-modal__score strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  font-family: var(--ff-display);
}

.scara-reviews-modal__stars {
  color: var(--amber);
  font-size: 16px;
  letter-spacing: 2px;
}

.scara-reviews-modal__count {
  font-size: 14px;
  color: var(--ink-mute);
}

.scara-reviews-modal__list {
  overflow-y: auto;
  padding: 8px 24px 24px;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

.scara-review {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.scara-review:last-child { border-bottom: 0; }

.scara-review__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.scara-review__head strong {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  margin-right: 8px;
}

.scara-review__date {
  color: var(--ink-mute);
  font-size: 13px;
}

.scara-review__stars {
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 2px;
}

.scara-review__body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}

@media (max-width: 600px) {
  .scara-reviews-modal { padding: 0; }
  .scara-reviews-modal__panel {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .scara-reviews-modal__head { padding: 16px 18px; }
  .scara-reviews-modal__head h3 { font-size: 17px; }
  .scara-reviews-modal__summary { padding: 14px 18px; }
  .scara-reviews-modal__list { padding: 4px 18px 18px; }
  .scara-review__head strong { font-size: 14px; }
  .scara-review__body { font-size: 13px; }
}

