/* FitofKSA Menswear — cinematic dark UI */
:root{
  --bg:#050507;
  --panel:#0b0b10;
  --panel2:#0f0f17;
  --text:#ffffff;
  --muted:#b8b8c6;
  --line:rgba(255,255,255,.10);
  --accent:#ff2a2a;
  --accent2:#b30000;
  --shadow: 0 30px 80px rgba(0,0,0,.55);
}

*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
.wrap{width:min(1120px,92%);margin:auto}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(5,5,7,.55);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
}
.topbar .wrap{
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; padding:14px 0;
}
.brand{display:flex; align-items:baseline; gap:10px}
.brand__mark{
  width:34px;height:34px;border-radius:10px;
  display:grid;place-items:center;
  background:radial-gradient(circle at 30% 30%, var(--accent), var(--accent2));
  box-shadow:0 0 24px rgba(255,42,42,.35);
  font-weight:900;
}
.brand__name{font-weight:800;letter-spacing:.2px}
.brand__tag{color:var(--muted);font-size:.85rem}

.nav{display:flex; gap:16px; color:var(--muted)}
.nav a{padding:10px 10px;border-radius:10px;transition:.2s}
.nav a:hover{background:rgba(255,255,255,.06);color:#fff}

.actions{display:flex; gap:10px; align-items:center}
.iconBtn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  display:flex; gap:10px; align-items:center;
  transition:.2s;
}
.iconBtn:hover{transform:translateY(-1px); background:rgba(255,255,255,.06)}
.iconBtn--accent{border-color:rgba(255,42,42,.35)}
.badge{
  min-width:22px;height:22px;border-radius:999px;
  display:grid;place-items:center;
  background:rgba(255,42,42,.18);
  border:1px solid rgba(255,42,42,.35);
  font-size:.8rem;
}

/* Hero */
.hero{
  position:relative;
  min-height:92vh;
  display:flex; align-items:center;
  border-bottom:1px solid var(--line);
}
.hero__bg{
  position:absolute; inset:0;
  background:url("images/hero-bg.jpeg") center/cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}
.hero__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(800px 400px at 70% 35%, rgba(255,42,42,.20), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.82));
}
.hero__content{position:relative; padding:74px 0}
.hero__kicker{
  color:rgba(255,255,255,.88);
  letter-spacing:.5px;
  display:inline-flex; gap:10px; align-items:center;
  padding:10px 14px;
  background:rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  box-shadow:0 0 0 1px rgba(0,0,0,.25) inset;
}
.hero__title{
  margin-top:18px;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height:1.1;
  text-shadow: 0 0 18px rgba(255,42,42,.24);
}
.hero__sub{
  margin-top:14px;
  width:min(620px,100%);
  color:rgba(255,255,255,.88);
  line-height:1.9;
}
.hero__cta{margin-top:22px; display:flex; gap:12px; flex-wrap:wrap}
.btn{
  border-radius:14px;
  padding:12px 16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:#fff;
  cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  transition:.2s;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.07)}
.btn--primary{
  border-color:rgba(255,42,42,.35);
  background: linear-gradient(180deg, rgba(255,42,42,.18), rgba(179,0,0,.12));
  box-shadow:0 0 30px rgba(255,42,42,.18);
}
.btn--ghost{background:rgba(0,0,0,.25)}
.btn--block{width:100%}

.hero__chips{margin-top:18px; display:flex; gap:10px; flex-wrap:wrap}
.chip{
  font-size:.9rem;
  color:rgba(255,255,255,.88);
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}

/* Sections */
.section{padding:64px 0}
.section--alt{background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0))}
.section__head{margin-bottom:18px}
.section__head h2{font-size:1.6rem}
.section__head p{color:var(--muted); margin-top:8px; line-height:1.7}
.section__head--split{display:flex; align-items:flex-end; justify-content:space-between; gap:18px; flex-wrap:wrap}
.hint{color:var(--muted); font-size:.95rem}
.hint code{color:#fff; background:rgba(255,255,255,.06); padding:2px 8px; border-radius:10px; border:1px solid var(--line)}

.grid{display:grid; gap:16px}
.grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width: 900px){ .grid--3{grid-template-columns:1fr} .nav{display:none} }

