/* ── Price Numbers ── */
.pc-price, .pc-old, #dr-tot-v, .di-price, .item-price,
[class*="price"], .sr-pr { font-family: 'Roboto Mono', monospace; font-variant-numeric: tabular-nums; }
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600&family=Noto+Kufi+Arabic:wght@400;500;600;700;800&display=swap');

/* ════════════════════════════════════════
   frontend/public/assets/css/home.css
   ════════════════════════════════════════ */


/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; border: 0; }
body {
  background: #0a0a0a;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
img  { max-width: 100%; display: block; }
button, input { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
svg { display: block; flex-shrink: 0; }

/* ===================== VARS ===================== */
:root {
  --bg:    #0a0a0a;
  --bg2:   #111;
  --bg3:   #1a1a1a;
  --bg4:   #222;
  --or:    #ff6b00;
  --or2:   #ff8533;
  --odim:  rgba(255,107,0,.10);
  --obdr:  rgba(255,107,0,.28);
  --bdr:   rgba(255,255,255,.08);
  --bdr2:  rgba(255,255,255,.14);
  --sil:   #aaa;
  --sil2:  #666;
  --r:     8px;
  --rlg:   14px;
  --rxl:   20px;
  --pill:  9999px;
  --navh:  64px;
}

/* ===================== LAYOUT ===================== */
.wrap { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 24px; }

/* ===================== NAVBAR ===================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navh);
  background: #111;
  border-bottom: 2px solid var(--or);
  z-index: 500;
  overflow: visible;
}
#nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  overflow: visible;
  /* Lock navbar to LTR in both languages — see notes in components.css. */
  direction: ltr;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  direction: ltr;
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-dot {
  width: 8px; height: 8px;
  background: var(--or);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--or);
  flex-shrink: 0;
}
.logo-orange { color: var(--or); }

/* Nav links */
#nav-links {list-style:none;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
#nav-links a {
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
#nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--or); border-radius: 2px;
  transition: width .22s;
}
#nav-links a:hover { color: #fff; }
#nav-links a:hover::after { width: 100%; }

/* Search */
#nav-search {
  flex: 1;
  min-width: 0;
  max-width: 300px;
  height: 36px;
  background: var(--bg3);
  border: 1px solid var(--bdr);
  border-radius: var(--pill);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  transition: border-color .2s;
  position: relative;
}
#nav-search:focus-within { border-color: var(--obdr); }
#nav-search input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 13px; color: #fff; min-width: 0;
}
#nav-search input::placeholder { color: #555; }
#s-clr { cursor: pointer; color: #555; display: none; flex-shrink: 0; }
#s-res {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: #111; border: 1px solid var(--bdr);
  border-radius: var(--rlg);
  overflow: hidden; display: none;
  box-shadow: 0 8px 28px rgba(0,0,0,.6);
  z-index: 100;
}
#s-res.show { display: block; }
.sr { display: flex; align-items: center; gap: 10px; padding: 9px 13px; cursor: pointer; transition: background .15s; }
.sr:hover { background: var(--bg3); }
.sr-th { width: 36px; height: 36px; background: var(--bg3); border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sr-th img { width: 100%; height: 100%; object-fit: cover; }
.sr-nm  { font-size: 13px; font-weight: 500; }
.sr-br  { font-size: 11px; color: #555; }
.sr-pr  { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--or); white-space: nowrap; }
.sr-nil { padding: 14px; text-align: center; font-size: 13px; color: #555; }

/* Nav right */
#nav-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  margin-left: auto;
}
.nb {
  width: 36px; height: 36px;
  background: var(--bg3); border: 1px solid var(--bdr);
  border-radius: var(--pill);
  display: flex; align-items: center; justify-content: center;
  color: #aaa; cursor: pointer; transition: all .2s;
  position: relative; text-decoration: none; flex-shrink: 0;
}
.nb:hover { border-color: var(--obdr); color: var(--or); }
#cart-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--or); color: #000;
  font-size: 9px; font-weight: 700;
  border-radius: 50%; border: 2px solid #111;
  display: flex; align-items: center; justify-content: center;
}
#cart-badge.hide { display: none; }
#nav-signin {
  background: var(--or); color: #000;
  padding: 7px 16px; border-radius: var(--pill);
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: opacity .2s;
  white-space: nowrap; flex-shrink: 0;
}
#nav-signin:hover { opacity: .88; }
#nav-ham { display: none; color: #aaa; padding: 4px; flex-shrink: 0; }

