/* ==========================================================
   Mingora Bazar - Main Stylesheet
   Brand colors: Primary #0F4C81 | Accent #FF6B00 | Success #28A745
   ========================================================== */

:root {
  --primary: #0F4C81;
  --primary-dark: #0d3d68;
  --accent: #FF6B00;
  --accent-dark: #e55f00;
  --success: #28A745;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
[dir="rtl"] body { font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 10px; border: none; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s; text-decoration:none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: #fff; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { background: #cbd5e1; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Card */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.card-pad { padding: 20px; }

/* Top bar */
.topbar { background: var(--primary); color: #fff; font-size: 12px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; }
.topbar a { color: #fff; }
.topbar a:hover, .topbar button:hover { color: var(--accent); }
.topbar button { background: none; border: none; color: #fff; font-weight: 700; font-size: 12px; }

/* Header */
header.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.header-main { display: flex; align-items: center; gap: 16px; padding: 12px 16px; max-width: 1280px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #1a6cb5); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:900; font-size:18px; }
.logo-text { font-weight: 900; font-size: 20px; color: var(--primary); line-height: 1.1; }
.logo-text span { color: var(--accent); }
.logo-tagline { font-size: 10px; color: var(--text-muted); margin-top: -2px; }

.search-form { flex: 1; max-width: 560px; margin: 0 auto; display: flex; }
.search-form input { flex: 1; padding: 10px 16px; border: 2px solid rgba(15,76,129,.15); border-right: none; border-radius: 999px 0 0 999px; outline: none; }
.search-form input:focus { border-color: var(--primary); }
.search-form button { background: var(--accent); color: #fff; border: none; padding: 0 18px; border-radius: 0 999px 999px 0; }

.header-icons { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.icon-link { position: relative; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; }
.icon-link:hover { color: var(--primary); }
.icon-badge { position: absolute; top: -6px; right: -10px; background: var(--accent); color: #fff; font-size: 10px; border-radius: 999px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }

.account-dropdown { position: relative; }
.account-menu { position: absolute; right: 0; top: 100%; margin-top: 8px; width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.1); padding: 8px 0; display: none; z-index: 60; font-size: 14px; }
.account-menu.show { display: block; }
.account-menu a, .account-menu button { display: block; width: 100%; text-align: left; padding: 8px 16px; background: none; border: none; color: var(--text); }
.account-menu a:hover, .account-menu button:hover { background: #f8fafc; }

.category-nav { background: #f8fafc; border-top: 1px solid var(--border); }
.category-nav .container { display: flex; gap: 24px; overflow-x: auto; font-size: 14px; font-weight: 500; }
.category-nav a { padding: 12px 0; white-space: nowrap; }
.category-nav a:hover { color: var(--accent); }

.mobile-menu-btn { display: none; background: none; border: none; }
.mobile-menu { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: none; }
.mobile-menu.show { display: block; }
.mobile-menu-panel { background: #fff; width: 280px; height: 100%; padding: 20px; overflow-y: auto; }
.mobile-menu-panel a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }

@media (max-width: 900px) {
  .search-form { display: none; }
  .mobile-menu-btn { display: block; }
  .category-nav { display: none; }
  .header-icons .icon-link.hide-mobile { display: none; }
}

/* Hero slider */
.hero-slider { position: relative; border-radius: 24px; overflow: hidden; height: 280px; background: linear-gradient(135deg, var(--primary), #123f6d); margin: 16px 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.3), transparent); }
.hero-content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 40px; max-width: 520px; }
.hero-content .eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.hero-content h1 { color: #fff; font-size: 32px; font-weight: 900; margin: 0 0 12px; line-height: 1.2; }
.hero-content p { color: #e2e8f0; margin: 0 0 20px; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85); border: none; border-radius: 999px; width: 36px; height: 36px; font-size: 18px; z-index: 10; }
.hero-nav.prev { left: 12px; } .hero-nav.next { right: 12px; }
.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.hero-dots button { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.5); border: none; }
.hero-dots button.active { width: 24px; background: var(--accent); }
@media (max-width: 700px) { .hero-slider { height: 220px; } .hero-content h1 { font-size: 22px; } .hero-content { padding: 0 24px; } }

/* Sections */
.section { padding: 24px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.section-heading h2 { font-size: 26px; font-weight: 900; margin: 0; color: #1e293b; }
.section-heading p { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }
.view-all { color: var(--primary); font-weight: 600; font-size: 14px; }
.view-all:hover { color: var(--accent); }

/* Trust badges */
.trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-badge { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.trust-badge .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(15,76,129,.1); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }
.trust-badge .title { font-weight: 600; font-size: 14px; }
.trust-badge .desc { font-size: 12px; color: var(--text-muted); }
@media (max-width: 700px) { .trust-badges { grid-template-columns: repeat(2, 1fr); } }

/* Category grid */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.category-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.category-item .thumb { width: 76px; height: 76px; border-radius: 18px; background: #fff; border: 1px solid var(--border); overflow: hidden; }
.category-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-item:hover .thumb { border-color: var(--accent); }
.category-item span { font-size: 12px; font-weight: 500; text-align: center; }
@media (min-width: 700px) { .category-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1000px) { .category-grid { grid-template-columns: repeat(8, 1fr); } }

/* Flash sale banner */
.flash-banner { background: linear-gradient(90deg, #dc2626, var(--accent)); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.flash-banner .title { color: #fff; font-weight: 900; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.countdown { display: flex; gap: 8px; }
.countdown .box { background: rgba(255,255,255,.2); border-radius: 8px; padding: 6px 12px; text-align: center; color: #fff; min-width: 48px; }
.countdown .box .num { font-weight: 700; font-size: 18px; line-height: 1; }
.countdown .box .label { font-size: 9px; text-transform: uppercase; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .product-grid.cols-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .product-grid.cols-6 { grid-template-columns: repeat(6, 1fr); } }

.product-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; position: relative; }
.product-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); border-color: rgba(15,76,129,.3); }
.product-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f1f5f9; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-thumb img { transform: scale(1.08); }
.badge-discount { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.badge-flash { position: absolute; top: 8px; right: 8px; background: #dc2626; color: #fff; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.badge-oos { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
.badge-oos span { color: #fff; font-weight: 600; font-size: 13px; border: 1px solid #fff; padding: 4px 10px; border-radius: 999px; }
.product-actions-float { position: absolute; bottom: 8px; right: 8px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity .2s; }
.product-card:hover .product-actions-float { opacity: 1; }
.icon-btn { width: 30px; height: 30px; border-radius: 999px; background: #fff; color: #475569; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.15); border: none; font-size: 13px; }
.icon-btn.active { background: var(--accent); color: #fff; }
.icon-btn.active.compare-btn { background: var(--primary); }

.product-info { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-name { font-size: 13.5px; font-weight: 500; color: #1e293b; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-name:hover { color: var(--primary); }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #f59e0b; }
.product-rating .count { color: var(--text-muted); }
.product-price { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.product-price .now { color: var(--primary); font-weight: 700; }
.product-price .old { color: #94a3b8; text-decoration: line-through; font-size: 12px; }
.add-cart-btn { margin-top: 8px; width: 100%; background: var(--primary); color: #fff; border: none; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.add-cart-btn:hover { background: var(--primary-dark); }
.add-cart-btn:disabled { background: #cbd5e1; }

/* Promo banners */
.promo-banners { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .promo-banners { grid-template-columns: 1fr 1fr; } }
.promo-banner { position: relative; border-radius: 16px; overflow: hidden; height: 150px; }
.promo-banner img { width: 100%; height: 100%; object-fit: cover; }
.promo-banner .overlay { position: absolute; inset: 0; background: rgba(0,0,0,.3); display: flex; align-items: flex-end; padding: 16px; }
.promo-banner span { color: #fff; font-weight: 700; font-size: 17px; }

/* Brand strip */
.brand-strip { display: flex; flex-wrap: wrap; gap: 16px; }
.brand-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 24px; display: flex; align-items: center; justify-content: center; }
.brand-item img { height: 32px; object-fit: contain; }
.brand-item:hover { border-color: var(--primary); }

/* Testimonials */
.testimonials-section { background: rgba(15,76,129,.05); padding: 40px 0; margin-top: 24px; }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 800px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { background: #fff; border-radius: 16px; padding: 20px; border: 1px solid var(--border); }
.testimonial-card .stars { color: #f59e0b; margin-bottom: 8px; }
.testimonial-card p { font-size: 14px; color: #475569; margin: 0 0 16px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.testimonial-author .name { font-weight: 600; font-size: 14px; }
.testimonial-author .role { font-size: 12px; color: var(--text-muted); }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 800px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.blog-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .body { padding: 16px; }
.blog-card .date { font-size: 11px; color: var(--text-muted); }
.blog-card h3 { font-size: 15px; margin: 4px 0 8px; }
.blog-card:hover h3 { color: var(--primary); }
.blog-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Footer */
footer.site-footer { background: #0b3a63; color: #cbd5e1; margin-top: 48px; }
.footer-newsletter { border-bottom: 1px solid rgba(255,255,255,.1); padding: 28px 0; }
.footer-newsletter .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-newsletter h3 { color: #fff; margin: 0 0 4px; }
.footer-newsletter p { margin: 0; font-size: 14px; }
.newsletter-form { display: flex; }
.newsletter-form input { padding: 10px 16px; border-radius: 999px 0 0 999px; border: none; outline: none; width: 260px; }
.newsletter-form button { background: var(--accent); border: none; color: #fff; padding: 0 20px; border-radius: 0 999px 999px 0; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }

.footer-columns { padding: 40px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; font-size: 14px; }
@media (min-width: 800px) { .footer-columns { grid-template-columns: 2fr repeat(3, 1fr); } }
.footer-columns h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.footer-columns ul li { margin-bottom: 8px; }
.footer-columns a:hover { color: var(--accent); }
.footer-brand-name { font-weight: 900; font-size: 24px; color: #fff; margin-bottom: 8px; }
.footer-brand-name span { color: var(--accent); }
.footer-contact-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.footer-socials { display: flex; gap: 10px; margin-top: 12px; }
.footer-socials a { width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.footer-socials a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 12px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* WhatsApp float button */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 999px; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 40; font-size: 28px; }
.whatsapp-float:hover { transform: scale(1.08); }

/* Page layout helpers */
.page-title { font-size: 26px; font-weight: 900; margin-bottom: 20px; }
.breadcrumb { font-size: 12px; color: #94a3b8; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--primary); }

/* Shop page (filters + grid) */
.shop-layout { display: flex; gap: 24px; align-items: flex-start; }
.filters-sidebar { width: 260px; flex-shrink: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 96px; }
.filters-sidebar h4 { font-size: 14px; margin: 0 0 8px; }
.filter-group { margin-bottom: 20px; max-height: 180px; overflow-y: auto; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; padding: 3px 0; cursor: pointer; }
.price-range-inputs { display: flex; gap: 8px; }
.price-range-inputs input { width: 50%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; margin-bottom: 16px; font-size: 13px; }
.shop-toolbar select { border: none; outline: none; font-size: 13px; }
@media (max-width: 900px) { .filters-sidebar { display: none; } }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; outline: none; }
.form-control:focus { border-color: var(--primary); }
.form-error { color: #ef4444; font-size: 12px; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.auth-box { max-width: 420px; margin: 60px auto; }
.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.alert-error { background: #fef2f2; color: #dc2626; }
.alert-success { background: #f0fdf4; color: #16a34a; }

/* Product detail page */
.product-detail-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .product-detail-grid { grid-template-columns: 1fr 1fr; } }
.gallery-main { aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--border); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumbs img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 2px solid var(--border); cursor: pointer; flex-shrink: 0; }
.gallery-thumbs img.active { border-color: var(--accent); }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; font-weight: 500; background: #fff; }
.variant-btn.active { border-color: var(--primary); background: rgba(15,76,129,.1); color: var(--primary); }
.qty-selector { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; }
.qty-selector button { border: none; background: none; padding: 8px 12px; font-size: 16px; }
.qty-selector span { padding: 0 12px; font-weight: 600; }
.tab-nav { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-nav button { background: none; border: none; padding-bottom: 12px; font-weight: 600; font-size: 14px; color: #94a3b8; border-bottom: 2px solid transparent; }
.tab-nav button.active { color: var(--primary); border-color: var(--accent); }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px; }
@media (max-width: 600px) { .spec-table { grid-template-columns: 1fr; } }
.spec-row { display: flex; justify-content: space-between; border-bottom: 1px solid #f1f5f9; padding: 8px 0; font-size: 14px; }
.review-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.star-input { display: flex; gap: 4px; margin-bottom: 10px; }
.star-input button { background: none; border: none; font-size: 22px; color: #cbd5e1; }
.star-input button.active { color: #f59e0b; }

/* Cart page */
.cart-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.cart-item img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.cart-summary { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; height: fit-content; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.summary-row.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--border); padding-top: 8px; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1000px) { .checkout-grid { grid-template-columns: 2fr 1fr; } }
.payment-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; margin-bottom: 10px; }
.payment-option.selected { border-color: var(--primary); background: rgba(15,76,129,.05); }
.payment-details-box { background: #f8fafc; border-radius: 12px; padding: 16px; margin-top: 10px; font-size: 14px; }
.upload-box { display: flex; align-items: center; gap: 8px; border: 1.5px dashed var(--border); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--text-muted); cursor: pointer; }

/* Invoice */
.invoice-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.invoice-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.invoice-table th { text-align: left; color: var(--text-muted); border-bottom: 1px solid var(--border); padding: 8px 0; }
.invoice-table td { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }

/* Badges */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: capitalize; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-indigo { background: #e0e7ff; color: #3730a3; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-cyan { background: #cffafe; color: #155e75; }
.badge-sky { background: #e0f2fe; color: #075985; }
.badge-emerald { background: #d1fae5; color: #065f46; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Account page */
.account-layout { display: flex; gap: 24px; flex-wrap: wrap; }
.account-sidebar { width: 220px; flex-shrink: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.account-sidebar a, .account-sidebar button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; width: 100%; text-align: left; background: none; border: none; color: var(--text); }
.account-sidebar a.active { background: var(--primary); color: #fff; }
.account-sidebar a:hover:not(.active) { background: #f8fafc; }
.account-content { flex: 1; min-width: 280px; }

.spinner { width: 32px; height: 32px; border: 4px solid var(--primary); border-top-color: transparent; border-radius: 999px; animation: spin 0.8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state .icon-lg { font-size: 60px; margin-bottom: 12px; opacity: .4; }

@media print {
  header, footer, .no-print { display: none !important; }
}

table.compare-table { width: 100%; border-collapse: collapse; min-width: 700px; }
table.compare-table th, table.compare-table td { border: 1px solid var(--border); padding: 12px; text-align: center; font-size: 13px; }
table.compare-table th { background: #fff; vertical-align: top; }
table.compare-table td:first-child, table.compare-table th:first-child { text-align: left; background: #f8fafc; font-weight: 600; }

/* Admin panel */
.admin-body { display: flex; min-height: 100vh; background: #f1f5f9; }
.admin-sidebar { width: 250px; flex-shrink: 0; background: #0b3a63; color: #cbd5e1; display: flex; flex-direction: column; }
.admin-sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 20px; }
.admin-nav { flex: 1; padding: 0 12px; overflow-y: auto; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; margin-bottom: 2px; color: #cbd5e1; }
.admin-nav a:hover { background: rgba(255,255,255,.08); }
.admin-nav a.active { background: var(--accent); color: #fff; }
.admin-sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-footer a, .admin-sidebar-footer button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; width: 100%; background: none; border: none; color: #cbd5e1; text-align: left; }
.admin-sidebar-footer button { color: #fca5a5; }
.admin-main { flex: 1; min-width: 0; padding: 24px; }
.admin-topbar { display: none; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 16px; align-items: center; gap: 10px; }
@media (max-width: 950px) {
  .admin-sidebar { position: fixed; left: -260px; top: 0; height: 100%; z-index: 100; transition: left .2s; }
  .admin-sidebar.show { left: 0; }
  .admin-topbar { display: flex; }
  .admin-main { padding: 16px; }
}
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
@media (min-width: 900px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.stat-card .icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 10px; font-size: 18px; }
.stat-card .value { font-size: 24px; font-weight: 900; }
.stat-card .label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.data-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
table.data-table th { text-align: left; background: #f8fafc; color: var(--text-muted); padding: 12px; font-weight: 600; }
table.data-table td { padding: 12px; border-top: 1px solid #f1f5f9; }
table.data-table tr:hover td { background: #f8fafc; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.show { display: flex; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; }
.modal-body { padding: 20px; }
.modal-header button { background: none; border: none; font-size: 20px; }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-tabs button, .admin-tabs a { padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--border); color: var(--text-muted); }
.admin-tabs button.active, .admin-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.chart-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.bar-row { margin-bottom: 10px; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.bar-track { height: 10px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--success); border-radius: 999px; }
