/*
 * BSO Website Styles
 * Refactored to match the official BSO mobile application design language.
 * Mobile-first. All existing functionality (cart, wishlist, search, filters,
 * pricing modes, WhatsApp ordering, local catalog editor) is preserved;
 * only the presentation layer was redesigned.
 */

:root{
  --primary:#0073bd;
  --primary-dark:#005a9e;
  --primary-light:#00aeef;
  --primary-soft:#e6f0f9;
  --accent:#00a651;
  --accent-dark:#007d3c;
  --accent-soft:#e6f5ed;
  --whatsapp:#20b75a;
  --ink:#1b2a30;
  --muted:#7c8b91;
  --line:#e7edf0;
  --surface:#f5f7f8;
  --white:#fff;
  --danger:#e0294d;
  --shadow-card:0 2px 10px rgba(20,40,50,.06);
  --shadow-pop:0 10px 30px rgba(20,40,50,.12);
  --radius-card:16px;
  --radius-pill:999px;
  --header-h:60px;
  --bottom-nav-h:64px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--surface);
  color:var(--ink);
  font-family:"Readex Pro","Cairo",Tahoma,Arial,sans-serif;
  line-height:1.6;
  -webkit-tap-highlight-color:transparent;
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.container{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.plain-button{border:0;background:none;padding:0}

/* ============ HEADER ============ */
.site-header{position:sticky;top:0;z-index:30;background:var(--white);border-bottom:1px solid var(--line)}
.header-inner{min-height:var(--header-h);display:flex;align-items:center;gap:14px}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink)}
.brand-logo{height:32px;width:auto;display:block;object-fit:contain}
.brand-copy{display:flex;flex-direction:column;line-height:1.2}
.brand-copy strong{font-size:13px}
.brand-copy small{color:var(--muted);font-size:11px}
.desktop-nav{display:none}
.search-wrap{position:relative;flex:1;min-width:0}
.header-search{display:flex;align-items:center;gap:8px;flex:1;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-pill);padding:0 14px}
.header-search span{color:var(--muted);font-size:16px}
.header-search input{width:100%;border:0;outline:0;background:transparent;padding:10px 0;min-width:0;color:var(--ink);font-size:14px}
.search-suggestions{position:absolute;top:calc(100% + 6px);inset-inline:0;z-index:35;background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-pop);overflow:hidden;display:none}
.search-suggestions.visible{display:block}
.search-suggestions button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;padding:10px 14px;text-align:start;font-size:13px;color:var(--ink);border-bottom:1px solid var(--line)}
.search-suggestions button:last-child{border-bottom:0}
.search-suggestions button:hover,.search-suggestions button:active{background:var(--surface)}
.search-suggestions .suggestion-thumb{width:32px;height:32px;border-radius:8px;background:var(--surface);object-fit:contain;flex-shrink:0;padding:2px}
.search-suggestions .suggestion-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.search-suggestions .suggestion-text strong{font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-suggestions .suggestion-text small{color:var(--muted);font-size:11px}
.search-suggestions .suggestion-empty{padding:14px;text-align:center;color:var(--muted);font-size:12.5px}
.search-suggestions .suggestion-more{justify-content:center;color:var(--primary-dark);font-weight:700}
.header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.account-type{border:1px solid var(--line);background:var(--white);border-radius:var(--radius-pill);padding:7px 14px;font-size:12px;font-weight:700;color:var(--primary-dark)}
.icon-button{position:relative;border:0;background:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:19px;color:var(--ink)}
.icon-button:active{background:var(--surface)}
.counter{position:absolute;inset-block-start:0;inset-inline-start:0;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:var(--radius-pill);background:var(--primary);color:#fff;font-size:10px;font-weight:700;border:2px solid var(--white)}

/* ============ VIEW SWITCHING ============ */
.view{display:none;min-height:60vh}
.view.active{display:block}
body{padding-bottom:var(--bottom-nav-h)}

/* ============ PAGE TITLE ============ */
.page-title{display:flex;justify-content:space-between;align-items:center;padding:18px 0 14px}
.page-title h1{margin:0;font-size:22px;font-weight:800}
.page-title span{display:none}
.page-title p{margin:4px 0 0;color:var(--muted);font-size:13px}

/* ============ HOME: HERO SLIDER ============ */
.hero-wrap{padding-top:10px}
.hero-slider{position:relative;border-radius:var(--radius-card);overflow:hidden;background:linear-gradient(135deg,#eaf8fc,#dff3f8);box-shadow:var(--shadow-card)}
.hero-slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}
.hero-slides::-webkit-scrollbar{display:none}
.hero-slide{flex:0 0 100%;scroll-snap-align:start;display:block;border:0;padding:0;margin:0;background:none;cursor:pointer;line-height:0;transition:.15s}
.hero-slide:active{transform:scale(.99)}
.hero-slide img{width:100%;height:100%;display:block;aspect-ratio:5/2;object-fit:cover}
.hero-dots{display:flex;justify-content:center;gap:6px;padding:10px 0 2px}
.hero-dots span{width:6px;height:6px;border-radius:50%;background:var(--line);cursor:pointer}
.hero-dots span.active{background:var(--primary);width:16px;border-radius:4px;transition:.2s}
.hero-note{display:none}
.hero-arrow{display:none;position:absolute;top:50%;transform:translateY(-50%);z-index:5;border:0;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.82);font-size:20px;place-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.15);color:var(--ink);transition:.15s}
.hero-arrow:hover{background:#fff;transform:translateY(-50%) scale(1.08)}
.hero-arrow-prev{inset-inline-end:12px}
.hero-arrow-next{inset-inline-start:12px}

/* ============ BUTTONS ============ */
.button{border:1px solid transparent;border-radius:12px;padding:10px 18px;font-weight:700;font-size:13px;transition:.15s}
.button.primary{background:var(--primary);color:#fff}
.button.primary:active{background:var(--primary-dark)}
.button[data-add]{background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);color:#fff}
.button[data-add]:hover,.button[data-add]:active{background:linear-gradient(135deg,var(--accent-dark) 0%,#005e2c 100%)}
.button.secondary{background:var(--white);border-color:var(--line);color:var(--ink)}
.button.secondary:active{background:var(--surface)}
.button.whatsapp{background:var(--whatsapp);color:#fff}
.button.wide{width:100%;display:flex;align-items:center;justify-content:center;gap:6px}
.button:active{transform:scale(.98)}
.text-button{border:0;background:none;color:var(--primary-dark);font-weight:700;padding:8px 0}

/* ============ HOME STACK / SECTIONS ============ */
.home-stack{padding-block:18px 24px}
.trust-grid{display:none}
.content-section{margin-top:26px}
.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.section-heading h2{margin:0;font-size:18px;font-weight:800}
.section-heading span{display:none}
.section-heading button,.section-more{border:0;background:none;color:var(--primary);font-size:13px;font-weight:700;display:flex;align-items:center;gap:4px}
.section-more::before{content:"‹";font-size:16px}

/* ============ WHY BSO ============ */
.why-bso-section{background:#0a1628;padding-block:40px}
.why-bso-head{text-align:center;margin-bottom:28px}
.why-bso-head h2{margin:0 0 8px;font-size:22px;font-weight:800;color:#fff}
.why-bso-head p{margin:0;font-size:13px;color:rgba(255,255,255,.65)}
.why-bso-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.why-bso-card{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-card);padding:20px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.why-bso-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#0073bd;font-size:22px;flex-shrink:0}
.why-bso-card strong{font-size:14px;font-weight:800;color:#fff;line-height:1.3}
.why-bso-card p{margin:0;font-size:12px;color:rgba(255,255,255,.65);line-height:1.7}

/* ============ BRANDS / CATEGORIES ============ */
.brand-rail,.category-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(86px,1fr);overflow-x:auto;gap:10px;padding-bottom:4px;scrollbar-width:none}
.brand-rail::-webkit-scrollbar,.category-rail::-webkit-scrollbar{display:none}
.brand-card{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:12px 8px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;transition:transform .2s,box-shadow .2s,border-color .2s}
.brand-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(20,40,50,.1);border-color:var(--brand-color,var(--line))}
.brand-card span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--brand-color,var(--primary)) 12%,white);color:var(--brand-color,var(--primary));font-weight:800;font-size:16px;transition:background .2s,color .2s}
.brand-card:hover span{background:var(--brand-color,var(--primary));color:#fff}
.brand-card b{font-size:11px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.category-chip{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:14px 8px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;font-weight:700;font-size:11px}
.category-chip span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-size:16px}

/* ============ PRODUCT GRID / CARDS ============ */
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.product-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,46%);overflow-x:auto;gap:12px;padding-top:6px;padding-bottom:8px;scrollbar-width:none}
.product-rail::-webkit-scrollbar{display:none}
.product-card{position:relative;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-card);overflow:hidden;display:flex;flex-direction:column;height:100%;box-shadow:var(--shadow-card);transition:transform .22s,box-shadow .22s,border-color .22s}
.product-card:hover{transform:translateY(-4px);box-shadow:0 14px 36px rgba(20,40,50,.13),0 0 0 2px var(--brand-color,var(--primary));border-color:var(--brand-color,var(--primary))}
.product-image{position:relative;height:200px;background:#ffffff;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:12px;cursor:pointer}
.product-image img{width:160px;height:160px;object-fit:contain;object-position:center;flex-shrink:0}
.product-status{position:absolute;inset-block-start:8px;inset-inline-start:8px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:13px;box-shadow:0 2px 6px rgba(26,166,74,.18)}
.favorite-button{position:absolute;inset-block-start:8px;inset-inline-end:8px;width:30px;height:30px;border:0;border-radius:50%;background:var(--white);box-shadow:0 2px 6px rgba(20,40,50,.12);font-size:15px;color:var(--muted);display:grid;place-items:center}
.favorite-button.active{color:var(--danger)}
.product-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:7px;flex:1;justify-content:space-between}
.product-brand{display:inline-flex;align-self:flex-start;padding:3px 10px;border-radius:var(--radius-pill);background:color-mix(in srgb,var(--brand-color,var(--primary)) 12%,white);color:var(--brand-color,var(--primary-dark));font-size:10px;font-weight:700;letter-spacing:.2px}
.product-body h3{margin:0;font-size:13px;line-height:1.45;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px;cursor:pointer}
.product-price{display:flex;align-items:baseline;gap:4px;margin-top:auto}
.product-price strong{font-size:16px;color:var(--ink);font-weight:800}
.product-card .add-button{margin-top:auto;min-height:40px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:25px;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%)}
.product-card .add-button:hover,.product-card .add-button:active{background:linear-gradient(135deg,var(--accent-dark) 0%,#0e6b2d 100%)}
.add-button span{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:rgba(255,255,255,.3);font-size:13px;line-height:1}

/* ============ EMPTY STATES ============ */
.empty-state{display:none;text-align:center;padding:60px 20px;color:var(--muted)}
.empty-state.visible{display:block}
.empty-state>span{display:grid;place-items:center;margin:0 auto 16px;width:90px;height:90px;border-radius:50%;background:var(--white);font-size:38px;color:var(--primary);box-shadow:var(--shadow-card)}
.empty-state h2{margin:0 0 6px;font-size:16px}
.empty-state p{margin:0 auto 18px;max-width:320px;font-size:13px}

/* ============ PRODUCTS / FILTERS PAGE ============ */
.page-layout{padding-block:6px 24px}
.filters{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-card);padding:14px;margin-bottom:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.filters h2{display:none}
.filters label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:var(--muted)}
.filters input,.filters select,.order-panel input,.order-panel textarea,.contact-form input,.contact-form textarea,.account-content input,.account-content select,.track-order-form input,.auth-form input,.auth-form select{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:9px 12px;outline:0;font-size:13px;color:var(--ink)}
.filters input:focus,.filters select:focus,input:focus,select:focus,textarea:focus{border-color:var(--primary);background:var(--white)}
textarea{min-height:90px;resize:vertical}
.filters .wide{grid-column:1/-1}
.catalog-content{min-width:0}

/* ============ PRODUCT DETAILS ============ */
.detail-page{padding-block:6px 40px}
.detail-breadcrumb{display:flex;align-items:center;gap:6px;padding:10px 0 16px;font-size:12px;color:var(--muted)}
.detail-breadcrumb button{color:var(--primary);font-weight:700}
.detail-breadcrumb span:last-child{color:var(--ink);font-weight:700}
.detail-card{display:flex;flex-direction:column;gap:16px;background:var(--white);border-radius:var(--radius-card);padding:16px;box-shadow:var(--shadow-card)}
.detail-image{display:grid;place-items:center;padding:20px;background:var(--surface);border-radius:12px;aspect-ratio:1/1}
.detail-image img{max-width:100%;max-height:100%;object-fit:contain}
.detail-brand-badge{display:inline-flex;align-self:flex-start;padding:4px 12px;border-radius:var(--radius-pill);background:color-mix(in srgb,var(--brand-color,var(--primary)) 12%,white);color:var(--brand-color,var(--primary-dark));font-size:11px;font-weight:700;margin-bottom:4px}
.detail-copy h1{margin:4px 0 12px;font-size:20px;font-weight:800;line-height:1.4}
.detail-price{display:flex;align-items:baseline;gap:8px;margin-bottom:16px}
.detail-price strong{font-size:26px;color:var(--ink);font-weight:800}
.detail-price span{font-size:12px;color:var(--muted);font-weight:600}
.detail-actions{display:flex;flex-direction:column;gap:10px}
.detail-qty{display:flex;align-items:center;width:fit-content;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.detail-qty button{border:0;background:var(--surface);padding:10px 18px;font-size:18px;font-weight:700;color:var(--ink)}
.detail-qty button:hover{background:var(--line)}
.detail-qty input{border:0;border-inline:1px solid var(--line);width:54px;text-align:center;font-size:16px;font-weight:700;padding:10px 0;background:var(--white);color:var(--ink);-moz-appearance:textfield;outline:0}
.detail-qty input::-webkit-outer-spin-button,.detail-qty input::-webkit-inner-spin-button{-webkit-appearance:none}
.detail-qty input:focus{border-inline:1px solid var(--line);background:var(--white)}
.detail-cta{display:flex;gap:8px}
.detail-cta .button{flex:1;min-height:46px;font-size:14px}
.detail-fav-btn{flex-shrink:0;width:46px;border:1px solid var(--line);background:var(--white);border-radius:12px;font-size:20px;display:grid;place-items:center;color:var(--muted)}
.detail-fav-btn.active{color:var(--danger);border-color:var(--danger)}
.detail-tabs-wrap{margin-top:20px;background:var(--white);border-radius:var(--radius-card);overflow:hidden;box-shadow:var(--shadow-card)}
.detail-tabs{display:flex;border-bottom:2px solid var(--line)}
.detail-tabs button{flex:1;border:0;background:none;padding:14px 8px;font-size:13px;font-weight:700;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-2px}
.detail-tabs button.active{color:var(--primary);border-bottom-color:var(--primary)}
.detail-panel{display:none;padding:20px;font-size:13px;color:#4a5b62;line-height:1.8}
.detail-panel.active{display:block}
.detail-panel p{margin:0 0 12px}
.detail-panel p:last-child{margin-bottom:0}
.detail-panel-note{color:var(--muted);font-size:11px;background:var(--surface);border-radius:8px;padding:10px 12px}
.detail-info-list{margin:0}
.detail-info-list>div{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.detail-info-list>div:last-child{border-bottom:0}
.detail-info-list dt{color:var(--muted);font-size:12px;font-weight:700}
.detail-info-list dd{margin:0;font-size:13px;font-weight:700;color:var(--ink)}
.detail-related{margin-top:24px}
.button-row{display:flex;gap:10px;flex-wrap:wrap}
.button-row .button{flex:1;min-width:120px}

/* ============ BRANDS GRID PAGE ============ */
.narrow-page{padding-block:6px 24px}
.brands-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}

/* ============ CART ============ */
.cart-layout{padding-block:6px 24px;display:flex;flex-direction:column;gap:16px}
.cart-main{min-width:0}
.cart-item{display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--white);margin-bottom:8px}
.cart-item img{width:64px;height:64px;object-fit:contain;background:var(--surface);border-radius:10px}
.cart-item>div:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}
.cart-item>div:nth-child(2) strong{font-size:12.5px;line-height:1.4}
.cart-item>div:nth-child(2) small{color:var(--primary-dark);font-weight:700;font-size:12px}
.quantity{display:flex;align-items:center;gap:6px;grid-column:2;justify-self:start}
.quantity button{border:1px solid var(--line);background:var(--white);border-radius:8px;width:26px;height:26px;font-size:14px}
.remove-item{border:0;background:none;color:var(--danger);font-size:11px;font-weight:700;grid-row:1;grid-column:3}
.order-panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-card);padding:16px}
.order-panel-heading{margin-bottom:12px}
.order-panel-heading>span{color:var(--primary-dark);font-size:11px;font-weight:800}
.order-panel-heading h2{margin:3px 0;font-size:17px}
.order-panel-heading p{margin:0;color:var(--muted);font-size:12px}
.order-panel label{display:flex;flex-direction:column;gap:5px;margin-bottom:10px;font-size:12px;font-weight:700}
.order-panel label em{color:var(--danger);font-style:normal}
.order-panel label small{color:var(--muted);font-weight:400}
.order-total{display:flex;justify-content:space-between;align-items:center;background:var(--surface);border-radius:10px;padding:12px 14px;margin:4px 0 12px;font-size:14px}
.order-total strong{font-size:18px}
.order-assurance{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:10px}

