/* ============================================================
   GRAVORA — Reviews styles
   ============================================================ */

.rev-stories-h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.5px; margin-top: 8px; }

/* ============================================================
   Premium reviews carousel
   ============================================================ */
.rc-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.rc-viewport { width: 100%; overflow: hidden; }
.rc-track { display: flex; will-change: transform; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.rc-card { flex: 0 0 auto; box-sizing: border-box; padding: 0 11px; display: flex; }
.rc-inner { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 16px; width: 100%; display: flex; flex-direction: column; }
.rc-photo { aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--ink); }
.rc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-photo .ph-img { width: 100%; height: 100%; }
.rc-name { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: #fff; margin-top: 14px; }
.rc-verif { width: 17px; height: 17px; border-radius: 50%; background: var(--crystal); display: inline-grid; place-items: center; flex: none; }
.rc-verif svg { width: 11px; height: 11px; color: #fff; }
.rc-stars { display: inline-flex; gap: 2px; margin-top: 8px; }
.rc-stars .rcs { width: 16px; height: 16px; fill: rgba(255,255,255,.18); }
.rc-stars .rcs.on { fill: var(--crystal); }
.rc-text { font-size: 14px; line-height: 1.6; color: var(--silver); margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-meta { font-size: 12px; color: rgba(201,205,210,.6); margin-top: 12px; }
.rc-arrow { position: absolute; top: 38%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 3; transition: .18s; }
.rc-arrow:hover { background: var(--crystal); border-color: var(--crystal); }
.rc-arrow svg { width: 22px; height: 22px; }
.rc-prev { left: -10px; } .rc-next { right: -10px; }
.rc-dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.rc-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); border: none; cursor: pointer; padding: 0; transition: .2s; }
.rc-dot.active { background: var(--crystal); width: 22px; border-radius: 999px; }
/* light-background variant (if used on mist) */
.rc-on-light .rc-inner { background: #fff; border-color: var(--line); }
.rc-on-light .rc-name { color: var(--text); }
.rc-on-light .rc-text { color: var(--muted); }
.rc-on-light .rc-arrow { background: var(--ink); border-color: var(--ink); }
.rc-on-light .rc-dot { background: #cdd3db; }
.rc-on-light .rc-dot.active { background: var(--crystal); }

@media (max-width: 1000px) { .rc-prev { left: -6px; } .rc-next { right: -6px; } }
@media (max-width: 640px) { .rc-arrow { width: 38px; height: 38px; } }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars .star { width: 18px; height: 18px; fill: #3a4048; }
.stars .star.on { fill: var(--crystal); }
.stars.gold .star.on { fill: #D8B24A; }
.stars.lg .star { width: 24px; height: 24px; }
.stars.sm .star { width: 14px; height: 14px; }

/* ============================================================
   Summary band (dark)
   ============================================================ */
.rev-hero { background: var(--ink); color: #fff; padding: 60px 0; }
.rev-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.rev-score { text-align: center; }
.rev-score .big { font-family: var(--serif); font-size: 78px; font-weight: 600; line-height: 1; }
.rev-score .stars { margin: 10px 0 8px; }
.rev-score .count { font-size: 13.5px; color: var(--silver); }
.rev-dist { display: flex; flex-direction: column; gap: 8px; }
.rev-dist .drow { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.rev-dist .dlabel { width: 30px; color: var(--silver); display: flex; align-items: center; gap: 3px; }
.rev-dist .dlabel svg { width: 12px; height: 12px; fill: var(--crystal); }
.rev-dist .dbar { flex: 1; height: 8px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.rev-dist .dfill { height: 100%; background: var(--crystal); border-radius: 999px; width: 0; transition: width 1s var(--ease); }
.rev-dist .dpct { width: 38px; text-align: right; color: var(--silver); }
.rev-stats { display: flex; gap: 40px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-dark); flex-wrap: wrap; }
.rev-stat .rs-val { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--crystal-icy); }
.rev-stat .rs-lbl { font-size: 12.5px; color: var(--silver); margin-top: 2px; }

/* ============================================================
   Featured stories
   ============================================================ */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.story .st-photo { aspect-ratio: 4/3; background: var(--ink); position: relative; overflow: hidden; }
.story .st-photo .ph-img { width: 100%; height: 100%; }
.story .st-photo img { width: 100%; height: 100%; object-fit: cover; }
.story .st-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.story .st-quote { font-family: var(--serif); font-size: 19px; line-height: 1.4; font-style: italic; color: var(--text); position: relative; flex: 1; }
.story .st-foot { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.story .st-av { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.story .st-name { font-weight: 600; font-size: 14.5px; }
.story .st-meta { font-size: 12px; color: var(--muted); }
.story .st-prod { font-size: 12px; color: var(--crystal-deep); font-weight: 600; margin-top: 2px; }

/* ============================================================
   Photo wall
   ============================================================ */
.photo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.pw-item { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--ink); border: none; padding: 0; }
.pw-item .ph-img { width: 100%; height: 100%; }
.pw-item img { width: 100%; height: 100%; object-fit: cover; }
.pw-item::after { content: ""; position: absolute; inset: 0; background: rgba(15,18,22,.12); opacity: 0; transition: .2s; }
.pw-item:hover::after { opacity: 1; }
.pw-item .pw-play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.pw-item .pw-play span { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.pw-item .pw-play svg { width: 20px; height: 20px; fill: var(--ink); margin-left: 2px; }

/* ============================================================
   Toolbar (filters + sort)
   ============================================================ */
.rev-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.rev-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rev-chip { font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: .15s; display: inline-flex; align-items: center; gap: 5px; }
.rev-chip:hover { border-color: var(--crystal); color: var(--navy); }
.rev-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.rev-chip svg { width: 13px; height: 13px; fill: currentColor; }

/* ============================================================
   Review cards
   ============================================================ */
.rev-list { display: flex; flex-direction: column; gap: 0; }
.rev-card { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 54px 1fr; gap: 18px; }
.rev-card .rc-av { width: 54px; height: 54px; border-radius: 50%; background: var(--mist); color: var(--navy); display: grid; place-items: center; font-weight: 600; font-size: 17px; border: 1px solid var(--line); }
.rev-card .rc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rev-card .rc-name { font-weight: 600; font-size: 15px; }
.rev-card .rc-verif { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #1f8a5b; background: #e6f6ee; padding: 3px 8px; border-radius: 999px; }
.rev-card .rc-verif svg { width: 12px; height: 12px; }
.rev-card .rc-sub { display: flex; align-items: center; gap: 10px; margin: 7px 0 10px; flex-wrap: wrap; }
.rev-card .rc-date { font-size: 12.5px; color: var(--muted); }
.rev-card .rc-prod { font-size: 12.5px; color: var(--crystal-deep); font-weight: 600; }
.rev-card .rc-text { font-size: 14.5px; line-height: 1.7; color: #2f343a; }
.rev-card .rc-photos { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rev-card .rc-photos .rc-ph { width: 74px; height: 74px; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--ink); border: none; padding: 0; position: relative; }
.rev-card .rc-photos .rc-ph .ph-img { width: 100%; height: 100%; }
.rev-card .rc-photos .rc-ph img { width: 100%; height: 100%; object-fit: cover; }
.rev-card .rc-photos .rc-ph .pw-play span { width: 30px; height: 30px; }
.rev-card .rc-photos .rc-ph .pw-play svg { width: 13px; height: 13px; }
.rev-card .rc-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.rev-helpful { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: .15s; }
.rev-helpful:hover { border-color: var(--crystal); color: var(--navy); }
.rev-helpful.voted { background: #f0f5ff; border-color: var(--crystal); color: var(--navy); }
.rev-helpful svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rev-reply { margin-top: 14px; background: var(--mist); border-radius: 10px; padding: 14px 16px; border-left: 3px solid var(--crystal); }
.rev-reply .rr-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.rev-reply .rr-head img { height: 14px; }
.rev-reply .rr-text { font-size: 13.5px; line-height: 1.6; color: #3c4147; }
.rev-empty { text-align: center; padding: 50px 20px; color: var(--muted); }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 320; background: rgba(15,18,22,.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-stage { max-width: 80vw; max-height: 80vh; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lb-media { width: min(620px, 80vw); aspect-ratio: 1/1; max-height: 70vh; border-radius: 14px; overflow: hidden; background: var(--ink); display: grid; place-items: center; }
.lb-media .ph-img { width: 100%; height: 100%; }
.lb-media img { width: 100%; height: 100%; object-fit: cover; }
.lb-media .lb-video { display: grid; place-items: center; color: var(--silver); text-align: center; gap: 10px; font-size: 13px; }
.lb-media .lb-video svg { width: 60px; height: 60px; fill: var(--crystal); }
.lb-cap { color: #fff; font-size: 14px; text-align: center; }
.lb-cap b { font-family: var(--serif); font-size: 17px; font-weight: 600; display: block; }
.lb-close { position: absolute; top: 22px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-close svg { width: 22px; height: 22px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav svg { width: 24px; height: 24px; }
.lb-prev { left: 24px; } .lb-next { right: 24px; }

/* ============================================================
   Write-review modal
   ============================================================ */
.rev-modal { position: fixed; inset: 0; z-index: 330; background: rgba(15,18,22,.55); display: none; place-items: center; padding: 20px; overflow-y: auto; }
.rev-modal.open { display: grid; }
.rev-modal .rm-card { background: #fff; border-radius: 16px; width: min(540px, 100%); max-height: 92vh; overflow-y: auto; }
.rev-modal .rm-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; border-radius: 16px 16px 0 0; }
.rev-modal .rm-head h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; }
.rev-modal .rm-body { padding: 22px 24px; }
.rev-modal .rm-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: #fff; }
.star-input { display: inline-flex; gap: 4px; }
.star-input .si { width: 34px; height: 34px; cursor: pointer; fill: #d4d9e0; transition: fill .12s; }
.star-input .si.on { fill: var(--crystal); }
.rm-upload { border: 1.5px dashed #c2cad6; border-radius: 10px; padding: 18px; text-align: center; font-size: 13.5px; color: var(--muted); cursor: pointer; background: #f7f9fc; transition: .2s; }
.rm-upload:hover { border-color: var(--crystal); background: #f0f5fd; }
.rm-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rm-thumbs .rmt { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.rm-thumbs .rmt img { width: 100%; height: 100%; object-fit: cover; }
.rev-success { text-align: center; padding: 40px 24px; }
.rev-success .rs-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--crystal); display: grid; place-items: center; margin: 0 auto 18px; }
.rev-success .rs-ico svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 2.5; }
.rev-success h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.rev-success p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   Product page review block
   ============================================================ */
.p-rating { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 16px; cursor: pointer; }
.p-rating .pr-score { font-weight: 700; font-size: 14px; }
.p-rating .pr-link { font-size: 13px; color: var(--muted); text-decoration: underline; }
.p-rating:hover .pr-link { color: var(--navy); }
.prod-reviews { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 40px; }
.prod-reviews .pr-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.prod-reviews .pr-head h2 { font-family: var(--serif); font-size: clamp(26px,3vw,34px); font-weight: 600; }
.prod-reviews .pr-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }

/* ============================================================
   Home stories section
   ============================================================ */
.home-stories .hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.home-stories .hs-rating { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.home-stories .hs-rating b { color: var(--text); }

/* ---------- Home showcase cards (editable) ---------- */
.home-showcase { display: flex; flex-direction: column; gap: 24px; }
.showcase-card { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--ink); border-radius: var(--radius); overflow: hidden; color: #fff; }
.showcase-card.flip .sc-text { order: 2; }
.showcase-card .sc-text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.showcase-card h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 600; line-height: 1.08; letter-spacing: -.5px; margin-top: 12px; }
.showcase-card h2 em { font-style: italic; color: var(--crystal-icy); }
.showcase-card p { color: var(--silver); font-size: 15px; line-height: 1.65; margin: 16px 0 24px; max-width: 420px; }
.showcase-card .sc-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.showcase-card .sc-media { position: relative; min-height: 280px; background: var(--ink); }
.showcase-card .sc-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.showcase-card .sc-media .ph-img { position: absolute; inset: 0; }
@media (max-width: 760px) {
  .showcase-card { grid-template-columns: 1fr; }
  .showcase-card.flip .sc-text { order: 0; }
  .showcase-card .sc-media { min-height: 220px; order: -1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stories { grid-template-columns: 1fr; }
  .photo-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .rev-hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .rev-stats { gap: 24px; }
}
@media (max-width: 560px) {
  .photo-wall { grid-template-columns: repeat(2, 1fr); }
  .rev-score .big { font-size: 64px; }
  .lb-nav { width: 42px; height: 42px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
