/* ONE TECH — clean brand store theme (white / navy / blue accent) */
:root {
  --navy: #1d2a5e;
  --navy-dark: #141d42;
  --accent: #00b8fc;
  --accent-dark: #009ad4;
  --text: #1b1b1b;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --border: #e6ebf2;
  --green: #25d366;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(29, 42, 94, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-head h2 { font-size: 1.6rem; color: var(--navy); }
.see-all { color: var(--accent-dark); font-weight: 700; font-size: 0.9rem; }

/* buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 800; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: 0.2s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* topbar */
.topbar { background: var(--navy); color: #fff; font-size: 0.8rem; padding: 8px 0; }
.topbar-inner { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; text-decoration: underline; }
.topbar-sep { opacity: 0.4; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 20px; }
.logo-img { height: 40px; }
.main-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.main-nav a { padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; color: #334155; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: var(--bg-soft); color: var(--navy); }
.header-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.icon-btn { position: relative; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 50%; width: 42px; height: 42px; font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cart-count { position: absolute; top: -4px; right: -4px; background: #ff2847; color: #fff; font-size: 0.68rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.search-bar { border-top: 1px solid var(--border); padding: 12px 0; background: #fff; }
.search-bar-inner { position: relative; display: flex; gap: 8px; }
.search-bar input { flex: 1; padding: 12px 16px; border: 2px solid var(--border); border-radius: 999px; font-size: 0.95rem; outline: none; }
.search-bar input:focus { border-color: var(--accent); }
.search-bar button { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.search-results { position: absolute; top: 100%; left: 20px; right: 20px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); max-height: 380px; overflow: auto; z-index: 200; }
.search-results:empty { display: none; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--bg-soft); }
.sr-item:hover { background: var(--bg-soft); }
.sr-item img { width: 48px; height: 48px; object-fit: contain; }
.sr-item .t { font-size: 0.85rem; font-weight: 600; }
.sr-item .p { color: var(--accent-dark); font-weight: 800; font-size: 0.85rem; }
.mobile-nav { display: none; }

/* hero slider */
.hero-slider { position: relative; overflow: hidden; }
.slides { position: relative; }
.slide { display: none; color: #fff; }
.slide.active { display: block; animation: slideIn 0.6s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.slide-inner { display: flex; align-items: center; gap: 40px; padding: 60px 20px; min-height: 380px; }
.slide-text { flex: 1; }
.slide-text h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 14px; letter-spacing: 0.5px; }
.slide-text p { opacity: 0.92; margin-bottom: 24px; max-width: 460px; font-size: 1.05rem; }
.slide-img { flex: 1; display: flex; justify-content: center; }
.slide-img img { max-height: 300px; filter: drop-shadow(0 24px 44px rgba(0,0,0,0.35)); }
.btn-light { background: #fff; color: #1d2a5e; }
.btn-light:hover { background: #f1f5f9; }
.btn-outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: #1d2a5e; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.25); border: none; color: #fff; font-size: 2rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; z-index: 5; line-height: 1; }
.slide-arrow:hover { background: rgba(255,255,255,0.45); }
.slide-arrow.prev { left: 18px; }
.slide-arrow.next { right: 18px; }
.slide-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.slide-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; padding: 0; }
.slide-dots button.active { background: #fff; transform: scale(1.25); }

/* hero (legacy single) */
.hero { background: linear-gradient(120deg, var(--navy) 0%, #2b3f8f 60%, #00b8fc 130%); color: #fff; }
.hero-inner { display: flex; align-items: center; gap: 40px; padding: 56px 20px; }
.hero-text { flex: 1; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.35); padding: 6px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 16px; }
.hero-text h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 14px; }
.hero-text p { opacity: 0.9; margin-bottom: 24px; max-width: 480px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn-primary { background: #fff; color: var(--navy); }
.hero-img { flex: 1; display: flex; justify-content: center; }
.hero-img img { max-height: 320px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); }

/* trustbar */
.trustbar { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px; }
.trust-item { display: flex; gap: 12px; align-items: center; }
.trust-item span { font-size: 1.8rem; }
.trust-item b { display: block; font-size: 0.9rem; color: var(--navy); }
.trust-item small { color: var(--muted); font-size: 0.78rem; }

/* category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 12px; text-align: center; cursor: pointer; transition: 0.2s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.cat-tile .ic { font-size: 2rem; margin-bottom: 8px; }
.cat-tile .nm { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.cat-tile .ct { font-size: 0.75rem; color: var(--muted); }

/* product cards */
.product-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.product-row .p-card { min-width: 230px; max-width: 230px; scroll-snap-align: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.p-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.p-img { aspect-ratio: 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 16px; position: relative; }
.p-img img { max-height: 100%; object-fit: contain; }
.p-off { position: absolute; top: 10px; left: 10px; background: #ff2847; color: #fff; font-size: 0.7rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.p-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-cat { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.p-title { font-size: 0.88rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.p-price { display: flex; gap: 8px; align-items: baseline; }
.p-now { color: var(--navy); font-weight: 800; font-size: 1.05rem; }
.p-was { color: var(--muted); text-decoration: line-through; font-size: 0.82rem; }
.p-add { margin-top: auto; background: var(--navy); color: #fff; border: none; border-radius: 10px; padding: 10px; font-weight: 700; cursor: pointer; font-size: 0.88rem; }
.p-add:hover { background: var(--navy-dark); }

/* catalog filters */
.catalog-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.catalog-filters select, .catalog-filters input { padding: 10px 14px; border: 2px solid var(--border); border-radius: 10px; font-size: 0.88rem; outline: none; }
.catalog-filters input { flex: 1; min-width: 180px; }
.load-more-wrap { text-align: center; padding: 28px 0 10px; }

/* why us */
.whyus { background: var(--navy); color: #fff; margin-top: 56px; padding: 56px 0; }
.whyus h2 { text-align: center; margin-bottom: 32px; }
.whyus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.whyus-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.whyus-card span { font-size: 2.2rem; }
.whyus-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.whyus-card p { opacity: 0.85; font-size: 0.88rem; }

/* footer */
.site-footer { background: #111a35; color: #cbd5e1; padding: 48px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 0.95rem; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { font-size: 0.86rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 0; font-size: 0.78rem; text-align: center; }

/* whatsapp float */
.wa-float { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 8px 24px rgba(37,211,102,0.45); z-index: 90; border: none; cursor: pointer; }
.wa-float-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 90; }
.wa-float-wrap .wa-float { position: static; }
.wa-popup { position: absolute; bottom: 66px; right: 0; background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 12px; width: 230px; display: none; }
.wa-popup.open { display: block; }
.wa-popup-title { font-size: .8rem; font-weight: 700; color: #1d2a5e; margin-bottom: 8px; }
.wa-popup a { display: block; padding: 10px 12px; border-radius: 10px; color: #15803d; font-weight: 700; font-size: .9rem; }
.wa-popup a:hover { background: #f0fdf4; }

/* drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.5); opacity: 0; pointer-events: none; transition: 0.25s; z-index: 200; }
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: -400px; width: 380px; max-width: 92vw; height: 100vh; background: #fff; z-index: 201; display: flex; flex-direction: column; transition: 0.3s; box-shadow: -10px 0 40px rgba(0,0,0,0.15); }
.cart-drawer.open { right: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head button { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 16px 20px; }
.cart-item { display: flex; gap: 12px; margin-bottom: 14px; }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: var(--bg-soft); border-radius: 10px; }
.ci-info { flex: 1; font-size: 0.85rem; }
.ci-info b { display: block; margin-bottom: 4px; }
.qty-ctrl { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.qty-ctrl button { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 800; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; color: var(--navy); }
.checkout-btn { width: 100%; background: var(--green); color: #fff; border: none; border-radius: 12px; padding: 14px; font-size: 1rem; font-weight: 800; cursor: pointer; }
.empty-cart { text-align: center; color: var(--muted); padding: 40px 0; }

/* modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.55); display: none; align-items: center; justify-content: center; z-index: 300; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 18px; max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto; padding: 28px; position: relative; }
.modal-box.wide { max-width: 720px; }
.modal-x { position: absolute; top: 14px; right: 16px; background: var(--bg-soft); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pm-grid img { width: 100%; border-radius: 12px; background: var(--bg-soft); }
.pm-grid h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.15rem; }
.pm-desc { font-size: 0.88rem; color: var(--muted); margin: 12px 0; max-height: 180px; overflow: auto; }
.pm-actions { display: flex; gap: 10px; margin-top: 16px; }
.pm-actions .p-add { flex: 1; }
.wa-order { flex: 1; background: var(--green); color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; }

/* checkout form */
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-grid .full { grid-column: 1 / -1; }
.co-grid label { font-size: 0.8rem; font-weight: 700; color: var(--navy); display: block; margin-bottom: 4px; }
.co-grid input, .co-grid select, .co-grid textarea { width: 100%; padding: 11px 13px; border: 2px solid var(--border); border-radius: 10px; font-size: 0.9rem; outline: none; }
.co-grid input:focus { border-color: var(--accent); }
.co-summary { background: var(--bg-soft); border-radius: 12px; padding: 16px; margin: 16px 0; font-size: 0.9rem; }
.co-summary .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.co-summary .grand { font-weight: 800; color: var(--navy); font-size: 1.05rem; border-top: 1px solid var(--border); padding-top: 8px; }

/* toasts */
#toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 0.88rem; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); }
.toast.success { background: #15803d; }
.toast.error { background: #dc2626; }

.done-check { font-size: 3.5rem; text-align: center; }
.done-box { text-align: center; }
.done-box h3 { color: var(--navy); margin: 12px 0 8px; }
.done-box p { color: var(--muted); font-size: 0.92rem; margin-bottom: 6px; }
.done-id { display: inline-block; background: var(--bg-soft); border: 1px dashed var(--navy); padding: 8px 18px; border-radius: 10px; font-weight: 800; color: var(--navy); margin: 12px 0; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .mobile-nav.open { display: block; position: sticky; top: 57px; z-index: 99; background: #fff; border-bottom: 1px solid var(--border); padding: 10px 20px; }
  .mobile-nav a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--bg-soft); font-weight: 600; font-size: 0.9rem; }
  .slide-inner { flex-direction: column; text-align: center; padding: 44px 20px; min-height: 0; }
  .slide-text h1 { font-size: 1.8rem; }
  .slide-ctas, .hero-ctas { justify-content: center; }
  .slide-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .slide-arrow.prev { left: 8px; }
  .slide-arrow.next { right: 8px; }
  .hero-inner { flex-direction: column; text-align: center; padding: 40px 20px; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-ctas { justify-content: center; }
  .trustbar-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pm-grid { grid-template-columns: 1fr; }
  .co-grid { grid-template-columns: 1fr; }
}

/* Brand selection boxes */
.brand-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.brand-box { border-radius: var(--radius); padding: 26px 12px; text-align: center; cursor: pointer; transition: 0.2s; color: #fff; border: 2px solid transparent; }
.brand-box:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.brand-box.active { border-color: #fff; box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.brand-box .bn { font-weight: 800; font-size: 1.05rem; letter-spacing: .5px; }
.brand-box .bc { font-size: 0.78rem; opacity: .9; margin-top: 4px; }
.brand-logitech { background: linear-gradient(135deg, #00a9ce, #0077b6); }
.brand-ronin { background: linear-gradient(135deg, #dc2626, #7f1d1d); }
.brand-pakistan-store { background: linear-gradient(135deg, #16a34a, #14532d); }
.brand-joyroom { background: linear-gradient(135deg, #f97316, #c2410c); }
@media (max-width: 640px) { .brand-boxes { grid-template-columns: repeat(2, 1fr); } }

/* Trust badges at very bottom */
.trustbar-bottom { border-bottom: none; border-top: 3px solid var(--accent); margin-top: 30px; }

/* Header: logo + brand name + centered Bismillah */
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-text { font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: 1px; white-space: nowrap; }
.logo-text .logo-one { color: var(--accent); }
.header-bismillah { flex: 1; text-align: center; font-family: 'Amiri', serif; font-size: 1.5rem; color: var(--navy); direction: rtl; white-space: nowrap; overflow: hidden; }
.header-actions { margin-left: auto; flex-shrink: 0; }
@media (max-width: 640px) {
  .header-bismillah { font-size: 1.05rem; }
  .logo-text { font-size: 1.05rem; }
}
