/* =========================================================
   polish.css  —  loaded LAST (after app.css)
   1) Product-card wishlist heart
   2) Product page: Cart / Buy / Wishlist buttons
   3) Star rating (display + input)
   Presentation only. Remove this file to revert.
   ========================================================= */

/* ---------- 1. Wishlist heart on product cards ---------- */
body.store .pc .pc-heart{position:absolute;top:10px;right:10px;left:auto;margin:0;z-index:3}
body.store .pc .pc-heart button[type=submit]{
  width:36px;height:36px;min-height:0;padding:0;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.96) none !important;
  color:#475569;border:1px solid rgba(15,23,42,.08);
  box-shadow:0 2px 8px rgba(15,23,42,.14);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  opacity:.92;
  transition:transform .18s ease,box-shadow .18s ease,color .18s ease,background-color .18s ease,opacity .18s ease;
}
body.store .pc .pc-heart button[type=submit] svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;transition:fill .18s ease,transform .18s ease}
body.store .pc:hover .pc-heart button[type=submit]{opacity:1}
body.store .pc .pc-heart button[type=submit]:hover{
  background:#fff none !important;color:#e11d48;border-color:rgba(225,29,72,.25);
  transform:scale(1.08);box-shadow:0 6px 16px rgba(225,29,72,.22);
}
body.store .pc .pc-heart button[type=submit]:hover svg{fill:rgba(225,29,72,.14)}
body.store .pc .pc-heart button[type=submit]:active{transform:scale(.94)}
body.store .pc .pc-heart button.is-saved{color:#e11d48;border-color:rgba(225,29,72,.22);background:#fff1f3 none !important}
body.store .pc .pc-heart button.is-saved svg{fill:#e11d48;stroke:#e11d48}
body.store .pc .pc-heart button:focus-visible{outline:2px solid #e11d48;outline-offset:2px}

/* ---------- 2. Product page action buttons ---------- */
body.store .product-page .actions .pd-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:48px;padding:0 22px;border-radius:12px;
  font:700 .92rem/1 var(--f-body,inherit);letter-spacing:.01em;white-space:nowrap;
  cursor:pointer;text-decoration:none;
  background-image:none !important;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
body.store .product-page .actions .pd-btn svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;transition:fill .18s ease}
body.store .product-page .actions .pd-btn:active{transform:translateY(1px)}
body.store .product-page .actions .pd-btn:focus-visible{outline:2px solid #1e293b;outline-offset:2px}

/* Add to cart — solid dark, white text always visible */
body.store .product-page .actions .pd-btn-cart{
  background:#1e293b !important;color:#fff !important;border:1.5px solid #1e293b !important;
  box-shadow:0 6px 14px -6px rgba(30,41,59,.55) !important;
}
body.store .product-page .actions .pd-btn-cart:hover{
  background:#0f172a !important;border-color:#0f172a !important;color:#fff !important;
  box-shadow:0 10px 20px -8px rgba(15,23,42,.6) !important;transform:translateY(-1px);
}

/* Buy now — brand colour, white text */
body.store .product-page .actions .btn-buy{
  min-height:48px;padding:0 24px;border-radius:12px;font-weight:700;font-size:.92rem;
  background:#c2185b !important;background-image:none !important;color:#fff !important;border:1.5px solid #c2185b !important;
  box-shadow:0 6px 14px -6px rgba(194,24,91,.6);
  transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
body.store .product-page .actions .btn-buy:hover{background:#a01049 !important;border-color:#a01049 !important;color:#fff !important;transform:translateY(-1px);box-shadow:0 10px 20px -8px rgba(160,16,73,.6)}

/* Wishlist — outline, text readable in every state */
body.store .product-page .actions .pd-btn-wish{
  background:#fff !important;color:#1e293b !important;border:1.5px solid #cbd5e1 !important;box-shadow:none !important;
}
body.store .product-page .actions .pd-btn-wish:hover{
  background:#fff1f3 !important;color:#be123c !important;border-color:#fda4af !important;
}
body.store .product-page .actions .pd-btn-wish:hover svg{fill:rgba(225,29,72,.18)}
body.store .product-page .actions .pd-btn-wish.is-saved{background:#fff1f3 !important;color:#be123c !important;border-color:#fda4af !important}
body.store .product-page .actions .pd-btn-wish.is-saved svg{fill:#e11d48;stroke:#e11d48}

body.store .product-page .actions .pd-btn:disabled,
body.store .product-page .actions .btn-buy:disabled{
  background:#e2e8f0 !important;color:#94a3b8 !important;border-color:#e2e8f0 !important;box-shadow:none !important;cursor:not-allowed;transform:none
}
@media(max-width:640px){
  body.store .product-page .actions .pd-btn{width:100%}
}

/* ---------- 3. Stars ---------- */
/* Display stars (rating row + reviews) */
.product-page .stars{display:inline-flex;gap:2px;font-size:1.05rem;line-height:1;letter-spacing:0}
.product-page .stars .star{color:#d5d9e2}
.product-page .stars .star.filled{color:#f59e0b;text-shadow:0 1px 0 rgba(180,83,9,.15)}
.product-page .rating-row .rating-num{font-weight:800;color:var(--ink,#1e293b)}

/* Star input (write a review) — self-contained, does not depend on style.css */
.product-page .rv-rating{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.product-page .rv-stars{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:2px;margin:0;padding:0;border:0}
.product-page .rv-stars input[type=radio]{
  position:absolute !important;opacity:0 !important;width:1px !important;height:1px !important;
  min-height:0 !important;padding:0 !important;margin:0 !important;border:0 !important;pointer-events:none;
}
.product-page .rv-stars label{
  display:inline-block !important;margin:0 !important;padding:2px 3px;cursor:pointer;
  font-size:2.1rem !important;line-height:1;color:#cdd2dc !important;font-weight:400;
  transition:color .12s ease,transform .12s ease;user-select:none;
}
.product-page .rv-stars label:hover,
.product-page .rv-stars label:hover ~ label,
.product-page .rv-stars input:checked ~ label{color:#f59e0b !important}
.product-page .rv-stars label:hover{transform:scale(1.15)}
.product-page .rv-stars input:focus-visible + label{outline:2px solid #1e293b;outline-offset:2px;border-radius:6px}
.product-page .rv-hint{font-size:.88rem;font-weight:700;color:#92400e;min-height:1.2em}
.product-page .rv-hint.is-empty{color:var(--muted,#64748b);font-weight:500}

/* ---------- 4. Wishlist: stay in place + feedback ---------- */
.pc{scroll-margin-top:96px}
#product-actions{scroll-margin-top:120px}
body.store .pc .pc-heart button.is-busy,
body.store .product-page .pd-btn-wish.is-busy{pointer-events:none;opacity:.6}
@keyframes wl-pop{0%{transform:scale(1)}40%{transform:scale(1.28)}100%{transform:scale(1)}}
body.store .pc .pc-heart button.wl-pop{animation:wl-pop .35s ease}
@keyframes wl-bump{0%{transform:scale(1)}50%{transform:scale(1.35)}100%{transform:scale(1)}}
.nav-count.wl-bump{animation:wl-bump .35s ease}
.pc.wl-leaving{opacity:0;transform:scale(.96);transition:opacity .25s ease,transform .25s ease}

.wl-toast{
  position:fixed;left:50%;bottom:calc(86px + env(safe-area-inset-bottom,0px));z-index:9999;
  display:flex;align-items:center;gap:14px;max-width:min(92vw,420px);
  padding:12px 18px;border-radius:12px;background:#1e293b;color:#fff;
  font:600 .88rem/1.35 var(--f-body,system-ui,sans-serif);
  box-shadow:0 14px 34px -10px rgba(15,23,42,.5);
  opacity:0;transform:translate(-50%,12px);pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
}
.wl-toast.is-show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.wl-toast.warn{background:#92400e}
.wl-toast a{color:#fda4af;font-weight:800;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
@media(min-width:900px){.wl-toast{bottom:32px}}
@media(prefers-reduced-motion:reduce){.pc.wl-leaving,.wl-toast{transition:none}body.store .pc .pc-heart button.wl-pop,.nav-count.wl-bump{animation:none}}

/* ---------- Compact professional footer ---------- */
body.store .site-footer.sf2{margin-top:32px;padding:18px 0 14px;background:#1f1520;color:#cdbcc7;border-radius:0}
.sf2 .sf2-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.1)}
.sf2 .brand{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:.95rem}
.sf2 .brand img{width:26px;height:26px;border-radius:8px;background:#fff;object-fit:contain}
body.store .sf2 .brand span{color:#fff;-webkit-text-fill-color:#fff;background:none}
.sf2 .sf2-links{display:flex;flex-wrap:wrap;gap:4px 18px}
body.store .sf2 .sf2-links a{color:#cdbcc7;font-size:.85rem;padding:2px 0}
body.store .sf2 .sf2-links a:hover{color:#fff}
.sf2 .sf2-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding-top:12px;font-size:.78rem;color:#a995a3}
.sf2 .sf2-pay{display:flex;flex-wrap:wrap;gap:6px}
.sf2 .sf2-pay i{font-style:normal;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font-size:.72rem;font-weight:600}
@media(max-width:700px){
  body.store .site-footer.sf2{margin-top:20px;padding:14px 0 calc(78px + env(safe-area-inset-bottom,0px));border-radius:18px 18px 0 0}
  .sf2 .sf2-top{flex-direction:column;align-items:flex-start;gap:8px;padding-bottom:10px}
  .sf2 .sf2-links{gap:2px 14px}
  body.store .sf2 .sf2-links a{padding:5px 0;font-size:.82rem}
  .sf2 .sf2-bar{flex-direction:column-reverse;align-items:flex-start;gap:6px;padding-top:10px}
}
.sf2 .sf2-top .brand{order:1}.sf2 .sf2-top .sf2-links{order:2}
@media(max-width:700px){
  body.store .site-footer.sf2{padding-bottom:12px}
  .sf2 .sf2-bar{flex-direction:column}
}
.sf2 .sf2-dev{margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08);text-align:center;font-size:.76rem;color:#a995a3;letter-spacing:.02em}
.sf2 .sf2-dev strong{color:#fff;font-weight:700}
.sf2 .sf2-dev .sf2-dot{margin:0 6px;opacity:.5}
body.store .sf2 .sf2-dev a{color:#ff8fb8;font-weight:600}
