/* Wali Mart — storefront styles (orange brand) */
:root {
  --brand: #FF7A00;
  --brand-600: #E56E00;
  --brand-50: #FFF4E8;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f7f8;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 20px; padding-bottom: 40px; min-height: 60vh; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; border: 1px solid transparent; font-size: 14px; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-600); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-50); }
.btn-sm { padding: 7px 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Topbar / header */
.topbar { background: var(--brand); color: #fff; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; }
.header { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 16px; }
.logo { font-size: 22px; font-weight: 800; }
.logo span { color: var(--brand); }
.search { flex: 1; display: flex; gap: 6px; }
.search input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; outline: none; }
.search input:focus { border-color: var(--brand); }
.search button { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 0 16px; font-weight: 600; cursor: pointer; }
.nav { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; }
.cart-link { position: relative; }
.badge { position: absolute; top: -8px; right: -12px; background: var(--brand); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 6px; }
.admin-link { color: var(--brand); }
.catbar { border-top: 1px solid #f0f0f0; }
.catbar-inner { display: flex; gap: 20px; overflow-x: auto; padding: 8px 16px; font-size: 13px; color: var(--muted); }
.catbar-inner a { white-space: nowrap; }
.catbar-inner a:hover, .nav a:hover, .search + *, .footer a:hover { color: var(--brand); }

/* Flash */
.flash { padding: 10px 14px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Hero */
.hero { background: linear-gradient(90deg, var(--brand), #ff9a3d); color: #fff; border-radius: 16px; padding: 40px; margin-top: 12px; }
.hero h1 { margin: 0 0 10px; font-size: 30px; }
.hero p { margin: 0 0 18px; max-width: 520px; opacity: .95; }
.hero .btn { background: #fff; color: var(--brand); }

/* USP */
.usp { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 18px; }
.usp .card { display: flex; align-items: center; gap: 10px; font-weight: 500; }

/* Cards / grids */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.section-title { font-size: 20px; font-weight: 700; margin: 28px 0 14px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-8 { grid-template-columns: repeat(8, 1fr); }

/* Category tiles */
.cat-tile { text-align: center; }
.cat-tile img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; }
.cat-tile span { font-size: 12px; font-weight: 500; }

/* Product card */
.product-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.product-card .pimg { position: relative; background: #fafafa; }
.product-card .pimg img { height: 170px; width: 100%; object-fit: cover; }
.discount-badge { position: absolute; top: 8px; left: 8px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.product-card .pbody { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.pname { font-weight: 500; line-height: 1.3; min-height: 38px; }
.punit { font-size: 12px; color: var(--muted); margin: 2px 0; }
.stars { color: #f59e0b; font-size: 12px; }
.stars small { color: #9ca3af; }
.price-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.price { font-weight: 700; }
.mrp { color: #9ca3af; text-decoration: line-through; font-size: 13px; }
.oos { background: #f3f4f6; color: #9ca3af; text-align: center; border-radius: 8px; padding: 8px; font-size: 14px; }

/* Layout helpers */
.layout-sidebar { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.muted { color: var(--muted); font-size: 14px; }
select, .input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; outline: none; background: #fff; }
select:focus, .input:focus { border-color: var(--brand); }
.label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.field { margin-bottom: 12px; }

/* Cart / summary */
.summary { position: sticky; top: 90px; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty a, .qty button { padding: 6px 12px; background: #fff; border: 0; cursor: pointer; font-size: 16px; color: var(--ink); }
.qty span { padding: 6px 10px; min-width: 34px; text-align: center; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 12px; align-items: center; }
.cart-item img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: #fafafa; color: var(--muted); font-weight: 600; }
.pill { border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: 12px; font-weight: 600; padding: 3px 10px; display: inline-block; }

/* Auth */
.auth-box { max-width: 440px; margin: 40px auto; }
.tabs { display: flex; background: #f1f1f3; border-radius: 8px; padding: 4px; margin-bottom: 16px; }
.tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 6px; font-size: 14px; }
.tabs a.active { background: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Tracking */
.track { display: flex; justify-content: space-between; }
.track .step { flex: 1; text-align: center; font-size: 11px; }
.track .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 4px; background: #e5e7eb; color: #6b7280; font-size: 13px; }
.track .dot.on { background: var(--brand); color: #fff; }

/* Utility */
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.method { border: 1px solid var(--line); border-radius: 8px; padding: 12px; text-align: center; font-size: 14px; cursor: pointer; }
.method input { display: none; }
.method.sel { border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 600; }

/* ---- Hero carousel ---- */
.hero-carousel { position: relative; margin-top: 12px; border-radius: 16px; overflow: hidden; }
.hero-track { display: flex; transition: transform .5s ease; }
.hero-slide { min-width: 100%; box-sizing: border-box; padding: 44px 40px; color: #fff; text-decoration: none; min-height: 210px; display: flex; align-items: center; }
.hero-slide h1 { margin: 0 0 8px; font-size: 30px; }
.hero-slide p { margin: 0 0 16px; opacity: .95; max-width: 520px; }
.hero-btn { background: #fff; color: var(--brand); }
.hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button.on { background: #fff; }

/* ---- Strip banner (scrolling) ---- */
.strip-banner { background: #1a1a1a; color: #fff; overflow: hidden; white-space: nowrap; }
.strip-track { display: inline-flex; gap: 40px; padding: 8px 0; animation: strip 22s linear infinite; }
.strip-item { color: #fff; font-size: 13px; font-weight: 500; }
.strip-item:hover { color: #ffd8b0; }
@keyframes strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Category scroll ---- */
.cat-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.cat-scroll .cat-tile { min-width: 104px; padding: 14px 8px; }
.cat-ico { font-size: 30px; display: block; margin-bottom: 6px; }

/* ---- Filters ---- */
.filter-list { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.filter-list a { padding: 4px 6px; border-radius: 6px; color: #374151; }
.filter-list a.on, .filter-list a:hover { background: var(--brand-50); color: var(--brand); font-weight: 600; }

/* ---- Side banner ---- */
.side-banner { position: fixed; right: 0; top: 40%; z-index: 35; color: #fff; text-decoration: none; padding: 14px 16px; border-radius: 10px 0 0 10px; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: 180px; }
.side-banner strong { display: block; font-size: 14px; }
.side-banner small { opacity: .9; font-size: 12px; }
.side-close { position: absolute; top: 2px; right: 6px; font-size: 16px; cursor: pointer; }

/* ---- WhatsApp float ---- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* ---- Popup ---- */
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.popup-box { background: #fff; border-radius: 14px; max-width: 380px; width: 100%; padding: 28px; text-align: center; position: relative; }
.popup-box img { border-radius: 10px; margin-bottom: 12px; }
.popup-box h3 { margin: 4px 0; }
.popup-close, .side-close { cursor: pointer; }
.popup-close { position: absolute; top: 8px; right: 14px; font-size: 22px; color: #9ca3af; }

/* ---- Payment cards ---- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 12px; }
.pay-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; position: relative; }
.pay-card.primary { border-color: var(--brand); background: var(--brand-50); }
.pay-card > div { margin: 2px 0; }
.pay-label { font-weight: 700; margin-bottom: 6px; }
.pay-badge { position: absolute; top: 10px; right: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pay-qr { width: 150px; height: 150px; object-fit: contain; display: block; margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-8 { grid-template-columns: repeat(4,1fr); }
  .usp { grid-template-columns: repeat(2,1fr); }
  .layout-sidebar { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .search { display: none; }
  .cart-item { grid-template-columns: 60px 1fr auto; }
  .hero-slide { padding: 30px 22px; min-height: 170px; }
  .hero-slide h1 { font-size: 22px; }
  .side-banner { display: none; }
  .topbar-inner span { font-size: 11px; }
}
/* ---- Bold store timing bar ---- */
.topbar-inner span { font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.topbar { padding: 2px 0; }

/* ---- Bigger category icons ---- */
.cat-scroll .cat-tile { min-width: 118px; padding: 16px 8px; }
.cat-ico { font-size: 42px; display: block; margin-bottom: 8px; line-height: 1; }
.cat-tile span { font-size: 13px; font-weight: 600; }

/* ---- OTP + captcha box ---- */
.otp-code { background: var(--brand-50); border: 1px dashed var(--brand); border-radius: 10px; padding: 16px; text-align: center; margin-bottom: 16px; color: #7a3d00; }
.otp-code span { display: block; font-size: 30px; font-weight: 800; letter-spacing: 8px; color: var(--brand); margin: 6px 0; }
.otp-code small { color: #9a6a3a; }

/* ---- Promo cards row ---- */
.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.promo-card { display: flex; align-items: center; justify-content: space-between; border-radius: 14px; padding: 20px; color: #fff; overflow: hidden; min-height: 120px; }
.promo-text strong { display: block; font-size: 20px; }
.promo-text span { display: block; opacity: .95; margin: 4px 0; }
.promo-text em { font-style: normal; font-weight: 700; }
.promo-ico { width: 84px; height: 84px; border-radius: 12px; }

/* ---- Promo band ---- */
.promo-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(100deg, #0F9D58, #34c47a); color: #fff; border-radius: 14px; padding: 24px 28px; margin: 28px 0; flex-wrap: wrap; }
.promo-band h3 { margin: 0; font-size: 22px; }
.promo-band p { margin: 4px 0 0; opacity: .95; }
.promo-band .btn { background: #fff; color: #0F9D58; }

/* ---- Page (policy) body ---- */
.page-body h2 { margin-top: 0; }
.page-body p { line-height: 1.7; color: #333; }

/* ---- Dark footer ---- */
.footer { background: #0f1113; color: #cfd3d7; margin-top: 40px; border: 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.4fr; gap: 28px; padding: 40px 16px 24px; }
.footer .footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer .footer-logo span { color: var(--brand); }
.footer p { color: #9aa0a6; font-size: 14px; line-height: 1.6; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.footer a { color: #cfd3d7; display: block; padding: 3px 0; font-size: 14px; }
.footer a:hover { color: var(--brand); }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: #23262a; color: #fff; display: grid; place-items: center; padding: 0; }
.socials a:hover { background: var(--brand); color: #fff; }
.footer-pay { color: #9aa0a6; font-size: 13px; padding: 14px 16px; border-top: 1px solid #23262a; }
.footer-pay span { color: #fff; font-weight: 600; }
.footer .copyright { border-top: 1px solid #23262a; color: #9aa0a6; padding: 16px; text-align: center; font-size: 13px; }
.footer .copyright a { display: inline; color: #cfd3d7; }
.footer .copyright a:hover { color: var(--brand); }

/* ---- Customer dashboard ---- */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.dash-stat { text-align: center; padding: 18px; }
.dash-stat .n { font-size: 26px; font-weight: 800; color: var(--brand); }
.dash-stat .l { color: var(--muted); font-size: 13px; }
.dash-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
  .promo-row { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .nav { gap: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; gap: 2px; text-align: center; }
  .topbar-inner span { font-size: 13px; }
}