/* Mobile menu */
#mob {
  position: fixed;
  top: var(--navh); left: 0; right: 0;
  background: #111; border-bottom: 1px solid var(--bdr);
  z-index: 499; padding: 0 24px;
  transform: translateY(-110%);
  transition: transform .28s ease;
}
#mob.show { transform: none; }
#mob a { display: block; padding: 12px 0; font-size: 14px; color: #aaa; border-bottom: 1px solid var(--bdr); transition: color .2s; }
#mob a:last-child { border: none; }
#mob a:hover { color: var(--or); }

/* ===================== SLIDESHOW ===================== */
#ss {
  margin-top: var(--navh);
  width: 100%;
  height: 430px;
  position: relative;
  overflow: hidden;
  background: #111;
}
#ss-track {
  display: flex;
  height: 100%;
  direction: ltr;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.slide {
  min-width: 100%; height: 100%;
  position: relative; flex-shrink: 0; overflow: hidden;
}
.slide img, .slide video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
  pointer-events: none;
}
.slide.no-copy::after { display: none; }
.slide-txt {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 60px; max-width: 520px;
}
.slide-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--or);
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
}
.slide-tag::before { content: ''; width: 14px; height: 2px; background: var(--or); border-radius: 2px; display: inline-block; }
.slide-h {
  font-family: inherit;
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.35); margin-bottom: 10px;
}
.slide-h span { color: var(--or); }
.slide-sub {
  font-size: 13px; color: rgba(255,255,255,.7);
  font-weight: 300; margin-bottom: 20px; max-width: 360px;
}
.slide-btns { display: flex; gap: 9px; flex-wrap: wrap; }
.ss-fallback {
  min-width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; color: #555; text-align: center;
}
.ss-fallback svg { opacity: .2; }
.ss-fallback p { font-size: 13px; }

/* Arrows */
.ss-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 40px; height: 40px;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--pill);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: background .2s, border-color .2s;
}
.ss-arr:hover { background: var(--or); border-color: var(--or); }
#ss-prev { left: 16px; }
#ss-next { right: 16px; }

/* Dots */
#ss-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 6px;
}
.dot {
  width: 7px; height: 7px;
  background: rgba(255,255,255,.3); border-radius: var(--pill);
  cursor: pointer; transition: all .25s; border: none;
}
.dot.on { background: var(--or); width: 20px; box-shadow: 0 0 6px rgba(255,107,0,.5); }

/* Progress */
#ss-prog {
  position: absolute; bottom: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--or); z-index: 5;
  box-shadow: 0 0 6px rgba(255,107,0,.55);
}