/* ============ CONTACT ============ */
.contact-layout{padding-block:6px 24px;display:flex;flex-direction:column;gap:18px}
.contact-copy h1{font-size:20px;font-weight:800}
.contact-copy p{font-size:13px;color:var(--muted)}
.contact-copy>span{color:var(--primary-dark);font-weight:700;font-size:12px}
.contact-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.contact-cards>*{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--white);font-size:12px}
.contact-cards b{font-size:13px}
.contact-form{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-card);padding:16px}
.contact-form h2{margin:0 0 12px;font-size:16px}
.contact-form label{display:flex;flex-direction:column;gap:5px;margin-bottom:10px;font-size:12px;font-weight:700}

/* ============ ACCOUNT PAGE ============ */
.account-layout{padding-block:6px 24px;display:flex;flex-direction:column;gap:16px}
.account-sidebar{display:flex;align-items:center;gap:14px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-card);padding:16px;text-align:start}
.account-avatar{display:grid;place-items:center;width:54px;height:54px;flex-shrink:0;border-radius:50%;background:var(--primary);color:#fff;font-weight:800;font-size:14px;margin:0}
.account-sidebar h2{margin:0;font-size:15px}
.account-sidebar p{margin:2px 0 4px;color:var(--muted);font-size:12px}
.account-sidebar span{display:inline-block;background:var(--surface);border-radius:var(--radius-pill);padding:3px 10px;font-size:11px;font-weight:700;color:var(--primary-dark)}
.account-content{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-card);padding:16px}
.account-content h1{margin:0 0 12px;font-size:17px}
.account-content label{display:flex;flex-direction:column;gap:5px;margin-bottom:10px;font-size:12px;font-weight:700}
.account-content small{display:block;color:var(--muted);margin:8px 0 12px;font-size:11px}
.account-menu{display:flex;flex-direction:column;gap:8px}
.account-menu-item{display:flex;align-items:center;justify-content:space-between;background:var(--white);border:1px solid var(--line);border-radius:14px;padding:14px 16px;font-weight:700;font-size:13px;width:100%;text-align:start;color:var(--ink)}
.account-menu-item .menu-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-size:15px}
.account-menu-item.danger .menu-icon{background:#fdecef;color:var(--danger)}

/* ============ AUTH PAGES ============ */
.auth-layout{padding-block:24px 40px;max-width:420px;margin-inline:auto}
.auth-logo{text-align:center;margin-bottom:24px}
.auth-logo-img{height:64px;width:auto;display:block;margin:0 auto}
.auth-logo p{margin:6px 0 0;color:var(--muted);font-size:13px}
.auth-form{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-card);padding:20px}
.auth-form h1{margin:0 0 16px;font-size:19px;font-weight:800}
.auth-form label{display:flex;flex-direction:column;gap:5px;margin-bottom:12px;font-size:12px;font-weight:700}
.auth-toggle{display:flex;gap:8px;margin-bottom:14px}
.auth-toggle button{flex:1;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:10px;font-weight:700;font-size:13px;color:var(--muted)}
.auth-toggle button.active{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-dark)}
.auth-form .button{margin-top:6px}
.auth-switch{text-align:center;margin-top:16px;font-size:13px;color:var(--muted)}
.auth-switch a,.auth-switch button{color:var(--primary);font-weight:800;border:0;background:none}
.auth-note{margin-top:12px;font-size:11px;color:var(--muted);background:var(--surface);border-radius:10px;padding:10px 12px;text-align:center}

