/* Anow Mart – product page, reviews, compare, wishlist (builder B). The design's base.css carries the layout; these are
   the small additions of the live pages. Colours only through the tokens. */

/* dialogs (<x-modal>) on storefront pages */
dialog.dlg{width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:22px;border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface);color:var(--ink);box-shadow:var(--sh-2)}
dialog.dlg::backdrop{background:color-mix(in srgb,var(--brand) 62%,transparent)}
dialog.dlg .dlg-b{margin-top:14px}
dialog.dlg h3{font-size:1.15rem;min-width:0;overflow-wrap:anywhere}
.form .fld{min-width:0}
.form .inp{width:100%;min-width:0}
.form textarea.inp{min-height:110px;resize:vertical;padding-top:10px}
.lbl-s{font-size:.82rem;font-weight:600;color:var(--ink-2)}

/* write a review: star picker (5 → 1 in the markup, shown 1 → 5) */
.rstars{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px;border:0;padding:0;margin:0}
.rstars legend{width:100%;margin-bottom:6px}
.rstars input{position:absolute;opacity:0;width:1px;height:1px}
.rstars label{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;cursor:pointer}
.rstars label svg{width:26px;height:26px;fill:var(--line-2);transition:fill .15s}
.rstars input:checked~label svg,.rstars label:hover svg,.rstars label:hover~label svg{fill:var(--saffron)}
.rstars input:focus-visible+label{outline:2px solid var(--accent);outline-offset:2px}
.rscores{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.rscores label{display:grid;gap:6px;min-width:0}

/* reviews list */
a.hrow{color:inherit;border-radius:8px}
a.hrow:hover span:first-child{color:var(--accent-text)}
.rphotos a.ph{display:block}
.rchips{margin-top:4px}
.rchips .chip{min-height:36px}
.rchips .sortsel{min-height:36px;min-width:0;max-width:100%}
.ritem .rh{flex-wrap:wrap;row-gap:8px}
.ritem .rh>div{min-width:0}
.ritem p{overflow-wrap:anywhere}
.ritem .rf button.on{box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent-text)}
.ritem .rf button:disabled{cursor:default}
.rreply{margin-top:12px;padding:12px 14px;border-radius:12px;background:var(--surface-2)}
.rreply p{margin-top:4px}
.rlist .empty{margin-top:12px}

/* product page bits */
.zipbox .zr{flex-wrap:wrap;row-gap:6px}
.zipbox .zr .inp{min-width:0}
.vopts button:disabled{cursor:not-allowed}
.szs button.na{cursor:pointer}
.lk-it a.ph{display:block}
.lk-it b a{color:inherit}
.fdesc p+p{margin-top:8px}
.sg-pane .sizet{min-width:420px}
.sizebox .tscroll{overflow-x:auto;max-width:100%}
.sizebox .tabs{max-width:100%}
.cmpt th b a{color:inherit}

/* compare */
.cmp-top{flex-wrap:wrap;row-gap:10px}
.cmp-top form{display:inline-flex}
.cmpt.nohl .best{color:inherit;font-weight:inherit}
.cmp-x{position:absolute;top:6px;left:84px;width:32px;height:32px;min-height:32px;background:var(--surface);box-shadow:var(--sh-1)}
.cmp-x .ic{width:14px;height:14px}

/* wishlist */
.tg.pdrop{background:var(--ok-bg);color:var(--ok)}
.tg.pdrop .ic{width:12px;height:12px}
.wlalert{align-items:center;flex-wrap:wrap}
.wlalert>span{flex:1;min-width:200px}
.wlalert-f{display:inline-flex}
.wltabs{max-width:100%}
.link.danger{color:var(--bad)}
@media (max-width:620px){
  .cmp-x{left:auto;right:6px}
  .wlalert>span{min-width:0}
}
.pinfo [hidden],.zipbox [hidden],[data-reviews] [hidden]{display:none!important}
.cmpt a.ph{display:block}
/* phones: the 3D hint + AR button share the stage foot; the weighed buy row gets its own lines (stepper + heart, then the button) */
.st-ui .ar-btn{white-space:nowrap;flex:none}
.st-ui .hint{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media (max-width:620px){
  .st-ui .ar-btn~*{display:none}
  .stagebox.is3d .st-ui .hint{flex:0 1 auto}
  .pbox .buy:has(.bigstep){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
  .pbox .buy:has(.bigstep) .bigstep{min-width:0}
  .pbox .buy:has(.bigstep) .btn{grid-column:1/-1;grid-row:2}
}
/* phones: the "2 left" tag sits inside the size button (hanging below the edge it is cut by the next row) */
@media (max-width:620px){
  .szs button:has(.lo){display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;line-height:1.1}
  .szs button .lo{position:static;transform:none;line-height:1.2}
}

/* "Often in the same basket" sits beside the photos: its 5 cards are only ~100 px wide on laptops, so price,
   Add button and the weight stepper stack and fill the card instead of running past its edge. */
.grid-p.c5 .gc{container-type:inline-size}
@container (max-width:170px){
  .gc-f{flex-wrap:wrap}
  .gc-f>div{min-width:0;max-width:100%}
  .gc .price{font-size:.98rem;letter-spacing:-.03em}
  .gc .price sup{font-size:.58em}
  .gc-f .am-gq,.gc-f .gadd,.gc-f .wstep{width:100%;justify-content:center}
  .gc-f .wstep{justify-content:space-between}
  .gc-f .wstep button{width:34px}
  .gc-f .wstep span{min-width:0;flex:1}
}

/* 1.1: base.css also has ".zr" (the Z-report card, design 72) – the ZIP row of the delivery box keeps its 1.0 look */
.zipbox .zr{box-shadow:none}
