/* Anow Mart – storefront browsing (builder A): homes, listings, search palette, flash deals, product cards.
   base.css is the approved design; this file only adds what the Laravel pages need on top of it (links styled like
   the design's buttons, the phone filter sheet, live-result states). Colours only through tokens. */

/* text on the navy brand surfaces (design: a light ember) */
.am-on-brand{color:color-mix(in srgb,var(--accent) 58%,var(--on-brand))}
.t-hero .save.am-on-brand{color:color-mix(in srgb,var(--accent) 58%,var(--on-brand))}
.am-accent{color:var(--accent)}
.am-acc{color:var(--accent-text);font-weight:700}

/* chips + "clear all" as links */
.achip a{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:inherit}
.achip a:hover{background:rgba(0,0,0,.08)}
:root[data-theme=dark] .achip a:hover{background:rgba(255,255,255,.1)}
.achip a .ic{width:13px;height:13px}
@media (pointer:coarse){.achip a{width:36px;height:36px;margin:0 -8px 0 -4px}}
.am-clear{display:inline-flex;align-items:center;min-height:36px}
.am-list [data-lresults]{transition:opacity .2s}
.am-list.am-busy [data-lresults]{opacity:.55}

/* swatch + size options of the filter form are labels around a hidden checkbox */
.filters .cs{display:flex;flex-wrap:wrap;gap:8px}
.filters label.sw{cursor:pointer;position:relative}
.filters label.sw:focus-within{outline:2px solid var(--accent-fill);outline-offset:2px}
.szs .am-sz{position:relative;display:inline-grid;place-items:center;min-width:52px;height:44px;padding:0 10px;border-radius:4px;box-shadow:inset 0 0 0 1.5px var(--line-2);font-weight:600;font-size:.88rem;cursor:pointer}
.szs .am-sz.on{box-shadow:inset 0 0 0 2px var(--ink);background:var(--surface)}
.szs .am-sz.na{color:var(--faint);background:repeating-linear-gradient(135deg,transparent 0 6px,var(--bg-2) 6px 7px)}
.szs .am-sz:focus-within{outline:2px solid var(--accent-fill);outline-offset:2px}
.filters .rr{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.filters .rr .inp{min-width:0;width:100%}
.range .kn{touch-action:none}
.range .kn:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.am-fs-h,.am-fs-f{display:none}
.am-lmain{min-width:0}
.am-g-fashion{row-gap:30px}

/* phones + tablets: the filters open as a sheet from the left */
@media (max-width:1099px){
  .am-list .filters{display:flex;position:fixed;top:0;bottom:0;left:0;z-index:96;width:min(380px,92vw);border-radius:0 var(--r-l) var(--r-l) 0;border-left:0;
    overflow-y:auto;overscroll-behavior:contain;padding:0 18px 0;transform:translateX(-102%);visibility:hidden;transition:transform .35s var(--ease),visibility .35s}
  .am-list .filters.on{transform:none;visibility:visible}
  .am-fs-h{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:2;background:var(--surface);padding:14px 0;border-bottom:1px solid var(--line)}
  .am-fs-h h3{font-size:1.1rem}
  .am-fs-f{display:block;position:sticky;bottom:0;background:var(--surface);padding:12px 0 16px;border-top:1px solid var(--line);margin-top:auto}
  .am-fscrim.on{opacity:1;visibility:visible}
}
.am-fscrim{z-index:95}

/* flash deals: slots + tabs are links */
.am-slots a{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 18px;border-radius:16px;background:var(--surface);border:1px solid var(--line);min-width:150px;flex:none}
.am-slots a b{font:700 1.15rem/1 var(--f-d)}
.am-slots a small{font-size:.76rem;color:var(--muted)}
.am-slots a.on{background:var(--accent-fill);border-color:var(--accent-fill);color:var(--on-accent)}
.am-slots a.on small{color:color-mix(in srgb,var(--on-accent) 82%,transparent)}
.dhero .am-ltag{position:absolute;left:22px;top:22px;z-index:1}
.dhero .light .ph{display:block}
.am-up{display:flex;flex-direction:column;gap:8px;min-width:0}
.am-up>p{display:flex;align-items:baseline;gap:6px;color:var(--muted);padding:0 4px}
.am-alert{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.am-alert .inp{min-width:0;width:240px;max-width:100%;background:var(--surface)}
@media (max-width:719px){.am-alert,.am-alert .inp,.am-alert .btn{width:100%}}

/* home */
.t-trend .tw img:not(.on){opacity:0}
.am-avi{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--tint);color:var(--tint-ink);font-weight:700;font-size:.82rem;flex:none}
.am-gf1{right:-14px;top:36px}
.am-gf2{right:30px;bottom:48px}
.am-zout{margin-top:10px;font-weight:500}
.am-zout.bad{color:var(--bad)}
.ghero .am-zout{color:inherit}
.am-gadd-s{height:36px;padding:0 12px}
.am-look-h{margin-top:8px;font-family:var(--f-d);font-size:1.4rem}
.lk-it a{color:inherit}


/* command palette live results */
.am-cmd-empty{padding:8px}
.cmd-col i.am-vi{color:var(--on-brand);border:0;font:700 .7rem/1 var(--f-u)}
.cmd .am-loading [data-results]{opacity:.6}
.cmd-scope[hidden],[data-recent][hidden]{display:none}
/* dark swatches stay visible on the dark theme's panels */
:root[data-theme=dark] .sw::before{box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}

/* 1.1: base.css also has ".rr" (receipt rows, design 71) – the price range of the filters keeps its 1.0 spacing */
.rr:has(> .inp){gap:8px;justify-content:normal}
