:root {
  --navy: #0B1C3D; --navy-dark: #081530; --gold: #D9A441; --gold-light: #F0C866; --gold-dark: #B9852A;
  --bg: #F6F7FB; --muted: #7C8497; --text: #1C2437;
}
body { background: var(--bg); color: var(--text); font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif; padding-bottom: 80px; }
@media (min-width: 768px) { body { padding-bottom: 0; } }
h1, h2, h3, h4, h5, .brand, .btn, .title { font-family: 'Poppins', 'Segoe UI', sans-serif; }

.topbar { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; padding: 10px 0; position: sticky; top: 0; z-index: 1020; }
.logo-card { background: #fff; border-radius: 10px; padding: 3px 6px; display: flex; align-items: center; height: 46px; }
.logo-card img { max-height: 40px; max-width: 70px; width: auto; height: auto; object-fit: contain; }
.topbar .brand { font-weight: 700; font-size: 18px; }
.topbar .owner { font-size: 11px; color: var(--gold-light); }
.desk-nav a { color: rgba(255,255,255,.75); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.desk-nav a:hover, .desk-nav a.active { color: #fff; background: rgba(217,164,65,.18); }
.cart-btn { position: relative; color: #fff; font-size: 22px; padding: 4px 8px; }
.cart-btn .count { position: absolute; top: -2px; right: -2px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; border-radius: 10px; padding: 1px 6px; }

.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); font-weight: 600; }
.btn-outline-navy:hover, .btn-check:checked + .btn-outline-navy { background: var(--navy); color: #fff; }
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold-dark) !important; }

.card { border: none; border-radius: 14px; box-shadow: 0 2px 10px rgba(11,28,61,.06); }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin: 18px 0 10px; }

.hero { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); border-radius: 16px; padding: 22px; }
.hero h2 { font-weight: 800; font-size: 22px; margin: 0; }

.cat-tile { display: block; text-decoration: none; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(11,28,61,.06); transition: transform .15s; height: 100%; }
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile .img { height: 130px; display: flex; align-items: center; justify-content: center; padding: 10px; background: #fff; }
.cat-tile .img img { max-width: 100%; max-height: 110px; object-fit: contain; }
.cat-tile .img i { font-size: 40px; color: var(--navy); }
.cat-tile .cap { background: var(--navy); color: #fff; padding: 9px 12px; }
.cat-tile .cap .n { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tile .cap .s { color: var(--gold-light); font-size: 12px; }

.product-row { display: flex; gap: 14px; text-decoration: none; color: inherit; padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(11,28,61,.06); }
.product-row:hover { box-shadow: 0 4px 16px rgba(11,28,61,.12); color: inherit; }
.thumb { width: 84px; height: 84px; border-radius: 10px; background: #fff; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb.sm { width: 56px; height: 56px; }
.info-line { font-size: 12.5px; }
.info-line i { color: var(--gold-dark); margin-right: 4px; }

.crumb { background: rgba(11,28,61,.05); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb .cur { color: var(--navy); font-weight: 700; }

.hero-img { background: #fff; border-radius: 18px; border: 1px solid #eee; height: 300px; display: flex; align-items: center; justify-content: center; padding: 14px; position: relative; }
.hero-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.model-badge { position: absolute; top: 12px; left: 12px; background: var(--navy); color: var(--gold-light); font-weight: 800; padding: 4px 10px; border-radius: 8px; }

.opt-group .opt { border: 1px solid rgba(0,0,0,.15); background: #fff; border-radius: 10px; padding: 7px 14px; margin: 0 6px 8px 0; font-weight: 600; font-size: 14px; cursor: pointer; }
.opt-group .opt.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt-group .opt:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

.qty-box { display: inline-flex; align-items: center; gap: 6px; }
.qty-box button { width: 38px; height: 38px; border-radius: 8px; border: 0; background: var(--navy); color: #fff; font-size: 18px; }
.qty-box input { width: 80px; text-align: center; font-weight: 800; font-size: 18px; }
.note-gold { background: rgba(217,164,65,.12); border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 600; }

.plan-card { border: 1px solid rgba(0,0,0,.1); border-radius: 14px; padding: 14px; cursor: pointer; background: #fff; display: block; }
.btn-check:checked + .plan-card { background: var(--navy); color: #fff; border: 2px solid var(--gold); }
.btn-check:checked + .plan-card .text-muted { color: var(--gold-light) !important; }
.plan-card .price { font-size: 22px; font-weight: 800; color: var(--navy); }
.btn-check:checked + .plan-card .price { color: var(--gold); }
.qr-img { width: 240px; height: 240px; object-fit: contain; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 8px; }
.step { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--gold-light); align-items: center; justify-content: center; font-weight: 800; font-size: 13px; margin-right: 8px; }

.auth-wrap { max-width: 440px; margin: 20px auto; }
.auth-logo { background: #fff; border-radius: 16px; padding: 10px; display: inline-block; box-shadow: 0 2px 10px rgba(11,28,61,.08); }
.auth-logo img { height: 110px; width: auto; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; box-shadow: 0 -2px 12px rgba(0,0,0,.08); z-index: 1030; }
.bottom-nav a { flex: 1; text-align: center; padding: 8px 2px 10px; color: var(--muted); text-decoration: none; font-size: 11px; }
.bottom-nav a i { display: block; font-size: 20px; }
.bottom-nav a.active { color: var(--gold-dark); font-weight: 700; }
.site-footer { color: var(--muted); font-size: 13px; padding: 20px 0 24px; }
