:root{
  --bg:#070A10;
  --text:#EAF0FF;
  --muted: rgba(234,240,255,.70);
  --muted2: rgba(234,240,255,.55);

  --primary:#7C5CFF;
  --primary2:#4FE7FF;

  --shadow: 0 22px 60px rgba(0,0,0,.55);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);

  --radius: 18px;
  --radius2: 24px;
  --container: 1160px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 600px at 20% -10%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(79,231,255,.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #060814 100%);
  overflow-x:hidden;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

/* Container */
.container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}
@media (max-width:520px){
  .container{width: calc(100% - 28px);}
}

/* Topbar */
.topbar{
  font-size:13px;
  color:rgba(255,255,255,.72);
  background: rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:12px;
}
.topbar__right{opacity:.9}
@media (max-width:720px){ .topbar__right{display:none} }

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter: blur(14px);
  background: rgba(7,10,16,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:-.02em;
}
.brand__mark{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(79,231,255,.9));
  box-shadow: 0 10px 24px rgba(124,92,255,.22);
}
.brand__mark--sm{width:34px;height:34px;border-radius:12px}
.brand__name{font-size:16px}
.brand__dot{color:var(--primary2)}

.nav{
  display:flex;
  align-items:center;
  gap:22px;
  color: rgba(255,255,255,.82);
}
.nav a{
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover{ background: rgba(255,255,255,.06); color:#fff; }

.header__actions{display:flex; align-items:center; gap:10px}

/* Icon buttons */
.iconbtn{
  width:42px; height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
  box-shadow: var(--shadow2);
  cursor:pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  position:relative;
}
.iconbtn:hover{transform: translateY(-1px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16)}
.iconbtn:active{transform: translateY(0px) scale(.98)}
.badge{
  position:absolute;
  right:-6px;
  top:-6px;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  font-size:12px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(79,231,255,1));
  border:1px solid rgba(255,255,255,.25);
}

/* Hamburger */
.hamburger{display:none; position:relative}
.hamburger__lines{width:18px; height:12px; display:block; position:relative;}
.hamburger__lines:before,
.hamburger__lines:after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background:#fff;
  border-radius:999px;
  transition: transform .2s ease, top .2s ease;
}
.hamburger__lines:before{top:1px}
.hamburger__lines:after{top:9px}
.hamburger.is-open .hamburger__lines:before{top:5px; transform: rotate(45deg)}
.hamburger.is-open .hamburger__lines:after{top:5px; transform: rotate(-45deg)}

/* ✅ مهم: على الهواتف فقط همبرغر + اخفاء القائمة */
@media (max-width:980px){
  .nav--desktop{display:none}
  .hamburger{display:grid}
}

/* Drawer */
.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  z-index:60;
}
.drawer{
  position:fixed;
  top:0; right:0;
  width:min(340px, 88vw);
  height:100vh;
  background: rgba(10,14,28,.92);
  border-left:1px solid rgba(255,255,255,.10);
  transform: translateX(102%);
  transition: transform .25s ease;
  z-index:70;
  display:flex;
  flex-direction:column;
  box-shadow: var(--shadow);
}
.drawer.is-open{transform: translateX(0)}
.drawer__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 16px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.drawer__brand{display:flex; align-items:center; gap:10px}
.drawer__title{font-weight:800; letter-spacing:-.02em}
.drawer__nav{
  display:flex;
  flex-direction:column;
  padding:12px;
  gap:8px;
}
.drawer__nav a{
  padding:12px 12px;
  border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.drawer__nav a:hover{background: rgba(255,255,255,.07)}
.drawer__cta{
  margin-top:auto;
  padding:16px;
  display:grid;
  gap:10px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:46px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.20)}
.btn:active{transform: translateY(0px) scale(.99)}
.btn--primary{
  border:none;
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(79,231,255,1));
  box-shadow: 0 14px 34px rgba(124,92,255,.25);
}
.btn--ghost{background: rgba(255,255,255,.04)}

/* Sections */
.section{padding:54px 0}
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 60%);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
@media (max-width:520px){
  .section{padding:40px 0}
}

.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.section__head--split{align-items:center; flex-wrap:wrap}
.section h2{
  margin:0;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing:-.02em;
}
.muted{color:var(--muted2); font-size:13px}

