/* BlessedJeph Electronics: design system (storefront + admin) */
:root {
    --brand: #0a43b8;
    --brand-dark: #072f85;
    --brand-soft: #e8efff;
    --accent: #e60000;
    --accent-dark: #c20000;
    --ink: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --bg: #f5f7fb;
    --card: #ffffff;
    --ok: #067647;
    --ok-soft: #dcfae6;
    --warn: #b54708;
    --warn-soft: #fef0c7;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; }
.ic { flex-shrink: 0; vertical-align: -.2em; }
.container { max-width: 1280px; margin: 0 auto; padding: 20px 16px 40px; }

/* ---------- Buttons ---------- */
.btn, button.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brand); color: #fff; border: 0; padding: 11px 20px; border-radius: 999px;
    font: 700 14px var(--font); cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); box-shadow: 0 6px 16px rgba(230, 0, 0, .25); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: #fff; color: var(--accent); border: 1px solid #fecdca; }
.btn-danger:hover { background: #fef3f2; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Promo bar + header ---------- */
.promo-bar { background: var(--ink); color: #d0d5dd; font-size: 12.5px; text-align: center; padding: 8px 12px; }
.promo-bar .ic { color: #fff; }
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.bar { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--brand); letter-spacing: -.02em; }
.brand img { height: 44px; }
.brand b { color: var(--accent); }

.search { flex: 1; display: flex; align-items: center; gap: 10px; background: #f2f4f7; border: 1.5px solid transparent; border-radius: 999px; padding: 4px 4px 4px 16px; max-width: 680px; transition: border-color .15s, background .15s; }
.search:focus-within { background: #fff; border-color: var(--brand); }
.search .ic { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 14px var(--font); padding: 10px 0; outline: 0; }
.search button { border: 0; background: var(--accent); color: #fff; font: 700 14px var(--font); padding: 10px 24px; border-radius: 999px; cursor: pointer; }
.search button:hover { background: var(--accent-dark); }

.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; position: relative; }
.nav-link:hover { background: var(--bg); }
.cart-count { position: absolute; top: 2px; left: 26px; background: var(--accent); color: #fff; font: 700 11px var(--font); font-style: normal; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 60; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.dropdown-menu a:not(.btn):hover { background: var(--bg); }
.dropdown-menu .btn { margin-bottom: 6px; }

/* ---------- Home slider ---------- */
.slider { position: relative; border-radius: 24px; overflow: hidden; margin-bottom: 20px; aspect-ratio: 16 / 5.6; min-height: 260px; box-shadow: var(--shadow); background: var(--brand); }
.slides { display: flex; height: 100%; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.slide { min-width: 100%; position: relative; display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; }
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 20, 60, .78) 0%, rgba(7, 20, 60, .35) 55%, rgba(7, 20, 60, 0) 100%); }
.slide-content { position: relative; padding: 0 7%; max-width: 680px; }
.slide-kicker { display: inline-block; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; backdrop-filter: blur(6px); }
.slide h2 { font-size: clamp(26px, 4.4vw, 52px); margin: 0 0 10px; font-weight: 800; }
.slide p { font-size: clamp(14px, 1.6vw, 18px); margin: 0 0 22px; opacity: .95; max-width: 520px; }
.slide.g1 { background-image: linear-gradient(120deg, #0a43b8, #1b7cff); }
.slide.g2 { background-image: linear-gradient(120deg, #7a0b0b, #e60000 70%, #ff6b4a); }
.slide.g3 { background-image: linear-gradient(120deg, #052a6e, #0a43b8 55%, #00b3ff); }
.slide.g1::before, .slide.g2::before, .slide.g3::before { background: none; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); z-index: 2; transition: transform .15s; }
.slider-btn:hover { transform: translateY(-50%) scale(1.08); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; padding: 6px 10px; background: rgba(0, 0, 0, .25); border-radius: 999px; backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .6); cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.dot.active { width: 26px; background: #fff; }

/* ---------- Trust strip, sections, tiles, cards ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.trust-item { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.trust-item .ic-wrap { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span { font-size: 12.5px; color: var(--muted); }

.section { background: var(--card); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 20px; overflow: hidden; }
.section-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 4px; }
.section-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.section-head a { color: var(--brand); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.section-intro { padding: 12px 20px 20px; margin: 0; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; padding: 16px 20px 22px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 600; font-size: 13px; padding: 10px 4px; border-radius: 14px; transition: background .15s, transform .15s; }
.tile:hover { background: var(--brand-soft); transform: translateY(-2px); }
.tile .tile-media { width: 78px; height: 78px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; overflow: hidden; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(16, 24, 40, .12); }
.tile .tile-media img { width: 100%; height: 100%; object-fit: cover; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 16px 20px 22px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c7d7fe; }
.card-media { position: relative; border-radius: 12px; overflow: hidden; background: #f2f4f7; aspect-ratio: 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.05); }
.card h3 { margin: 12px 4px 6px; font-size: 14px; font-weight: 600; line-height: 1.35; height: 38px; overflow: hidden; }
.price { margin: 0 4px 4px; font-size: 17px; font-weight: 800; color: var(--ink); }
.badge { position: absolute; top: 8px; left: 8px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-low { background: var(--warn-soft); color: var(--warn); }
.badge-out { background: #fee4e2; color: var(--accent); }

.cta-band { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.cta { border-radius: 20px; padding: 28px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta h3 { margin: 0; font-size: 22px; }
.cta p { margin: 0 0 6px; opacity: .92; }
.cta.blue { background: linear-gradient(120deg, var(--brand), #2f7bff); }
.cta.red { background: linear-gradient(120deg, #a80000, var(--accent)); }
.cta .btn { background: #fff; color: var(--ink); box-shadow: none; }

/* ---------- Inner page hero + panels + forms ---------- */
.hero { background: linear-gradient(120deg, var(--brand), #1b7cff); color: #fff; border-radius: 22px; padding: 34px 28px; margin-bottom: 18px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hero h1 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; position: relative; }
.hero p { max-width: 640px; margin: 0 0 14px; opacity: .95; position: relative; }
.hero .btn { background: #fff; color: var(--brand); box-shadow: none; position: relative; }
.breadcrumb { font-size: 13px; margin-bottom: 8px; opacity: .92; position: relative; }
.breadcrumb a { text-decoration: underline; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 18px; }
.panel > h2:first-child, .panel > h1:first-child { margin-top: 0; }
.form { max-width: 460px; margin-left: auto; margin-right: auto; }
.err { color: var(--accent); font-weight: 600; }

label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=url], select, textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: 500 14.5px var(--font); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10, 67, 184, .12); }
.form input, .form textarea, .form select { margin-bottom: 12px; }
textarea { min-height: 110px; resize: vertical; }
input[type=radio], input[type=checkbox] { width: auto; accent-color: var(--brand); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.paid { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: #fee4e2; color: var(--accent); }

.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.pd img { width: 100%; border-radius: 18px; background: #f2f4f7; }
.pd .price-lg { font-size: 30px; font-weight: 800; color: var(--brand); margin: 0 0 14px; }
.rich p { margin: 0 0 12px; } .rich ul, .rich ol { padding-left: 22px; margin: 0 0 12px; } .rich h2, .rich h3 { margin: 18px 0 8px; } .rich a { color: var(--brand); text-decoration: underline; } .rich blockquote { margin: 12px 0; padding: 4px 16px; border-left: 4px solid var(--brand-soft); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1b3f; color: #c7d2ec; padding: 44px 16px 18px; margin-top: 30px; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 28px; }
.footer-logo { background: #fff; border-radius: 12px; padding: 6px 10px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { display: block; padding: 4px 0; color: #c7d2ec; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 14px; }
.copyright { max-width: 1280px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; font-size: 13px; }

/* ---------- Admin layout ---------- */
.adm { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: #0b1b3f; color: #c7d2ec; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; padding: 6px 8px 18px; }
.adm-brand img { height: 38px; background: #fff; border-radius: 10px; padding: 3px; }
.adm-brand b { color: #ff6b6b; }
.adm-side a.adm-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: #c7d2ec; margin-bottom: 2px; }
.adm-side a.adm-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.adm-side a.adm-link.active { background: var(--brand); color: #fff; }
.adm-side .adm-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 14px 6px; }
.adm-main { min-width: 0; }
.adm-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.adm-top h1 { margin: 0; font-size: 22px; }
.adm-content { padding: 24px 28px 48px; max-width: 1200px; }
.flash { padding: 12px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 18px; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.error { background: #fee4e2; color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.stat .ic-wrap { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.stat.alert .ic-wrap { background: var(--warn-soft); color: var(--warn); }
.stat strong { display: block; font-size: 26px; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field .hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 400; }
.req { color: var(--accent); }
.form-actions { display: flex; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #f2f4f7; border: 1px solid var(--line); }
.thumb-lg { width: 120px; height: 120px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.order-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; background: #fff; }
.order-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.order-meta { color: var(--muted); font-size: 13.5px; }
.inline-form { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr auto; gap: 10px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.timeline { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.timeline li { padding: 4px 0 4px 18px; border-left: 2px solid var(--brand-soft); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* Rich text editor (admin) */
.editor { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.editor:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10, 67, 184, .12); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.editor-toolbar button { border: 1px solid transparent; background: transparent; padding: 6px 11px; border-radius: 8px; font: 700 13px var(--font); cursor: pointer; color: var(--ink); }
.editor-toolbar button:hover { background: var(--brand-soft); color: var(--brand); }
.editor-area { min-height: 180px; padding: 14px; outline: 0; }
.editor-area:empty::before { content: attr(data-placeholder); color: #98a2b3; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0a43b8, #1b7cff 60%, #00b3ff); padding: 20px; }
.login-card { background: #fff; border-radius: 24px; padding: 34px; width: 100%; max-width: 420px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); text-align: center; }
.login-card form { text-align: left; }
.login-card input { margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .bar { flex-wrap: wrap; gap: 10px; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .nav-link span { display: none; }
    .nav-link span.keep { display: inline; }
    .slider { aspect-ratio: 16 / 9; border-radius: 18px; }
    .slider-btn { display: none; }
    .pd, .cta-band { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .adm { grid-template-columns: 1fr; }
    .adm-side { position: static; height: auto; display: flex; gap: 6px; overflow-x: auto; padding: 10px; }
    .adm-brand, .adm-side .adm-sep { display: none; }
    .adm-side a.adm-link { white-space: nowrap; margin: 0; }
    .adm-content, .adm-top { padding-left: 16px; padding-right: 16px; }
    .form-grid, .inline-form { grid-template-columns: 1fr; }
}
.hint { font-size: 12.5px; color: var(--muted); }

/* ---------- Mega menu (desktop) ---------- */
.category-nav { position: relative; border-top: 1px solid var(--line); }
.cat-wrap { position: relative; max-width: 1280px; margin: 0 auto; }
.cat-row { list-style: none; margin: 0; padding: 0 44px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-row > li > a { display: flex; align-items: center; gap: 8px; padding: 13px 14px; font-weight: 600; font-size: 14px; color: #344054; border-radius: 10px; white-space: nowrap; }
.cat-row > li > a .ic { color: var(--brand); }
.cat-row > li.active > a, .cat-row > li:hover > a { background: var(--brand-soft); color: var(--brand); }
.cat-scroll { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.cat-scroll.prev { left: 6px; }
.cat-scroll.next { right: 6px; }
.mega-panels { position: absolute; left: 0; right: 0; top: 100%; z-index: 70; }
.mega { display: none; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(16, 24, 40, .16); max-height: 72vh; overflow-y: auto; }
.mega.open { display: block; }
.mega-inner { max-width: 1280px; margin: 0 auto; padding: 22px 28px 26px; }
.mega-title { margin: 0 0 8px; }
.mega-title a { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.mega-title span { color: var(--brand); text-transform: none; letter-spacing: 0; font-weight: 600; }
.mega-cols { list-style: none; margin: 0; padding: 0; columns: 4; column-gap: 36px; }
.mega-cols li { break-inside: avoid; }
.mega-cols a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: #344054; }
.mega-cols a:hover { color: var(--brand); padding-left: 4px; }
.mega-backdrop { position: fixed; inset: 0; background: rgba(16, 24, 40, .38); z-index: 40; opacity: 0; visibility: hidden; transition: opacity .2s; }
.mega-backdrop.show { opacity: 1; visibility: visible; }

/* ---------- Mobile menu (slides in from the left) ---------- */
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; place-items: center; cursor: pointer; color: var(--ink); }
.menu-toggle:hover { background: var(--bg); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(16, 24, 40, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 99; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: #fff; z-index: 100; transform: translateX(-100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.drawer-close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; cursor: pointer; }
.drawer-body { overflow-y: auto; padding: 10px; flex: 1; }
.drawer-label { margin: 14px 12px 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer-link, .acc-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 12px; border: 0; background: none; font: 600 15px var(--font); color: var(--ink); border-radius: 12px; text-align: left; cursor: pointer; }
.drawer-link:hover, .acc-btn:hover { background: var(--bg); }
.drawer-link .ic, .acc-btn .ic { color: var(--brand); }
.acc-btn .chev { margin-left: auto; display: grid; transition: transform .2s; color: var(--muted); }
.acc.open .chev { transform: rotate(180deg); }
.acc-panel { display: none; padding: 0 0 8px 44px; }
.acc.open .acc-panel { display: block; }
.acc-panel a { display: block; padding: 10px; font-size: 14px; color: #344054; border-radius: 8px; }
.acc-panel a:hover { background: var(--bg); color: var(--brand); }
.drawer-sep { height: 1px; background: var(--line); margin: 10px 6px; }
body.no-scroll { overflow: hidden; }

/* Image-only slider banners */
.slide.has-image::before { display: none; }
a.slide.has-image { cursor: pointer; }

@media (max-width: 900px) {
    .menu-toggle { display: grid; }
    .category-nav, .mega-backdrop { display: none; }
    .bar .brand { margin-right: auto; }
}
@media (min-width: 901px) {
    .drawer, .drawer-overlay { display: none; }
}

/* ---------- Brand text: BLESSEDJEPH with small ELECTRONICS underneath ---------- */
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--brand); }
.brand-name b { color: var(--accent); }
.brand-text small { margin-top: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .36em; color: var(--muted); text-transform: uppercase; }
.adm-brand .brand-name { color: #fff; font-size: 18px; }
.adm-brand .brand-name b { color: #ff6b6b; }
.adm-brand .brand-text small { color: #9fb0d6; letter-spacing: .26em; font-size: 8.5px; }
.footer-grid .brand-name { color: #fff; }

/* ---------- Button preloader ---------- */
.btn.loading, button.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after, button.loading::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: bj-spin .7s linear infinite;
}
.btn-ghost.loading::after, .btn-danger.loading::after, .search button.loading::after { border-color: rgba(16, 24, 40, .2); border-top-color: var(--brand); }
.hero .btn.loading::after { border-color: rgba(10, 67, 184, .25); border-top-color: var(--brand); }
@keyframes bj-spin { to { transform: rotate(360deg); } }
.btn.loading .ic, button.loading .ic { opacity: 0; }

/* ---------- Product page: features, specifications, pay-on-delivery tags ---------- */
.mini-title { margin: 18px 0 6px; font-size: 15px; }
.feature-list { margin: 0 0 16px; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 6px 0 6px 26px; font-size: 14.5px; }
.feature-list li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg) scale(.85); }
.spec-table th { width: 34%; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); background: #f8f9fc; }
.spec-table td { font-size: 14.5px; }
.cod-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.cod-tag.yes { background: var(--ok-soft); color: var(--ok); }
.cod-tag.no { background: #fee4e2; color: var(--accent); }
.buy-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.buy-form label { margin: 0; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.pay-option:hover { border-color: #b2ccff; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-option.disabled { opacity: .6; cursor: not-allowed; }
.pay-option strong { display: block; font-size: 15px; }
.pay-option small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pay-icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand); display: grid; place-items: center; border: 1px solid var(--line); flex-shrink: 0; }
.pay-panel { margin: -2px 0 14px; padding: 16px; background: #f8f9fc; border: 1px dashed #b2ccff; border-radius: 14px; }
.acct-no { font-size: 24px; font-weight: 800; color: var(--brand); letter-spacing: .04em; }
.saved-address { background: #f8f9fc; padding: 14px 16px; border-radius: 12px; margin: 0 0 12px; }
.summary { position: sticky; top: 150px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-line.total { font-size: 18px; border-bottom: 0; margin-bottom: 8px; }
.next-step h2 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } .summary { position: static; } }


/* =====================================================================
   v6 additions: old price, AOS, WhatsApp, new-arrivals pop-in, delivery
   ===================================================================== */
body { overflow-x: hidden; }
#new { scroll-margin-top: 140px; }

/* Old (crossed-out) price */
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 0 4px 4px; }
.price-row .price { margin: 0; }
.old-price { color: #98a2b3; font-size: 12.5px; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.old-price-lg { color: #98a2b3; font-size: 18px; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; margin-left: 8px; }

/* Cards sit inside a wrapper so the scroll animation never fights the hover lift */
.card-wrap { display: flex; min-width: 0; }
.card-wrap .card { flex: 1; min-width: 0; }

/* Scroll animation: shorter, finer slide than the AOS default (100px) */
body [data-aos="fade-up"]:not(.aos-animate) { transform: translate3d(0, 28px, 0); }

/* WhatsApp + new arrivals (bottom right) */
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, .3); }
.btn-wa:hover { background: #1ebe5a; }
.wa-float { position: fixed; right: 14px; bottom: 14px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; padding: 11px 16px; border-radius: 999px; font: 700 14px var(--font); box-shadow: 0 8px 22px rgba(0, 0, 0, .22); transition: transform .15s, background .15s; }
.wa-float:hover { background: #1ebe5a; transform: translateY(-2px); }
.arrivals-pop { position: fixed; right: 14px; bottom: 72px; z-index: 89; display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 22px rgba(16, 24, 40, .18); transform: translateX(130%); opacity: 0; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; }
.arrivals-pop[hidden] { display: none; }
.arrivals-pop.show { transform: none; opacity: 1; }
.arrivals-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px 8px 12px; font-size: 12px; font-weight: 700; color: var(--brand); }
.arrivals-link .ic { color: var(--accent); }
.arrivals-x { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 6px 10px 6px 6px; cursor: pointer; }

/* Delivery */
.delivery-note { background: var(--brand-soft); color: var(--brand-dark); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin: 10px 0 0; }
.delivery-note.bad { background: #fee4e2; color: var(--accent); }
.summary-line small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.help-box { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.help-box p { margin: 0 0 8px; }
.wa-row { margin-top: 10px; }
.price-form { flex-wrap: wrap; }
.price-form .mini { display: flex; flex-direction: column; font-size: 11px; font-weight: 700; color: var(--muted); gap: 2px; }
.price-form .mini input[type=number] { width: 112px; }

/* ---------- Mobile: smaller type, two products per row, hero that fits the screen ---------- */
@media (max-width: 640px) {
    body { font-size: 13px; }
    .container { padding: 10px 10px 28px; }
    .promo-bar { font-size: 10.5px; padding: 5px 8px; }
    .bar { padding: 8px 10px; gap: 8px; }
    .brand img { height: 32px; }
    .brand-name { font-size: 16px; }
    .brand-text small { font-size: 7.5px; margin-top: 3px; }
    .nav-link { padding: 7px 8px; }
    .search { padding: 2px 2px 2px 12px; }
    .search input { padding: 8px 0; font-size: 14px; }
    .search button { padding: 8px 14px; font-size: 12.5px; }

    /* Hero slider: always fits inside the screen width and never taller than the visible screen */
    .slider { aspect-ratio: 16 / 8; min-height: 0; max-height: 46vh; max-height: 46svh; width: 100%; border-radius: 14px; margin-bottom: 12px; }
    .slide-content { padding: 0 6%; max-width: 100%; }
    .slide-kicker { font-size: 9.5px; padding: 3px 9px; margin-bottom: 6px; }
    .slide h2 { font-size: 17px; margin-bottom: 4px; }
    .slide p { display: none; }
    .slide .btn { padding: 7px 14px; font-size: 12px; }
    .dots { bottom: 6px; padding: 4px 7px; gap: 5px; }
    .dot { width: 6px; height: 6px; }
    .dot.active { width: 18px; }

    .trust { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
    .trust-item { padding: 9px; gap: 8px; border-radius: 12px; }
    .trust-item .ic-wrap { width: 32px; height: 32px; border-radius: 10px; }
    .trust-item .ic-wrap .ic { width: 17px; height: 17px; }
    .trust-item strong { font-size: 11.5px; }
    .trust-item span { font-size: 10px; line-height: 1.3; display: block; }

    .section { border-radius: 14px; margin-bottom: 12px; }
    .section-head { padding: 12px 12px 2px; }
    .section-head h2 { font-size: 15px; }
    .section-head a { font-size: 12px; }

    /* two products on a row */
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 10px 14px; }
    .card { padding: 6px; border-radius: 12px; }
    .card-media { border-radius: 9px; }
    .card h3 { font-size: 12px; margin: 8px 2px 4px; height: 32px; }
    .price-row { margin: 0 2px 2px; gap: 0 6px; }
    .price { font-size: 13.5px; }
    .old-price { font-size: 10.5px; }
    .badge { font-size: 9.5px; padding: 3px 7px; top: 5px; left: 5px; }

    .cta-band { gap: 8px; margin-bottom: 12px; }
    .cta { padding: 16px; border-radius: 14px; gap: 6px; }
    .cta h3 { font-size: 16px; }
    .cta p { font-size: 12px; }
    .tiles { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); padding: 10px; gap: 6px; }
    .tile { font-size: 11.5px; } .tile .tile-media { width: 60px; height: 60px; }

    /* inner pages */
    .hero { padding: 18px 14px; border-radius: 14px; margin-bottom: 12px; }
    .hero h1 { font-size: 19px; }
    .hero p { font-size: 12.5px; }
    .breadcrumb { font-size: 11.5px; }
    .panel { padding: 14px; border-radius: 14px; margin-bottom: 12px; }
    .panel h2 { font-size: 16px; }
    .pd .price-lg { font-size: 22px; }
    .old-price-lg { font-size: 14px; }
    .feature-list li { font-size: 13px; }
    .btn, button.btn { padding: 9px 16px; font-size: 13px; }
    .btn-sm { padding: 6px 12px; font-size: 12px; }
    .summary-line { font-size: 13px; } .summary-line.total { font-size: 16px; }
    .pay-option { padding: 10px 12px; gap: 10px; } .pay-option strong { font-size: 13.5px; } .pay-icon { width: 36px; height: 36px; }
    table { font-size: 12.5px; } td, th { padding: 8px; }
    .site-footer { padding: 28px 14px 14px; } .site-footer a, .site-footer p { font-size: 12.5px; }
    .footer-grid { gap: 18px; }

    .wa-float { right: 10px; bottom: 10px; padding: 9px 13px; font-size: 12px; gap: 6px; }
    .wa-float svg { width: 19px; height: 19px; }
    .arrivals-pop { right: 10px; bottom: 58px; }
}


/* ---------- Page preloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 9999; background: #fff; display: grid; place-items: center; transition: opacity .35s ease, visibility .35s ease; }
#preloader.done { opacity: 0; visibility: hidden; }
.pl-box { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.pl-box img { width: 50px; height: auto; animation: bj-pulse 1.2s ease-in-out infinite; }
.pl-ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--accent); border-right-color: var(--brand); animation: bj-spin .9s linear infinite; }
@keyframes bj-pulse { 50% { transform: scale(.88); opacity: .75; } }

/* ---------- Add-to-cart icon on product cards ---------- */
.card-wrap { position: relative; }
.card-wrap.has-add .price-row { padding-right: 40px; }
.quick-add { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(230, 0, 0, .3); transition: transform .15s, background .15s; padding: 0; }
.quick-add:hover { background: var(--accent-dark); transform: scale(1.08); }
.quick-add .qa-check { display: none; }
.quick-add.done { background: var(--ok); }
.quick-add.done .qa-cart { display: none; }
.quick-add.done .qa-check { display: grid; }
.quick-add.loading::after { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; }
.toast { position: fixed; left: 50%; bottom: 74px; transform: translate(-50%, 20px); z-index: 95; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; max-width: calc(100vw - 24px); text-align: center; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast a { color: #ffb4b4; text-decoration: underline; margin-left: 8px; }
@media (max-width: 640px) {
    .quick-add { width: 30px; height: 30px; right: 7px; bottom: 7px; }
    .quick-add .ic { width: 15px; height: 15px; }
    .card-wrap.has-add .price-row { padding-right: 34px; }
    .toast { font-size: 12px; bottom: 62px; }
    .pl-box { width: 76px; height: 76px; } .pl-box img { width: 40px; }
}


/* Product pictures in the cart and checkout summary */
.line-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.line-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f2f4f7; border: 1px solid var(--line); flex-shrink: 0; }
.summary-line .line-item { gap: 10px; }
.summary-line .line-thumb { width: 48px; height: 48px; }
@media (max-width: 640px) { .line-thumb { width: 48px; height: 48px; } .summary-line .line-thumb { width: 40px; height: 40px; } .line-item { gap: 8px; } }