.tile{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:18px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.tile__img{height:170px; background-size:cover; background-position:center; filter:contrast(1.05)}
.tile__img--1{background-image: radial-gradient(900px 240px at 10% 40%, rgba(255,42,42,.24), transparent 60%), linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.0))}
.tile__img--2{background-image: radial-gradient(900px 240px at 90% 40%, rgba(255,42,42,.18), transparent 60%), linear-gradient(135deg, rgba(255,255,255,.05), rgba(0,0,0,.0))}
.tile__img--3{background-image: radial-gradient(900px 240px at 40% 30%, rgba(255,42,42,.14), transparent 60%), linear-gradient(135deg, rgba(255,255,255,.05), rgba(0,0,0,.0))}
.tile__body{padding:16px}
.tile__body p{margin-top:8px; color:var(--muted); line-height:1.7}
.link{display:inline-flex; margin-top:12px; color:#fff; opacity:.9}
.link:hover{opacity:1; text-decoration:underline}

.catRow{display:flex; gap:10px; flex-wrap:wrap}
.cat{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  transition:.2s;
}
.cat:hover{background:rgba(255,255,255,.06)}
.cat.active{border-color:rgba(255,42,42,.35); box-shadow:0 0 0 1px rgba(255,42,42,.18) inset}

/* Products */
.productsGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
@media (max-width: 1000px){ .productsGrid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width: 520px){ .productsGrid{grid-template-columns:1fr} }

.card{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  transition:.2s;
}
.card:hover{transform:translateY(-2px)}
.card__img{
  height:170px;
  background:
    radial-gradient(700px 220px at 70% 20%, rgba(255,42,42,.18), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(0,0,0,0));
  border-bottom:1px solid var(--line);
  position:relative;
}
.pill{
  position:absolute; top:12px; right:12px;
  padding:8px 10px; border-radius:999px;
  background:rgba(0,0,0,.38);
  border:1px solid rgba(255,255,255,.12);
  font-size:.85rem;
  color:rgba(255,255,255,.92);
}
.card__body{padding:14px}
.card__title{font-weight:800}
.card__meta{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; color:var(--muted)}
.price{color:#fff; font-weight:800}
.rating{opacity:.95}
.card__sizes{margin-top:10px; display:flex; gap:8px; flex-wrap:wrap}
.sizeBtn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:#fff;
  padding:6px 10px;
  border-radius:10px;
  font-size:.85rem;
  cursor:pointer;
}
.sizeBtn.active{border-color:rgba(255,42,42,.35)}
.card__actions{margin-top:12px; display:flex; gap:10px}
.small{font-size:.85rem}

/* Lookbook */
.lookbook{display:grid; grid-template-columns:1.2fr .8fr; gap:18px; align-items:stretch}
@media (max-width: 900px){ .lookbook{grid-template-columns:1fr} }
.bullets{margin-top:12px; color:var(--muted); line-height:1.9; padding-right:18px}
.lookbook__cards{display:grid; gap:12px}
.miniCard{
  height:120px;
  border-radius:18px;
  border:1px solid var(--line);
  background:
    radial-gradient(700px 220px at 30% 30%, rgba(255,42,42,.16), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(0,0,0,0));
  box-shadow: var(--shadow);
}

/* About */
.about{display:grid; grid-template-columns:1.3fr .7fr; gap:18px; align-items:start}
@media (max-width: 900px){ .about{grid-template-columns:1fr} }
.stats{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px}
.stat{
  flex:1;
  min-width:160px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  background:rgba(255,255,255,.02);
}
.stat__n{font-size:1.2rem; font-weight:900}
.stat__t{color:var(--muted); margin-top:6px}
.panel{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:rgba(255,255,255,.02);
  box-shadow: var(--shadow);
}
.muted{color:var(--muted)}
.sizes{display:grid; gap:10px; margin-top:12px}
.size{
  display:flex; justify-content:space-between; align-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  background:rgba(255,255,255,.02);
}
.size b{letter-spacing:.3px}

/* FAQ */
.faq{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  background:rgba(255,255,255,.02);
  margin-top:12px;
}
.faq summary{cursor:pointer; font-weight:800}
.faq p{margin-top:10px; color:var(--muted); line-height:1.8}

/* Footer */
.footer{border-top:1px solid var(--line); padding:26px 0}
.footer__inner{display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; align-items:center}
.footer__brand{font-weight:900}
.footer__links{display:flex; gap:14px; color:var(--muted)}
.footer__links a:hover{color:#fff}

/* Modal + Drawer */
.modal, .drawer{position:fixed; inset:0; z-index:80; display:none}
.modal.show, .drawer.show{display:block}
.modal__backdrop, .drawer__backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.62);
}
.modal__panel{
  position:absolute;
  top:90px; right:50%;
  transform:translateX(50%);
  width:min(560px, 92%);
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:16px;
}
.modal__head{display:flex; justify-content:space-between; align-items:center}
.drawer__panel{
  position:absolute; top:0; left:0;
  width:min(420px, 92%);
  height:100%;
  background:var(--panel);
  border-right:1px solid var(--line);
  box-shadow: var(--shadow);
  padding:16px;
  display:flex; flex-direction:column;
}
.drawer__head{display:flex; justify-content:space-between; align-items:center; padding-bottom:10px; border-bottom:1px solid var(--line)}
.drawer__foot{margin-top:auto; padding-top:12px; border-top:1px solid var(--line)}
.xBtn{
  width:40px;height:40px;border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:#fff; font-size:20px; cursor:pointer;
}
.field{
  width:100%;
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  background:rgba(255,255,255,.03);
  color:#fff;
  outline:none;
}
.field::placeholder{color:rgba(255,255,255,.55)}

.cart{padding-top:12px; display:grid; gap:10px; overflow:auto}
.cartItem{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.02);
  display:grid; gap:8px;
}
.cartItem__top{display:flex; justify-content:space-between; gap:10px}
.cartItem__name{font-weight:900}
.cartItem__meta{color:var(--muted); font-size:.9rem}
.cartItem__row{display:flex; justify-content:space-between; align-items:center; gap:10px}
.qtyRow{display:flex; gap:8px; align-items:center}
.qtyBtn{
  width:34px;height:34px;border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:#fff; cursor:pointer;
}
.totalRow{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px}