/* ============ PLACEHOLDER PAGES ============ */
.placeholder-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
.placeholder-tabs::-webkit-scrollbar{display:none}
.placeholder-tabs button{flex-shrink:0;border:1px solid var(--line);background:var(--white);border-radius:var(--radius-pill);padding:9px 16px;font-size:12px;font-weight:700;color:var(--muted)}
.placeholder-tabs button.active{background:var(--primary);border-color:var(--primary);color:#fff}

/* ============ ORDER TRACKING (customer-facing) ============ */
.track-order-page{padding-block:6px 24px}
.track-order-form{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-card);padding:16px;display:flex;flex-direction:column;gap:12px;margin-top:8px}
.track-order-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700}
.track-order-form label em{color:var(--danger);font-style:normal}
.track-order-hint{color:var(--muted);font-size:12px;margin:10px 2px 18px}
.order-status{display:inline-flex;align-items:center;padding:4px 10px;border-radius:var(--radius-pill);font-size:11px;font-weight:700;white-space:nowrap}
.order-status-pending{background:#fff4e0;color:#a8650f}
.order-status-approved{background:#e7f0ff;color:#1d4fa3}
.order-status-preparing{background:#eef0ff;color:#4338ad}
.order-status-out-for-delivery{background:#e7f7ec;color:var(--accent-dark)}
.order-status-delivered{background:var(--accent-soft);color:var(--accent-dark)}
.order-status-cancelled{background:#fdecef;color:var(--danger)}
.order-detail-card{display:none;margin-top:4px}
.order-detail-card.visible{display:flex;flex-direction:column;gap:12px}

/* Track result components */
.track-header{background:var(--white);border-radius:var(--radius-card);padding:20px;box-shadow:var(--shadow-card)}
.track-header-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}
.track-order-num{font-size:22px;font-weight:800;color:var(--ink);line-height:1.2}
.track-order-num small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:4px}
.track-total{text-align:end}
.track-total strong{display:block;font-size:24px;font-weight:800;color:var(--primary)}
.track-total>span{display:block;margin-top:4px}
.track-price-badge{display:inline-flex;padding:3px 10px;border-radius:var(--radius-pill);font-size:11px;font-weight:700}
.track-price-badge.retail{background:#e7f0ff;color:#1d4fa3}
.track-price-badge.wholesale{background:var(--accent-soft);color:var(--accent-dark)}
.track-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:14px;border-top:1px solid var(--line)}
.track-meta-item{display:flex;flex-direction:column;gap:3px}
.track-meta-item span{font-size:11px;color:var(--muted);font-weight:600}
.track-meta-item strong{font-size:13px;font-weight:700}

/* Timeline */
.track-timeline{background:var(--white);border-radius:var(--radius-card);padding:20px;box-shadow:var(--shadow-card)}
.track-timeline h3,.track-items h3{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.6px;margin:0 0 18px}
.tl-wrap{display:flex;flex-direction:column}
.tl-step{display:flex;gap:12px;align-items:flex-start}
.tl-dot-col{display:flex;flex-direction:column;align-items:center;flex-shrink:0}
.tl-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:14px;border:2px solid var(--line);background:var(--white);color:var(--muted);z-index:1}
.tl-line{width:2px;flex:1;min-height:22px;background:var(--line);margin-block:2px}
.tl-body{padding-block:5px 18px;display:flex;flex-direction:column;gap:5px}
.tl-name{font-size:14px;font-weight:700;color:var(--muted)}
.tl-current-badge{display:inline-flex;align-self:flex-start;padding:3px 10px;border-radius:var(--radius-pill);background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:700}
.tl-step.done .tl-dot{background:var(--primary);border-color:var(--primary);color:#fff}
.tl-step.done .tl-line{background:var(--primary)}
.tl-step.done .tl-name{color:var(--ink)}
.tl-step.current .tl-dot{background:var(--primary);border-color:var(--primary);color:#fff;animation:tlPulse 1.6s ease-in-out infinite}
.tl-step.current .tl-name{color:var(--ink);font-size:15px}
@keyframes tlPulse{0%,100%{box-shadow:0 0 0 0 rgba(0,115,189,.4)}60%{box-shadow:0 0 0 8px rgba(0,115,189,0)}}
.tl-cancelled .tl-step.done .tl-dot,.tl-cancelled .tl-step.current .tl-dot{background:var(--danger);border-color:var(--danger);color:#fff}
.tl-cancelled .tl-step.done .tl-line{background:var(--danger)}
.tl-cancelled .tl-step.done .tl-name,.tl-cancelled .tl-step.current .tl-name{color:var(--danger)}
.tl-cancelled .tl-step.current .tl-dot{animation:tlPulseRed 1.6s ease-in-out infinite}
.tl-cancelled .tl-current-badge{background:#fdecef;color:var(--danger)}
@keyframes tlPulseRed{0%,100%{box-shadow:0 0 0 0 rgba(224,41,77,.4)}60%{box-shadow:0 0 0 8px rgba(224,41,77,0)}}

/* Track items */
.track-items{background:var(--white);border-radius:var(--radius-card);padding:16px 20px;box-shadow:var(--shadow-card)}
.track-item-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.track-item-name{flex:1;min-width:0}
.track-item-name strong{display:block;font-weight:700;line-height:1.4;margin-bottom:2px}
.track-item-name small{color:var(--muted);font-size:11px}
.track-item-price{text-align:end;flex-shrink:0}
.track-item-price span{display:block;font-size:11px;color:var(--muted);margin-bottom:2px}
.track-item-price strong{font-weight:800;font-size:14px}
.track-items-total{display:flex;justify-content:space-between;align-items:center;padding-top:12px;margin-top:8px;border-top:2px solid var(--line)}
.track-items-total span{font-size:13px;font-weight:700;color:var(--muted)}
.track-items-total strong{font-size:22px;font-weight:800;color:var(--ink)}

/* ============ FOOTER ============ */
.site-footer{background:#0a1628;border-top:3px solid var(--primary);color:#fff}
.footer-inner{padding-block:40px 32px}
.footer-grid{display:grid;grid-template-columns:1fr;gap:32px}
.footer-logo-wrap{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.footer-logo{height:36px;width:auto;display:block;object-fit:contain}
.footer-logo-wrap strong{font-size:15px;font-weight:800;color:#fff;display:block;line-height:1.2}
.footer-logo-wrap span{font-size:11px;color:rgba(255,255,255,.5);display:block}
.footer-brand>p{color:rgba(255,255,255,.65);font-size:13px;margin:0 0 16px;line-height:1.7}
.footer-wa-btn{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:#fff;border-radius:var(--radius-pill);padding:10px 20px;font-size:13px;font-weight:700}
.footer-wa-btn:hover{background:var(--accent-dark);color:#fff}
.footer-heading{margin:0 0 12px;font-size:11px;font-weight:800;color:#fff;text-transform:uppercase;letter-spacing:.6px}
.footer-nav{display:flex;flex-direction:column}
.footer-nav button{border:0;background:none;color:rgba(255,255,255,.6);text-align:start;padding:6px 0;font-size:13px;font-weight:500;cursor:pointer}
.footer-nav button:hover{color:#fff}
.footer-contact{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.footer-contact li{display:flex;align-items:flex-start;gap:10px;color:rgba(255,255,255,.65);font-size:13px;line-height:1.5}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-block:16px}
.footer-bottom-inner{display:flex;flex-direction:column;gap:6px;text-align:center;color:rgba(255,255,255,.4);font-size:11px}

/* ============ MOBILE BOTTOM NAVIGATION ============ */
.mobile-nav{position:fixed;z-index:40;inset-inline:0;inset-block-end:0;display:grid;grid-template-columns:repeat(5,1fr);background:var(--white);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));height:var(--bottom-nav-h)}
.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:none;color:var(--muted);font-size:10px;font-weight:700}
.mobile-nav button span{font-size:19px;line-height:1}
.mobile-nav button.active{color:var(--primary)}
.mobile-cart span{position:relative}
.mobile-cart i{position:absolute;top:-7px;left:-10px;display:grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border:2px solid var(--white);border-radius:var(--radius-pill);background:var(--primary);color:#fff;font:700 9px "Readex Pro",Cairo;font-style:normal}

/* ============ TOAST ============ */
.toast{position:fixed;z-index:60;inset-inline-start:50%;inset-block-end:calc(var(--bottom-nav-h) + 14px);transform:translate(-50%,30px);background:var(--ink);color:#fff;border-radius:12px;padding:10px 18px;opacity:0;pointer-events:none;transition:.25s;font-size:13px;max-width:90%;text-align:center}
.toast.visible{opacity:1;transform:translate(-50%,0)}

/* ===================== TABLET (min-width: 681px) ===================== */
@media(min-width:681px){
  .container{width:min(900px,calc(100% - 48px))}
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .brands-grid{grid-template-columns:repeat(4,1fr)}
  .filters{grid-template-columns:repeat(3,1fr)}
  .filters .wide{grid-column:span 3}
  .contact-cards{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .detail-card{flex-direction:row;align-items:flex-start;gap:24px}
  .detail-image{flex:0 0 300px}
  .detail-copy{flex:1;min-width:0}
  .cart-item{grid-template-columns:80px 1fr auto auto}
  .cart-item img{width:80px;height:80px}
  .quantity{grid-column:auto}
  .remove-item{grid-row:auto;grid-column:auto}
}

/* ===================== DESKTOP (min-width: 981px) ===================== */
@media(min-width:981px){
  :root{--header-h:76px;--bottom-nav-h:0px}
  body{padding-bottom:0}
  .container{width:min(1180px,calc(100% - 32px))}
  .header-inner{gap:24px}
  .brand-copy{display:flex}
  .brand-logo{height:44px}
  .desktop-nav{display:flex;gap:4px}
  .desktop-nav button{border:0;background:none;color:var(--ink);padding:9px 14px;border-radius:10px;font-weight:700;font-size:14px}
  .desktop-nav button:hover{background:var(--surface);color:var(--primary-dark)}
  .search-wrap{max-width:340px;flex:1}
  .icon-button{width:42px;height:42px;border:1px solid var(--line)}
  .mobile-nav{display:none}
  .hero-wrap{padding-top:24px}
  .hero-arrow{display:grid}
  .trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}
  .trust-grid article{display:flex;align-items:center;gap:12px;padding:16px;background:var(--white);border:1px solid var(--line);border-radius:14px}
  .trust-grid b{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--primary-soft);color:var(--primary)}
  .trust-grid span{display:flex;flex-direction:column}
  .trust-grid small{color:var(--muted)}
  .content-section{margin-top:48px}
  .why-bso-section{padding-block:64px}
  .why-bso-head h2{font-size:34px}
  .why-bso-head p{font-size:15px}
  .why-bso-grid{grid-template-columns:repeat(4,1fr);gap:20px}
  .why-bso-card{padding:28px 24px}
  .why-bso-icon{width:56px;height:56px;font-size:26px}
  .why-bso-card strong{font-size:16px}
  .why-bso-card p{font-size:13px}
  .section-heading{align-items:flex-end}
  .section-heading span{display:block;color:var(--primary-dark);font-weight:700;font-size:13px}
  .section-heading h2{font-size:28px}
  .page-title span{display:block;color:var(--primary-dark);font-weight:700;font-size:13px}
  .page-title h1{font-size:30px}
  .section-more::before{display:none}
  .brand-rail{grid-auto-flow:row;grid-template-columns:repeat(6,1fr)}
  .category-rail{grid-auto-flow:row;grid-template-columns:repeat(9,1fr)}
  .brand-card,.category-chip{padding:18px 10px}
  .brand-card span{width:52px;height:52px;font-size:18px}
  .brand-card b{font-size:13px;white-space:normal}
  .category-chip span{width:44px;height:44px;font-size:18px}
  .category-chip{font-size:12px}
  .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
  .product-rail{grid-auto-columns:minmax(220px,260px)}
  .product-image{padding:22px}
  .product-status{width:30px;height:30px;font-size:14px}
  .favorite-button{width:36px;height:36px;font-size:17px}
  .product-body{padding:14px 16px 16px}
  .product-body h3{font-size:14px;min-height:42px}
  .product-price strong{font-size:17px}
  .add-button{min-height:42px;font-size:13px}
  .page-layout{display:grid;grid-template-columns:250px 1fr;gap:28px;padding-block:32px 60px}
  .filters{display:flex;flex-direction:column;position:sticky;top:96px;grid-template-columns:none;margin-bottom:0}
  .filters h2{display:block;margin:0 0 12px;font-size:18px}
  .filters .wide{grid-column:auto}
  .catalog-content{min-width:0}
  .detail-page{padding-block:32px 60px}
  .detail-card{padding:32px;gap:48px}
  .detail-image{flex:0 0 420px;padding:32px}
  .detail-copy h1{font-size:30px}
  .detail-price strong{font-size:32px}
  .detail-tabs-wrap{margin-top:32px}
  .detail-tabs button{font-size:14px;padding:16px 20px}
  .detail-related{margin-top:40px}
  .narrow-page{padding-block:32px 60px}
  .brands-grid{grid-template-columns:repeat(5,1fr);gap:16px}
  .cart-layout{display:grid;grid-template-columns:1fr 360px;gap:28px;padding-block:32px 60px}
  .order-panel{position:sticky;top:96px}
  .contact-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:36px;padding-block:40px 60px}
  .contact-copy h1{font-size:34px}
  .account-layout{display:grid;grid-template-columns:300px 1fr;gap:24px;padding-block:32px 60px}
  .account-sidebar{flex-direction:column;text-align:center}
  .account-avatar{width:74px;height:74px;font-size:18px;margin-inline:auto}
  .auth-layout{padding-block:60px 80px}
  .track-order-page{padding-block:32px 60px;max-width:520px;margin-inline:auto}
  .footer-inner{padding-block:56px 48px}
  .footer-grid{grid-template-columns:2fr 1fr 1fr 1.5fr;gap:40px}
  .footer-logo{height:40px}
  .footer-bottom-inner{flex-direction:row;justify-content:space-between;text-align:start}
}

@media(min-width:1300px){
  .container{width:min(1260px,calc(100% - 48px))}
  .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* ============ OFFERS ============ */
#offersList{display:flex;flex-direction:column;gap:12px;padding-bottom:24px}
.offer-card{display:flex;gap:16px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-card);padding:16px;box-shadow:var(--shadow-card)}
.offer-badge{flex-shrink:0;width:60px;height:60px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:15px;font-weight:800;line-height:1}
.offer-body{flex:1;min-width:0}
.offer-body h3{margin:0 0 4px;font-size:15px;font-weight:700;color:var(--ink)}
.offer-body p{margin:0 0 6px;font-size:13px;color:var(--muted)}
.offer-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.offer-meta span{font-size:11.5px;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-pill);padding:2px 10px}
.offer-meta .offer-expiry{color:var(--danger);border-color:var(--danger);background:#fef2f5}

/* ============ NOTIFICATIONS ============ */
#notifList{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--radius-card);overflow:hidden;box-shadow:var(--shadow-card);background:var(--white)}
#notifList .empty-state{border:none;box-shadow:none}
.notif-item{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid var(--line);transition:background .1s}
.notif-item:last-child{border-bottom:none}
.notif-item.unread{background:#f0f9ff}
.notif-icon{flex-shrink:0;width:38px;height:38px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-size:17px}
.notif-body{flex:1;min-width:0}
.notif-body strong{display:block;font-size:14px;font-weight:700;margin-bottom:2px;color:var(--ink)}
.notif-body p{margin:0 0 4px;font-size:13px;color:var(--muted)}
.notif-body small{font-size:11px;color:var(--muted)}
.notif-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--primary);margin-top:6px}

/* ============ ACCESSIBILITY ============ */
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(prefers-reduced-motion:reduce){
  *{transition:none!important;scroll-behavior:auto!important}
}
