/* Customer feedback: scoped to this section; existing storefront styles stay intact. */
.customer-reviews .customer-review-product{margin:10px 0 4px;color:var(--text-main,#f4f4f5);font-size:12px;font-weight:700;line-height:1.8;overflow-wrap:anywhere}
.customer-reviews{--review-accent:var(--primary-red,#e52636);padding:42px 0 48px;margin:0 auto;color:var(--text-main,#f4f4f5);border-top:1px solid var(--border-color,rgba(255,255,255,.08));font-family:var(--font-family,'Almarai',sans-serif)}
.customer-reviews,.customer-reviews *{box-sizing:border-box}
.customer-reviews-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}
.customer-reviews-title{margin:0 0 6px;font-size:28px;line-height:1.6;font-weight:800;color:inherit}
.customer-reviews-subtitle{margin:0;color:var(--text-muted,#a1a1aa);font-size:14px;line-height:1.8}
.customer-reviews-summary{display:flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;padding:10px 22px;border:1px solid rgba(229,38,54,.2);border-radius:16px;background:linear-gradient(135deg,rgba(229,38,54,.1),rgba(229,38,54,.03));min-height:55px}
.customer-reviews-average{font:800 30px/1.1 var(--font-family,'Almarai',sans-serif);color:#fff}
.customer-reviews-summary svg{width:25px;height:25px;fill:var(--review-accent);color:var(--review-accent);filter:drop-shadow(0 0 7px rgba(229,38,54,.35))}
.customer-reviews-total{font-size:12px;color:var(--text-muted,#a1a1aa);white-space:nowrap}
.customer-reviews-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 24px}
.customer-review-filter{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 14px;border:1px solid rgba(255,255,255,.08);border-radius:30px;background:rgba(255,255,255,.03);color:var(--text-muted,#a1a1aa);font:700 12px/1.5 var(--font-family,'Almarai',sans-serif);cursor:pointer;transition:background .25s,border-color .25s,color .25s,box-shadow .25s,transform .25s}
.customer-review-filter svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.customer-review-filter .review-count{padding:1px 6px;background:rgba(255,255,255,.06);border-radius:12px;font-size:10px;font-weight:800;font-variant-numeric:tabular-nums}
.customer-review-filter:hover{color:#fff;background:rgba(255,255,255,.07);transform:translateY(-1px)}
.customer-review-filter:focus-visible,.customer-reviews-cta:focus-visible,.customer-reviews-retry:focus-visible{outline:2px solid #ff8490;outline-offset:4px}
.customer-reviews-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.customer-review-card{position:relative;display:flex;flex-direction:column;min-width:0;min-height:135px;padding:20px;border:1px solid rgba(229,38,54,.1);border-radius:16px;background:linear-gradient(135deg,rgba(229,38,54,.04),rgba(255,255,255,.01));transition:transform .3s,border-color .3s,background .3s,box-shadow .3s;animation:customer-review-enter .4s ease backwards;animation-delay:var(--review-delay,0ms)}
.customer-review-card:hover{transform:translateY(-4px);border-color:rgba(229,38,54,.35);background:linear-gradient(135deg,rgba(229,38,54,.08),rgba(255,255,255,.02));box-shadow:0 8px 24px rgba(0,0,0,.12)}
.customer-review-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.customer-review-user{display:flex;align-items:center;gap:10px;min-width:0}
.customer-review-avatar{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:50%;background:linear-gradient(135deg,#e52636,#9c1423);color:#fff;font-size:16px;font-weight:800}
.customer-review-name{display:block;margin:0 0 4px;color:var(--text-main,#f4f4f5);font-size:13px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.customer-review-stars{display:flex;gap:3px;color:var(--review-accent)}
.customer-review-stars svg{width:12px;height:12px;fill:currentColor}
.customer-review-stars svg.is-empty{color:#484852}
.customer-review-verified{width:17px;height:17px;flex-shrink:0;color:#25c38a;fill:currentColor}
.customer-review-comment{margin:0;color:var(--text-muted,#a1a1aa);font-size:12px;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere}
.customer-reviews-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin:24px 0 0;padding:12px 28px;min-height:47px;border:1px solid rgba(229,38,54,.3);border-radius:30px;background:rgba(229,38,54,.08);color:var(--review-accent);font:700 14px/1.5 var(--font-family,'Almarai',sans-serif);text-decoration:none;cursor:pointer;transition:background .25s,color .25s,transform .25s,box-shadow .25s,border-color .25s}
.customer-reviews-cta svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
.home-page .customer-reviews :is(.customer-review-filter,.customer-review-card,.customer-reviews-cta) { transition-property: transform; }
.customer-reviews-cta:hover{background:var(--review-accent);border-color:var(--review-accent);color:#fff;transform:translateY(-2px);box-shadow:0 6px 20px rgba(229,38,54,.2)}
.customer-reviews-cta:hover svg{transform:translateX(-3px)}
.customer-reviews-empty{grid-column:1/-1;display:grid;justify-items:center;align-content:center;gap:12px;min-height:155px;padding:28px 20px;border:1px dashed rgba(229,38,54,.2);border-radius:16px;background:linear-gradient(135deg,rgba(229,38,54,.035),transparent);text-align:center}
.customer-reviews-empty svg{width:32px;height:32px;fill:none;stroke:var(--review-accent);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.customer-reviews-empty p{margin:0;color:var(--text-muted,#a1a1aa);font-size:13px;line-height:1.8}
.customer-reviews-retry{padding:8px 16px;border:1px solid rgba(229,38,54,.3);border-radius:20px;background:transparent;color:var(--review-accent);font:inherit;cursor:pointer}
.customer-reviews-page{padding-top:26px;padding-bottom:36px}
.customer-reviews-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:20px;color:var(--text-muted,#a1a1aa);font-size:13px;text-decoration:none}
.customer-reviews-page .customer-reviews{border-top:0;padding-top:8px}
.customer-reviews [hidden]{display:none!important}
.customer-reviews [data-review-status]:empty{display:none}
/* Reference audit: hover-only motion, natural card height, and separate full-page layout. */
.customer-reviews{line-height:1.5}
.customer-reviews-title{margin-bottom:4px;line-height:1.5}
.customer-reviews-subtitle{font-size:15px;line-height:1.5}
.customer-reviews-average{font-weight:900;line-height:1}
.customer-reviews-summary svg{width:22px;height:22px}
.customer-reviews-total{font-size:13px;font-weight:600}
.customer-reviews-filters{gap:8px}
.customer-review-filter{padding:8px 16px;gap:8px;min-height:0;font-size:13.12px;font-weight:600}
.customer-review-filter .review-count{padding:1px 8px;font-size:11.2px;font-weight:700;border-radius:10px;background:rgba(255,255,255,.08)}
.customer-review-filter:hover{transform:none;border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.06)}
.customer-review-card{min-height:0;overflow:hidden;animation:none}
.customer-review-card::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,var(--review-accent),transparent);opacity:.3}
.customer-review-card:hover{border-color:rgba(229,38,54,.25);box-shadow:0 12px 32px rgba(0,0,0,.25)}
.customer-review-top{align-items:flex-start}
.customer-review-user-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.customer-review-avatar{background:linear-gradient(135deg,rgba(229,38,54,.25),rgba(229,38,54,.05));border:1.5px solid rgba(229,38,54,.3);color:rgba(255,255,255,.6);overflow:hidden}
.customer-review-avatar svg{width:16px;height:16px;fill:currentColor}
.customer-review-avatar{position:relative}
.customer-review-avatar img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.customer-review-name{margin:0}
.customer-review-stars{gap:1px}
.customer-review-stars svg{width:11px;height:11px}
.customer-review-stars svg.is-empty{color:rgba(255,255,255,.15)}
.customer-review-verified{width:16px;height:16px;color:#10b981;filter:drop-shadow(0 0 6px rgba(16,185,129,.3))}
.customer-review-comment{font-size:13px;line-height:1.6;flex:1;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.customer-reviews-cta{border-width:1.5px;min-height:0}
.customer-reviews-cta svg{width:12px;height:12px}
.customer-reviews-cta:hover{transform:translateX(-4px);box-shadow:0 6px 20px rgba(229,38,54,.3)}
.customer-reviews-cta:hover svg{transform:none}
.customer-reviews [data-review-status]{position:absolute;width:1px;height:1px;padding:0;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.customer-reviews-page{padding:20px;max-width:1100px!important}
.customer-reviews-back{padding:10px 20px;margin-bottom:24px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.05);color:#fff;font-size:14px;line-height:1.5;transition:background .2s,border-color .2s}
.customer-reviews-back:hover{background:rgba(255,255,255,.08);border-color:rgba(229,38,54,.3)}
.customer-reviews-back:focus-visible{outline:2px solid #ff8490;outline-offset:4px}
.customer-reviews-back svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}
.customer-reviews-page .customer-reviews{padding:0;display:flex;flex-direction:column;gap:24px}
.customer-reviews-page .customer-reviews-header{margin:0;padding:32px 36px;gap:24px;background:rgba(25,25,32,.45);border:1px solid rgba(255,255,255,.08);border-radius:20px;backdrop-filter:blur(20px)}
.customer-reviews-page .customer-reviews-title{margin-bottom:6px}
.customer-reviews-page .customer-reviews-subtitle{font-size:14px}
.customer-reviews-page .customer-reviews-summary{flex-direction:column;gap:0;padding:20px 30px;background:rgba(0,0,0,.2);border-color:rgba(255,255,255,.05)}
.customer-reviews-page .customer-reviews-average{font-size:40px;margin-bottom:4px;text-shadow:0 4px 12px rgba(229,38,54,.35)}
.customer-reviews-summary-stars{display:flex;gap:3px;margin-bottom:6px}
.customer-reviews-summary-stars svg{width:16px;height:16px;filter:none}
.customer-reviews-summary-stars svg.is-empty{color:rgba(255,255,255,.15);fill:currentColor}
.customer-reviews-page .customer-reviews-total{font-size:12px;font-weight:400}
.customer-reviews-page .customer-reviews-filters{margin:0}
.customer-reviews-page .customer-review-filter{padding:10px 18px;gap:6px;border-width:1.5px;font-size:13px;transition-duration:.2s}
.customer-reviews-page .customer-review-filter[data-review-filter="all"] svg{display:none}
.customer-reviews-page .customer-reviews-grid{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:20px}
.customer-reviews-page .customer-review-card{padding:22px;background:linear-gradient(135deg,rgba(229,38,54,.035),rgba(255,255,255,.01));border-color:rgba(229,38,54,.08);transition-duration:.25s}
.customer-reviews-page .customer-review-card::before{left:12%;right:12%}
.customer-reviews-page .customer-review-card::after{content:'“';position:absolute;top:12px;left:12px;font:bold 80px/1 Georgia,serif;color:rgba(255,255,255,.016);transform:rotate(-10deg);pointer-events:none}
.customer-reviews-page .customer-review-card:hover{border-color:rgba(229,38,54,.2);transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.18)}
.customer-reviews-page .customer-review-top{margin-bottom:14px}
.customer-reviews-page .customer-review-user{gap:12px}
.customer-reviews-page .customer-review-user-info{gap:3px}
.customer-reviews-page .customer-review-avatar{width:44px;height:44px;border-color:rgba(229,38,54,.35);background:linear-gradient(135deg,rgba(229,38,54,.25),rgba(0,0,0,.15))}
.customer-reviews-page .customer-review-avatar svg{width:18px;height:18px}
.customer-reviews-page .customer-review-name{font-size:14px}
.customer-reviews-page .customer-review-top>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(16,185,129,.08)}
.customer-reviews-page .customer-review-verified{filter:none}
.customer-reviews-page .customer-review-comment{display:block;overflow:visible;line-height:1.65}
.customer-reviews-page .customer-reviews-cta{align-self:center;margin:8px 0 4px;padding:12px 36px;gap:8px;background:rgba(229,38,54,.06);border-color:rgba(229,38,54,.25)}
.customer-reviews-page .customer-reviews-cta:hover{background:rgba(229,38,54,.12);border-color:rgba(229,38,54,.4);color:var(--review-accent);transform:translateY(-2px);box-shadow:0 6px 20px rgba(229,38,54,.15)}
@media(min-width:641px) and (max-width:1024px){.customer-reviews-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.customer-reviews{padding:32px 0 36px}.customer-reviews-header{align-items:stretch;flex-direction:column;gap:16px}.customer-reviews-title{font-size:25px}.customer-reviews-summary{width:100%}.customer-reviews-grid{grid-template-columns:1fr}.customer-review-card{min-height:114px}.customer-reviews-filters{gap:6px;margin-bottom:18px}.customer-review-filter{padding:6px 12px;font-size:11.5px;min-height:31px}.customer-review-filter .review-filter-label{display:none}.customer-reviews-cta{width:100%}.customer-reviews-subtitle{font-size:13px}}
@media(max-width:768px){.customer-reviews{padding:32px 0}.customer-reviews-header{align-items:stretch;flex-direction:column;gap:16px}.customer-reviews-summary{width:100%}.customer-reviews-grid{grid-template-columns:1fr}.customer-review-card{min-height:0}.customer-review-comment{-webkit-line-clamp:2}.customer-reviews-filters{gap:6px;margin-bottom:18px}.customer-review-filter{padding:6px 12px;font-size:11.52px;gap:5px;min-height:0}.customer-review-filter svg{width:11.2px;height:11.2px}.customer-review-filter .review-count{font-size:9.92px;padding:1px 6px}.customer-review-filter .review-filter-label{display:none}.customer-reviews-cta{width:100%}.customer-reviews-title{font-size:28px}.customer-reviews-subtitle{font-size:15px}.customer-reviews-page .customer-reviews-header{flex-direction:row}.customer-reviews-page .customer-reviews-summary{width:auto}.customer-reviews-page .review-filter-label{display:inline}.customer-reviews-page .customer-reviews-cta{width:auto}}
@media(max-width:700px){.customer-reviews-page .customer-reviews-header{flex-direction:column;text-align:center;padding:24px 20px}.customer-reviews-page .customer-reviews-summary{width:100%}}
@media(max-width:600px){.customer-reviews-page{padding:14px}.customer-reviews-page .customer-reviews{gap:18px}.customer-reviews-page .customer-review-filter{padding:8px 14px;font-size:12px}.customer-reviews-page .customer-review-filter svg{width:12px;height:12px}}
/* Keep review hover transitions enabled on desktop, as requested by the store owner. */
/* Shared selection palette on desktop and mobile, including the full page. */
.customer-review-filter[data-review-filter="all"]{--filter-color:#60a5fa;--filter-rgb:96,165,250}
.customer-review-filter[data-review-filter="positive"]{--filter-color:#34d399;--filter-rgb:52,211,153}
.customer-review-filter[data-review-filter="negative"]{--filter-color:#f87171;--filter-rgb:248,113,113}
.customer-reviews .customer-review-filter[aria-pressed="true"]{color:var(--filter-color);border-color:var(--filter-color);background:rgba(var(--filter-rgb),.12);box-shadow:0 0 12px rgba(var(--filter-rgb),.2)}
.customer-reviews .customer-review-filter[aria-pressed="true"] :is(svg,.review-count){color:inherit}
.customer-reviews .customer-review-filter[aria-pressed="true"] .review-count{background:rgba(var(--filter-rgb),.16)}
.customer-review-verified-badge{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:rgba(16,185,129,.08)}
.customer-review-verified-badge .customer-review-verified{display:block;width:16px;height:16px;flex:0 0 16px}
.customer-reviews .customer-review-filter:focus-visible{outline-color:var(--filter-color)}
.customer-review-automatic{display:block;margin-top:6px;font-size:12px;line-height:1.6;color:var(--text-muted,#a3a3a3)}
