:root {
    --review-maroon: #690b27;
    --review-maroon-deep: #4c071c;
    --review-gold: #bc8b3f;
    --review-cream: #fbf6e8;
    --review-paper: #fffdf8;
    --review-line: #eadcc0;
    --review-ink: #2b211e;
    --review-muted: #806f64;
}

.product-review-summary,
.product-detail-rating,
.review-stars {
    color: var(--review-gold);
}

.product-review-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 8px;
    font: 600 13px/1.2 Arial, sans-serif;
}

.product-review-summary .fa-star,
.review-stars .is-filled,
.product-detail-rating .is-filled,
.reviews-score-card .is-filled {
    color: #b88735;
}

.product-review-summary small {
    color: var(--review-muted);
    font-size: 12px;
    font-weight: 400;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 18px 0 6px;
    color: var(--review-ink);
    text-decoration: none;
}

.product-detail-rating > span,
.product-reviews-card-top .review-stars,
.product-review-card-top .review-stars {
    display: inline-flex;
    gap: 3px;
    color: #d6c6a6;
}

.product-detail-rating > span .is-filled { color: var(--review-gold); }
.product-detail-rating b { font-size: 15px; }
.product-detail-rating small,
.product-detail-rating-empty { color: var(--review-muted); font-size: 13px; }
.product-detail-rating > .fa-arrow-down { color: var(--review-maroon); font-size: 12px; }
.product-detail-rating-empty { display:flex; align-items:center; gap:8px; margin:18px 0 6px; }

.product-reviews-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    scroll-margin-top: 110px;
    margin: 58px 0 72px;
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid var(--review-line);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(188,139,63,.12), transparent 40%),
        linear-gradient(145deg, #fffefa, var(--review-cream));
}

.product-reviews-section::after {
    position:absolute;
    z-index:-1;
    right:-65px;
    bottom:-100px;
    width:260px;
    height:260px;
    border:1px solid rgba(188,139,63,.16);
    border-radius:50%;
    box-shadow:0 0 0 22px rgba(188,139,63,.035),0 0 0 44px rgba(188,139,63,.025);
    content:"";
}

.product-reviews-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    margin-bottom:28px;
}

.product-reviews-heading .eyebrow,
.customer-review-heading .eyebrow,
.customer-review-product .eyebrow,
.reviews-admin-intro .eyebrow {
    margin:0 0 10px;
    color:var(--review-gold);
    font-size:11px;
    font-weight:700;
    letter-spacing:.2em;
}

.product-reviews-heading h2,
.customer-review-heading h1 {
    margin:0;
    color:var(--review-ink);
    font:400 clamp(29px,4vw,45px)/1.12 Georgia,serif;
    letter-spacing:-.035em;
}

.product-reviews-heading p:not(.eyebrow),
.customer-review-heading p:not(.eyebrow) {
    max-width:590px;
    margin:11px 0 0;
    color:var(--review-muted);
    line-height:1.7;
}

.reviews-score-card {
    display:grid;
    justify-items:center;
    gap:5px;
    min-width:156px;
    padding:18px 22px;
    border:1px solid rgba(188,139,63,.32);
    border-radius:18px;
    background:rgba(255,253,248,.84);
    box-shadow:0 12px 30px rgba(75,35,19,.05);
}