.dot{
  width:8px; height:8px;
  border-radius:50%;
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(79,231,255,1));
  box-shadow: 0 0 0 4px rgba(124,92,255,.14);
}
.dot--soft{box-shadow:none; opacity:.9}
.grad{
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(79,231,255,1));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* HERO */
.hero{padding-top:34px}
@media (max-width:520px){ .hero{padding-top:18px} }

.hero__wrap{
  position:relative;
  border-radius: 30px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}
@media (max-width:520px){
  .hero__wrap{border-radius: 24px;}
}
.hero__bg{
  position:absolute;
  inset:0;
  background-image: url("../img/slider-bg.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
  z-index:0;
}
.hero__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(7,10,16,.35), rgba(7,10,16,.90)),
    radial-gradient(900px 400px at 25% 35%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 400px at 85% 40%, rgba(79,231,255,.16), transparent 60%);
  z-index:1;
  pointer-events:none;
}
.hero__inner{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:26px;
  align-items:center;
  padding: 26px;
}
@media (max-width:980px){
  .hero__inner{grid-template-columns: 1fr; gap:18px; padding:18px;}
}
@media (max-width:520px){
  .hero__inner{padding:16px; gap:14px;}
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.90);
  font-size:13px;
}
@media (max-width:520px){
  .pill{font-size:12px; padding:9px 11px;}
}
.hero h1{
  margin:14px 0 10px;
  font-size: clamp(28px, 5.6vw, 48px);
  line-height:1.03;
  letter-spacing:-.03em;
}
.hero p{
  margin:0;
  color: rgba(234,240,255,.78);
  line-height:1.65;
  max-width: 60ch;
}
.hero__actions{display:flex; gap:12px; margin-top:16px; flex-wrap:wrap;}
.hero__stats{margin-top:18px; display:flex; gap:12px; flex-wrap:wrap;}
.stat{
  padding:12px 14px;
  border-radius:16px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
}
.stat__value{font-weight:800}
.stat__label{color: rgba(234,240,255,.65); font-size:13px; margin-top:2px}

/* Hero card */
.heroCard{
  border-radius: 24px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow2);
  padding:16px;
  backdrop-filter: blur(10px);
}
@media (max-width:520px){
  .heroCard{padding:14px; border-radius: 22px;}
}
.heroCard__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.heroCard__header h3{margin:0; font-size:16px}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(124,92,255,.18);
  border: 1px solid rgba(124,92,255,.35);
  color: rgba(234,240,255,.92);
}
.heroCard__item{
  display:grid;
  grid-template-columns: 44px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  margin-top:10px;
}
.heroCard__item img{
  width:44px; height:44px;
  border-radius:14px;
  object-fit:cover;
  border: 1px solid rgba(255,255,255,.14);
}
.price{margin-top:4px; font-weight:800}
.miniBtn{
  height:34px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.miniBtn:hover{background: rgba(255,255,255,.10)}
.heroCard__footer{margin-top:12px}
.link{color: rgba(255,255,255,.86)}
.link:hover{text-decoration:underline}

/* Grids */
.grid{display:grid; gap:14px}

/* Categories grid */
.grid--cats{grid-template-columns: repeat(3, 1fr)}
@media (max-width:1100px){ .grid--cats{grid-template-columns: repeat(3, 1fr)} }
@media (max-width:820px){ .grid--cats{grid-template-columns: repeat(2, 1fr)} }
@media (max-width:520px){ .grid--cats{grid-template-columns: repeat(2, 1fr)} }

/* Products grid */
.grid--products{grid-template-columns: repeat(4, 1fr)}
@media (max-width:1100px){ .grid--products{grid-template-columns: repeat(3, 1fr)} }
@media (max-width:820px){ .grid--products{grid-template-columns: repeat(2, 1fr)} }
@media (max-width:520px){ .grid--products{grid-template-columns: repeat(2, 1fr)} }

/* Card */
.card{
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.card:hover{transform: translateY(-2px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16)}

/* Category XL Cards */
.card--catXL{
  position:relative;
  overflow:hidden;
  min-height: 160px;
  border-radius: 22px;
}
@media (max-width:520px){
  .card--catXL{min-height: 130px; border-radius: 20px;}
}
.catXL__media{position:absolute; inset:0; background: rgba(0,0,0,.2);}
.catXL__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05);
}
.catXL__shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.72)),
    radial-gradient(700px 240px at 30% 40%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(700px 240px at 80% 30%, rgba(79,231,255,.12), transparent 60%);
}
.catXL__content{
  position:relative;
  z-index:2;
  padding:16px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  height:100%;
}
@media (max-width:520px){
  .catXL__content{padding:14px;}
}
.catXL__title{
  font-weight:900;
  font-size:18px;
  letter-spacing:-.02em;
}
@media (max-width:520px){
  .catXL__title{font-size:16px;}
}
.catXL__pill{
  margin-top:10px;
  align-self:flex-start;
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}
@media (max-width:520px){
  .catXL__pill{font-size:11px; padding:7px 9px;}
}

