:root {
  --bg: #0f172a;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #111827;
  --line: #e2e8f0;
  --card: #ffffff;
  --soft: #f8fafc;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: var(--bg); color: #fff; padding: 14px 0; position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-size: 28px; font-weight: 800; }
.btn { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-green { background: var(--green); color: #fff; }
.btn-outline { border: 1px solid var(--line); background: #fff; }
.hero { padding: 34px 0 12px; }
.hero-box { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; background: linear-gradient(135deg,#111827,#1e293b); color: #fff; border-radius: 26px; padding: 34px; box-shadow: var(--shadow); }
.hero h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.hero p { margin: 0 0 18px; color: #cbd5e1; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { background: rgba(255,255,255,.1); padding: 10px 12px; border-radius: 999px; font-size: 14px; }
.panel { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 18px; }
.filters { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 22px 0; }
.input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; }
.search { flex: 1; min-width: 220px; }
.grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 50px; }
.card { background: var(--card); border: 1px solid #edf2f7; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display:flex; flex-direction:column; }
.thumb { aspect-ratio: 1/1; background:#f1f5f9; overflow:hidden; }
.thumb img { width:100%; height:100%; object-fit:cover; }
.card-body { padding: 16px; display:flex; flex-direction:column; gap: 10px; flex:1; }
.title { margin:0; font-size: 18px; font-weight: 700; }
.desc { margin:0; color: var(--muted); min-height: 42px; font-size: 14px; line-height: 1.45; }
.price-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; }
.price strong { font-size: 22px; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(430px,100%); background:#fff; transform: translateX(100%); transition: transform .25s ease; z-index: 40; box-shadow: -8px 0 30px rgba(0,0,0,.18); display:flex; flex-direction:column; }
.drawer.open { transform: translateX(0); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); opacity:0; pointer-events:none; transition: opacity .2s ease; z-index: 30; }
.overlay.show { opacity:1; pointer-events:auto; }
.drawer-header, .drawer-footer { padding: 18px; border-bottom: 1px solid var(--line); }
.drawer-footer { border-top: 1px solid var(--line); border-bottom: 0; margin-top:auto; }
.drawer-body { padding: 18px; overflow:auto; }
.cart-item { display:grid; grid-template-columns: 70px 1fr auto; gap:12px; padding: 12px 0; border-bottom:1px solid #f1f5f9; align-items:center; }
.cart-thumb { width:70px; height:70px; border-radius: 14px; overflow:hidden; background:#f8fafc; }
.qty { display:inline-flex; gap:8px; align-items:center; margin-top:8px; }
.qty button { width:28px; height:28px; border-radius:8px; border:1px solid var(--line); background:#fff; cursor:pointer; }
.notice { font-size:13px; color: var(--muted); line-height:1.5; }
.alert { padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.alert-success { background:#ecfdf5; color:#166534; }
.alert-error { background:#fef2f2; color:#991b1b; }
.footer { text-align:center; color: var(--muted); padding: 24px 0 40px; }
.admin-wrap { display:grid; grid-template-columns: 240px 1fr; min-height:100vh; }
.sidebar { background: var(--bg); color:#fff; padding: 24px; }
.sidebar a { display:block; padding: 12px 14px; border-radius: 12px; margin-bottom:8px; color:#cbd5e1; }
.sidebar a.active, .sidebar a:hover { background: rgba(255,255,255,.08); color:#fff; }
.main { padding: 28px; }
.admin-card { background:#fff; border:1px solid var(--line); border-radius:20px; padding:20px; box-shadow:var(--shadow); margin-bottom:20px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse: collapse; }
th, td { text-align:left; padding: 12px; border-bottom:1px solid #eef2f7; font-size:14px; }
.label { display:inline-block; padding: 6px 10px; border-radius: 999px; background:#eff6ff; color:#1d4ed8; font-size:12px; font-weight:700; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:20px; }
.login-card { background:#fff; width:min(460px,100%); padding:28px; border-radius:24px; box-shadow:var(--shadow); border:1px solid var(--line); }
.row { display:grid; grid-template-columns: repeat(2,1fr); gap:14px; }
.actions { display:flex; gap:10px; flex-wrap:wrap; }
.small { font-size: 13px; color: var(--muted); }
@media (max-width: 980px) { .hero-box, .grid, .admin-wrap { grid-template-columns: 1fr 1fr; } .admin-wrap { grid-template-columns: 1fr; } .sidebar { position:sticky; top:0; z-index:10; } }
@media (max-width: 680px) { .grid, .row, .hero-box { grid-template-columns: 1fr; } .main { padding:16px; } }

.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 25; display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; padding: 14px 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 12px 28px rgba(37,211,102,.35); }
.whatsapp-float:hover { transform: translateY(-1px); }
.wa-icon { display:inline-grid; place-items:center; width: 28px; height: 28px; background: rgba(255,255,255,.18); border-radius: 999px; }
@media (max-width: 680px) { .whatsapp-float span:last-child { display:none; } .whatsapp-float { padding: 14px; } }
