/* ELM PRODUCTION — Rounded, relaxed, modern (Venmo build) */
:root{
  --bg:#fbf6ef; --bg-2:#ffffff; --ink:#0f172a; --muted:#5b6b86;
  --brand:#87b8f5; --brand-2:#4d9bf0; --ring:rgba(77,155,240,.25);
  --radius:18px; --shadow:0 10px 30px rgba(15,23,42,.08); --shadow-soft:0 6px 20px rgba(15,23,42,.06);
}

*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  color:var(--ink);
  background: radial-gradient(1200px 900px at 80% -100px,#eaf4ff 0%,rgba(234,244,255,0) 60%), var(--bg);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
a{ color:inherit; text-decoration:none }
img{ max-width:100%; display:block }

/* Normalize buttons so <button> pills look identical to <a> pills */
button{ font:inherit; color:inherit; background:none; border:none; padding:0; margin:0; line-height:1; -webkit-appearance:none; appearance:none; }

/* Shell */
.wrap{ width:min(1150px,92%); margin-inline:auto }

/* Header / Nav */
header{ position:sticky; top:0; z-index:50; background:rgba(251,246,239,.7); backdrop-filter:saturate(160%) blur(10px); border-bottom:1px solid rgba(15,23,42,.05) }
.nav{ display:flex; align-items:center; gap:14px; padding:14px 0; flex-wrap:wrap }
.brand{ display:flex; align-items:center; gap:12px; padding:8px 12px; border-radius:999px }
.brand img{ width:44px; height:44px; border-radius:999px; object-fit:cover; border:3px solid var(--brand) }
.brand .t1{ font-weight:700; letter-spacing:.6px }

.pillnav{ margin-left:auto; display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.pill, a.pill, button.pill{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 14px; min-height:40px; line-height:1; white-space:nowrap;
  background:var(--bg-2); color:var(--ink);
  border-radius:999px; border:1px solid rgba(15,23,42,.06);
  box-shadow:var(--shadow-soft); font-weight:600; font-size:0.95rem; cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
.pill:hover{ transform:translateY(-1px); box-shadow:var(--shadow) }
.cta{ background:linear-gradient(180deg,var(--brand),var(--brand-2)); color:#fff; border:none }
.user-chip{ margin-left:4px; padding:8px 12px; border-radius:999px; background:#eef5ff; border:1px solid rgba(77,155,240,.35); color:#0b3d8a; font-weight:600 }

/* Hero */
.hero{ display:grid; grid-template-columns:1.2fr .8fr; gap:28px; align-items:center; padding:40px 0 22px }
.hero-card{ background:var(--bg-2); border-radius:calc(var(--radius) + 6px); box-shadow:var(--shadow); padding:34px; border:1px solid rgba(15,23,42,.06) }
.kicker{ color:var(--muted); font-weight:600; letter-spacing:.2em; text-transform:uppercase; font-size:.8rem }
h1{ margin:10px 0 14px; font-size:clamp(28px,4vw,44px); line-height:1.15 }
.lead{ color:var(--muted); font-size:clamp(14px,1.6vw,18px) }
.hero-actions{ display:flex; gap:12px; margin-top:18px; flex-wrap:wrap }
.btn, a.btn, button.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 16px; min-height:42px; line-height:1; font-weight:600; font-size:0.95rem;
  border-radius:14px; border:1px solid rgba(15,23,42,.08); background:var(--bg-2);
  box-shadow:var(--shadow-soft); cursor:pointer; transition:transform .15s ease, box-shadow .15s ease;
}
.btn.primary{ background:linear-gradient(180deg,var(--brand),var(--brand-2)); color:#fff; border:none }
.btn:hover{ transform:translateY(-1px); box-shadow:var(--shadow) }
.hero-badge{ display:flex; align-items:center; gap:10px; justify-content:center; background:#f2f7ff; border:1px dashed var(--brand); border-radius:16px; padding:14px }
.hero-badge .bold{ font-weight:700 }
.hero-badge .sep{ height:24px; width:2px; background:rgba(15,23,42,.12) }

/* Sections / Cards */
.section{ padding:26px 0 44px }
.section h2{ font-size:clamp(22px,3vw,32px); margin:0 0 14px }
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px }
.card{ background:var(--bg-2); border-radius:var(--radius); border:1px solid rgba(15,23,42,.06); box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column }
.thumb{ aspect-ratio:1/1; background:linear-gradient(180deg,#f6fbff,#eef5ff); display:grid; place-items:center }
.thumb img{ width:84%; height:84%; object-fit:cover; border-radius:16px }
.card-body{ padding:16px; display:grid; gap:6px }
.title{ font-weight:600 }
.small{ font-size:.9rem }
.price{ font-weight:700 }
.buy{ margin-top:6px; display:flex; gap:10px; align-items:center; flex-wrap:wrap }

/* About / Footer */
.about{ background:linear-gradient(180deg,rgba(135,184,245,.12),rgba(135,184,245,0)); border-radius:22px; padding:22px; border:1px solid rgba(77,155,240,.18) }
footer{ padding:28px 0 60px; color:var(--muted) }
.foot{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap }
.socs{ display:flex; gap:10px; align-items:center }

/* Drawer (Cart) */
.overlay{ position:fixed; inset:0; display:none; background:rgba(15,23,42,.35); backdrop-filter:blur(6px); z-index:85 }
.drawer{ position:fixed; top:0; right:-420px; width:min(400px,92%); height:100%; background:#fff; box-shadow:-6px 0 30px rgba(15,23,42,.15); border-left:1px solid rgba(15,23,42,.06); z-index:90; display:flex; flex-direction:column; transition:right .22s ease; border-top-left-radius:16px; border-bottom-left-radius:16px }
.drawer.open{ right:0 }
.drawer-head{ display:flex; justify-content:space-between; align-items:center; padding:16px 18px; border-bottom:1px solid rgba(15,23,42,.06) }
.drawer-foot{ margin-top:auto; padding:16px 18px; border-top:1px solid rgba(15,23,42,.06); display:grid; gap:10px }
.cart-items{ padding:12px 16px; display:grid; gap:12px; max-height:50vh; overflow:auto }
.cart-line{ display:flex; gap:10px }
.cart-line img{ width:72px; height:72px; border-radius:12px; object-fit:cover; border:1px solid rgba(15,23,42,.06) }
.cart-line .grow{ flex:1 }
.qty{ display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(15,23,42,.12); border-radius:12px; padding:6px 8px }
.qty button{ background:transparent; border:none; font-weight:700; cursor:pointer }
.rm{ background:transparent; border:none; color:#b91c1c; font-weight:600; cursor:pointer }

/* Checkout */
.checkout{ display:grid; grid-template-columns:1.1fr .9fr; gap:24px }
.checkout-right{ background:#fff; border:1px solid rgba(15,23,42,.06); border-radius:18px; box-shadow:var(--shadow); padding:18px }
.sum-row{ display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed rgba(15,23,42,.08) }
.sum-row.total{ font-weight:700; border-bottom:none }

/* Modals & fields */
.modal-backdrop{ position:fixed; inset:0; display:none; place-items:center; background:rgba(15,23,42,.35); backdrop-filter:blur(6px); z-index:90 }
.modal{ width:min(560px,92%); background:var(--bg-2); border-radius:22px; box-shadow:0 40px 80px rgba(15,23,42,.25); border:1px solid rgba(15,23,42,.08); overflow:hidden }
.modal header{ position:unset; backdrop-filter:none; background:linear-gradient(180deg,#f6fbff,#fff); border-bottom:1px solid rgba(15,23,42,.06) }
.modal .box{ padding:18px 20px }
.modal h3{ margin:0; font-size:22px }
.muted{ color:var(--muted) }
.fields{ display:grid; gap:12px; margin:14px 0 }
.fld{ display:grid; gap:6px }
input, select{
  padding:12px 14px; border-radius:14px; border:1px solid rgba(15,23,42,.12); background:#fff;
  outline:none; font:inherit; min-height:44px;
}
input:focus{ border-color:var(--brand-2); box-shadow:0 0 0 6px var(--ring) }
.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between }
.text-btn, a.text-btn{
  background:transparent; border:none; font-weight:600; color:#4d9bf0; cursor:pointer; padding:10px 8px; border-radius:10px
}
.text-btn:hover{ background:#eef5ff }
.group{ display:flex; gap:10px; flex-wrap:wrap }
.price{ font-weight:700 }
.btn-sld{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 16px; min-height:42px; line-height:1; font-weight:600; font-size:0.95rem;
  border-radius:14px; border:1px solid rgba(15,23,42,.08); background:var(--bg-2);
  box-shadow:var(--shadow-soft); cursor:pointer; transition:transform .15s ease, box-shadow .15s ease;
  background-color: rgb(184, 182, 182);
}
.btn-sld:hover{
  cursor:not-allowed;
}
/* ---------- Responsive tweaks ---------- */

/* Tablets and down */
@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; gap:20px; padding:28px 0 14px }
  .pillnav{ gap:8px }
  .checkout{ grid-template-columns:1fr }
  .grid{ grid-template-columns:repeat(2,1fr) }
}

/* Mobile */
@media (max-width: 640px){
  .wrap{ width:min(720px,92%) }
  .nav{ gap:10px }
  .brand img{ width:38px; height:38px }
  .brand .t1{ font-size:0.98rem }
  .pillnav{ overflow:auto; -webkit-overflow-scrolling:touch }
  .pill, a.pill, button.pill{ padding:10px 14px; min-height:42px; font-size:0.95rem }
  .btn, a.btn, button.btn{ padding:12px 16px; min-height:44px; font-size:0.95rem }
  .grid{ grid-template-columns:1fr; gap:14px }
  .drawer{ width:92% }
  .cart-line img{ width:64px; height:64px }
  .modal{ width:min(520px,94%) }
}

/* Small phones */
@media (max-width: 400px){
  .pill, a.pill, button.pill{ padding:10px 12px }
  .btn, a.btn, button.btn{ padding:10px 14px }
  .hero-card{ padding:22px }
  .section{ padding:20px 0 32px }
}