/* ===================== MARQUEE ===================== */
#mq {
  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
  background: #111; overflow: hidden; padding: 11px 0;
}
.mq-track { display: flex; gap: 38px; width: max-content; animation: mq 26s linear infinite; }
.mq-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 500;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #555; white-space: nowrap;
}
.mq-item svg { color: var(--or); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ===================== SECTIONS ===================== */
section { padding: 50px 0; }
.no-top { padding-top: 0; }

/* Eyebrow + title */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--or); margin-bottom: 8px;
}
.eyebrow::before { content: ''; width: 14px; height: 2px; background: var(--or); border-radius: 2px; display: inline-block; }
.sec-h { font-family: 'Syne', sans-serif; font-size: clamp(22px, 3vw, 36px); font-weight: 700; letter-spacing: -0.03em; }
.sec-h span { color: var(--or); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--pill);
  font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  border: 1px solid transparent;
}
.btn-or   { background: var(--or); color: #000; border-color: var(--or); }
.btn-or:hover { background: var(--or2); }
.btn-out  { background: transparent; color: var(--or); border-color: var(--obdr); }
.btn-out:hover { background: var(--odim); }
.btn-gh   { background: var(--bg3); color: #aaa; border-color: var(--bdr); }
.btn-gh:hover { color: #fff; border-color: var(--bdr2); }
.btn-sm   { padding: 6px 14px; font-size: 12px; }

/* ===================== CATEGORIES ===================== */
#c-grid { display: flex; flex-direction: column; gap: 8px; }
/* CATEGORIES SIDEBAR LAYOUT */
.cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.cat-sidebar-box { background: #111; border: 1px solid var(--bdr); border-radius: var(--rlg); padding: 20px; overflow: hidden; position: sticky; top: 80px; }
.cat-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; font-family: inherit; font-size: 13px; font-weight: 700; color: #fff; }
.cat-sidebar-box.filter-box { margin-bottom: 14px; }
.cat-sidebar-box .filter-title { font-family: inherit; font-size: 13px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: #fff; }
.cat-sidebar-box .filter-title svg { transition: transform .2s; flex-shrink: 0; }
.cat-sidebar-box .filter-title.closed svg { transform: rotate(-90deg); }
.cat-sidebar-box .filter-content.hidden { display: none !important; }
.cat-right { background: #111; border: 1px solid var(--bdr); border-radius: var(--rlg); }
.cat-right-inner { padding: 32px; }
/* CAT ROWS */
.cat-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; cursor: pointer; transition: all .15s; border-bottom: 1px solid var(--bdr); }
.cat-row:last-child { border-bottom: none; }
.cat-row:hover { background: rgba(255,255,255,.03); }
.cat-row.active { background: var(--odim); }
.cat-row-left { display: flex; align-items: center; gap: 10px; }
.cat-row-icon { display: none !important; }
.cat-row-name { font-size: 13px; font-weight: 500; color: var(--sil); }
.cat-row.active .cat-row-name { color: var(--or); }
.cat-row:hover .cat-row-name { color: #fff; }
.cat-row-right { display: flex; align-items: center; gap: 6px; }
.cat-row-cnt { font-size: 10px; color: var(--sil2); }
.cat-row-arrow { color: var(--sil2); transition: transform .25s; flex-shrink: 0; }
.cat-row.active .cat-row-arrow { transform: rotate(90deg); color: var(--or); }
/* SUBCATEGORIES ACCORDION */
.cat-subs { overflow: hidden; max-height: 0; transition: max-height .3s ease; background: rgba(0,0,0,.3); }
.cat-subs.open { max-height: 400px; }
.cat-sub-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px 9px 54px; font-size: 12px; color: var(--sil2); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.04); transition: all .15s; }
.cat-sub-link:hover, .cat-sub-link.active { color: var(--or); background: var(--odim); }
.cat-sub-link:last-child { border-bottom: none; }
.cat-sub-cnt { font-size: 10px; color: var(--sil2); }
.cat-all-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px 9px 54px; font-size: 12px; font-weight: 700; color: var(--or); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.04); transition: all .15s; }
.cat-all-link:hover, .cat-all-link.active { color: var(--or); background: var(--odim); }
@media(max-width:900px){ .cat-layout{grid-template-columns:1fr;} .cat-sidebar-box{position:static;} }
[dir="rtl"] .cat-sub-link, [dir="rtl"] .cat-all-link { padding: 9px 54px 9px 16px; }

/* Compact unified category navigation used on homepage and shop. */
#c-grid, #cats-list { gap: 2px; }
.cat-sidebar-box, .filters .filter-box:first-child {
  padding: 9px;
  border-radius: 12px;
  background: linear-gradient(180deg,#151515,#0c0c0c);
}
.cat-sidebar-box .filter-title, .filters .filter-box:first-child .filter-title {
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 14px;
  font-weight: 900;
}
.cat-row {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  margin-bottom: 1px;
}
.cat-row:last-child { border-bottom: 1px solid transparent; }
.cat-row:hover { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.08); }
.cat-row.active { background: rgba(255,107,0,.14); border-color: rgba(255,107,0,.30); }
.cat-row-left { min-width: 0; gap: 6px; }
.cat-row-name { font-size: 14px; font-weight: 900; line-height: 1.18; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color:#ddd; }
.cat-row-cnt, .cat-sub-cnt {
  min-width: 21px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.07);
  color: #888;
  font-size: 10px;
  font-weight: 800;
}
.cat-row.active .cat-row-cnt, .cat-all-link.active .cat-sub-cnt, .cat-sub-link.active .cat-sub-cnt {
  background: var(--or);
  color: #000;
  border-color: var(--or);
}
.cat-subs {
  background: rgba(0,0,0,.18);
  border-radius: 8px;
  margin: 1px 0 3px;
}
.cat-sub-link, .cat-all-link {
  min-height: 27px;
  padding: 4px 9px 4px 20px;
  border-bottom: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  margin: 1px 0;
}
[dir="rtl"] .cat-sub-link, [dir="rtl"] .cat-all-link { padding: 4px 20px 4px 9px; }

/* ===================== PRODUCT GRIDS ===================== */
/* g5 and g4 both used to be 5 and 4 columns respectively. To keep all homepage
   sections visually consistent with the shop page, both now render 5 columns
   on desktop and collapse down through the same responsive breakpoints. The
   class names are kept so existing inline grids in index.html don't need to
   be touched everywhere. */
.g5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.g4 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
@media(max-width:1024px){ .g5,.g4{grid-template-columns:repeat(4,1fr);} }
@media(max-width:768px){ .g5,.g4{grid-template-columns:repeat(3,1fr);} }
@media(max-width:480px){ .g5,.g4{grid-template-columns:repeat(2,1fr);} }

/* ===================== PRODUCT CARD ===================== */
.pc {
  background: #111; border: 1px solid var(--bdr);
  border-radius: var(--rlg); overflow: hidden;
  cursor: pointer; transition: border-color .2s, transform .2s;
}
.pc:hover { border-color: var(--obdr); transform: translateY(-4px); }
.pc-img {
  position: relative; aspect-ratio: 1;
  background: #fff; overflow: hidden;
}
.pc-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; transition: transform .35s; }
.pc:hover .pc-img img { transform: scale(1.04); }
.pc-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; color: var(--bg4);
}
.pc-bdg {
  position: absolute; top: 12px; left: 0;
  font-size: 11px; font-weight: 900;
  padding: 6px 12px; border-radius: 0 var(--pill) var(--pill) 0;
  box-shadow: 0 8px 22px rgba(255,107,0,.24);
}
.b-new { background: var(--or); color: #000; }
.b-sale { background: var(--or); color: #000; }
[dir="rtl"] .pc-bdg { left:auto; right:0; border-radius:var(--pill) 0 0 var(--pill); }
.pc-wsh {
  position: absolute; top: 7px; right: 7px;
  width: 30px; height: 30px;
  background: rgba(0,0,0,.7); border: 1px solid var(--bdr);
  border-radius: var(--pill);
  display: flex; align-items: center; justify-content: center;
  color: #aaa; opacity: 0; transition: opacity .2s, background .2s;
}
.pc:hover .pc-wsh { opacity: 1; }
.pc-wsh:hover, .pc-wsh.on { background: #ef4444; color: #fff; border-color: #ef4444; }
.pc-body  { padding: 10px; }
.pc-brand { font-size: 9px; letter-spacing: .8px; text-transform: uppercase; color: #555; margin-bottom: 3px; }
.pc-name  {
  font-family:'Roboto',sans-serif; font-size: 12px; font-weight: 600;
  margin-bottom: 6px; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3;
}
.pc-stars { display: flex; align-items: center; gap: 2px; margin-bottom: 9px; }
.pc-foot  { display: flex; align-items: flex-end; justify-content: space-between; }
.pc-price-wrap { display:flex; flex-direction:column; gap:1px; }
.pc-old-line { font-size:10px; color:#555; text-decoration:line-through; font-family:'Roboto Mono',monospace; height:14px; line-height:14px; display:block; }
.pc-price { font-family: 'Roboto Mono', monospace; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-price.s { color:var(--or); }
.pc-disc-tag { position:absolute; top:0; right:0; background:var(--or); color:#000; font-size:10px; font-weight:800; padding:5px 10px 5px 14px; clip-path:polygon(16px 0,100% 0,100% 100%,0 100%); font-family:'Roboto',sans-serif; line-height:1; z-index:2; }
.pc-price.s { color: var(--or); }
.pc-old  { font-size: 11px; color: #555; text-decoration: line-through; font-family:'Roboto Mono',monospace; }
.pc-add {
  width: 32px; height: 32px;
  background: var(--bg3); border: 1px solid var(--bdr); border-radius: var(--pill);
  display: flex; align-items: center; justify-content: center;
  color: #aaa; transition: all .2s;
}
.pc-add:hover { background: var(--or); border-color: var(--or); color: #000; }

/* ===================== DEALS BAR ===================== */
.deals-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 14px;
}
.cd-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cd-lbl { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #555; }
.cd-lbl svg { color: var(--or); }
.cd-pills { display: flex; align-items: center; gap: 3px; }
.cd-pill {
  background: var(--bg3); border: 1px solid var(--bdr); border-radius: var(--r);
  padding: 3px 9px; display: flex; align-items: baseline; gap: 2px;
}
.cd-pill .n { font-family:'Roboto Mono',monospace; font-size: 16px; font-weight: 700; color: var(--or); min-width: 20px; text-align: center; }
.cd-pill .l { font-size: 9px; color: #555; }
.cd-sep { color: #555; font-weight: 700; }

/* ===================== FEATURES ===================== */
.ft-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--bdr);
  border: 1px solid var(--bdr); border-radius: var(--rxl); overflow: hidden;
}
.ft { background: #111; padding: 28px 22px; transition: background .2s; }
.ft:hover { background: var(--bg3); }
.ft-ic {
  width: 42px; height: 42px;
  background: var(--odim); border: 1px solid var(--obdr); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--or); margin-bottom: 14px;
}
.ft-title { font-family: inherit; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ft-desc  { font-size: 12px; color: #555; font-weight: 300; line-height: 1.6; }

/* ===================== NEWSLETTER ===================== */
.nl-box { max-width: 480px; margin: 0 auto; text-align: center; }
.nl-form {
  display: flex; background: #111;
  border: 1px solid var(--bdr); border-radius: var(--pill);
  padding: 4px; gap: 3px; margin-top: 7px; transition: border-color .2s;
}
.nl-form:focus-within { border-color: var(--obdr); }
.nl-in {
  flex: 1; background: none; border: none; outline: none;
  padding: 8px 15px; font-size: 13px; color: #fff; min-width: 0;
}
.nl-in::placeholder { color: #555; }

.brand-card-mini {
  width: 138px;
  min-height: 116px;
  background: #111;
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}
.brand-card-mini:hover { border-color: var(--obdr); background: var(--bg3); transform: translateY(-2px); }
.brand-card-mini img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 7px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,.06);
}
.brand-card-mini > span {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  background: var(--odim);
  border: 1px solid var(--obdr);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--or);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
}
.brand-card-mini strong { font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; }
.brand-card-mini small { font-size: 10px; color: #555; }


/* ═══════════════════════════════════════════════════
   CANONICAL FOOTER - matches index.html exactly
   ═══════════════════════════════════════════════════ */
footer { background: #0c0c0c; }

.ft-wrap { max-width: var(--wrap, 1260px); margin: 0 auto; padding: 0 24px; }

.ft-top {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding: 52px 0 44px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
/* Match the old grid widths: brand=1.8fr (≈45%), each link col=1fr (≈25%) */
/* Brand */
.ft-brand {
  flex: 1.8 1 0;
  min-width: 0;
  /* Nudge the brand stack down so the logo aligns with the column
     titles ("Support" / "Company") which sit below the .ft-ch top
     border-padding. */
  padding-top: 10px;
}
.ft-col   { flex: 1   1 0; min-width: 0; }
.ft-logo { font-family:'Syne',sans-serif; font-size:20px; font-weight:800; display:flex; align-items:center; gap:8px; margin-bottom:12px; direction:ltr; color:#fff; }
.ft-logo .d { width:8px; height:8px; background:var(--or); border-radius:50%; box-shadow:0 0 8px var(--or); }
.ft-logo .o { color:var(--or); }
.ft-desc { font-size:13px; color:#4a4a4a; line-height:1.85; max-width:230px; margin-bottom:22px; }
.ft-soc { display:flex; gap:7px; }
.ft-sc { width:34px; height:34px; background:#111; border:1px solid rgba(255,255,255,.07); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#444; transition:all .22s; text-decoration:none; }
.ft-sc:hover { border-color:var(--obdr); color:var(--or); background:var(--odim); transform:translateY(-2px); }

/* Columns */
.ft-ch { font-size:9px; font-weight:700; letter-spacing:2.5px; text-transform:uppercase; color:var(--or); margin-bottom:18px; padding-bottom:10px; border-bottom:1px solid rgba(255,107,0,.15); }
.ft-ul { list-style: none; display:flex; flex-direction:column; gap:11px; margin: 0; padding: 0; }
.ft-ul a { font-size:13px; color:#4a4a4a; transition:color .18s; text-decoration: none; }
.ft-ul a:hover { color:#ccc; }

/* Bottom bar */
.ft-bot { display:flex; align-items:center; justify-content:space-between; padding:16px 0; flex-wrap:wrap; gap:8px; }
.ft-copy { font-size:12px; color:#333; }
.ft-bl { display:flex; gap:18px; }
.ft-bl a { font-size:11px; color:#333; letter-spacing:.5px; text-transform:uppercase; transition:color .18s; text-decoration: none; }
.ft-bl a:hover { color:#888; }

/* RTL footer follows the document direction: brand on the right, columns after it. */
[dir="rtl"] .ft-top {
  direction: rtl;
  flex-direction: row;
}
[dir="rtl"] .ft-brand { text-align: right; }
[dir="rtl"] .ft-col   { text-align: right; }
[dir="rtl"] .ft-logo  { justify-content: flex-start; width: max-content; max-width: 100%; margin-left: auto; margin-right: 0; }
[dir="rtl"] .ft-soc   { justify-content: flex-start; width: max-content; max-width: 100%; margin-left: auto; margin-right: 0; }
[dir="rtl"] .ft-desc  { text-align: right; margin-left: auto; margin-right: 0; }
[dir="rtl"] .ft-bot   { direction: rtl; flex-direction: row; }
[dir="rtl"] .ft-copy  { direction: rtl; unicode-bidi: isolate; }

/* Responsive */
@media(max-width:960px){ .ft-top { flex-wrap: wrap; gap: 36px; } .ft-brand { flex: 1 1 100%; } .ft-col { flex: 1 1 calc(50% - 18px); } }
@media(max-width:520px){ .ft-top { flex-direction: column; gap: 28px; } [dir="rtl"] .ft-top { flex-direction: column; } .ft-brand, .ft-col { flex: 1 1 auto; } .ft-bot { flex-direction:column; align-items:center; text-align:center; } [dir="rtl"] .ft-bot { flex-direction:column; } }

/* ═══════════════════════════════════════════════════
   UTILITIES (restored)
   ═══════════════════════════════════════════════════ */
.w100 { width: 100%; }
.mt8  { margin-top: 8px; }
.empty { text-align: center; padding: 50px 20px; color: #555; font-size: 13px; }
.empty svg { margin: 0 auto 12px; opacity: .2; }
.empty strong { display: block; font-size: 14px; color: #aaa; margin-bottom: 4px; }

/* Dropdown links (nav user menu) */
.dd-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r);
  font-size: 13px;
  color: var(--sil);
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
}
.dd-link:hover { background: var(--bg3); color: #fff; }

/* User avatar dropdown */
#u-avatar-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg3); border: 1px solid var(--bdr);
  border-radius: var(--pill);
  padding: 5px 11px 5px 5px;
  cursor: pointer;
  transition: border-color .2s;
  font-family: inherit;
}
#u-avatar-btn:hover { border-color: var(--obdr); }
#u-avatar-img {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--odim);
  border: 1px solid var(--obdr);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--or);
  font-family: inherit;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
#u-avatar-img img { width: 100%; height: 100%; object-fit: cover; }
#u-avatar-name {
  font-size: 13px; font-weight: 600; color: #fff;
  max-width: 80px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#u-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: #111;
  border: 1px solid var(--bdr);
  border-radius: 14px;
  min-width: 200px;
  padding: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,.7);
  z-index: 600;
}
[dir="rtl"] #u-dropdown { right: 0; left: auto; }
#dd-name { font-weight: 600; font-size: 13px; color: #fff; }
#dd-email { font-size: 11px; color: var(--sil2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Admin dashboard button */
#admin-dash-btn a, #admin-dash-dd a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--odim);
  border: 1px solid var(--obdr);
  border-radius: var(--pill);
  font-size: 12px; font-weight: 700;
  color: var(--or);
  text-decoration: none;
  white-space: nowrap;
}

/* Signup button (logged-out) */
#auth-loggedout a[href*="register"] {
  padding: 6px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--sil);
  border: 1px solid var(--bdr);
  border-radius: var(--pill);
  text-decoration: none;
}

/* Reveal animation */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* Skeleton */
.sk { background: #111; border: 1px solid var(--bdr); border-radius: var(--rlg); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes spin{to{transform:rotate(360deg)}}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::selection { background: var(--odim); color: var(--or); }

/* RTL basics */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .logo { flex-direction: row; }
/* Navbar is locked to LTR in both languages — its row order does NOT flip in RTL.
   Logo stays left, search center, account/cart/wishlist stay right. */

/* Mobile menu */
@media(max-width:900px){
  #nav-links, #nav-search { display: none; }
  #nav-ham { display: flex; }
}