/* Filters */
.filters{display:flex; gap:10px; flex-wrap:wrap}
.chip{
  height:38px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.9);
  cursor:pointer;
  font-weight:800;
  font-size:13px;
}
.chip:hover{background: rgba(255,255,255,.07)}
.chip.is-active{
  border-color: rgba(79,231,255,.55);
  background: rgba(79,231,255,.10);
}
@media (max-width:520px){
  .filters{
    flex-wrap: nowrap;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom:6px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar{display:none}
}

/* Products */
.product{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
@media (max-width:520px){
  .product{padding:12px; gap:10px;}
}
.product__img{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  aspect-ratio: 4 / 3;
}
@media (max-width:520px){
  .product__img{aspect-ratio: 1 / 1; border-radius: 16px;}
}
.product__img img{width:100%; height:100%; object-fit:cover; transform: scale(1.02);}
.product__meta{display:flex; align-items:flex-start; justify-content:space-between; gap:10px;}
.product__name{font-weight:900; font-size:15px; line-height:1.22}
.product__brand{color:var(--muted2); font-size:13px; margin-top:3px}
@media (max-width:520px){
  .product__name{font-size:14px}
  .product__brand{font-size:12px}
}
.product__bottom{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto;}
.product__price{font-weight:900}
.product__btn{
  height:40px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
@media (max-width:520px){
  .product__btn{height:38px; padding:0 12px; border-radius:12px; font-size:13px;}
}
.product__btn:hover{background: rgba(255,255,255,.10)}

/* ✅ NEW: icon-only add-to-cart button (keeps same look, smaller width) */
.product__btn--icon{
  width:40px;
  padding:0;
}
.product__btn--icon svg{
  pointer-events:none;
}
@media (max-width:520px){
  .product__btn--icon{width:38px;}
}

/* ✅ Top Brands */
.brandstrip--logos{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:16px;
  align-items:stretch;
}
@media (max-width:1100px){
  .brandstrip--logos{grid-template-columns: repeat(4, 1fr);}
}
@media (max-width:820px){
  .brandstrip--logos{grid-template-columns: repeat(3, 1fr);}
}
@media (max-width:520px){
  .brandstrip--logos{grid-template-columns: repeat(2, 1fr); gap:12px;}
}

.brandLogo{
  height:88px;
  border-radius:18px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.brandLogo:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
  border-color: rgba(124,92,255,.45);
}
.brandLogo img{
  max-height:34px;
  max-width:78%;
  width:auto;
  height:auto;
  object-fit:contain;
  opacity:.92;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
  transition: opacity .2s ease, transform .2s ease;
}
.brandLogo:hover img{
  opacity:1;
  transform: scale(1.05);
}

/* CTA Card */
.cta__card{
  position:relative;
  border-radius: 30px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.04);
}
@media (max-width:520px){
  .cta__card{border-radius: 24px;}
}
.cta__bg{
  position:absolute;
  inset:0;
  background-image: url("../img/cta.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
  z-index:0;
}
.cta__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(7,10,16,.45), rgba(7,10,16,.90)),
    radial-gradient(900px 400px at 25% 50%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 400px at 80% 30%, rgba(79,231,255,.16), transparent 60%);
  z-index:1;
  pointer-events:none;
}
.cta__content{
  position:relative;
  z-index:2;
  padding: 26px;
  max-width: 760px;
}
@media (max-width:520px){
  .cta__content{padding:16px}
}
.cta__actions{display:flex; gap:12px; margin-top:16px; flex-wrap:wrap;}
.cta__note{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(255,255,255,.75);
  font-size:13px;
}

/* Footer */
.footer{
  border-top:1px solid rgba(255,255,255,.06);
  padding:26px 0;
  background: rgba(255,255,255,.02);
}
.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.footer__links{display:flex; gap:14px; flex-wrap:wrap; color: rgba(255,255,255,.80)}
.footer__links a:hover{text-decoration:underline}

/* Cart Modal */
.modal{position:fixed; inset:0; z-index:80;}
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
}
.modal__panel{
  position:absolute;
  right:16px;
  top:16px;
  width:min(420px, calc(100% - 32px));
  height:min(640px, calc(100% - 32px));
  background: rgba(10,14,28,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
@media (max-width:520px){
  .modal__panel{
    right:10px; top:10px;
    width: calc(100% - 20px);
    height: min(680px, calc(100% - 20px));
    border-radius: 22px;
  }
}
.modal__top{
  padding:14px 14px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.modal__title{display:flex; flex-direction:column; gap:4px;}
.modal__body{
  padding:12px 14px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.modal__bottom{
  padding:14px;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.modal__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.modal__actions{display:flex; gap:10px;}
.modal__actions .btn{flex:1}
.modal__hint{margin-top:10px}

/* Cart item */
.cartItem{
  display:grid;
  grid-template-columns: 54px 1fr auto;
  gap:12px;
  align-items:center;
  padding:10px;
  border-radius:18px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.cartItem__img{
  width:54px; height:54px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.cartItem__img img{width:100%; height:100%; object-fit:cover;}
.cartItem__name{font-weight:900; font-size:14px;}
.cartItem__meta{margin-top:4px; color: rgba(234,240,255,.70); font-size:13px;}
.qty{display:flex; align-items:center; gap:8px;}
.qty__btn{
  width:32px; height:32px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
}
.qty__btn:hover{background: rgba(255,255,255,.10)}
.qty__num{min-width:18px; text-align:center; font-weight:900}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{transition:none !important; scroll-behavior:auto !important}
}

/* ✅ Mobile: 2 columns for Categories + Products */
@media (max-width:520px){

  .grid--cats{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .grid--products{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .product{
    padding: 12px;
    gap: 10px;
  }

  .product__img{
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  .product__name{
    font-size: 14px;
    line-height: 1.2;
  }

  .product__brand{
    font-size: 12px;
  }

  .product__btn{
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 13px;
  }

  /* icon button stays compact on mobile */
  .product__btn--icon{
    width: 38px;
    padding: 0;
  }
}

@media (max-width: 520px){
  body{
    width: 100vw;
    overflow-x: hidden;
  }

  .container,
  .section,
  .hero__wrap,
  .cta__card{
    max-width: 100vw;
  }
}




/* Equal buttons width (mobile first) */
.hero__actions,
.cta__actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero__actions .btn,
.cta__actions .btn{
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

/* Keep them inline on larger screens (optional) */
@media (min-width: 521px){
  .hero__actions,
  .cta__actions{
    display: flex;
  }
  .hero__actions .btn,
  .cta__actions .btn{
    width: auto;
  }
}


/* Equal hero stats */
.hero__stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero__stats .stat{
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Mobile polish */
@media (max-width: 520px){
  .hero__stats{
    gap: 10px;
  }

  .hero__stats .stat{
    padding: 12px 10px;
    border-radius: 16px;
  }

  .stat__value{
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
  }

  .stat__label{
    font-size: 12px;
    margin-top: 4px;
    white-space: nowrap;
  }
}




/* Mobile: products take full width (2 per row, edge-to-edge) */
@media (max-width: 520px){

  /* خلّي الكونتينر أعرض شوي للموبايل */
  .section .container{
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* الشبكة نفسها */
  .grid--products{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* امنع الكرت من إضافة عرض زائد */
  .product{
    width: 100%;
    min-width: 0;
  }
}





@media (max-width: 520px){
  .product{
    padding: 12px;
    border-radius: 16px;
  }

  .product__img{
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }

  .product__name{
    font-size: 14px;
    line-height: 1.2;
  }

  .product__price{
    font-size: 14px;
  }

  .product__btn--icon{
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
}





/* ===== Premium Ghost Button (Secondary) ===== */
.btn--ghost{
  border: 1px solid rgba(79,231,255,.45);            /* cyan stroke */
  background: linear-gradient(
    180deg,
    rgba(79,231,255,.10),
    rgba(79,231,255,.04)
  );
  color: rgba(234,240,255,.95);
  box-shadow:
    inset 0 0 0 1px rgba(79,231,255,.15),
    0 10px 26px rgba(79,231,255,.15);
}

.btn--ghost:hover{
  background: linear-gradient(
    180deg,
    rgba(79,231,255,.18),
    rgba(79,231,255,.08)
  );
  border-color: rgba(79,231,255,.65);
  transform: translateY(-1px);
}

.btn--ghost:active{
  transform: translateY(0) scale(.98);
}

/* Mobile polish */
@media (max-width:520px){
  .btn--ghost{
    box-shadow:
      inset 0 0 0 1px rgba(79,231,255,.18),
      0 8px 20px rgba(79,231,255,.14);
  }
}



/* ===== Checkout Page ===== */
.checkoutPage{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items:start;
}

.checkoutPay__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.checkoutQR{
  border-radius: 22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  aspect-ratio: 1 / 1;
  display:grid;
  place-items:center;
}

.checkoutQR img{
  width:100%;
  height:100%;
  object-fit: contain;
  padding: 14px;
}

.checkoutTotal{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
}

.checkoutFormCard__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}

.coItems{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom: 12px;
}

.coItem{
  display:grid;
  grid-template-columns: 56px 1fr auto;
  gap:12px;
  align-items:center;
  padding:10px;
  border-radius:18px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}

.coItem__img{
  width:56px; height:56px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}

.coItem__img img{width:100%; height:100%; object-fit:cover;}
.coItem__name{font-weight:900; font-size:14px; line-height:1.2}

.coForm{
  display:grid;
  gap:10px;
}

.btn--wide{
  width:100%;
  justify-content:center;
}

@media (max-width: 820px){
  .checkoutPage{
    grid-template-columns: 1fr;
  }
}




/* ===== Checkout Page ===== */
.checkoutPage{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items:start;
}
@media (max-width:820px){
  .checkoutPage{grid-template-columns:1fr}
}

.checkoutPay__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.payMethods{display:grid; gap:10px; margin:12px 0;}
.payMethod{display:block; cursor:pointer;}
.payMethod input{display:none;}
.payMethod__card{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border-radius:18px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.payMethod:hover .payMethod__card{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}
.payMethod input:checked + .payMethod__card{
  border-color: rgba(79,231,255,.55);
  background: rgba(79,231,255,.10);
}

.wishBox{margin-top:10px;}

.checkoutQR{
  border-radius: 22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  aspect-ratio: 1 / 1;
  display:grid;
  place-items:center;
}
.checkoutQR img{
  width:100%;
  height:100%;
  object-fit: contain;
  padding: 14px;
}

.checkline{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 14px;
  border-radius:18px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
}

.checkoutTotal{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
}

.checkoutFormCard__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}

.coItems{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom: 12px;
}

.coItem{
  display:grid;
  grid-template-columns: 56px 1fr auto;
  gap:12px;
  align-items:center;
  padding:10px;
  border-radius:18px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.coItem__img{
  width:56px; height:56px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.coItem__img img{width:100%; height:100%; object-fit:cover;}
.coItem__name{font-weight:900; font-size:14px; line-height:1.2}

.coForm{display:grid; gap:10px;}
.field{display:grid; gap:6px;}
.field label{font-weight:800; font-size:13px; color: rgba(234,240,255,.88);}

.field input,
.field select,
.field textarea{
  width:100%;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline:none;
}
.field textarea{resize: vertical;}
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(79,231,255,.55);
  box-shadow: 0 0 0 4px rgba(79,231,255,.10);
}

.btn--wide{width:100%;}




















/* =========================
   Product page
========================= */
.crumbs{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.productPage{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
  align-items:start;
}
@media (max-width:980px){
  .productPage{grid-template-columns: 1fr; gap:14px;}
}

.productGallery{padding:14px;}
.productMainImg{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  aspect-ratio: 1 / 1;
}
.productMainImg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.productThumbs{
  display:flex;
  gap:10px;
  margin-top:12px;
  overflow:auto;
  padding-bottom:4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.productThumbs::-webkit-scrollbar{display:none;}

.thumb{
  width:74px;
  height:74px;
  padding:0;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  flex:0 0 auto;
}
.thumb img{width:100%; height:100%; object-fit:cover;}

.productInfo{padding:16px;}
.productInfo__top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.productTitle{
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing:-.02em;
}
.productPrice{
  font-weight:900;
  font-size: clamp(20px, 2.2vw, 28px);
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(79,231,255,1));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.productDesc{
  margin:12px 0 0;
  line-height:1.7;
}
.productActions{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width:520px){
  .productActions{grid-template-columns: 1fr; }
}

.btn--wide{width:100%;}




/* =========================
   Product page layout (mobile first)
   ========================= */
.pd { display: grid; gap: 14px; }

.pd__gallery {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.pdSlider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pdSlider::-webkit-scrollbar { display: none; }

.pdSlide {
  min-width: 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  position: relative;
}
.pdSlide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdDots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(0,0,0,.10);
}
.pdDot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
}
.pdDot.is-active { background: rgba(79,231,255,.95); }

.pd__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pd__priceBox { text-align: right; white-space: nowrap; }
.pd__price { font-weight: 900; font-size: 22px; }

.pd__row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.pd__variantsRow { flex: 1; min-width: 0; }
.pd__variantsTitle { font-weight: 900; margin-bottom: 8px; }

.pdVariants {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pdVariants::-webkit-scrollbar { display: none; }

.pdVar {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.pdVar small {
  display: block;
  font-weight: 700;
  opacity: .75;
  margin-top: 4px;
  font-size: 12px;
}

.pdVar.is-active {
  border-color: rgba(79,231,255,.65);
  background: rgba(79,231,255,.10);
}

.pd__add { flex: 0 0 auto; }

.pd__descTitle { font-weight: 900; margin-bottom: 8px; }

/* Desktop: put gallery left, info right */
@media (min-width: 980px) {
  .pd { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .pd__gallery { grid-column: 1; }
  .pd__top, .pd__row, .pd__desc { grid-column: 2; }
  .pd__desc { margin-top: 6px; }
}





/* ===== Product Page (PDP) Patch ===== */

.pdpHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.pdpCrumb{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  font-size:14px;
}
.pdpCrumb__link{ text-decoration:none; opacity:.9; }
.pdpCrumb__sep{ opacity:.5; }
.pdpCrumb__current{ opacity:.75; }

.pdpIcon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  cursor:pointer;
}

.pdpGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}

.pdpGallery{ padding:12px; border-radius:24px; }
.pdpPanel{ padding:14px; border-radius:24px; }

@media (min-width: 981px){
  .pdpGrid{ grid-template-columns: 1.15fr .85fr; align-items:start; }
  .pdpPanel{ position:sticky; top:92px; }
}

.pdpSlider{
  display:flex;
  overflow:auto;
  scroll-snap-type:x mandatory;
  gap:10px;
  border-radius:18px;
}
.pdpSlider::-webkit-scrollbar{ height:0; }
.pdpSlide{
  flex:0 0 100%;
  scroll-snap-align:start;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
}
.pdpSlide img{ width:100%; height:auto; display:block; }

.pdpDots{
  display:flex;
  gap:8px;
  justify-content:center;
  padding:10px 0 6px;
}
.pdpDot{
  width:7px;height:7px;
  border-radius:99px;
  background:rgba(255,255,255,.25);
}
.pdpDot.is-active{ background:rgba(255,255,255,.8); }

.pdpThumbs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding-top:8px;
}
.pdpThumbs::-webkit-scrollbar{ height:0; }
.pdpThumb{
  flex:0 0 auto;
  width:62px;height:62px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  cursor:pointer;
}
.pdpThumb.is-active{ outline:2px solid rgba(255,255,255,.35); }
.pdpThumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.pdpTitleRow{
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:flex-start;
}
.pdpBrand{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-weight:600;
  font-size:12px;
  width:fit-content;
  margin-bottom:10px;
}
.pdpTitle{ margin:0; font-size:22px; line-height:1.25; }
@media (min-width:981px){ .pdpTitle{ font-size:26px; } }

.pdpPriceBox{
  text-align:right;
  min-width:120px;
}
.pdpPrice{ font-size:22px; font-weight:800; }
.pdpPriceHint{ font-size:12px; margin-top:4px; opacity:.75; }

.pdpBlock{ margin-top:14px; }
.pdpBlock__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.pdpVariants{
  display:flex;
  gap:10px;
  overflow:auto;
  padding-bottom:4px;
}
.pdpVariants::-webkit-scrollbar{ height:0; }
.pdpVar{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  white-space:nowrap;
  min-width:130px;
}
.pdpVar.is-active{
  border-color: rgba(255,255,255,.35);
  background:rgba(255,255,255,.08);
}
.pdpVar__name{ font-weight:700; font-size:13px; }
.pdpVar__price{ font-size:12px; opacity:.8; }

.pdpBuyRow{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:14px;
}

.pdpQty{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}
.pdpQty__btn{
  width:34px;height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  cursor:pointer;
  font-size:18px;
}
.pdpQty__num{ width:22px; text-align:center; font-weight:800; }

.pdpAdd{ flex:1; }

.pdpMiniInfo{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  margin-top:14px;
}
.pdpMiniInfo__item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  opacity:.9;
}

.pdpAcc{ margin-top:14px; }
.pdpAcc__btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  cursor:pointer;
}
.pdpAcc__panel{
  padding:12px 6px 0;
}
.pdpDesc{
  white-space:pre-wrap;
  line-height:1.7;
  opacity:.92;
}

.pdpSticky{
  position:fixed;
  left:0; right:0; bottom:0;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:rgba(10,10,12,.78);
  backdrop-filter: blur(10px);
  border-top:1px solid rgba(255,255,255,.10);
  z-index:50;
}
.pdpSticky__inner{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  max-width: 1100px;
  margin: 0 auto;
}
.pdpSticky__name{ font-weight:800; font-size:13px; max-width:60vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pdpSticky__price{ font-weight:900; opacity:.9; }
.pdpSticky__btn{ padding:10px 14px; }

@media (min-width: 981px){
  .pdpSticky{ display:none; }
}








/* ===== PDP: Variants full-width on mobile + white text ===== */

/* خلي النص أبيض بكل الـ variants */
.pdpVar,
.pdpVar__name,
.pdpVar__price {
  color: #fff !important;
}

/* على الموبايل: كل زر variant ياخد عرض الشاشة */
@media (max-width: 980px) {
  .pdpVariants{
    display: grid !important;
    grid-template-columns: 1fr !important;   /* واحد تحت واحد */
    gap: 10px !important;
    overflow: visible !important;           /* نلغي السحب الأفقي */
  }

  .pdpVar{
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    justify-content: space-between !important;
    flex-direction: row !important;         /* الاسم يسار والسعر يمين */
    align-items: center !important;
    padding: 14px 14px !important;
  }

  .pdpVar__name{
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .pdpVar__price{
    font-size: 13px !important;
    font-weight: 700 !important;
    opacity: .9 !important;
  }
}

/* على الكمبيوتر: خليهم متساوين كـ grid (3 أو 2 حسب العرض) */
@media (min-width: 981px) {
  .pdpVariants{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    overflow: visible !important;
  }
  .pdpVar{
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* Active variant تمييز لطيف بدون ما يغير لون النص */
.pdpVar.is-active{
  border-color: rgba(255,255,255,.55) !important;
  background: rgba(255,255,255,.12) !important;
}

/* ===== PDP: Description button white text ===== */

.pdpAcc__btn,
.pdpAcc__btn strong,
.pdpAcc__btn #pdDescHint {
  color: #fff !important;
}

/* خلي hint أبيض لكن أخف */
.pdpAcc__btn #pdDescHint{
  opacity: .75 !important;
}

/* لو في أي SVG/أيقونة داخل الزر خلّيها بيضا */
.pdpAcc__btn svg{
  stroke: #fff !important;
  color: #fff !important;
}




@media (max-width: 920px){
  main .container[style*="grid-template-columns"]{
    grid-template-columns: 1fr !important;
  }
}

