/* واجهة المتجر (الزائر والتاجر) */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
main { min-height: 60vh; }
.page { padding-block: 26px 60px; } .page-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 6px; } .page-sub { color: var(--dim); margin-bottom: 22px; }

/* الشريط العلوي */
.ann { background: var(--navy); color: #fff; text-align: center; font-size: 14px; padding: 8px 14px; font-weight: 500; } .ann b { color: var(--gold); }
.hdr { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; flex: none; } .logo img { width: 40px; height: 40px; border-radius: 12px; } .logo small { display: block; font-size: 11px; font-weight: 700; color: var(--gold-ink); background: var(--gold-soft); padding: 0 8px; border-radius: var(--rb); line-height: 1.6; width: max-content; }
.logo span { line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 6px; } .nav a { padding: 8px 14px; border-radius: var(--rb); font-weight: 700; font-size: 15px; color: #334155; transition: background .15s; } .nav a:hover, .nav a.on { background: var(--soft); color: var(--brand-strong); }
.search { flex: 1; max-width: 460px; position: relative; margin-inline-start: auto; } .search input { width: 100%; height: 44px; border-radius: var(--rb); border: 1.5px solid var(--line); padding: 0 46px 0 16px; background: #f5f7fb; transition: .15s; } .search input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--soft); }
.search .i { position: absolute; inset-inline-start: auto; right: 14px; top: 12px; color: var(--dim); pointer-events: none; } html[dir=rtl] .search .i { right: 14px; }
.hdr-act { display: flex; align-items: center; gap: 8px; flex: none; }
.cart-btn { position: relative; } .badge { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand-strong); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.menu-btn { display: none; }
.userbox { position: relative; } .userbtn { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border: 1.5px solid var(--line); border-radius: var(--rb); background: #fff; font-weight: 700; font-size: 14px; } .userbtn .av { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-strong); color: #fff; display: grid; place-items: center; font-weight: 800; }
.dropdown { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh2); padding: 6px; z-index: 100; animation: rise .2s var(--ease); }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; text-align: start; } .dropdown a:hover, .dropdown button:hover { background: var(--soft); } .dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* الرئيسية */
.hero { background: radial-gradient(1100px 520px at 85% -10%, rgba(47, 107, 255, .55), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(245, 165, 36, .22), transparent 60%), var(--navy); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 64px 0 70px; position: relative; z-index: 1; }
.hero .tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(245, 165, 36, .16); color: #ffd48a; border: 1px solid rgba(245, 165, 36, .35); padding: 5px 14px; border-radius: var(--rb); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; } .hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: #c5cee3; margin: 18px 0 28px; max-width: 560px; line-height: 1.8; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; } .hero .btn:not(.primary):not(.gold) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; } .hero .btn:not(.primary):not(.gold):hover { background: rgba(255, 255, 255, .16); }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; } .hero-stats b { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1.2; } .hero-stats span { font-size: 13.5px; color: #9fb0d6; }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; transform: rotate(-3deg); } .mosaic .tile { background: #fff; border-radius: 22px; padding: 14px; aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .6); animation: float 6s ease-in-out infinite; } .mosaic .tile:nth-child(2) { margin-top: 28px; animation-delay: -2s; } .mosaic .tile:nth-child(3) { margin-top: -28px; animation-delay: -4s; } .mosaic .tile:nth-child(4) { animation-delay: -1s; }
.mosaic img { width: 100%; height: 100%; object-fit: contain; }
@keyframes float { 50% { transform: translateY(-9px); } }
.lockcard { background: linear-gradient(135deg, #fff, #f1f5ff); color: var(--ink); border-radius: 22px; padding: 22px; display: grid; gap: 8px; text-align: center; justify-items: center; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .6); } .lockcard .i { width: 34px; height: 34px; color: var(--brand-strong); }
.sec { padding: 54px 0 0; } .sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; } .sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; } .sec-head p { color: var(--dim); margin-top: 2px; } .sec-head a.more { color: var(--brand-strong); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; } .cat { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 18px; display: flex; align-items: center; gap: 14px; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; } .cat:hover { transform: translateY(-3px); box-shadow: var(--sh1); border-color: #cdd8f3; } .cat .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--brand-strong); display: grid; place-items: center; flex: none; } .cat b { display: block; font-size: 16px; line-height: 1.3; } .cat small { color: var(--dim); }
.brands { display: flex; flex-wrap: wrap; gap: 10px; } .brand { padding: 9px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--rb); font-weight: 800; letter-spacing: .01em; transition: .15s; } .brand:hover { border-color: var(--brand); color: var(--brand-strong); transform: translateY(-2px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; } .step { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 24px; position: relative; } .step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; inset-inline-end: 20px; font-size: 54px; font-weight: 800; color: #eef2fb; line-height: 1; } .step .ic { width: 50px; height: 50px; border-radius: 16px; background: var(--soft); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: 14px; } .step h3 { font-size: 18px; margin-bottom: 6px; } .step p { color: var(--dim); font-size: 15px; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; } .benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 20px; } .benefit .i { color: var(--gold); width: 28px; height: 28px; margin-bottom: 10px; } .benefit b { display: block; margin-bottom: 4px; } .benefit p { color: var(--dim); font-size: 14.5px; }
.cta-band { margin-top: 54px; background: linear-gradient(120deg, var(--brand-strong), #5b8dff 55%, #7c9cff); color: #fff; border-radius: 28px; padding: 38px 40px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; box-shadow: 0 30px 50px -30px var(--brand); } .cta-band h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; } .cta-band p { color: #e4ecff; margin-top: 4px; } .cta-band .btn { background: #fff; color: var(--brand-strong); border-color: #fff; }

/* بطاقة المنتج */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.pc { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; position: relative; } .pc:hover { transform: translateY(-4px); box-shadow: var(--sh2); border-color: #d3dcf3; }
.pc .img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 16px; position: relative; } .pc .img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); } .pc:hover .img img { transform: scale(1.05); } .pc .noimg { color: #c3cbe0; } .pc .noimg .i { width: 54px; height: 54px; }
.pc .st { position: absolute; top: 10px; inset-inline-start: 10px; } .pc .ft { position: absolute; top: 10px; inset-inline-end: 10px; background: var(--gold); color: #2b1a00; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: var(--rb); }
.pc .body { padding: 6px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; } .pc .br { color: var(--dim); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; } .pc h3 { font-size: 15.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.pc .price { margin-top: auto; padding-top: 6px; } .pc .price b { font-size: 20px; font-weight: 800; color: var(--ink); } .pc .price small { color: var(--dim); font-size: 13px; margin-inline-start: 4px; } .pc .price s { display: block; color: var(--dim); font-size: 13px; }
.pc .save { display: inline-block; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: var(--rb); margin-inline-start: 6px; }
.lockpill { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); color: var(--brand-strong); padding: 7px 12px; border-radius: var(--rb); font-weight: 700; font-size: 13.5px; } .lockpill .i { width: 16px; height: 16px; }
.pc .buy { display: flex; gap: 8px; margin-top: 10px; } .pc .buy .btn { flex: 1; min-height: 40px; padding: 0 10px; font-size: 14px; } .pc .qty { flex: 0 0 auto; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--rb); background: #fff; height: 40px; } .qty button { width: 36px; height: 100%; display: grid; place-items: center; color: var(--ink); } .qty button:hover { color: var(--brand-strong); } .qty input { width: 52px; text-align: center; border: 0; background: transparent; font-weight: 800; height: 100%; padding: 0; -moz-appearance: textfield; } .qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .qty input:focus { outline: none; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 2px 10px; border-radius: var(--rb); background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(15, 23, 42, .1); } .stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--bad); }

/* المتجر */
.shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 26px; align-items: start; }
.filters { position: sticky; top: 88px; background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 18px; max-height: calc(100vh - 110px); overflow: auto; } .filters h3 { font-size: 15px; margin-bottom: 10px; } .fgroup { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); } .fgroup:last-child { border: 0; margin: 0; padding: 0; }
.flist { display: grid; gap: 2px; } .flist button { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; font-size: 14.5px; text-align: start; font-weight: 600; color: #334155; } .flist button:hover { background: #f1f5fd; } .flist button.on { background: var(--soft); color: var(--brand-strong); font-weight: 800; } .flist small { color: var(--dim); font-weight: 600; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; } .toolbar .count { color: var(--dim); font-weight: 600; } .toolbar select { min-height: 42px; border: 1.5px solid var(--line); border-radius: var(--rb); padding: 0 14px; background: #fff; font-weight: 600; }
.activef { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; } .activef .chip { cursor: pointer; } .activef .chip:hover { background: var(--bad-soft); color: var(--bad); }
.pager { display: grid; place-items: center; margin-top: 26px; gap: 8px; }
.filter-btn { display: none; }

/* صفحة المنتج */
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 14px; margin-bottom: 18px; flex-wrap: wrap; } .crumbs a:hover { color: var(--brand-strong); } .crumbs .i { width: 14px; height: 14px; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: start; }
.pd-img { background: #fff; border: 1px solid var(--line); border-radius: 26px; aspect-ratio: 1; display: grid; place-items: center; padding: 30px; position: sticky; top: 88px; } .pd-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; } .pd-info .en { color: var(--dim); direction: ltr; text-align: end; margin-top: 2px; } .pd-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.pd-price { background: linear-gradient(135deg, #f1f5ff, #fff); border: 1px solid #d9e3fb; border-radius: var(--r2); padding: 18px 20px; margin: 16px 0; } .pd-price b { font-size: 34px; font-weight: 800; color: var(--brand-strong); } .pd-price small { color: var(--dim); } .pd-price s { color: var(--dim); margin-inline-start: 10px; }
.vtable { border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; background: #fff; } .vrow { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); } .vrow:last-child { border: 0; } .vrow.head { background: #f8f9fc; color: var(--dim); font-weight: 700; font-size: 13px; } .vrow .vn { font-weight: 800; } .vrow.out { opacity: .55; }
.locked { background: var(--soft); border: 1px dashed #b9c9f5; border-radius: var(--r2); padding: 20px; display: grid; gap: 10px; justify-items: start; } .locked h3 { font-size: 18px; } .locked p { color: #475569; }
.addbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r2); position: sticky; bottom: 12px; box-shadow: var(--sh2); }

/* السلة */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cline { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r2); margin-bottom: 12px; } .cline .th { width: 78px; height: 78px; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 6px; } .cline .th img { width: 100%; height: 100%; object-fit: contain; } .cline h4 { font-size: 15.5px; font-weight: 700; } .cline .meta { color: var(--dim); font-size: 13.5px; } .cline .tot { font-weight: 800; font-size: 17px; text-align: end; min-width: 96px; } .cline .ctl { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.cline.warn { border-color: #f3c58a; background: #fffaf2; } .cline .note { color: var(--warn); font-size: 13px; font-weight: 700; }
.sum { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 22px; position: sticky; top: 88px; } .sum h3 { font-size: 18px; margin-bottom: 14px; } .sum .r { display: flex; justify-content: space-between; padding: 8px 0; color: #334155; } .sum .r.t { font-size: 22px; font-weight: 800; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; color: var(--ink); } .sum .note-box { margin: 14px 0; }
.done { max-width: 560px; margin: 40px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px 28px; box-shadow: var(--sh1); } .done .ok { width: 78px; height: 78px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .5s var(--ease); } .done .ok .i { width: 38px; height: 38px; stroke-width: 2.4; } @keyframes pop { from { transform: scale(.3); opacity: 0; } }
.code { display: inline-block; direction: ltr; font-family: Consolas, ui-monospace, monospace; font-weight: 800; font-size: 24px; letter-spacing: .06em; background: var(--soft); color: var(--brand-strong); padding: 6px 18px; border-radius: 12px; margin: 8px 0; }

/* الطلبات */
.ocard { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r2); margin-bottom: 12px; transition: .2s; cursor: pointer; } .ocard:hover { border-color: #c5d3f5; box-shadow: var(--sh1); } .ocard b.code2 { direction: ltr; display: inline-block; font-family: Consolas, ui-monospace, monospace; letter-spacing: .04em; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; } .tab { padding: 8px 16px; border-radius: var(--rb); background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; } .tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.timeline { display: grid; gap: 0; margin-top: 10px; } .tl { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 14px; position: relative; } .tl::before { content: ''; position: absolute; inset-inline-start: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); } .tl:last-child::before { display: none; } .tl .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-strong); border: 4px solid var(--soft); } .tl b { display: block; } .tl small { color: var(--dim); }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 22px; } .box + .box { margin-top: 16px; } .box h3 { font-size: 18px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 15px; } .kv dt { color: var(--dim); } .kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* الدخول والتسجيل */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); max-width: 980px; margin: 36px auto; background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--sh1); } .auth .side { background: radial-gradient(500px 300px at 100% 0, rgba(47, 107, 255, .5), transparent 65%), var(--navy); color: #fff; padding: 38px 32px; display: grid; align-content: center; gap: 18px; } .auth .side h2 { font-size: 26px; font-weight: 800; line-height: 1.35; } .auth .side li { display: flex; gap: 10px; align-items: start; color: #cfd8ee; list-style: none; } .auth .side ul { margin: 0; padding: 0; display: grid; gap: 12px; } .auth .side .i { color: var(--gold); margin-top: 3px; }
.auth .formside { padding: 38px 34px; } .auth .formside h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; } .auth .formside .sub { color: var(--dim); margin-bottom: 22px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .fgrid .full { grid-column: 1 / -1; }
.success-box { text-align: center; padding: 30px 10px; display: grid; gap: 12px; justify-items: center; } .success-box .ok { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; animation: pop .5s var(--ease); } .success-box .ok .i { width: 38px; height: 38px; stroke-width: 2.4; } .success-box p { color: #475569; max-width: 380px; }

/* التذييل */
.ftr { background: var(--navy); color: #b6c2df; margin-top: 70px; padding: 44px 0 26px; } .ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; } .ftr h4 { color: #fff; margin-bottom: 12px; } .ftr a { display: block; padding: 4px 0; color: #b6c2df; } .ftr a:hover { color: #fff; } .ftr .logo { color: #fff; margin-bottom: 12px; } .ftr .cp { border-top: 1px solid #1f2a44; margin-top: 28px; padding-top: 18px; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.wa-float { position: fixed; inset-inline-start: 18px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #12a150; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 28px -10px rgba(18, 161, 80, .7); transition: transform .2s; } .wa-float:hover { transform: scale(1.08); } .wa-float .i { width: 28px; height: 28px; stroke-width: 1.6; }
.mbar { display: none; }
.errpage { text-align: center; padding: 80px 0; display: grid; gap: 12px; justify-items: center; }
.erp-warn { background: var(--warn-soft); color: var(--warn); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }

/* الجوال */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; padding: 44px 0 50px; } .mosaic { max-width: 420px; margin: 8px auto 0; } .benefits { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; } .filters { position: fixed; inset: 0; z-index: 150; border-radius: 0; max-height: none; padding: 20px; transform: translateY(100%); transition: transform .3s var(--ease); visibility: hidden; } .filters.open { transform: none; visibility: visible; } .filter-btn { display: inline-flex; }
  .pd { grid-template-columns: 1fr; } .pd-img { position: static; max-width: 520px; margin: 0 auto; width: 100%; } .cart { grid-template-columns: 1fr; } .sum { position: static; }
  .auth { grid-template-columns: 1fr; margin: 18px auto; } .auth .side { padding: 26px 24px; } .auth .side ul { display: none; } .ftr-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 14px; } .nav { display: none; } .menu-btn { display: inline-grid; } .search { display: none; } .hdr-in { min-height: 60px; gap: 8px; } .logo { font-size: 18px; } .logo img { width: 36px; height: 36px; }
  .nav.open { display: grid; position: absolute; top: 100%; inset-inline: 0; background: #fff; padding: 12px 14px; border-bottom: 1px solid var(--line); box-shadow: var(--sh2); gap: 2px; margin: 0; } .search.open { display: block; position: absolute; top: 100%; inset-inline: 0; max-width: none; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); margin: 0; } .search.open input { height: 46px; } .search.open .i { top: 24px; right: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .pc .body { padding: 4px 12px 12px; } .pc h3 { font-size: 14px; min-height: 40px; } .pc .price b { font-size: 17px; } .pc .img { padding: 10px; } .pc .buy { flex-direction: column; } .pc .qty { width: 100%; justify-content: space-between; }
  .cats { grid-template-columns: repeat(2, 1fr); } .cat { padding: 12px; gap: 10px; } .cat .ic { width: 38px; height: 38px; } .cat b { font-size: 14px; } .benefits { grid-template-columns: 1fr; } .cta-band { padding: 26px 22px; border-radius: 22px; } .hero-stats { gap: 20px; } .hero-stats b { font-size: 22px; }
  .vrow { grid-template-columns: 1fr 1fr; } .vrow.head { display: none; } .vrow .qty { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; }
  .cline { grid-template-columns: 64px 1fr; } .cline .th { width: 64px; height: 64px; } .cline .tot { grid-column: 1 / -1; text-align: start; border-top: 1px dashed var(--line); padding-top: 8px; display: flex; justify-content: space-between; }
  .fgrid { grid-template-columns: 1fr; } .auth .formside { padding: 24px 18px; } .ftr-in { grid-template-columns: 1fr; } .kv { grid-template-columns: 110px 1fr; }
  .mbar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 85; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -10px 24px -16px rgba(15, 23, 42, .4); } .mbar small { color: var(--dim); display: block; font-size: 12px; line-height: 1.2; } .mbar b { font-size: 18px; } body.has-mbar .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); } body.has-mbar { padding-bottom: 76px; }
  .addbar { position: static; }
}

/* هياكل التحميل والتفاصيل الصغيرة */
.skel.line{height:12px;margin-top:8px}.skel.s1{width:72%}.skel.s2{width:42%}.pc .skel.img{aspect-ratio:1;border-radius:0}
.noscript{text-align:center;padding:40px;font-family:sans-serif}
.lnk{color:var(--brand-strong);font-weight:700}.lnk:hover{text-decoration:underline}
.nav a.on{background:var(--soft);color:var(--brand-strong)}
.locked .i.big{width:34px;height:34px;color:var(--brand-strong)}

.nav .only-m{display:none}
@media (max-width: 760px) {
  .nav .only-m{display:block}.hdr-act .btn.ghost{display:none}.hdr-act{gap:4px}.hdr-in{flex-wrap:nowrap}.logo{min-width:0}.logo span{white-space:nowrap}.hdr-act .btn.sm{padding:0 12px}
}
