:root{
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;

  --accent: #2563eb;
  --accent2: #06b6d4;

  --radius: 18px;
  --shadow: 0 14px 40px rgba(15, 23, 42, .08);
  --shadow2: 0 10px 24px rgba(15, 23, 42, .10);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(700px 480px at 85% 10%, rgba(6,182,212,.10), transparent 55%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.muted{ color: var(--muted); }

.container{
  width:min(1120px, calc(100% - 40px));
  margin-inline:auto;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(246,248,252,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand__logo{
  width:184px;
 
  padding:6px;

}

.brand__text{ display:flex; flex-direction:column; line-height:1.05; }
.brand__small{ font-size:12px; color: var(--muted); letter-spacing:.08em; }
.brand__name{ font-size:20px; font-weight:800; }

.actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight:800;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow2);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  cursor:pointer;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--primary{
  color:#fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 16px 32px rgba(37,99,235,.22);
}
.btn--primary:hover{ filter: brightness(.98); }
.btn--full{ width:100%; margin-top: 10px; }

/* Main */
.main{ padding: 26px 0 40px; }

.pagehead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}
.pagehead h1{
  margin:0 0 6px;
  font-size: 32px;
  letter-spacing:-0.03em;
}
.pagehead p{ margin:0; color: var(--muted); }
.crumbs{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight:600;
  font-size: 13px;
}
.crumbs a:hover{ color: var(--accent); }

.layout{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  align-items:start;
}

.panel{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow2);
  padding: 16px;
}
.panel__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}
.panel h2{
  margin:0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.link{
  border:0;
  background:transparent;
  color: var(--accent);
  font-weight:800;
  cursor:pointer;
  padding: 8px 10px;
  border-radius: 12px;
}
.link:hover{ background: rgba(37,99,235,.08); }

/* Cart list */
.cartlist{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 10px;
}
.item{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}
.item__media{
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 220px at 50% 15%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(380px 240px at 60% 95%, rgba(6,182,212,.10), transparent 60%),
    #f8fafc;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.item__media img{
  max-height: 130px;
  filter: drop-shadow(0 10px 18px rgba(15,23,42,.16));
}

.item__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.item__info h3{
  margin:0;
  font-size: 15px;
  font-weight: 900;
}
.item__info p{ margin:4px 0 0; font-size: 13px; }

.iconbtn{
  border: 1px solid var(--line);
  background: #fff;
  width: 28px;
  height: 28px;
  border-radius: 12px;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  text-align:center;
}
.iconbtn:hover{ background:#f8fafc; }

.item__bottom{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* Qty */
.qty{
  display:flex;
  align-items:center;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background: #fff;
}
.qty__btn{
  width: 38px;
  height: 38px;
  border: 0;
  background: #f8fafc;
  cursor:pointer;
  font-size: 18px;
  font-weight: 900;
}
.qty__btn:hover{ background: #eef2ff; }
.qty__input{
  width: 70px;
  height: 38px;
  border: 0;
  text-align:center;
  font-weight: 800;
  outline:none;
}
.price{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
}
.price strong{ font-size: 16px; }

/* Note */
.note{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(37,99,235,.35);
  background: rgba(37,99,235,.06);
  font-size: 13px;
}

/* Summary */
.summary{ position:sticky; top: 86px; }
.rows{ margin-top: 10px; }
.row{
  display:flex;
  justify-content:space-between;
  padding: 10px 0;
  font-weight: 700;
}
.divider{
  height:1px;
  background: var(--line);
  margin: 6px 0;
}
.total{
  font-size: 18px;
  font-weight: 900;
}

.coupon{
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.coupon label{
  display:block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.coupon__row{
  display:flex;
  gap: 10px;
}
.coupon input{
  flex:1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  font-weight: 700;
  outline:none;
  background: #fff;
}
.coupon input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
.hint{ margin: 10px 0 0; font-size: 12px; }

.trust{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.trust__item{
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
}

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  background: rgba(246,248,252,.75);
  backdrop-filter: blur(10px);
}
.footer__inner{
  padding: 16px 0;
  display:flex;
  justify-content:space-between;
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .summary{ position:static; }
}
@media (max-width: 520px){
  .container{ width:min(1120px, calc(100% - 24px)); }
  .item{ grid-template-columns: 1fr; }
  .item__media{ height: 140px; }
  .coupon__row{ flex-direction:column; }
}



#clearCart{font-size:11px;}
