:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --card:#ffffff;
  --shadow: 0 8px 24px rgba(17,24,39,.08);
  --brand:#0f172a;
  --accent:#f59e0b;   /* amazon-ish orange */
  --blue:#2563eb;
}

*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
.wrap{max-width:1200px;margin:0 auto;padding:14px 14px 24px}

/* HEADER */
.amz-header{position:sticky;top:0;z-index:50;background:var(--brand);color:white}
.amz-top{max-width:1200px;margin:0 auto;padding:10px 14px;display:flex;gap:12px;align-items:center}
.amz-logo{font-weight:900;font-size:20px;letter-spacing:.2px;display:flex;align-items:baseline;gap:2px}
.logoA{color:white}
.logoB{color:var(--accent)}
.amz-search{flex:1;display:flex;align-items:center;background:white;border-radius:10px;overflow:hidden}
.amz-search input{flex:1;border:0;padding:12px 12px;font-size:14px;outline:none}
.amz-search button{border:0;background:var(--accent);padding:0 14px;height:44px;cursor:pointer}
.amz-cart{display:flex;align-items:center;gap:8px;padding:10px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.18)}
.cartIcon{font-size:18px}
.cartText{display:none}
.cartBadge{min-width:22px;height:22px;border-radius:999px;background:white;color:var(--brand);display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:12px}

/* NAV PILLS */
.amz-nav{max-width:1200px;margin:0 auto;padding:8px 14px;display:flex;gap:10px;align-items:center;overflow:auto;border-top:1px solid rgba(255,255,255,.12)}
.navPill{white-space:nowrap;border:1px solid rgba(255,255,255,.2);background:transparent;color:white;padding:8px 12px;border-radius:999px;font-weight:700;cursor:pointer}
.navPill.active{background:white;color:var(--brand);border-color:white}
.navRight{margin-left:auto;white-space:nowrap;color:white;font-weight:800;border:1px solid rgba(255,255,255,.2);padding:8px 12px;border-radius:999px}

/* HERO */
.hero{background:linear-gradient(180deg,#eef2ff, #ffffff);border-bottom:1px solid var(--border)}
.heroInner{max-width:1200px;margin:0 auto;padding:18px 14px;display:grid;gap:14px;grid-template-columns:1fr}
.heroText h1{margin:0 0 6px;font-size:24px}
.heroText p{margin:0 0 12px;color:var(--muted)}
.heroBtns{display:flex;gap:10px;flex-wrap:wrap}
.btnPrimary{background:var(--accent);color:#111;padding:10px 14px;border-radius:10px;font-weight:900}
.btnGhost{background:white;border:1px solid var(--border);padding:10px 14px;border-radius:10px;font-weight:900}
.heroCard{background:white;border:1px solid var(--border);border-radius:14px;padding:14px;box-shadow:var(--shadow)}
.heroCardTitle{font-weight:900;margin-bottom:8px}
.heroList{margin:0;padding-left:18px;color:var(--text)}
.heroSmall{margin-top:10px;color:var(--muted);font-size:13px}

/* TOOLBAR */
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0}
.resultText{color:var(--muted)}
#sort{padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:white}

/* PRODUCT GRID */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.card{background:var(--card);border:1px solid var(--border);border-radius:14px;overflow:hidden;box-shadow:0 2px 10px rgba(17,24,39,.04)}
.card:hover{box-shadow:var(--shadow)}
.pimg{width:100%;height:150px;object-fit:cover;display:block;background:#f3f4f6}
.pbody{padding:12px}
.ptitle{font-weight:800;line-height:1.25;margin:0 0 6px}
.meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.rating{font-size:13px;color:#f59e0b;font-weight:900}
.price{font-size:18px;font-weight:900}
.muted{color:var(--muted);font-size:13px}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.badge{font-size:12px;font-weight:900;padding:6px 8px;border-radius:10px;border:1px solid var(--border);background:#f9fafb}
.badge.deal{background:#dc2626;color:white;border-color:#dc2626}

.addBtn{width:100%;margin-top:10px;padding:11px 12px;border:0;border-radius:12px;background:var(--blue);color:white;font-weight:900;cursor:pointer}
.addBtn:active{transform:scale(.99)}

/* FOOTER */
.footer{border-top:1px solid var(--border);background:#f9fafb}
.footerRow{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted)}
.footerLinks{display:flex;gap:12px}
.footerLinks a{color:var(--muted)}

/* RESPONSIVE */
@media (min-width:720px){
  .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .heroInner{grid-template-columns:1.2fr .8fr;align-items:center}
  .heroText h1{font-size:36px}
  .cartText{display:inline}
  .pimg{height:170px}
}