* { box-sizing: border-box; margin:0; padding:0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background:#f5f6fa; color:#222; line-height:1.5; }
a { text-decoration:none; color:inherit; }
.container { max-width:1200px; margin:0 auto; padding:0 15px; }
img { max-width:100%; display:block; }

/* Header */
.top-bar { background:#1a237e; color:#fff; font-size:12px; }
.topbar-inner { display:flex; justify-content:space-between; padding:6px 15px; }
.topbar-inner a { color:#fff; }
.main-nav { display:flex; align-items:center; gap:20px; padding:15px; background:#fff; flex-wrap:wrap; }
.logo { font-size:24px; font-weight:800; color:#1a237e; }
.search-form { flex:1; display:flex; min-width:200px; }
.search-form input { flex:1; padding:10px 14px; border:2px solid #1a237e; border-right:none; border-radius:6px 0 0 6px; }
.search-form button { padding:0 18px; background:#1a237e; color:#fff; border:none; border-radius:0 6px 6px 0; cursor:pointer; }
.nav-icons { display:flex; gap:18px; align-items:center; font-size:22px; }
.cart-link { position:relative; }
.cart-badge { position:absolute; top:-8px; right:-12px; background:#e53935; color:#fff; font-size:11px; padding:2px 6px; border-radius:50%; }
.categories-nav { background:#1a237e; }
.categories-nav a { color:#fff; padding:12px 16px; display:inline-block; font-size:14px; }
.categories-nav a:hover { background:#283593; }

.page-content { min-height:60vh; padding:25px 15px; }

/* Buttons */
.btn { display:inline-block; background:#1a237e; color:#fff; padding:10px 20px; border-radius:6px; border:none; cursor:pointer; font-size:14px; font-weight:600; }
.btn:hover { background:#121858; }
.btn-outline { background:transparent; border:2px solid #1a237e; color:#1a237e; }
.btn-danger { background:#e53935; }
.btn-sm { padding:6px 12px; font-size:12px; }
.btn-success { background: #2e7d32; }

/* Banner */
.banner { background:linear-gradient(135deg,#1a237e,#3949ab); color:#fff; border-radius:10px; padding:50px 30px; margin-bottom:30px; text-align:center; }
.banner h1 { font-size:32px; margin-bottom:10px; }

/* Grid */
.section-title { font-size:22px; margin:25px 0 15px; border-left:5px solid #1a237e; padding-left:12px; }
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:18px; }
.product-card { background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 1px 6px rgba(0,0,0,.08); transition:.2s; }
.product-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.15); transform:translateY(-2px); }
.product-card img { height:180px; object-fit:contain; padding:15px; background:#fafafa; }
.product-card .info { padding:12px 14px; }
.product-card .info h3 { font-size:14px; font-weight:600; height:38px; overflow:hidden; }
.price { font-size:17px; font-weight:700; color:#1a237e; }
.price .old { text-decoration:line-through; color:#999; font-size:13px; font-weight:400; margin-left:6px; }
.badge-stock { font-size:11px; padding:3px 8px; border-radius:4px; background:#e8f5e9; color:#2e7d32; }
.badge-out { background:#ffebee; color:#c62828; }

/* Category chips */
.cat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:14px; margin-bottom:30px; }
.cat-card { background:#fff; border-radius:10px; text-align:center; padding:18px 10px; box-shadow:0 1px 6px rgba(0,0,0,.08); }
.cat-card img { height:60px; object-fit:contain; margin:0 auto 8px; }

/* Forms */
.form-box { max-width:480px; margin:20px auto; background:#fff; padding:30px; border-radius:10px; box-shadow:0 1px 8px rgba(0,0,0,.08); }
.form-box h2 { margin-bottom:20px; }
.form-group { margin-bottom:15px; }
.form-group label { display:block; margin-bottom:5px; font-size:14px; font-weight:600; }
.form-group input, .form-group select, .form-group textarea { width:100%; padding:10px 12px; border:1px solid #ccc; border-radius:6px; font-size:14px; }
.alert { padding:12px 15px; border-radius:6px; margin-bottom:15px; font-size:14px; }
.alert-error { background:#fdecea; color:#b71c1c; }
.alert-success { background:#e8f5e9; color:#2e7d32; }

/* Product detail */
.product-detail { display:grid; grid-template-columns:1fr 1fr; gap:35px; background:#fff; padding:25px; border-radius:10px; }
.product-detail img { border:1px solid #eee; border-radius:8px; }
.qty-box { display:flex; align-items:center; gap:10px; margin:15px 0; }
.qty-box button { width:32px; height:32px; border:1px solid #ccc; background:#fff; cursor:pointer; }

/* Cart */
.cart-table { width:100%; background:#fff; border-collapse:collapse; border-radius:8px; overflow:hidden; }
.cart-table th, .cart-table td { padding:12px; border-bottom:1px solid #eee; text-align:left; font-size:14px; }
.cart-table img { width:60px; height:60px; object-fit:contain; }

/* Checkout QR */
.qr-payment-box { background:#fff; border:2px dashed #1a237e; border-radius:10px; padding:25px; text-align:center; }
.qr-payment-box img { max-width:220px; margin:15px auto; border:1px solid #eee; padding:10px; }
.upi-id { font-size:16px; font-weight:700; background:#f0f2f5; padding:8px 15px; border-radius:6px; display:inline-block; margin:10px 0; }

/* Footer */
.site-footer { background:#0d133d; color:#cfd3f5; margin-top:40px; padding:35px 0 0; }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:25px; padding-bottom:25px; }
.footer-grid h4 { color:#fff; margin-bottom:10px; }
.footer-grid a { color:#cfd3f5; line-height:2; }
.footer-bottom { text-align:center; padding:15px; background:#080b28; font-size:13px; }

.whatsapp-float { position:fixed; bottom:25px; right:25px; background:#25d366; color:#fff; width:55px; height:55px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:28px; box-shadow:0 2px 10px rgba(0,0,0,.3); z-index:99; }

/* Admin */
.admin-body { display:flex; min-height:100vh; background:#f0f2f5; font-family:'Segoe UI',Arial,sans-serif; }
.admin-sidebar { width:230px; background:#1a237e; color:#fff; padding:20px 0; flex-shrink:0; }
.admin-sidebar h2 { padding:0 20px 20px; font-size:18px; border-bottom:1px solid rgba(255,255,255,.15); margin-bottom:10px; }
.admin-sidebar a { display:block; padding:11px 20px; color:#dcdcf5; font-size:14px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background:#283593; color:#fff; }
.admin-content { flex:1; padding:25px; overflow-x:auto; }
.admin-topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.cards-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:15px; margin-bottom:25px; }
.stat-card { background:#fff; padding:20px; border-radius:10px; box-shadow:0 1px 6px rgba(0,0,0,.08); }
.stat-card .num { font-size:26px; font-weight:700; color:#1a237e; }
.admin-table { width:100%; background:#fff; border-collapse:collapse; border-radius:8px; overflow:hidden; box-shadow:0 1px 6px rgba(0,0,0,.06); }
.admin-table th { background:#1a237e; color:#fff; text-align:left; padding:12px; font-size:13px; }
.admin-table td { padding:10px 12px; border-bottom:1px solid #eee; font-size:13px; }
.admin-table img { width:45px; height:45px; object-fit:contain; }
.status-pill { padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; }
.status-pending { background:#fff3e0; color:#e65100; }
.status-verified, .status-delivered { background:#e8f5e9; color:#2e7d32; }
.status-failed, .status-cancelled { background:#ffebee; color:#c62828; }
.status-processing, .status-shipped { background:#e3f2fd; color:#1565c0; }
.admin-card { background:#fff; padding:25px; border-radius:10px; box-shadow:0 1px 6px rgba(0,0,0,.06); margin-bottom:20px; }

@media(max-width:768px){
  .product-detail { grid-template-columns:1fr; }
  .admin-body { flex-direction:column; }
  .admin-sidebar { width:100%; }
}
