:root{
  --bg1:#06080c; --bg2:#0b0f16;
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --muted: rgba(255,255,255,.70);
  --text: #f5f7ff;
  --accent1:#ff8a00; --accent2:#ffb24d;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --r:18px;
}
*{box-sizing:border-box}
body{
  margin:0; color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(255,138,0,.18), transparent 60%),
    radial-gradient(700px 400px at 10% 15%, rgba(255,178,77,.12), transparent 60%),
    linear-gradient(180deg,var(--bg1),var(--bg2));
  min-height:100vh;
}
a{color:inherit}

.yd-topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--stroke);
}
.yd-topbar .in{
  max-width:1200px; margin:0 auto; padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.yd-brand{display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.2px}
.yd-logo{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg,var(--accent1),var(--accent2));
  color:#111; font-weight:1000;
  box-shadow: var(--shadow);
}
.yd-nav{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.yd-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  text-decoration:none;
}
.yd-btn:hover{transform:translateY(-1px)}
.yd-btn.primary{
  border:none; color:#111;
  background: linear-gradient(135deg,var(--accent1),var(--accent2));
  font-weight:900;
}
.yd-count{
  display:inline-grid; place-items:center;
  min-width:22px; height:22px; padding:0 8px;
  border-radius:999px; background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.20);
  font-size:12px;
}

.yd-wrap{max-width:1200px;margin:18px auto;padding:0 16px}
.yd-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap;
  margin:10px 0 14px;
}
.yd-head h1{margin:0; font-size:26px}
.yd-sub{color:var(--muted); font-size:13px}

.yd-grid{display:grid; grid-template-columns: 1.25fr .75fr; gap:14px}
@media(max-width:980px){.yd-grid{grid-template-columns:1fr}}

.yd-panel{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.yd-panel .p{padding:14px}

.yd-item{
  display:grid; grid-template-columns: 110px 1fr auto;
  gap:12px; align-items:center;
  padding:12px; margin:10px 0;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.yd-item img{
  width:110px; height:86px; object-fit:contain;
  border-radius:14px; background:#fff;
}
.yd-title{margin:0; font-size:14px; font-weight:900}
.yd-meta{margin-top:6px; color:var(--muted); font-size:12px; display:flex; gap:8px; flex-wrap:wrap}
.yd-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.yd-price{margin-top:8px; font-weight:900}
.yd-price .muted{color:var(--muted); font-weight:700; font-size:12px}

.yd-actions{display:flex; flex-direction:column; gap:10px; align-items:flex-end}
.yd-qty{display:flex; align-items:center; gap:8px}
.yd-qty button{
  width:36px; height:36px; border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color:#fff; cursor:pointer;
}
.yd-qty input{
  width:62px; height:36px; border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22); color:#fff; text-align:center;
  font-weight:900;
}
.yd-remove{
  border-radius:14px; padding:10px 12px;
  border:1px solid rgba(255,80,80,.35);
  background: rgba(255,80,80,.12);
  color:#fff; cursor:pointer;
}
.yd-remove:hover{filter:brightness(1.05)}

.yd-row{display:flex; justify-content:space-between; gap:12px; margin:10px 0; color:var(--muted); font-size:13px}
.yd-row b{color:#fff}
.yd-total{font-size:20px; font-weight:1000; color:#fff}

.yd-input, .yd-textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color:#fff; padding:10px 12px; outline:none;
}
.yd-textarea{min-height:110px; resize:vertical}
.yd-cta{
  width:100%; border:none; border-radius:16px;
  padding:13px 14px; cursor:pointer; font-weight:1000;
  color:#111;
  background: linear-gradient(135deg,var(--accent1),var(--accent2));
}
.yd-ghost{
  width:100%; border-radius:16px;
  padding:13px 14px; cursor:pointer; font-weight:900;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.16);
  color:#fff;
}

.yd-empty{
  padding:18px; text-align:center; color:var(--muted);
}
.yd-kicker{display:flex; align-items:center; gap:8px; font-weight:900}
.yd-kicker span{opacity:.9}

.yd-toast{
  position:fixed;right:18px;bottom:18px;z-index:9999;max-width:340px;
  padding:12px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.75);backdrop-filter:blur(10px);color:#fff;
  box-shadow:0 12px 40px rgba(0,0,0,.45);
  opacity:0;transform:translateY(10px);transition:.18s ease
}
.yd-toast.show{opacity:1;transform:translateY(0)}
.yd-toast b{display:block;font-size:14px;margin-bottom:2px}
.yd-toast .muted{opacity:.75;font-size:12px}
