/* ===== GadgetCare Main CSS ===== */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #E3F2FD;
  --green: #25D366;
  --bg: #EEF2F7;
  --white: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(21,101,192,0.10);
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Inter','Hind Siliguri',sans-serif; background:var(--bg); color:var(--text); padding-bottom:70px; }

/* NAVBAR */
.navbar { background:#fff; padding:13px 16px; display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:100; box-shadow:0 2px 12px rgba(21,101,192,0.09); }
.brand { font-size:22px; font-weight:900; text-decoration:none; }
.brand .g { color:var(--primary); }
.brand .c { color:var(--text); }
.nav-icons { display:flex; align-items:center; gap:16px; }
.nav-icons a, .nav-icons button { background:none; border:none; color:var(--text); cursor:pointer; position:relative; text-decoration:none; display:flex; align-items:center; }
.cart-badge { position:absolute; top:-8px; right:-8px; background:var(--primary); color:#fff; border-radius:50%; width:18px; height:18px; font-size:10px; display:flex; align-items:center; justify-content:center; font-weight:700; }

/* SLIDER */
.slider-wrap { margin:14px; border-radius:20px; overflow:hidden; position:relative; box-shadow:0 8px 32px rgba(21,101,192,0.18); }
.slider-track { display:flex; transition:transform .5s cubic-bezier(.4,0,.2,1); }
.slide { min-width:100%; height:220px; position:relative; display:flex; align-items:center; overflow:hidden; }
.slide-inner { position:relative; z-index:2; padding:26px 22px; flex:1; }
.slide-emoji { font-size:80px; position:absolute; right:-4px; bottom:-8px; opacity:.22; z-index:1; transform:rotate(-8deg); }
.hero-tag { font-size:10px; letter-spacing:2.5px; text-transform:uppercase; color:rgba(255,255,255,0.65); margin-bottom:8px; }
.hero-title { font-size:28px; font-weight:900; line-height:1.15; color:#fff; margin-bottom:10px; }
.hero-desc { font-size:13px; color:rgba(255,255,255,0.78); margin-bottom:20px; }
.btn-hero { background:#fff; color:var(--primary); padding:11px 26px; border-radius:30px; font-weight:800; font-size:14px; border:none; cursor:pointer; text-decoration:none; display:inline-block; }
.slider-dots { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); display:flex; gap:7px; z-index:10; }
.dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.45); cursor:pointer; transition:all .3s; border:none; }
.dot.active { background:#fff; width:22px; border-radius:4px; }
.slide-arrow { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.18); border:none; color:#fff; width:34px; height:34px; border-radius:50%; cursor:pointer; z-index:10; font-size:16px; }
.slide-prev { left:10px; }
.slide-next { right:10px; }

/* SECTION */
.section-title { font-size:19px; font-weight:800; padding:20px 16px 12px; }

/* PRODUCTS GRID */
.prod-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 14px 20px; }
.prod-card { background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.prod-card .prod-img { width:100%; height:145px; background:linear-gradient(145deg,#f8fafc,#f0f4f8); display:flex; align-items:center; justify-content:center; font-size:52px; }
.prod-card .prod-img img { width:100%; height:100%; object-fit:cover; }
.prod-body { padding:12px; }
.prod-body h3 { font-size:13px; font-weight:700; margin-bottom:6px; line-height:1.3; }
.price-row { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.new-price { font-size:17px; font-weight:900; color:#1565C0; }
.old-price { font-size:12px; color:#aaa; text-decoration:line-through; }
.btn-buy { width:100%; background:var(--primary); color:#fff; border:none; padding:10px; border-radius:30px; font-size:13px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; text-decoration:none; font-family:inherit; }

/* TOP SELLING */
.ts-wrap { background:#FAFAFA; padding:6px 0 8px; }
.ts-title { font-size:22px; font-weight:900; text-align:center; padding:20px 16px 14px; }
.ts-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:0 14px 20px; }
.ts-card { background:#fff; border-radius:18px; overflow:visible; box-shadow:0 4px 20px rgba(0,0,0,0.07); position:relative; }
.ts-badge { position:absolute; top:-1px; right:-1px; background:#EF4444; color:#fff; font-size:11px; font-weight:800; padding:6px 12px; border-radius:0 18px 0 14px; z-index:2; }
.ts-badge-2 { background:linear-gradient(135deg,#f97316,#ef4444); }
.ts-img-wrap { background:linear-gradient(145deg,#f8fafc,#f0f4f8); border-radius:18px 18px 0 0; padding:28px 16px 18px; display:flex; align-items:center; justify-content:center; min-height:140px; font-size:68px; }
.ts-img-wrap img { width:100%; height:120px; object-fit:contain; }
.ts-body { padding:14px 14px 16px; }
.ts-name { font-size:13px; font-weight:800; line-height:1.3; margin-bottom:8px; }
.ts-prices { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.ts-new { font-size:18px; font-weight:900; color:#1565C0; }
.ts-old { font-size:13px; color:#94a3b8; text-decoration:line-through; }
.ts-save { display:inline-block; background:#dcfce7; color:#16a34a; font-size:11px; font-weight:800; padding:4px 10px; border-radius:20px; }

/* PRODUCT DETAIL PAGE */
.pd-nav { background:#fff; padding:13px 16px; display:flex; align-items:center; gap:12px; position:sticky; top:0; z-index:10; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.pd-nav h2 { font-size:15px; font-weight:800; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pd-img-wrap { background:#fff; position:relative; text-align:center; }
.pd-img-wrap img { max-width:100%; height:auto; display:inline-block; }
.pd-emoji { font-size:120px; filter:drop-shadow(0 14px 32px rgba(0,0,0,0.13)); }
.pd-badge { position:absolute; top:14px; right:14px; background:#EF4444; color:#fff; font-size:12px; font-weight:800; padding:6px 14px; border-radius:20px; }
.pd-info { background:#fff; padding:20px 18px; border-bottom:8px solid var(--bg); }
.pd-name { font-size:21px; font-weight:900; margin-bottom:10px; line-height:1.3; }
.pd-price { font-size:26px; font-weight:900; color:#1565C0; }
.pd-old { font-size:15px; color:#9ca3af; text-decoration:line-through; }
.pd-save-badge { background:#22c55e; color:#fff; font-size:12px; font-weight:800; padding:4px 12px; border-radius:20px; }
.pd-stars { color:#f59e0b; font-size:14px; margin-top:6px; }

/* QTY */
.qty-row { background:#fff; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; border-bottom:8px solid var(--bg); }
.qty-ctrl { display:flex; align-items:center; border:2px solid #e5e7eb; border-radius:12px; overflow:hidden; }
.qty-btn { width:46px; height:44px; border:none; background:#f9fafb; font-size:24px; font-weight:700; cursor:pointer; }
.qty-num { width:50px; text-align:center; font-size:18px; font-weight:900; border-left:2px solid #e5e7eb; border-right:2px solid #e5e7eb; line-height:44px; }

/* ACTIONS */
.pd-actions { background:#fff; padding:16px 18px; display:flex; flex-direction:column; gap:12px; border-bottom:8px solid var(--bg); }
.btn-wa { width:100%; background:linear-gradient(135deg,#16a34a,#22c55e); color:#fff; border:none; padding:16px; border-radius:14px; font-size:16px; font-weight:900; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; font-family:inherit; text-decoration:none; }
.btn-call { width:100%; background:linear-gradient(135deg,#1e3a8a,#1565C0); color:#fff; border:none; padding:16px; border-radius:14px; font-size:16px; font-weight:900; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; font-family:inherit; }

/* DESCRIPTION */
.pd-desc { background:#fff; padding:20px 18px; border-bottom:8px solid var(--bg); }
.pd-desc h3 { font-size:18px; font-weight:900; margin-bottom:12px; }
.pd-desc p { font-size:15px; color:#374151; line-height:1.85; }

/* ORDER FORM */
.order-form-wrap { background:var(--bg); padding:20px 16px 32px; }
.order-form-wrap h3 { font-size:18px; font-weight:900; text-align:center; margin-bottom:16px; }
.form-card { background:#fff; border-radius:16px; padding:18px; margin-bottom:12px; box-shadow:0 2px 10px rgba(0,0,0,0.05); }
.form-card h4 { font-size:14px; font-weight:700; color:#374151; margin-bottom:12px; }
.field { margin-bottom:12px; }
.field label { display:block; font-size:13px; font-weight:700; color:#374151; margin-bottom:5px; }
.field input, .field textarea, .field select { width:100%; padding:12px 14px; border:1.5px solid #e5e7eb; border-radius:10px; font-size:14px; font-family:inherit; outline:none; background:#fff; }
.field input:focus, .field textarea:focus { border-color:var(--primary); }
.field textarea { resize:none; }
.radio-opt { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #f1f5f9; cursor:pointer; font-size:14px; color:#374151; }
.radio-opt:last-child { border-bottom:none; }
.radio-dot { width:20px; height:20px; border-radius:50%; border:2px solid #d1d5db; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.radio-dot.active { border-color:var(--primary); }
.radio-dot.active span { background:var(--primary); }
.radio-dot span { width:10px; height:10px; border-radius:50%; background:transparent; display:block; }
.total-card { background:#fff; border-radius:16px; padding:18px; margin-bottom:18px; box-shadow:0 2px 10px rgba(0,0,0,0.05); }
.total-row-line { display:flex; justify-content:space-between; padding-bottom:10px; border-bottom:1px dashed #e5e7eb; margin-bottom:10px; font-size:14px; }
.total-row-main { display:flex; justify-content:space-between; align-items:center; }
.total-row-main .lbl { font-size:17px; font-weight:900; }
.total-row-main .val { font-size:24px; font-weight:900; }
.btn-submit { width:100%; background:linear-gradient(135deg,#15803d,#22c55e); color:#fff; border:none; padding:18px; border-radius:16px; font-size:19px; font-weight:900; cursor:pointer; font-family:inherit; box-shadow:0 6px 24px rgba(34,197,94,.35); }

/* CONFIRM PAGE */
.confirm-wrap { min-height:100vh; background:var(--bg); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:32px 16px; text-align:center; }
.confirm-circle { margin-bottom:8px; }
.confirm-title { font-size:26px; font-weight:900; color:#15803d; margin:14px 0 8px; line-height:1.25; }
.confirm-msg { background:#fff; border-radius:20px; padding:22px 18px; margin:14px 0 18px; width:100%; max-width:420px; box-shadow:0 8px 32px rgba(34,197,94,0.12); font-size:15px; color:#374151; line-height:1.9; }
.confirm-detail { background:#fff; border-radius:16px; padding:18px; width:100%; max-width:420px; box-shadow:var(--shadow); margin-bottom:18px; }
.confirm-row { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed #e5e7eb; font-size:14px; }
.confirm-row:last-child { border-bottom:none; padding-top:10px; }
.confirm-row .lbl { color:#6b7280; }
.confirm-row .val { font-weight:800; }

/* TESTIMONIALS */
.testi-section { background:#fff; padding:20px 16px; }
.testi-title { font-size:19px; font-weight:800; color:var(--primary); text-align:center; margin-bottom:16px; }
.testi-card { border-radius:14px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.06); margin-bottom:12px; }
.testi-head { background:var(--primary-light); padding:14px 16px; display:flex; align-items:center; justify-content:space-between; }
.testi-avatar { width:44px; height:44px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:17px; }
.testi-name { font-weight:700; font-size:15px; }
.testi-handle { font-size:12px; color:var(--muted); }
.testi-body { padding:14px 16px; font-size:14px; line-height:1.65; }
.stars { color:#f59e0b; font-size:13px; margin-top:6px; }

/* FOOTER */
.footer { background:var(--primary); color:#fff; padding:28px 16px; }
.footer-logo { font-size:22px; font-weight:900; margin-bottom:10px; }
.footer-desc { font-size:13px; opacity:.82; margin-bottom:18px; line-height:1.65; }
.social-row { display:flex; gap:10px; margin-bottom:20px; }
.soc-btn { width:40px; height:40px; border-radius:50%; border:2px solid rgba(255,255,255,0.3); background:none; color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; text-decoration:none; }
.footer-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.footer-col h4 { font-size:14px; font-weight:700; margin-bottom:10px; }
.footer-col a { display:block; color:rgba(255,255,255,0.75); text-decoration:none; font-size:13px; margin-bottom:7px; }
.footer-col p { font-size:13px; color:rgba(255,255,255,0.75); margin-bottom:7px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.18); margin-top:14px; padding-top:14px; text-align:center; font-size:12px; opacity:.65; }

/* BOTTOM NAV */
.bottom-nav { position:fixed; bottom:0; left:0; right:0; background:#fff; display:grid; grid-template-columns:repeat(4,1fr); padding:8px 0; border-top:1px solid #e2e8f0; z-index:100; box-shadow:0 -4px 20px rgba(0,0,0,0.07); }
.bnav-item { display:flex; flex-direction:column; align-items:center; gap:3px; color:#94a3b8; cursor:pointer; font-size:10px; font-weight:600; border:none; background:none; padding:4px 0; text-decoration:none; }
.bnav-item.active, .bnav-item:hover { color:var(--primary); }

/* WA FLOAT */
.wa-float { position:fixed; bottom:80px; right:14px; width:54px; height:54px; border-radius:50%; background:var(--green); border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:99; box-shadow:0 4px 20px rgba(37,211,102,0.45); animation:waPulse 2.5s infinite; text-decoration:none; }
@keyframes waPulse { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.45)} 50%{box-shadow:0 4px 36px rgba(37,211,102,0.75)} }

/* SEARCH */
.search-bar-wrap { padding:14px; position:sticky; top:56px; background:var(--bg); z-index:10; }
.search-inner { position:relative; }
.search-inner svg { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:#94a3b8; }
.search-input { width:100%; padding:13px 16px 13px 44px; border-radius:30px; border:none; background:#fff; font-size:15px; font-family:inherit; outline:none; box-shadow:var(--shadow); }

/* ALERT */
.alert { padding:12px 16px; border-radius:12px; margin:10px 16px; font-size:14px; font-weight:600; }
.alert-success { background:#E8F5E9; color:#2E7D32; border-left:4px solid #4CAF50; }
.alert-error { background:#FFEBEE; color:#C62828; border-left:4px solid #F44336; }

/* PROFILE PAGE */
.page-header { padding:20px 16px 0; }
.page-header h1 { font-size:22px; font-weight:800; }
.track-form { display:flex; gap:10px; padding:14px 16px; }
.track-input { flex:1; padding:13px 16px; border-radius:30px; border:2px solid #e2e8f0; font-size:15px; font-family:inherit; outline:none; }
.track-input:focus { border-color:var(--primary); }
.btn-track { background:var(--primary); color:#fff; border:none; padding:13px 22px; border-radius:30px; font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; }
.order-card-track { background:#fff; border-radius:16px; padding:18px; margin:0 16px 12px; box-shadow:var(--shadow); }

/* FILTER */
.filter-wrap { display:flex; gap:8px; padding:10px 14px; overflow-x:auto; }
.filter-wrap::-webkit-scrollbar { display:none; }
.filter-btn { white-space:nowrap; padding:8px 18px; border-radius:30px; border:2px solid #e2e8f0; background:#fff; font-size:13px; font-weight:600; cursor:pointer; color:#64748b; font-family:inherit; }
.filter-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* SIDE MENU */
.side-menu { position:fixed; inset:0; z-index:999; display:none; }
.side-menu.open { display:block; }
.side-menu-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.5); }
.side-menu-panel { position:absolute; left:0; top:0; bottom:0; width:80%; max-width:290px; background:#fff; padding:24px; overflow-y:auto; animation:slideLeft .28s ease; }
.side-menu-item { display:flex; align-items:center; gap:12px; padding:13px 12px; border-radius:10px; cursor:pointer; font-weight:600; color:#333; text-decoration:none; border:none; background:none; width:100%; font-family:inherit; font-size:15px; }
.side-menu-item:hover, .side-menu-item.admin-link { background:var(--primary-light); color:var(--primary); }
@keyframes slideLeft { from{transform:translateX(-100%)} to{transform:translateX(0)} }

/* ADMIN PANEL */
.admin-sidebar { position:fixed; left:0; top:0; bottom:0; width:250px; background:#0a1628; z-index:100; overflow-y:auto; }
.admin-sidebar-logo { padding:22px 20px; border-bottom:1px solid rgba(255,255,255,0.1); font-size:20px; font-weight:900; }
.admin-sidebar-logo .g { color:#60a5fa; }
.admin-sidebar-logo small { display:block; font-size:11px; color:rgba(255,255,255,0.35); font-weight:400; margin-top:2px; }
.nav-section-label { padding:12px 20px 4px; font-size:10px; color:rgba(255,255,255,0.3); letter-spacing:2px; text-transform:uppercase; }
.admin-nav-link { display:flex; align-items:center; gap:12px; padding:12px 20px; color:rgba(255,255,255,0.7); text-decoration:none; font-size:14px; font-weight:500; border-left:3px solid transparent; transition:all .2s; }
.admin-nav-link:hover, .admin-nav-link.active { color:#fff; background:rgba(255,255,255,0.08); border-left-color:#60a5fa; }
.admin-nav-link svg { color:#60a5fa; flex-shrink:0; }
.admin-badge { margin-left:auto; background:#F44336; color:#fff; border-radius:20px; padding:2px 8px; font-size:11px; }
.admin-main { margin-left:250px; min-height:100vh; }
.admin-topbar { background:#fff; padding:16px 24px; display:flex; align-items:center; justify-content:space-between; box-shadow:0 2px 8px rgba(0,0,0,0.06); position:sticky; top:0; z-index:10; }
.admin-topbar h1 { font-size:20px; font-weight:800; }
.admin-content { padding:24px; background:#f0f4f8; min-height:calc(100vh - 60px); }
.admin-avatar { width:38px; height:38px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.stat-card { background:#fff; border-radius:14px; padding:20px; box-shadow:0 4px 20px rgba(0,0,0,0.06); display:flex; align-items:center; gap:14px; }
.stat-icon { width:52px; height:52px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.stat-num { font-size:26px; font-weight:900; }
.stat-lbl { font-size:13px; color:var(--muted); }
.admin-card { background:#fff; border-radius:14px; box-shadow:0 4px 20px rgba(0,0,0,0.06); overflow:hidden; margin-bottom:22px; }
.admin-card-head { padding:16px 20px; border-bottom:1px solid #f0f4f8; display:flex; align-items:center; justify-content:space-between; }
.admin-card-head h3 { font-size:16px; font-weight:700; }
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th { text-align:left; padding:10px 14px; font-size:12px; color:#999; text-transform:uppercase; background:#f8fafc; border-bottom:2px solid #f0f4f8; }
.admin-table td { padding:12px 14px; font-size:14px; border-bottom:1px solid #f8fafc; }
.admin-table tr:last-child td { border-bottom:none; }
.admin-table tr:hover td { background:#f8fafc; }
.badge { padding:4px 10px; border-radius:20px; font-size:11px; font-weight:700; }
.badge-pending   { background:#FFF3E0; color:#E65100; }
.badge-confirmed { background:#E3F2FD; color:#1565C0; }
.badge-processing{ background:#F3E5F5; color:#6A1B9A; }
.badge-shipped   { background:#E0F2FE; color:#0369A1; }
.badge-delivered { background:#E8F5E9; color:#2E7D32; }
.badge-cancelled { background:#FFEBEE; color:#B71C1C; }
.badge-active    { background:#E8F5E9; color:#2E7D32; }
.badge-inactive  { background:#FFEBEE; color:#B71C1C; }
.btn { padding:9px 18px; border-radius:10px; border:none; font-size:13px; font-weight:700; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:6px; font-family:inherit; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-danger  { background:#ef4444; color:#fff; }
.btn-success { background:#22c55e; color:#fff; }
.btn-outline { background:#fff; border:2px solid #e2e8f0; color:#555; }
.btn-sm { padding:6px 12px; font-size:12px; }
.admin-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.admin-field { margin-bottom:14px; }
.admin-label { display:block; font-size:13px; font-weight:600; color:#555; margin-bottom:5px; }
.admin-input { width:100%; padding:10px 13px; border:2px solid #f0f4f8; border-radius:10px; font-size:14px; font-family:inherit; outline:none; }
.admin-input:focus { border-color:var(--primary); }
textarea.admin-input { min-height:80px; resize:vertical; }
.pagination { display:flex; gap:6px; justify-content:center; padding:16px; }
.pagination a, .pagination span { width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius:8px; font-size:14px; font-weight:600; text-decoration:none; border:2px solid #eee; color:#555; }
.pagination a:hover, .pagination span.current { background:var(--primary); color:#fff; border-color:var(--primary); }
@media(max-width:768px) {
  .admin-sidebar { transform:translateX(-100%); transition:.3s; }
  .admin-sidebar.open { transform:translateX(0); }
  .admin-main { margin-left:0; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .admin-form-grid { grid-template-columns:1fr; }
  .admin-table-wrap { overflow-x:auto; }
}
