/* Uses the existing customer-facing palette from base.html. */
.review-carousel { margin: 0 0 58px; }
.review-stage { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.review-stage .review-card { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; box-shadow: 0 5px 20px rgba(55,42,31,.04); }
.review-stage .review-card blockquote { flex: 1; }
.review-stage .review-card[hidden], .review-controls[hidden], .review-controls button[hidden] { display: none; }
.review-carousel.is-enhanced .review-stage { grid-template-columns: repeat(var(--review-columns,3),minmax(0,1fr)); }
.review-controls { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.review-controls button { border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--ink); padding: 10px 16px; min-height: 44px; font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; }
.review-controls button:hover { border-color: var(--accent); background: var(--paper); }
.review-controls button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.review-controls button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.review-counter { color: var(--muted); font-size: .85rem; }
.review-sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 800px) { .review-stage { grid-template-columns: minmax(0,1fr); } .review-carousel { margin-bottom: 42px; } }
@media (prefers-reduced-motion: no-preference) { .review-carousel.is-enhanced .review-card:not([hidden]) { animation: review-appear .3s ease-out; } }
@keyframes review-appear { from { opacity: .65; } to { opacity: 1; } }

/* Approved restrained pastel-card treatment. */
.review-stage .review-card { padding: 26px; border-radius: 14px; border-color: #e4d9ce; min-height: 245px; background: #f3e8db; }
.review-stage .review-card:nth-child(3n+2) { background: #edf0e6; }
.review-stage .review-card:nth-child(3n+3) { background: #f4e7e2; }
.review-quote-mark { color: #8a6046; font: 700 44px/1 Georgia,serif; display: block; height: 32px; margin-bottom: 8px; }
.review-stage .review-card blockquote { color: var(--ink); font-size: 1.16rem; margin: 8px 0 24px; }
.review-attribution { font-size: .94rem; }
.review-attribution strong { display: block; margin-bottom: 3px; }
.review-attribution .feedback-source { color: #62594f; text-transform: none; letter-spacing: 0; font-size: .82rem; }
.review-item { color: #62594f; font-size: .82rem; margin-top: 4px; }
.review-controls button { background: transparent; font-weight: 500; }
.review-controls .review-arrow { width: 44px; padding: 0; border-radius: 50%; font-size: 1.15rem; }
@media (max-width: 800px) { .review-stage .review-card { padding: 23px; min-height: 225px; } }

.review-featured-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #ddc7ad; border-radius: 999px; padding: 4px 9px; margin-bottom: 12px; background: #fff8ee; color: #67452c; font-size: .74rem; font-weight: 650; }

/* Decorative product artwork is blurred separately; review text stays sharp. */
.review-stage .review-card { position: relative; overflow: hidden; isolation: isolate; }
.review-card-content { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.review-stage .review-card .review-product-background { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; filter: blur(1px) saturate(.95); transform: scale(1.06); opacity: 1; pointer-events: none; }
.review-stage .review-card.has-product-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(155deg,rgba(255,253,248,.50),rgba(255,253,248,.65)); pointer-events: none; }
.review-product-link { color: #51473e; text-decoration: underline; text-underline-offset: 3px; }
.review-product-link:hover { color: var(--ink); }
.review-product-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.review-stage .review-card .review-product-background[hidden] { display: none; }
.review-stage .review-card.has-product-photo .feedback-source,
.review-stage .review-card.has-product-photo .review-item { color: #51473e; }

/* A compact translucent surface keeps text sharp over the clearer photograph. */
.review-stage .review-card.has-product-photo .review-card-content { background: rgba(255,253,248,.74); border: 1px solid rgba(255,255,255,.55); border-radius: 10px; padding: 16px; }
.review-stage .review-card.has-product-photo { padding: 18px; }
