:root {
  --bg: #101010; --card: #1c1c1c; --line: #2c2c2c;
  --yellow: #ffc61a; --red: #d62828; --sel: #3b2f10;
  --text: #fff; --muted: #a8a8a8;
  --font: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; padding-bottom: 6rem; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; font-size: 1rem; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* الواجهة */
.hero { text-align: center; padding: 3rem 1rem 2.2rem; background: radial-gradient(circle at 50% 0%, #2b2308 0%, #101010 70%); }
.logo { font-size: 4rem; }
.hero h1 { font-size: 3.2rem; font-weight: 900; line-height: 1.2; }
.hero h1 small { display: block; font-size: 1.1rem; letter-spacing: 6px; color: var(--yellow); }
.hero p { color: var(--muted); margin: .8rem 0 1.4rem; }
.hero-btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; border: 0; border-radius: 99px; padding: .7rem 1.6rem; font-weight: 800; }
.btn.red { background: var(--red); color: #fff; }
.btn.yellow { background: var(--yellow); color: #151515; }
.btn.block { display: block; width: 100%; border-radius: 16px; padding: .9rem; margin-top: .8rem; }

/* التبويبات */
.tabs { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid #222; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
#tabs { display: flex; gap: .6rem; padding: .8rem 1rem; width: max-content; }
.tab { background: #1a1a1a; color: #fff; border: 1px solid #333; border-radius: 99px; padding: .55rem 1.2rem; font-weight: 700; white-space: nowrap; }
.tab.on { background: var(--yellow); border-color: var(--yellow); color: #151515; }

/* الأقسام */
main, .info { max-width: 1100px; margin-inline: auto; padding-inline: 1rem; }
.sec { scroll-margin-top: 4.5rem; padding-top: 1.4rem; }
.sec-title { display: flex; align-items: center; gap: .6rem; font-size: 2rem; font-weight: 900; color: var(--c); padding: .9rem 1.1rem; margin-bottom: 1rem; background: linear-gradient(270deg, #1b1b1b, var(--bg)); border-inline-start: 6px solid var(--c); border-radius: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }

/* البطاقات */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.card h3 { font-size: 1.3rem; font-weight: 800; }
.sizes { display: flex; gap: .6rem; }
.size { flex: 1; background: #2a2a2a; border: 2px solid transparent; border-radius: 14px; color: #fff; padding: .55rem .3rem; display: flex; flex-direction: column; align-items: center; font-weight: 700; }
.size b { color: var(--yellow); font-size: 1.1rem; }
.size.on { background: var(--sel); border-color: var(--yellow); }
.row { display: flex; align-items: center; gap: .8rem; }
.price { margin-inline-end: auto; color: var(--yellow); font-size: 1.6rem; font-weight: 900; }
.qty { display: flex; align-items: center; gap: .9rem; font-size: 1.3rem; font-weight: 800; flex-direction: row; }
.qty button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--yellow); color: #151515; font-size: 1.4rem; font-weight: 900; }
.add { background: var(--red); color: #fff; border: 0; border-radius: 16px; padding: .85rem; font-weight: 800; font-size: 1.1rem; }
.add.done { background: #2e9d4a; }

/* معلومات */
.info h2 { font-size: 2rem; font-weight: 900; color: var(--yellow); border-inline-start: 6px solid var(--red); padding-inline-start: 1rem; margin: 2rem 0 1rem; }
.info .box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem; }
.info .box p + p { margin-top: .4rem; }
footer { text-align: center; color: var(--muted); padding: 2rem 1rem; }

/* الأزرار العائمة */
.fab { position: fixed; bottom: 6rem; z-index: 30; width: 68px; height: 68px; border-radius: 50%; border: 0; color: #fff; font-size: 1.8rem; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.fab.phone { right: 1rem; background: var(--red); }
.fab.up { left: 1rem; background: #2c2c2c; display: none; }
.cart-bar { position: fixed; z-index: 30; bottom: 1rem; inset-inline: 1rem; max-width: 1000px; margin-inline: auto; background: var(--yellow); color: #151515; border: 0; border-radius: 99px; padding: .9rem 1.4rem; display: flex; justify-content: space-between; align-items: center; font-size: 1.3rem; font-weight: 900; }
.badge { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 99px; background: var(--red); color: #fff; font-size: 1rem; margin-inline-start: .4rem; padding: 0 .4rem; }

/* السلة */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.75); display: none; align-items: flex-end; justify-content: center; }
.overlay.open { display: flex; }
.sheet { background: #161616; width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 1.2rem; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { color: var(--yellow); }
.sheet-head button { background: #2c2c2c; color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; }
.empty { text-align: center; color: var(--muted); padding: 1.5rem 0; }
.ci { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.ci-top { display: flex; justify-content: space-between; gap: .6rem; font-weight: 700; }
.ci-top b { color: var(--yellow); white-space: nowrap; }
.ci-ctrl { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.ci-ctrl button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--yellow); font-weight: 900; }
.ci-ctrl .del { margin-inline-start: auto; width: auto; padding: 0 1rem; border-radius: 99px; background: transparent; color: #ff6b6b; border: 1px solid #ff6b6b; }
.total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; margin: 1rem 0; }
.total b { color: var(--yellow); }
form label { display: block; margin-top: .7rem; font-weight: 700; }
form input, form textarea { width: 100%; margin-top: .25rem; padding: .7rem .8rem; background: #232323; border: 1px solid #3a3a3a; border-radius: 12px; color: #fff; }
.msg { min-height: 1.4rem; margin-top: .6rem; font-weight: 700; }
.msg.error { color: #ff6b6b; } .msg.ok { color: #46d36d; }

@media (min-width: 700px) { .hero h1 { font-size: 4.5rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* حالة الطلب */
[hidden] { display: none !important; }
.status { max-width: 1068px; margin: 1rem auto; padding: 1rem 1.2rem; background: var(--card); border: 2px solid var(--yellow); border-radius: 22px; }
.status h3 { color: var(--yellow); margin-bottom: .4rem; }
.status p { color: var(--muted); }
.status p.ok { color: #fff; font-weight: 700; }
.status p.rej { color: #ff6b6b; font-weight: 700; }
.status button { margin-top: .6rem; background: #2c2c2c; color: #fff; border: 0; border-radius: 99px; padding: .4rem 1.2rem; }
@media (max-width: 1100px) { .status { margin-inline: 1rem; } }

/* صور الأصناف */
.photo { display: block; width: calc(100% + 2.2rem); margin: -1.1rem -1.1rem 0; aspect-ratio: 4 / 3; object-fit: cover; background: #222; border-radius: 22px 22px 0 0; }