.reviews-score-card strong { color:var(--review-maroon); font:400 38px/1 Georgia,serif; }
.reviews-score-card span { display:flex; gap:3px; color:#d9c9aa; }
.reviews-score-card small { color:var(--review-muted); font-size:11px; }

.product-reviews-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.product-review-card {
    padding:22px 24px;
    border:1px solid rgba(234,220,192,.9);
    border-radius:18px;
    background:var(--review-paper);
    box-shadow:0 12px 30px rgba(75,35,19,.035);
}

.product-review-card-top,
.product-review-card footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.review-stars { display:inline-flex; align-items:center; gap:3px; color:#d9c9aa; }
.review-stars span { margin-left:6px; color:var(--review-muted); font:500 12px Arial,sans-serif; }
.review-verified { color:#617f60; font-size:11px; white-space:nowrap; }
.review-verified i { margin-right:4px; }
.product-review-card h3 { margin:18px 0 7px; color:var(--review-ink); font:500 18px Georgia,serif; }
.product-review-card > p { margin:15px 0 22px; color:#66574e; font-size:14px; line-height:1.75; overflow-wrap:anywhere; }
.product-review-card footer { padding-top:14px; border-top:1px solid #f0e8da; color:var(--review-ink); font-size:12px; }
.product-review-card time { color:var(--review-muted); font-size:11px; }

.reviews-empty-state {
    display:grid;
    justify-items:center;
    padding:38px 20px 28px;
    border:1px dashed rgba(188,139,63,.38);
    border-radius:20px;
    background:rgba(255,253,248,.64);
    text-align:center;
}

.reviews-empty-icon,
.reviews-admin-seal {
    display:grid;
    place-items:center;
    width:50px;
    height:50px;
    border:1px solid var(--review-line);
    border-radius:50%;
    background:#fff;
    color:var(--review-maroon);
}

.reviews-empty-state h3 { margin:16px 0 5px; color:var(--review-ink); font:400 24px Georgia,serif; }
.reviews-empty-state p { max-width:460px; margin:6px 0 0; color:var(--review-muted); line-height:1.65; }

.customer-review-shell {
    width:min(100%,850px);
    margin:clamp(12px,4vw,42px) auto 70px;
}

.review-back-link {
    display:inline-flex;
    align-items:center;
    gap:9px;
    margin-bottom:18px;
    color:var(--review-maroon);
    font-size:13px;
    font-weight:700;
    text-decoration:none;
}

.customer-review-card {
    overflow:hidden;
    padding:clamp(22px,5vw,56px);
    border:1px solid var(--review-line);
    border-radius:28px;
    background:linear-gradient(150deg,#fffefa 0%,var(--review-cream) 100%);
    box-shadow:0 28px 80px rgba(60,25,21,.09);
}

.customer-review-product {
    display:flex;
    align-items:center;
    gap:20px;
    padding:16px;
    border:1px solid var(--review-line);
    border-radius:20px;
    background:var(--review-paper);
}

.customer-review-product img {
    width:112px;
    height:112px;
    object-fit:contain;
    border-radius:14px;
    background:#fff;
}

.customer-review-product h2 { margin:0; color:var(--review-ink); font:400 25px Georgia,serif; }
.customer-review-product p:last-child { margin:8px 0 0; color:var(--review-muted); font-size:13px; }
.customer-review-heading { margin:34px 0 24px; }
.review-reviewing-note { margin:0 0 22px; padding:13px 16px; border:1px solid #e8d6b2; border-radius:12px; background:#fff9e9; color:#765c2e; font-size:13px; line-height:1.5; }
.review-reviewing-note i { margin-right:7px; }

.customer-review-form { display:grid; gap:20px; }
.customer-review-form > label { display:grid; gap:8px; color:var(--review-ink); font-size:13px; font-weight:700; }
.customer-review-form > label > span:not(.review-optional),
.review-rating-field legend span { color:var(--review-maroon); }
.review-optional { margin-left:6px; color:var(--review-muted); font-size:12px; font-weight:400; }
.customer-review-form input[type="text"],
.customer-review-form textarea {
    width:100%;
    padding:14px 16px;
    border:1px solid #dfd0b7;
    border-radius:12px;
    outline:none;
    background:#fffefa;
    color:var(--review-ink);
    font:400 15px/1.55 Arial,sans-serif;
    transition:border-color .18s,box-shadow .18s;
}

.customer-review-form input[type="text"]:focus,
.customer-review-form textarea:focus { border-color:var(--review-maroon); box-shadow:0 0 0 4px rgba(105,11,39,.09); }
.customer-review-form textarea { min-height:150px; resize:vertical; }
.customer-review-form > label > small { color:var(--review-muted); font-size:11px; font-weight:400; }
.review-rating-field { margin:0; padding:0; border:0; }
.review-rating-field legend { margin-bottom:12px; color:var(--review-ink); font-size:13px; font-weight:700; }
.review-rating-options { display:flex; flex-wrap:wrap; gap:8px; }
.review-rating-options label { cursor:pointer; }
.review-rating-options input { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.review-rating-options label > span {
    display:grid;
    justify-items:center;
    gap:6px;
    min-width:108px;
    padding:12px 10px;
    border:1px solid var(--review-line);
    border-radius:13px;
    background:#fffefa;
    color:#d6c6a6;
    transition:all .18s ease;
}
.review-rating-options small { color:var(--review-muted); font-size:10px; }
.review-rating-options label:hover > span,
.review-rating-options input:checked + span { border-color:var(--review-maroon); background:#fff8f1; box-shadow:0 5px 16px rgba(105,11,39,.09); }
.review-rating-options label:has(input:checked) > span,
.review-rating-options label:has(input:focus-visible) > span { outline:3px solid rgba(105,11,39,.12); }
.review-rating-options label:nth-child(n+2) input:checked + span i,
.review-rating-options input:checked + span i { color:var(--review-gold); }
.customer-review-submit { display:flex; align-items:center; justify-content:center; gap:10px; min-height:54px; border:0; border-radius:12px; background:var(--review-maroon); color:#fff; font-weight:700; cursor:pointer; }
.customer-review-submit:hover { background:var(--review-maroon-deep); }
.review-privacy-note { display:flex; align-items:flex-start; gap:9px; margin:20px 0 0; color:var(--review-muted); font-size:12px; line-height:1.6; }
.review-privacy-note i { margin-top:2px; color:#71856b; }

.reviews-admin-intro { margin-bottom:22px; }
.reviews-admin-seal { display:flex; flex:none; gap:7px; width:auto; height:auto; padding:11px 15px; border-radius:999px; color:var(--review-maroon); font-size:12px; font-weight:700; }
.reviews-admin-seal i { color:var(--review-gold); }
.reviews-admin-list { display:grid; gap:14px; margin-top:18px; }
.reviews-admin-card { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:start; gap:16px; padding:22px; border:1px solid var(--review-line); border-radius:18px; background:#fffdfa; box-shadow:0 12px 32px rgba(70,32,20,.04); }
.reviews-select { padding-top:3px; }
.reviews-select input { width:17px; height:17px; accent-color:var(--review-maroon); }
.reviews-admin-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.reviews-admin-card-top .eyebrow { margin:0 0 8px; color:var(--review-gold); font-size:10px; font-weight:700; letter-spacing:.14em; }
.reviews-admin-card-top h3 { margin:0 0 4px; color:var(--review-ink); font:500 18px Georgia,serif; }
.reviews-admin-card-top a { color:var(--review-muted); font-size:12px; }
.review-status { padding:6px 10px; border-radius:999px; font-size:11px; font-weight:700; white-space:nowrap; }
.review-status-pending { background:#fff3d5; color:#806027; }
.review-status-approved { background:#e6f2e9; color:#346245; }
.review-status-hidden { background:#f1e9e9; color:#765d62; }
.reviews-admin-card .review-stars { margin:16px 0 8px; }
.reviews-admin-card h4 { margin:8px 0 4px; color:var(--review-ink); font:500 16px Georgia,serif; }
.reviews-admin-comment { margin:0 0 10px; color:#67594f; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.reviews-admin-card-main > small { color:#9a897a; font-size:11px; }
.reviews-status-form { display:flex; align-items:center; gap:8px; }
.reviews-status-form select { min-height:38px; padding:0 10px; border:1px solid var(--review-line); border-radius:9px; background:#fff; color:var(--review-ink); }

@media (max-width:700px) {
    .product-reviews-section { margin:42px 0 52px; padding:24px 18px; border-radius:21px; }
    .product-reviews-heading { align-items:flex-start; flex-direction:column; }
    .reviews-score-card { grid-template-columns:auto auto; justify-items:start; align-items:center; min-width:0; width:100%; padding:12px 15px; }
    .reviews-score-card small { grid-column:1 / -1; }
    .product-reviews-grid { grid-template-columns:1fr; }
    .product-review-card { padding:18px; }
    .customer-review-shell { margin:10px auto 48px; }
    .customer-review-card { padding:22px 17px; border-radius:21px; }
    .customer-review-product { gap:13px; padding:11px; }
    .customer-review-product img { width:82px; height:82px; }
    .customer-review-product h2 { font-size:21px; }
    .customer-review-product .eyebrow { font-size:9px; }
    .review-rating-options { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }
    .review-rating-options label > span { min-width:0; padding:11px 4px; font-size:12px; }
    .review-rating-options label > span i { font-size:12px; }
    .review-rating-options small { font-size:8px; }
    .reviews-admin-card { grid-template-columns:20px minmax(0,1fr); gap:11px; padding:16px 12px; }
    .reviews-status-form { grid-column:2; }
    .reviews-admin-card-top { gap:8px; }
    .reviews-admin-card-top .eyebrow { font-size:9px; letter-spacing:.08em; }
}

@media (prefers-reduced-motion:reduce) {
    .customer-review-form input,
    .customer-review-form textarea,
    .review-rating-options label > span { transition:none; }
}

/* Premium moderation dashboard and refined product rating link. */
.product-detail-rating { padding:8px 10px 8px 13px; border:1px solid rgba(188,139,63,.28); border-radius:999px; background:linear-gradient(110deg,#fffdf7,#fbf5e8); box-shadow:0 7px 20px rgba(72,40,18,.055); transition:border-color .2s,box-shadow .2s,transform .2s; }
.product-detail-rating:hover { transform:translateY(-1px); border-color:rgba(188,139,63,.58); box-shadow:0 10px 25px rgba(72,40,18,.1); }
.product-detail-rating:focus-visible { outline:3px solid rgba(105,11,39,.18); outline-offset:3px; }
.product-detail-rating > .fa-arrow-down { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:var(--review-maroon); color:#fff; font-size:10px; transition:transform .2s; }
.product-detail-rating:hover > .fa-arrow-down { transform:translateY(2px); }

.reviews-admin-intro { position:relative; isolation:isolate; overflow:hidden; margin-bottom:16px; padding:clamp(22px,3vw,34px); border-color:#e8d8ba; border-radius:16px; background:radial-gradient(circle at 96% 12%,rgba(188,139,63,.17),transparent 23%),linear-gradient(125deg,#fffdf8 0%,#fbf3e3 100%); }
.reviews-admin-intro::after { position:absolute; z-index:-1; right:34px; bottom:-89px; width:190px; height:190px; border:1px solid rgba(105,11,39,.09); border-radius:50%; box-shadow:0 0 0 18px rgba(105,11,39,.025),0 0 0 38px rgba(105,11,39,.02); content:""; }
.reviews-admin-intro .section-title { align-items:center; gap:22px; }
.reviews-admin-intro .section-title h2 { max-width:760px; color:#30211e; font:400 clamp(25px,3vw,36px)/1.12 Georgia,serif; letter-spacing:-.025em; }
.reviews-admin-intro .section-title>div>p:last-child { max-width:640px; color:#806f64; line-height:1.7; }
.reviews-admin-seal { position:relative; z-index:1; padding:11px 15px; border-color:#e8d8ba; background:#fffdf8; color:var(--review-maroon); box-shadow:0 8px 22px rgba(62,34,18,.055); }
.reviews-admin-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 17px; }
.reviews-admin-stat { display:grid; align-content:start; min-width:0; min-height:142px; padding:17px; border:1px solid #eadfcf; border-radius:13px; background:#fffdfa; box-shadow:0 8px 24px rgba(52,34,19,.035); }
.reviews-admin-stat-featured { border-color:#6b102b; background:linear-gradient(145deg,#71102e,#4e0b22); color:#fff; }
.reviews-admin-stat-icon { display:grid; place-items:center; width:34px; height:34px; margin-bottom:13px; border:1px solid #eadcc0; border-radius:10px; background:#faf5ea; color:#9d742f; font-size:13px; }
.reviews-admin-stat-featured .reviews-admin-stat-icon { border-color:#ffffff2c; background:#ffffff12; color:#f4d65a; }
.reviews-admin-stat-label { color:#85786d; font-size:11px; font-weight:600; }
.reviews-admin-stat-featured .reviews-admin-stat-label { color:#f3d6a0; }
.reviews-admin-stat>strong { margin-top:5px; color:#33221d; font:400 29px/1.1 Georgia,serif; }
.reviews-admin-stat-featured>strong { color:#fff9ea; }
.reviews-admin-stat>strong small { color:#a48b72; font:500 12px Arial,sans-serif; }
.reviews-admin-stat>small { margin-top:5px; color:#9b8c7f; font-size:10px; }
.reviews-admin-stat-featured>small { color:#f0dce0; }
.reviews-admin-list { gap:12px; margin-top:16px; }
.reviews-admin-card { grid-template-columns:22px minmax(0,1fr) auto; gap:17px; padding:21px; border-color:#e9ddca; border-radius:14px; background:linear-gradient(145deg,#fffefa,#fffdf9); box-shadow:0 7px 24px rgba(58,34,19,.04); transition:border-color .18s,box-shadow .18s,transform .18s; }
.reviews-admin-card:hover { transform:translateY(-1px); border-color:#dac49f; box-shadow:0 13px 30px rgba(58,34,19,.075); }
.reviews-admin-card-top .eyebrow { color:#a77a36; }
.reviews-admin-card-top h3 { font-size:20px; }
.reviews-admin-card .review-stars { color:#c29341; }
.reviews-admin-card .review-stars .is-filled { color:#bd8c36; }
.review-status { padding:7px 11px; border:1px solid transparent; letter-spacing:.02em; }
.review-status-pending { border-color:#efdfb5; background:#fff8e8; color:#795719; }
.review-status-approved { border-color:#cce4d2; background:#edf7ef; color:#356348; }
.review-status-hidden { border-color:#e5d7d8; background:#f8f1f1; color:#765d62; }
.reviews-status-form { padding:6px; border:1px solid #eee4d4; border-radius:11px; background:#fbf7ef; }
.reviews-status-form select { min-height:38px; border-color:#e5d8c4; border-radius:7px; background:#fffefa; }
.reviews-status-form .button { min-height:38px; padding:8px 12px; border-radius:7px; }
@media(max-width:900px) { .reviews-admin-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .reviews-admin-stat { min-height:132px; } }
@media(max-width:680px) {
    .product-detail-rating { max-width:100%; gap:7px; padding:7px 8px 7px 10px; }
    .product-detail-rating small { font-size:11px; }
    .reviews-admin-intro { padding:20px 17px; border-radius:13px; }
    .reviews-admin-intro .section-title { align-items:flex-start; }
    .reviews-admin-seal { flex:none; padding:8px 10px; font-size:10px; }
    .reviews-admin-stats { gap:8px; }
    .reviews-admin-stat { min-height:120px; padding:12px; border-radius:11px; }
    .reviews-admin-stat-icon { width:30px; height:30px; margin-bottom:9px; }
    .reviews-admin-stat>strong { font-size:25px; }
    .reviews-admin-card { grid-template-columns:20px minmax(0,1fr); gap:11px; padding:15px 12px; }
    .reviews-admin-card-top { align-items:flex-start; flex-direction:column; }
    .reviews-admin-card-top h3 { font-size:18px; }
    .reviews-status-form { grid-column:2; flex-wrap:wrap; }
}
