/* AgenticShop — Amazon-like UI (inspired, not affiliated) */
:root{
  --bg: #eaeded;
  --card: #ffffff;
  --text: #111;
  --muted: #565959;
  --stroke: #d5d9d9;
  --nav: #131921;
  --nav2: #232f3e;
  --accent: #ff9900;
  --accent2: #f3a847;
  --btn: #ffd814;
  --btn2: #f7ca00;
  --link: #007185;
  --shadow: 0 2px 8px rgba(15,17,17,.15);
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: Arial, Helvetica, sans-serif;
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
}
a{ color: var(--link); text-decoration:none; }
a:hover{ text-decoration: underline; }

.container{ width:min(1200px, 96vw); margin:0 auto; }
.row{ display:flex; align-items:center; gap:12px; }
.muted{ color: var(--muted); }
.mono{ font-family: var(--mono); }

.navbar{
  background: var(--nav);
  color:#fff;
}
.navbar .container{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  min-width: 170px;
}
.brand img{ height: 38px; width:auto; display:block; }
.deliver{
  display:flex; align-items:center; gap:8px;
  padding:6px 8px;
  border-radius: 6px;
}
.deliver:hover{ outline: 1px solid rgba(255,255,255,.35); }

.search{
  flex:1;
  display:flex;
  align-items:stretch;
  border-radius: 8px;
  overflow:hidden;
  min-width: 240px;
}
.search select{
  border:0;
  padding:0 10px;
  background:#f3f3f3;
  color:#0f1111;
  font-size:12px;
}
.search input{
  flex:1;
  border:0;
  padding:0 12px;
  font-size:14px;
  outline:none;
}
.search button{
  width: 44px;
  border:0;
  background: var(--accent);
  cursor:pointer;
}
.search button:hover{ background: #f3a847; }

.nav-actions{
  display:flex; align-items:center; gap:14px;
  white-space:nowrap;
}
.nav-pill{
  padding:6px 8px;
  border-radius: 6px;
  color:#fff;
}
.nav-pill:hover{ outline: 1px solid rgba(255,255,255,.35); text-decoration:none; }
.cart{
  display:flex; align-items:center; gap:8px;
}
.cart svg{ color:#fff; }
.badge{
  background: var(--accent);
  color:#111;
  font-weight:700;
  font-size:12px;
  padding:2px 7px;
  border-radius: 999px;
}

.subnav{
  background: var(--nav2);
  color:#fff;
}
.subnav .container{
  display:flex;
  gap:16px;
  padding:9px 0;
  font-size:14px;
}
.subnav a{ color:#fff; }
.subnav a:hover{ text-decoration: underline; }

.hero{
  padding: 16px 0 0;
}
.hero-banner{
  background: linear-gradient(180deg, #f7f0e8, #eaeded);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.hero h1{ margin:0 0 8px; font-size: 26px; }
.hero p{ margin:0; color: var(--muted); line-height: 1.45; }

.grid{
  display:grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  padding: 16px 0 28px;
}
.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.card-h{
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.card-h h2{ margin:0; font-size: 18px; }
.card-b{ padding: 12px 14px; }
.card-f{
  padding: 12px 14px;
  border-top: 1px solid var(--stroke);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}

.filters{
  display:grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 10px;
}
.input, select.input{
  width:100%;
  padding:10px 10px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  outline:none;
  background:#fff;
}
.input:focus{
  border-color: #007185;
  box-shadow: 0 0 0 3px rgba(0,113,133,.18);
}
.range{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
}
.range input[type="range"]{ width:100%; }

.products{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.pcard{
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px;
  display:flex; flex-direction:column; gap: 8px;
}
.pimg{
  height: 140px;
  border-radius: 10px;
  background: #f7f7f7;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.pimg img{ width: 78px; height: 78px; opacity:.95; }
.ptitle{ font-size: 14px; line-height: 1.25; }
.ptitle a{ color:#0f1111; }
.ptitle a:hover{ color:#c45500; text-decoration: underline; }
.prating{ font-size: 12px; color:#0f1111; }
.stars{ color:#ffa41c; letter-spacing: .5px; }
.pmeta{ font-size: 12px; color: var(--muted); }
.price{ font-weight:700; font-size: 18px; }
.ship{ font-size: 12px; color: var(--muted); }

.btn{
  border: 1px solid #fcd200;
  background: var(--btn);
  padding: 9px 10px;
  border-radius: 999px;
  cursor:pointer;
  font-size: 13px;
}
.btn:hover{ background: var(--btn2); }
.btn-secondary{
  border:1px solid var(--stroke);
  background:#fff;
}
.btn-secondary:hover{ background:#f7fafa; }
.btn-small{ padding: 7px 10px; font-size: 12px; }

.kv{ display:flex; justify-content:space-between; font-size: 12px; color: var(--muted); }
.sep{ border:none; border-top:1px solid var(--stroke); margin: 8px 0; }

.pactions{ display:flex; gap:8px; flex-wrap:wrap; }

.compare-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.compare-item, .cart-item{
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px;
  background:#fff;
}
.cart-total{ font-size: 18px; font-weight:700; }

.chat{
  height: 340px;
  overflow:auto;
  background: #f7fafa;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px;
}
.bubble{
  max-width: 92%;
  padding: 9px 10px;
  border-radius: 16px;
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.35;
}
.bubble.user{ margin-left:auto; background:#e7f3ff; border:1px solid #c7e4ff; }
.bubble.agent{ background:#fff; border:1px solid var(--stroke); }
.bubble.tool{
  font-family: var(--mono);
  background:#111827;
  color:#fff;
  border:1px solid #0b1220;
  font-size: 12px;
}
.chatbar{
  display:flex; gap:10px; margin-top:10px;
}
.toast{
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,17,17,.92);
  color:#fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  pointer-events:none;
}
.toast.show{ opacity: 1; transform: translateX(-50%) translateY(-2px); }

.footer{
  padding: 22px 0;
  background: var(--nav2);
  color:#fff;
  margin-top: 24px;
}
.footer .container{ font-size: 12px; color: rgba(255,255,255,.82); }

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .products{ grid-template-columns: repeat(2, 1fr); }
  .filters{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .products{ grid-template-columns: 1fr; }
  .deliver{ display:none; }
  .brand{ min-width: 140px; }
}
