/* ============================================================
   السوق الشامل — نظام التصميم العام
   واجهة السوق + واجهة المتاجر (6 سمات)
   ============================================================ */

/* ---------- الخطوط ---------- */
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Amiri';
    src: url('../fonts/Amiri-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- المتغيرات ---------- */
:root {
    --bg: #F5F0E6;
    --surface: #FFFDF9;
    --surface-2: #FAF5EA;
    --surface-3: rgba(15, 23, 42, .045);
    --text: #151A21;
    --muted: #6B6454;
    --line: #E6DECD;
    --brand: #0E5F4F;
    --brand-2: #0A463A;
    --accent: #D99A2B;
    --hero-1: #0A0F1E;
    --hero-2: #0B3A2E;
    --on-brand: #FFFFFF;
    --on-accent: #241600;
    --ink: #0A0F1E;
    --brand-soft: rgba(14, 95, 79, .09);
    --accent-soft: rgba(217, 154, 43, .16);
    --brand-glow: rgba(14, 95, 79, .28);
    --accent-glow: rgba(245, 196, 81, .35);

    --container: 1240px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;

    --shadow-xs: 0 1px 2px rgba(10, 15, 30, .05);
    --shadow-sm: 0 6px 18px -8px rgba(10, 15, 30, .16);
    --shadow: 0 18px 44px -22px rgba(10, 15, 30, .28);
    --shadow-lg: 0 34px 80px -40px rgba(10, 15, 30, .45);

    --font: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --font-display: 'Amiri', 'Tajawal', serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 78px;
}

/* ---------- إعادة الضبط ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img,
svg,
video {
    max-width: 100%;
    vertical-align: middle;
}
a {
    color: inherit;
    text-decoration: none;
    transition: color .18s var(--ease);
}
p {
    margin: 0 0 1em;
}
h1,
h2,
h3,
h4,
h5 {
    margin: 0 0 .5em;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -.2px;
}
ul,
ol {
    margin: 0;
    padding: 0;
}
button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}
input,
select,
textarea {
    font: inherit;
}
::selection {
    background: var(--accent);
    color: #241600;
}
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}
::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}
::-webkit-scrollbar-track {
    background: var(--surface-2);
}
::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--muted) 45%, transparent);
    border-radius: 999px;
    border: 3px solid var(--surface-2);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}
.main {
    display: block;
    min-height: 46vh;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    inset-inline-start: 16px;
    top: -80px;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    transition: top .25s var(--ease);
}
.skip-link:focus {
    top: 0;
    color: #fff;
}
.ico {
    flex: none;
    display: inline-block;
}

/* ---------- العناوين والأقسام ---------- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 26px;
}
.section-title {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    margin: 0;
    position: relative;
    padding-inline-start: 18px;
}
.section-title::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .18em;
    bottom: .18em;
    width: 5px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--accent), var(--brand));
}
.section-sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--brand);
    white-space: nowrap;
    padding: 8px 2px;
}
.section-link:hover {
    gap: 11px;
    color: var(--brand-2);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid var(--brand-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.grad-gold {
    background: linear-gradient(100deg, #FFE9A8 0%, #F5C451 38%, #D99A2B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-muted {
    color: var(--muted);
}
.text-brand {
    color: var(--brand);
}
.text-accent {
    color: var(--accent);
}
.text-center {
    text-align: center;
}
.money {
    white-space: nowrap;
}
.money b {
    font-weight: 800;
}
.money small {
    font-size: .72em;
    color: var(--muted);
    font-weight: 700;
}

/* ---------- الأزرار ---------- */
.btn {
    --btn-bg: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: 13px;
    border: 1px solid transparent;
    background: var(--btn-bg);
    color: var(--on-brand);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s, opacity .18s;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0) scale(.985);
}
.btn[disabled],
.btn.is-disabled {
    opacity: .55;
    pointer-events: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: var(--on-brand);
    box-shadow: 0 14px 30px -16px var(--brand-glow);
}
.btn-primary:hover {
    box-shadow: 0 18px 36px -16px var(--brand-glow);
}
.btn-accent {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 66%, #7A4B00));
    color: var(--on-accent);
    box-shadow: 0 14px 30px -16px var(--accent-glow);
}
.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}
.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}
.btn-outline {
    background: transparent;
    border-color: var(--brand);
    color: var(--brand);
}
.btn-outline:hover {
    background: var(--brand);
    color: var(--on-brand);
}
.btn-soft {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: transparent;
}
.btn-soft:hover {
    background: var(--brand);
    color: var(--on-brand);
}
.btn-danger {
    background: #BE123C;
    color: #fff;
}
.btn-danger-soft {
    background: rgba(190, 18, 60, .1);
    color: #BE123C;
}
.btn-wa {
    background: #1FA855;
    color: #fff;
}
.btn-wa:hover {
    background: #178C46;
}
.btn-sm {
    height: 38px;
    padding: 0 15px;
    font-size: 13.5px;
    border-radius: 11px;
}
.btn-lg {
    height: 54px;
    padding: 0 30px;
    font-size: 16.5px;
    border-radius: 15px;
}
.btn-block {
    width: 100%;
}
.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
}
.btn-icon:hover {
    color: var(--brand);
    border-color: var(--brand);
}
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--brand);
}
.link-arrow:hover {
    gap: 10px;
}

/* ---------- الشارات ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}
.badge-success {
    background: rgba(16, 145, 95, .12);
    color: #0B7A50;
}
.badge-warn {
    background: rgba(217, 154, 43, .16);
    color: #8A5F0B;
}
.badge-danger {
    background: rgba(190, 18, 60, .1);
    color: #B01034;
}
.badge-info {
    background: rgba(37, 99, 235, .1);
    color: #1D4ED8;
}
.badge-muted {
    background: var(--surface-3);
    color: var(--muted);
}
.badge-gold {
    background: rgba(217, 154, 43, .18);
    color: #8A5F0B;
}
.badge-accent {
    background: var(--brand-soft);
    color: var(--brand);
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    transition: all .16s var(--ease);
}
.chip:hover,
.chip.is-active {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}
.dot-ok,
.dot-out {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-inline-end: 5px;
    vertical-align: 1px;
}
.dot-ok {
    background: #10915F;
    box-shadow: 0 0 0 3px rgba(16, 145, 95, .15);
}
.dot-out {
    background: #B01034;
    box-shadow: 0 0 0 3px rgba(190, 18, 60, .12);
}

/* ---------- النماذج ---------- */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 47px;
    padding: 11px 15px;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.7;
}
input::placeholder,
textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 72%, transparent);
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6454' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-inline-end: 15px;
    padding-inline-start: 36px;
    cursor: pointer;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}
.field > label,
.field-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.field .hint,
.form-note {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: #BE123C;
    box-shadow: 0 0 0 4px rgba(190, 18, 60, .08);
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
.form-grid .span-2 {
    grid-column: 1 / -1;
}
.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.55;
    cursor: pointer;
    color: var(--text);
}
.check input[type="checkbox"],
.check input[type="radio"] {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--brand);
    flex: none;
}
.input-group {
    display: flex;
    align-items: stretch;
}
.input-group input {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
}
.input-group .btn {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    height: auto;
}
.has-icon {
    position: relative;
}
.has-icon .ico {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}
.has-icon input {
    padding-inline-start: 44px;
}
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-xs);
}
.divider {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 24px 0;
}
.divider-label {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
    margin: 22px 0;
}
.divider-label::before,
.divider-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ---------- الشريط العلوي للسوق ---------- */
.viewbar {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font-size: 12.8px;
    font-weight: 500;
}
.viewbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}
.viewbar-inner > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .78);
}
.viewbar-inner .ico {
    color: var(--accent);
}
.viewbar-links {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.viewbar-links a {
    color: rgba(255, 255, 255, .82);
    font-weight: 600;
}
.viewbar-links a:hover {
    color: #F5C451;
}
.viewbar .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    transition: box-shadow .2s;
}
.site-header.is-scrolled {
    box-shadow: 0 12px 34px -24px rgba(10, 15, 30, .35);
}
.header-main {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: var(--header-h);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
}
.brand-mark {
    display: inline-flex;
    width: var(--mark-size, 38px);
    height: var(--mark-size, 38px);
    border-radius: 30%;
    overflow: hidden;
    box-shadow: 0 10px 24px -12px rgba(217, 154, 43, .55);
    flex: none;
}
.brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}
.brand-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.18;
}
.brand-txt strong {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.3px;
}
.brand-txt small {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: .2px;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav a {
    position: relative;
    padding: 10px 13px;
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
    border-radius: 10px;
}
.main-nav a:hover {
    color: var(--text);
    background: var(--surface-2);
}
.main-nav a.is-active {
    color: var(--brand);
}
.main-nav a.is-active::after {
    content: "";
    position: absolute;
    bottom: 1px;
    inset-inline-start: 13px;
    inset-inline-end: 13px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}
.header-search {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    max-width: 420px;
    margin-inline-start: auto;
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 5px 6px 5px 6px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.header-search:focus-within {
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.header-search .ico {
    margin-inline-start: 10px;
    color: var(--muted);
}
.header-search input {
    min-height: 38px;
    border: 0;
    background: transparent;
    padding: 0 10px;
    box-shadow: none !important;
    font-size: 14.5px;
}
.header-search input:focus {
    outline: none;
}
.header-search .search-go {
    border: 0;
    background: var(--ink);
    color: #fff;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    transition: background .18s;
    flex: none;
}
.header-search .search-go:hover {
    background: var(--brand);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}
.user-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.mobile-nav.is-open {
    display: flex;
}
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--text);
}
.mobile-nav a:hover,
.mobile-nav a.is-active {
    background: var(--brand-soft);
    color: var(--brand);
}
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 4px 12px;
    margin-bottom: 10px;
}
.mobile-search .ico {
    color: var(--muted);
}
.mobile-search input {
    border: 0;
    background: transparent;
    box-shadow: none !important;
    min-height: 40px;
    padding: 0 4px;
}

/* ---------- هيرو السوق ---------- */
.market-hero {
    position: relative;
    overflow: hidden;
    color: #EAF0F6;
    background:
        radial-gradient(900px 440px at 88% -12%, rgba(245, 196, 81, .2), transparent 66%),
        radial-gradient(760px 520px at 2% 112%, rgba(34, 211, 238, .13), transparent 64%),
        linear-gradient(158deg, #080D1A 0%, #0A1626 48%, #0B3A2E 100%);
    padding: 74px 0 88px;
}
.market-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
    pointer-events: none;
}
.market-hero::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    inset-inline-start: -180px;
    bottom: -320px;
    background: radial-gradient(circle, rgba(217, 154, 43, .28), transparent 65%);
    filter: blur(10px);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 54px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #F5C451;
    background: rgba(245, 196, 81, .1);
    border: 1px solid rgba(245, 196, 81, .28);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}
.hero-title {
    font-size: clamp(2.35rem, 5.1vw, 4.05rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -1.2px;
    margin: 0 0 20px;
    color: #F7F9FC;
}
.hero-title .display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0;
}
.hero-lead {
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    line-height: 1.8;
    color: rgba(233, 240, 248, .78);
    max-width: 540px;
    margin-bottom: 30px;
}
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .97);
    border-radius: 18px;
    padding: 8px;
    max-width: 540px;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6);
    margin-bottom: 18px;
}
.hero-search .ico {
    margin-inline-start: 12px;
    color: #6B6454;
}
.hero-search input {
    flex: 1;
    border: 0;
    background: transparent;
    box-shadow: none !important;
    color: #151A21;
    min-height: 46px;
    font-size: 15.5px;
    padding: 0 6px;
}
.hero-search input:focus {
    outline: none;
}
.hero-search .btn {
    flex: none;
}
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: rgba(233, 240, 248, .6);
}
.hero-pills .chip-dark {
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 6px 13px;
    font-weight: 600;
    transition: all .16s;
}
.hero-pills .chip-dark:hover {
    background: rgba(245, 196, 81, .16);
    border-color: rgba(245, 196, 81, .4);
    color: #F5C451;
}
.hero-stats {
    display: flex;
    gap: 34px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    max-width: 540px;
}
.hero-stat strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    color: #F5C451;
    line-height: 1.2;
}
.hero-stat span {
    font-size: 12.5px;
    color: rgba(233, 240, 248, .62);
}

/* بطاقة معاينة المتجر داخل الهيرو */
.hero-stage {
    position: relative;
    perspective: 1200px;
}
.stage-glow {
    position: absolute;
    inset: 8% 6%;
    background: radial-gradient(circle, rgba(245, 196, 81, .25), transparent 65%);
    filter: blur(30px);
    z-index: 0;
}
.stage-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .045));
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: rotate(-1.2deg);
    transition: transform .5s var(--ease);
}
.hero-stage:hover .stage-card {
    transform: rotate(0) translateY(-4px);
}
.stage-top {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 15px;
}
.stage-top .store-avatar {
    --av-bg: #D99A2B;
}
.stage-top strong {
    display: block;
    font-size: 15px;
    color: #fff;
}
.stage-top small {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .55);
}
.stage-top .badge {
    margin-inline-start: auto;
    background: rgba(34, 211, 238, .16);
    color: #7DE9FF;
}
.stage-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.stage-prod {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background .2s, transform .2s;
}
.stage-prod:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}
.stage-prod-img {
    aspect-ratio: 1.25;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
}
.stage-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stage-prod b {
    font-size: 13px;
    color: #EAF0F6;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    font-weight: 600;
}
.stage-prod span {
    font-size: 13.5px;
    font-weight: 800;
    color: #F5C451;
}
.stage-float {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, .97);
    color: #151A21;
    border-radius: 16px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .65);
    font-size: 12.5px;
    font-weight: 700;
    animation: floaty 6s ease-in-out infinite;
}
.stage-float .ico {
    color: var(--brand);
}
.stage-float.f1 {
    top: -20px;
    inset-inline-start: -22px;
}
.stage-float.f2 {
    bottom: 26px;
    inset-inline-end: -26px;
    animation-delay: -3s;
}
.stage-float small {
    display: block;
    color: #6B6454;
    font-size: 10.5px;
    font-weight: 500;
}
@keyframes floaty {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

/* ---- هيرو المتجر ---- */
.store-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 360px at 85% -10%, var(--accent-soft), transparent 70%),
        radial-gradient(600px 400px at 8% 120%, var(--brand-soft), transparent 65%),
        linear-gradient(155deg, var(--hero-1), var(--hero-2));
    color: #F4F8FB;
    padding: 60px 0 66px;
}
.store-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 80% at 50% 0%, transparent 55%, rgba(0, 0, 0, .28));
    pointer-events: none;
}
.store-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 44px;
    align-items: center;
}
.store-hero .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .18);
}
.store-hero h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.2;
    color: #fff;
    letter-spacing: -.8px;
    margin-bottom: 16px;
}
.store-hero p {
    color: rgba(244, 248, 251, .78);
    font-size: 16.5px;
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 26px;
}
.store-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.store-hero .btn-ghost {
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    background: rgba(255, 255, 255, .06);
}
.store-hero .btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}
.store-hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 46px 90px -40px rgba(0, 0, 0, .7);
    aspect-ratio: 16 / 10.4;
}
.store-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-hero-card .shc-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .16), transparent 50%),
        linear-gradient(140deg, var(--brand), var(--hero-1));
}
.store-hero-tag {
    position: absolute;
    bottom: 16px;
    inset-inline-start: 16px;
    background: rgba(10, 15, 30, .58);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* ---------- تبويبات الأقسام والبanners ---------- */
.cat-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 12px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.cat-tile:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: var(--shadow);
}
.cat-tile .ci {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    transition: all .2s var(--ease);
}
.cat-tile:hover .ci {
    background: var(--brand);
    color: var(--on-brand);
    transform: rotate(-4deg) scale(1.04);
}
.cat-tile strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
.cat-tile small {
    font-size: 11.5px;
    color: var(--muted);
}
.banner-strip {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 16px;
}
.banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 34px;
    color: #fff;
    background: linear-gradient(140deg, var(--brand-2), var(--brand));
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.banner::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    inset-inline-end: -90px;
    top: -110px;
    background: radial-gradient(circle, rgba(245, 196, 81, .4), transparent 66%);
}
.banner h3 {
    font-size: 1.5rem;
    margin: 0;
    position: relative;
    z-index: 1;
}
.banner p {
    color: rgba(255, 255, 255, .8);
    margin: 0;
    max-width: 380px;
    position: relative;
    z-index: 1;
    font-size: 14.5px;
}
.banner .btn {
    align-self: flex-start;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}
.banner.alt {
    background: linear-gradient(140deg, #1B2333, #0A0F1E);
    color: #F4F7FB;
}
.banner.alt::after {
    background: radial-gradient(circle, rgba(34, 211, 238, .32), transparent 66%);
}

/* ---------- شبكات المنتجات والمتاجر ---------- */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 20px;
}
.prod-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.prod-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}
.prod-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
    position: relative;
}
.prod-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
    box-shadow: var(--shadow);
}
.prod-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 30% 18%, var(--surface-3), transparent 60%),
        var(--surface-2);
    overflow: hidden;
}
.prod-img {
    display: block;
    width: 100%;
    height: 100%;
}
.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--ease);
}
.prod-card:hover .prod-img img {
    transform: scale(1.055);
}
.prod-badges {
    position: absolute;
    top: 11px;
    inset-inline-start: 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
    align-items: flex-start;
}
.pbadge {
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 8px;
    letter-spacing: .2px;
    backdrop-filter: blur(8px);
}
.pbadge-sale {
    background: linear-gradient(135deg, #E11D48, #9F1239);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(225, 29, 72, .7);
}
.pbadge-soft {
    background: rgba(10, 15, 30, .68);
    color: #fff;
}
.pbadge-out {
    background: rgba(10, 15, 30, .8);
    color: #fff;
}
.quick-add {
    position: absolute;
    inset-inline: 11px;
    bottom: 11px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    border: 0;
    border-radius: 11px;
    background: rgba(10, 15, 30, .88);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transform: translateY(10px);
    opacity: 0;
    transition: all .22s var(--ease);
    cursor: pointer;
    width: calc(100% - 22px);
    box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .6);
}
.quick-add:hover {
    background: var(--brand);
}
.quick-link {
    background: rgba(255, 255, 255, .92);
    color: #151A21;
}
.quick-link:hover {
    background: var(--brand);
    color: #fff;
}
.quick-form {
    margin: 0;
}
.prod-card:hover .quick-add,
.quick-add:focus-visible {
    transform: translateY(0);
    opacity: 1;
}
.prod-body {
    padding: 15px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.prod-kicker {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .3px;
    text-transform: uppercase;
}
.prod-name {
    font-size: 14.6px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prod-name a:hover {
    color: var(--brand);
}
.prod-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 7px;
}
.prod-price b {
    display: block;
    font-size: 17.5px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.3px;
}
.prod-price s {
    font-size: 12px;
    color: var(--muted);
}
.prod-stock {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
}
.rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--accent);
}
.rating .star {
    display: inline-flex;
    color: color-mix(in srgb, var(--muted) 40%, transparent);
}
.rating .star.is-on {
    color: var(--accent);
}
.rating .star.is-half {
    color: color-mix(in srgb, var(--accent) 62%, var(--muted));
}
.rating small {
    font-size: 11px;
    color: var(--muted);
    margin-inline-start: 3px;
}
.rating.is-compact {
    gap: 1px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.store-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
    display: flex;
    flex-direction: column;
}
.store-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.store-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 7.2;
    overflow: hidden;
    background: var(--surface-2);
}
.store-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.store-card:hover .store-card-cover img {
    transform: scale(1.05);
}
.store-cover-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 25% 15%, rgba(255, 255, 255, .22), transparent 55%),
        linear-gradient(135deg, var(--sc-a, #0E5F4F), color-mix(in srgb, var(--sc-a, #0E5F4F) 55%, #071018));
    color: rgba(255, 255, 255, .92);
}
.store-cover-fallback span {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .4);
}
.store-card-cat {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: rgba(10, 15, 30, .62);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}
.store-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}
.store-card-head {
    display: flex;
    align-items: center;
    gap: 11px;
}
.store-card-head strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}
.store-card-head small {
    font-size: 12px;
    color: var(--muted);
}
.store-card-body > p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.store-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
}
.store-card-foot span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.store-visit {
    color: var(--brand);
    font-weight: 700;
}
.store-card:hover .store-visit {
    gap: 9px;
}

.store-avatar,
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--av-bg, var(--brand));
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .5px;
    overflow: hidden;
    flex: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 14px;
}
.store-avatar.lg {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    font-size: 19px;
}
.store-avatar.has-img,
.avatar.has-img {
    background: var(--surface-2);
}
.store-avatar img,
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-avatar.sm {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
}

/* ---------- شريط الثقة ---------- */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-xs);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    transition: background .18s;
}
.trust-item:hover {
    background: var(--surface-2);
}
.trust-ico {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    flex: none;
}
.trust-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
.trust-item small {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

/* ---------- شبكة الفلترة ---------- */
.page-head {
    padding: 34px 0 6px;
}
.page-head h1 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 6px;
}
.page-head p {
    color: var(--muted);
    max-width: 720px;
}
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--muted);
    padding: 16px 0;
}
.breadcrumbs a {
    font-weight: 600;
}
.breadcrumbs a:hover {
    color: var(--brand);
}
.breadcrumbs .sep {
    display: inline-flex;
    color: color-mix(in srgb, var(--muted) 55%, transparent);
}
.breadcrumbs .current {
    color: var(--text);
    font-weight: 700;
}
.page-band {
    padding: 24px 0 4px;
}
.page-band .breadcrumbs {
    margin-bottom: 8px;
}
.page-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -.4px;
    margin: 4px 0 4px;
}
.page-sub {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 20px;
}
.shop-layout {
    display: grid;
    grid-template-columns: 264px 1fr;
    gap: 26px;
    align-items: start;
}
.filters {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: sticky;
    top: calc(var(--header-h) + 16px);
}
.filters h3 {
    font-size: 15px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-group {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}
.filter-group:first-of-type {
    border-top: 0;
    padding-top: 4px;
}
.filter-group > h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 10px;
    letter-spacing: .3px;
}
.filter-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 13.5px;
    color: var(--text);
    font-weight: 500;
}
.filter-list a small {
    color: var(--muted);
    font-size: 11.5px;
}
.filter-list a:hover,
.filter-list a.is-active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
}
.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}
.price-range input {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
}
.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 18px;
}
.shop-toolbar .result-count {
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 600;
}
.shop-toolbar .result-count b {
    color: var(--text);
}
.sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}
.sort-wrap select {
    min-height: 42px;
    width: auto;
    padding-inline-start: 34px;
    padding-inline-end: 14px;
    font-size: 13.5px;
    font-weight: 700;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 34px 0 8px;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    transition: all .16s;
}
.page-link:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.page-link.is-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: transparent;
    color: var(--on-brand);
    box-shadow: 0 10px 22px -12px var(--brand-glow);
}
.page-dots {
    color: var(--muted);
    padding: 0 4px;
}

/* ---------- الحالة الفارغة ---------- */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}
.empty-state .empty-ico {
    display: inline-grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 16px;
}
.empty-state h3 {
    font-size: 19px;
    margin-bottom: 6px;
}
.empty-state p {
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto 18px;
    font-size: 14.5px;
}
.empty-state .btn {
    margin-top: 4px;
}

/* ---------- رأس وتذييل المتجر ---------- */
.storebar {
    background: linear-gradient(90deg, var(--brand-2), var(--brand));
    color: var(--on-brand);
    font-size: 12.5px;
    font-weight: 600;
}
.storebar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 36px;
}
.storebar-inner > span,
.storebar-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: color-mix(in srgb, var(--on-brand) 86%, transparent);
}
.storebar-links {
    display: flex;
    align-items: center;
    gap: 18px;
}
.storebar-links a:hover {
    color: var(--on-brand);
}
.store-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--surface) 93%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    transition: box-shadow .2s;
}
.store-header.is-scrolled {
    box-shadow: 0 14px 36px -26px rgba(0, 0, 0, .4);
}
.store-header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-block: 14px;
}
.store-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    max-width: 330px;
}
.store-brand-txt {
    min-width: 0;
}
.store-brand-txt strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-brand-txt small {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 560px;
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 4px 6px 4px 6px;
    transition: all .18s;
}
.store-search:focus-within {
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.store-search .ico {
    margin-inline-start: 10px;
    color: var(--muted);
}
.store-search input {
    flex: 1;
    border: 0;
    background: transparent;
    box-shadow: none !important;
    min-height: 38px;
    padding: 0 8px;
    font-size: 14px;
}
.store-search input:focus {
    outline: none;
}
.store-search button {
    border: 0;
    flex: none;
    background: var(--brand);
    color: var(--on-brand);
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}
.store-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
    flex: none;
}
.currency-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    border-radius: 11px;
    padding: 4px 8px 4px 4px;
    cursor: pointer;
}
.currency-picker .curr-icon {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}
.currency-picker select {
    width: auto;
    min-height: 30px;
    border: 0;
    background: transparent;
    box-shadow: none !important;
    padding: 0 4px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    background-image: none;
}
.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 12px 24px -14px var(--brand-glow);
    transition: transform .18s, background .18s;
}
.cart-btn:hover {
    transform: translateY(-2px);
    background: var(--brand-2);
    color: var(--on-brand);
}
.cart-count {
    position: absolute;
    top: -6px;
    inset-inline-start: -6px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 11.5px;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 2px solid var(--surface);
}
.store-nav-wrap {
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.store-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    min-height: 48px;
}
.store-nav::-webkit-scrollbar {
    display: none;
}
.store-nav a {
    position: relative;
    padding: 13px 13px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}
.store-nav a:hover {
    color: var(--text);
}
.store-nav a.is-active {
    color: var(--brand);
}
.store-nav a.is-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline: 11px;
    height: 3px;
    border-radius: 99px 99px 0 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}
.store-header .mobile-nav {
    border-top: 1px solid var(--line);
}

/* ---------- تذييل المتجر ---------- */
.store-footer {
    margin-top: 70px;
    background: var(--surface-2);
    border-top: 1px solid var(--line);
    color: var(--text);
}
.store-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding-block: 52px 40px;
}
.store-footer-brand strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin: 12px 0 6px;
}
.store-footer-brand p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 330px;
}
.social-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.social-row a {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface);
    transition: all .16s;
}
.social-row a:hover {
    color: var(--on-brand);
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
}
.store-footer-col h4 {
    font-size: 13px;
    letter-spacing: .4px;
    color: var(--muted);
    margin-bottom: 14px;
}
.store-footer-col a,
.store-footer-col .foot-addr {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text);
    font-weight: 500;
    padding: 5px 0;
    line-height: 1.5;
}
.store-footer-col a:hover {
    color: var(--brand);
}
.store-footer-col .ico {
    color: var(--muted);
    margin-top: 2px;
}
.store-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-block: 18px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
}
.pay-badges,
.footer-badges {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.pay-badges i,
.footer-badges i {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .3px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 7px;
    padding: 4px 9px;
    color: var(--muted);
}
.platform-credit {
    text-align: center;
    font-size: 11.5px;
    color: var(--muted);
    padding-bottom: 18px;
}
.platform-credit a {
    color: var(--brand);
    font-weight: 700;
}
.wa-float {
    position: fixed;
    inset-inline-start: 22px;
    bottom: 22px;
    z-index: 70;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1FA855;
    color: #fff;
    box-shadow: 0 18px 38px -14px rgba(31, 168, 85, .65);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.wa-float:hover {
    transform: translateY(-3px) scale(1.04);
    color: #fff;
    box-shadow: 0 22px 44px -14px rgba(31, 168, 85, .75);
}
.wa-float::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(31, 168, 85, .35);
    animation: pulse-ring 2.6s ease-out infinite;
}
@keyframes pulse-ring {
    0% {
        transform: scale(.85);
        opacity: .8;
    }
    70% {
        transform: scale(1.18);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* ---------- تذييل السوق ---------- */
.site-footer {
    margin-top: 80px;
    background: linear-gradient(180deg, #0A0F1E, #070B15);
    color: rgba(233, 240, 248, .8);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset-inline-end: -160px;
    top: -220px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 154, 43, .16), transparent 65%);
    pointer-events: none;
}
.footer-top {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.8fr auto;
    gap: 46px;
    padding-block: 56px 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.footer-brand {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}
.footer-brand strong {
    display: block;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 4px;
}
.footer-brand p {
    font-size: 13px;
    color: rgba(233, 240, 248, .55);
    margin: 0;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-cols h4 {
    font-size: 13px;
    color: #F5C451;
    margin-bottom: 14px;
    letter-spacing: .4px;
}
.footer-cols a {
    display: block;
    font-size: 13.5px;
    color: rgba(233, 240, 248, .7);
    padding: 5px 0;
}
.footer-cols a:hover {
    color: #fff;
    transform: translateX(-3px);
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: rgba(233, 240, 248, .78);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    padding: 9px 14px;
    transition: all .16s;
}
.footer-contact a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.footer-contact a.wa {
    color: #7CE3A7;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-block: 20px;
    font-size: 12px;
    color: rgba(233, 240, 248, .5);
}
.footer-badges i {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .1);
    color: rgba(233, 240, 248, .6);
}

/* ---------- صفحة المنتج ---------- */
.pdp {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 44px;
    align-items: start;
    padding-top: 8px;
}
.pdp-media {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: calc(var(--header-h) + 18px);
}
.pdp-main {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}
.pdp-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pdp-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pdp-thumb {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--line);
    background: var(--surface);
    padding: 0;
    cursor: pointer;
    transition: border-color .16s;
}
.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pdp-thumb.is-active,
.pdp-thumb:hover {
    border-color: var(--brand);
}
.pdp-info .prod-kicker {
    font-size: 12px;
    margin-bottom: 8px;
}
.pdp-info h1 {
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    line-height: 1.3;
    margin-bottom: 10px;
}
.pdp-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--muted);
}
.pdp-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin: 6px 0 4px;
}
.pdp-price .now {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.6px;
    color: var(--text);
}
.pdp-price .was {
    font-size: 15px;
    color: var(--muted);
}
.pdp-price .save {
    background: rgba(16, 145, 95, .12);
    color: #0B7A50;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
}
.pdp-note {
    font-size: 12.5px;
    color: var(--muted);
    margin: 2px 0 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pdp-desc {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.85;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 4px;
}
.variant-block {
    margin-bottom: 20px;
}
.variant-block > label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 9px;
}
.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-opt {
    position: relative;
    display: inline-flex;
}
.variant-opt input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}
.variant-opt span {
    padding: 9px 16px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 700;
    background: var(--surface);
    transition: all .15s;
    cursor: pointer;
}
.variant-opt input:checked + span {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.pdp-buy {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin: 20px 0 16px;
    flex-wrap: wrap;
}
.pdp-buy .qty {
    flex: none;
}
.pdp-buy .btn {
    flex: 1;
    min-width: 180px;
}
.pdp-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.pdp-perk {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}
.pdp-perk .ico {
    color: var(--brand);
}
.pdp-tabs {
    margin-top: 46px;
}
.tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar {
    display: none;
}
.tabs-nav button {
    position: relative;
    border: 0;
    background: none;
    padding: 13px 18px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}
.tabs-nav button:hover {
    color: var(--text);
}
.tabs-nav button.is-active {
    color: var(--brand);
}
.tabs-nav button.is-active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    inset-inline: 10px;
    height: 3px;
    background: var(--brand);
    border-radius: 3px 3px 0 0;
}
.tab-panel {
    display: none;
    padding-top: 24px;
}
.tab-panel.is-active {
    display: block;
    animation: fade-up .3s var(--ease);
}
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.spec-table th,
.spec-table td {
    text-align: start;
    padding: 12px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}
.spec-table th {
    width: 32%;
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 700;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: 0;
}
.review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.review-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 8px;
}
.review-head strong {
    font-size: 14px;
}
.review-head small {
    color: var(--muted);
    font-size: 11.5px;
    margin-inline-start: auto;
}
.review-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.75;
}
.review-summary {
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.review-summary .big {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}
.review-summary .big small {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 26px;
    align-items: start;
}
.review-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: sticky;
    top: calc(var(--header-h) + 18px);
}
.review-form h3 {
    margin: 0 0 16px;
    font-size: 16.5px;
}
@media (max-width: 860px) {
    .reviews-layout {
        grid-template-columns: 1fr;
    }
    .review-form {
        position: static;
    }
}

/* ---------- عدد الكمية ---------- */
.qty {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    overflow: hidden;
    height: 50px;
}
.qty button {
    width: 42px;
    border: 0;
    background: transparent;
    color: var(--text);
    display: grid;
    place-items: center;
    transition: background .15s;
}
.qty button:hover {
    background: var(--brand-soft);
    color: var(--brand);
}
.qty input {
    width: 50px;
    min-height: 0;
    border: 0;
    border-inline: 1.5px solid var(--line);
    border-radius: 0;
    text-align: center;
    font-weight: 800;
    padding: 0;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
    box-shadow: none !important;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty.sm {
    height: 38px;
    border-radius: 10px;
}
.qty.sm button {
    width: 34px;
}
.qty.sm input {
    width: 40px;
    font-size: 13.5px;
}

/* ---------- السلة ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 26px;
    align-items: start;
}
.cart-card,
.summary-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.cart-card {
    overflow: hidden;
}
.cart-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}
.cart-card-head h2 {
    font-size: 17px;
    margin: 0;
}
.cart-row {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.cart-row:last-child {
    border-bottom: 0;
}
.cart-row-img {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}
.cart-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-row-info {
    min-width: 0;
}
.cart-row-info h3 {
    font-size: 14.5px;
    margin: 0 0 3px;
    line-height: 1.45;
}
.cart-row-info h3 a:hover {
    color: var(--brand);
}
.cart-row-info .variant-note {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 9px;
}
.cart-row-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 9px;
    flex-wrap: wrap;
}
.cart-row-actions .remove {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
}
.cart-row-actions .remove:hover {
    color: #BE123C;
}
.cart-row-price {
    text-align: end;
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
}
.cart-row-price small {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
}
.summary-card {
    padding: 24px;
    position: sticky;
    top: calc(var(--header-h) + 18px);
}
.summary-card h2 {
    font-size: 17px;
    margin: 0 0 16px;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
    padding: 7px 0;
}
.summary-line b {
    color: var(--text);
    font-weight: 700;
}
.summary-line.discount b {
    color: #0B7A50;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border-top: 1px dashed var(--line);
    margin-top: 10px;
    padding-top: 16px;
    font-weight: 800;
    font-size: 15px;
}
.summary-total b {
    font-size: 22px;
    letter-spacing: -.4px;
}
.summary-approx {
    font-size: 12px;
    color: var(--muted);
    text-align: end;
    margin-top: 2px;
}
.coupon-box {
    margin-top: 16px;
}
.coupon-box .input-group input {
    min-height: 44px;
}
.coupon-ok {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(16, 145, 95, .09);
    border: 1px dashed rgba(16, 145, 95, .4);
    border-radius: 11px;
    padding: 9px 13px;
    font-size: 12.5px;
    font-weight: 700;
    color: #0B7A50;
}
.summary-card .btn {
    margin-top: 16px;
}
.free-ship-note {
    font-size: 12px;
    color: var(--muted);
    background: var(--surface-2);
    border-radius: 10px;
    padding: 9px 12px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.free-ship-bar {
    height: 6px;
    border-radius: 99px;
    background: var(--surface-3);
    overflow: hidden;
    margin-top: 8px;
}
.free-ship-bar i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ---------- إتمام الطلب ---------- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 26px;
    align-items: start;
}
.checkout-section {
    padding: 24px;
    border-bottom: 1px solid var(--line);
}
.checkout-section:last-child {
    border-bottom: 0;
}
.checkout-section > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16.5px;
    margin: 0 0 18px;
}
.checkout-section > h2 .step-num {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 13.5px;
    font-weight: 800;
    flex: none;
}
.pay-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pay-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    background: var(--surface);
    transition: all .16s;
}
.pay-option:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}
.pay-option:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.pay-option input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
    flex: none;
}
.pay-option .po-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--brand);
    flex: none;
}
.pay-option strong {
    display: block;
    font-size: 14px;
}
.pay-option small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    margin-top: 2px;
}
.pay-option .po-tag {
    margin-inline-start: auto;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--brand);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 3px 8px;
    border-radius: 99px;
    white-space: nowrap;
}
.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 330px;
    overflow: auto;
    padding-inline-end: 2px;
}
.checkout-item {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
}
.checkout-item img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--line);
    flex: none;
}
.checkout-item .ci-txt {
    flex: 1;
    min-width: 0;
}
.checkout-item .ci-txt strong {
    display: block;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.checkout-item .ci-txt small {
    color: var(--muted);
    font-size: 11px;
}
.checkout-item b {
    font-size: 13px;
    white-space: nowrap;
}
.checkout-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.secure-note {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: var(--muted);
    padding: 4px 2px;
}
.secure-note .ico {
    color: var(--brand);
}

/* ---------- تتبّع الطلب ---------- */
.track-form {
    max-width: 560px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.order-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}
.order-card-head h2 {
    margin: 0;
    font-size: 18px;
}
.order-card-body {
    padding: 26px;
}
.order-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.order-meta div {
    background: var(--surface-2);
    border-radius: 13px;
    padding: 12px 15px;
}
.order-meta small {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 3px;
}
.order-meta strong {
    font-size: 14px;
    font-weight: 700;
}
.order-steps {
    display: flex;
    list-style: none;
    margin: 10px 0 30px;
    padding: 0;
}
.order-steps li {
    position: relative;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}
.order-steps li::before {
    content: "";
    position: absolute;
    top: 18px;
    inset-inline-end: 50%;
    width: 100%;
    height: 3px;
    background: var(--line);
    z-index: -1;
}
.order-steps li:first-child::before {
    display: none;
}
.order-steps li.is-done::before,
.order-steps li.is-current::before {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.step-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 2px solid var(--line);
    color: var(--muted);
    transition: all .25s;
}
.order-steps li.is-done .step-dot {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--on-brand);
}
.order-steps li.is-current .step-dot {
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 0 0 5px var(--brand-soft);
    background: var(--surface);
}
.step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}
.order-steps li.is-done .step-label,
.order-steps li.is-current .step-label {
    color: var(--text);
}
.order-cancelled {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(190, 18, 60, .08);
    color: #B01034;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 24px;
}
.result-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    flex-wrap: wrap;
}
.result-hero.is-ok {
    background: linear-gradient(135deg, var(--brand-soft), var(--surface) 65%);
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}
.result-hero.is-pending {
    background: linear-gradient(135deg, var(--accent-soft), var(--surface) 65%);
    border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}
.result-seal {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: var(--on-brand);
    flex: none;
    box-shadow: 0 14px 30px -13px var(--brand-glow);
}
.result-hero.is-pending .result-seal {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 14px 30px -13px var(--accent-glow);
}
.result-hero h1 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    margin: 2px 0 6px;
}
.result-hero p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0;
}
.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.result-meta span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 13px;
    font-size: 12.5px;
    color: var(--muted);
}
.result-meta b {
    color: var(--text);
    font-weight: 800;
    margin-inline-start: 4px;
}
.bank-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 18px;
}
.bank-box h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16.5px;
    margin: 0 0 16px;
}
.bank-box dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px 20px;
    margin: 0 0 14px;
}
.bank-box dt {
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 2px;
}
.bank-box dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}
.bank-box .form-note {
    margin-bottom: 14px;
}
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
}
.detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 9px;
    border-bottom: 1px dashed var(--line);
}
.detail-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.detail-list span {
    color: var(--muted);
}
.detail-list b {
    font-weight: 700;
    text-align: end;
}
.muted {
    color: var(--muted);
    font-size: 12.5px;
}
.order-items {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
}
.order-item-row:last-child {
    border-bottom: 0;
}
.order-item-row img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid var(--line);
    flex: none;
}
.order-item-row .oi-name {
    flex: 1;
    font-weight: 600;
}
.order-item-row .oi-qty {
    color: var(--muted);
    font-size: 12px;
}
.order-item-row b {
    white-space: nowrap;
}
.track-help {
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    margin-top: 18px;
}

/* ---------- صفحات المصادقة ---------- */
.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--header-h));
    gap: 0;
}
.auth-side {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 380px at 80% -6%, rgba(245, 196, 81, .2), transparent 62%),
        radial-gradient(500px 400px at 8% 110%, rgba(34, 211, 238, .12), transparent 64%),
        linear-gradient(160deg, #080D1A, #0A1626 55%, #0B3A2E);
    color: #EAF0F6;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .25;
    mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent);
    -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent);
}
.auth-side > * {
    position: relative;
    z-index: 1;
}
.auth-side h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    color: #fff;
    line-height: 1.3;
    max-width: 420px;
}
.auth-side p {
    color: rgba(233, 240, 248, .7);
    max-width: 420px;
    line-height: 1.8;
}
.auth-side .auth-points {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 26px;
}
.auth-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: rgba(233, 240, 248, .82);
}
.auth-point .ico {
    color: #F5C451;
    margin-top: 2px;
}
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 430px;
}
.auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}
.auth-card > p {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 26px;
}
.auth-card .btn {
    margin-top: 6px;
}
.auth-foot {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 20px;
}
.auth-foot a {
    color: var(--brand);
    font-weight: 700;
}
.demo-credentials {
    margin-top: 18px;
    background: var(--surface-2);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}
.demo-credentials code {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 11.5px;
    color: var(--brand);
    direction: ltr;
    display: inline-block;
}

/* ---------- التنبيهات ---------- */
.flashes {
    position: fixed;
    top: 18px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: min(460px, calc(100vw - 32px));
    pointer-events: none;
}
.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow);
    pointer-events: auto;
    animation: flash-in .3s var(--ease);
}
@keyframes flash-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.flash > span {
    flex: 1;
}
.flash .ico {
    flex: none;
}
.flash-success {
    border-color: rgba(16, 145, 95, .35);
    background: color-mix(in srgb, var(--surface) 88%, #10915F);
}
.flash-success > .ico {
    color: #0B7A50;
}
.flash-warn {
    border-color: rgba(217, 154, 43, .45);
    background: color-mix(in srgb, var(--surface) 88%, #D99A2B);
}
.flash-warn > .ico {
    color: #8A5F0B;
}
.flash-danger {
    border-color: rgba(190, 18, 60, .35);
    background: color-mix(in srgb, var(--surface) 90%, #BE123C);
}
.flash-danger > .ico {
    color: #B01034;
}
.flash-info > .ico {
    color: var(--brand);
}
.flash-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
    padding: 4px;
    border-radius: 6px;
}
.flash-close:hover {
    background: var(--surface-3);
    color: var(--text);
}

/* ---------- صفحات الحالة ---------- */
.state-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        radial-gradient(800px 420px at 85% -10%, rgba(245, 196, 81, .12), transparent 60%),
        linear-gradient(160deg, #080D1A, #0A1626 55%, #0B3A2E);
}
.state-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 48px 42px;
    text-align: center;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
}
.state-seal {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: #241600;
    background: linear-gradient(135deg, #F5C451, #D99A2B);
    box-shadow: 0 18px 36px -16px rgba(217, 154, 43, .6);
}
.state-card h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.state-card p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
}
.state-card small {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 11.5px;
}

/* ---------- بطاقات عامة ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.panel-pad {
    padding: 26px;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 26px;
    border-bottom: 1px solid var(--line);
}
.panel-head h2,
.panel-head h3 {
    margin: 0;
    font-size: 17px;
}
.kv-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.kv-list .kv {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
}
.kv-list .kv:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.kv-list .kv span {
    color: var(--muted);
}
.kv-list .kv b {
    font-weight: 700;
}
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th {
    text-align: start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--muted);
    background: var(--surface-2);
    padding: 12px 16px;
    white-space: nowrap;
}
.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.data-table tbody tr:last-child td {
    border-bottom: 0;
}
.data-table tbody tr:hover {
    background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.data-table .num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.alert {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 14px 17px;
    border-radius: 13px;
    font-size: 13.5px;
    line-height: 1.7;
    border: 1px solid var(--line);
    background: var(--surface-2);
}
.alert .ico {
    flex: none;
    margin-top: 2px;
}
.alert-info {
    border-color: rgba(37, 99, 235, .25);
    background: rgba(37, 99, 235, .06);
    color: #1D4ED8;
}
.alert-warn {
    border-color: rgba(217, 154, 43, .35);
    background: rgba(217, 154, 43, .09);
    color: #8A5F0B;
}
.alert-success {
    border-color: rgba(16, 145, 95, .3);
    background: rgba(16, 145, 95, .07);
    color: #0B7A50;
}
.alert-danger {
    border-color: rgba(190, 18, 60, .3);
    background: rgba(190, 18, 60, .06);
    color: #B01034;
}
.alert a {
    text-decoration: underline;
    font-weight: 700;
}

/* ---------- جداول مقارنة الباقات ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}
.plan-card {
    position: relative;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.plan-card.is-popular {
    border-color: var(--brand);
    box-shadow: 0 26px 60px -34px var(--brand-glow);
}
.plan-flag {
    position: absolute;
    top: -13px;
    inset-inline-start: 22px;
    background: linear-gradient(135deg, var(--accent), #C4841A);
    color: var(--on-accent);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 13px;
    border-radius: 99px;
    box-shadow: 0 8px 18px -8px rgba(217, 154, 43, .7);
}
.plan-card h3 {
    font-size: 17px;
    margin: 0 0 2px;
}
.plan-card .plan-tag {
    font-size: 12.5px;
    color: var(--muted);
    min-height: 38px;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 10px 0 2px;
}
.plan-price b {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.plan-price small {
    color: var(--muted);
    font-size: 12.5px;
}
.plan-year {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
}
.plan-feats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 14px 0 20px;
    font-size: 13.5px;
    flex: 1;
}
.plan-feats li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--muted);
    line-height: 1.5;
}
.plan-feats .ico {
    color: var(--brand);
    margin-top: 2px;
}
.plan-feats li.off {
    opacity: .45;
    text-decoration: line-through;
}
.plan-card .btn {
    width: 100%;
}

/* ---------- إنشاء متجر (خطوات) ---------- */
.create-shell {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 28px;
    align-items: start;
}
.theme-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.theme-opt {
    position: relative;
    cursor: pointer;
}
.theme-opt input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}
.theme-opt-body {
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--surface);
    transition: all .16s;
}
.theme-opt input:checked + .theme-opt-body {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.theme-swatch {
    display: flex;
    height: 54px;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
}
.theme-swatch i {
    flex: 1;
}
.theme-swatch i:nth-child(1) {
    background: var(--sw-bg);
}
.theme-swatch i:nth-child(2) {
    background: var(--sw-a);
}
.theme-swatch i:nth-child(3) {
    background: var(--sw-c);
}
.theme-opt-body strong {
    font-size: 12px;
    line-height: 1.4;
}
.theme-opt-body small {
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.4;
}
.cat-choice {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}
.cat-choice-opt {
    position: relative;
    cursor: pointer;
}
.cat-choice-opt input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}
.cat-choice-body {
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    transition: all .16s;
    line-height: 1.35;
}
.cat-choice-body .ico {
    color: var(--brand);
}
.cat-choice-opt input:checked + .cat-choice-body {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ---------- متنوع ---------- */
.notice {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 13.5px;
    color: var(--muted);
}
.notice strong {
    color: var(--text);
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.mini-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 13px;
}
.mini-stat .mi {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    flex: none;
}
.mini-stat strong {
    display: block;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
}
.mini-stat small {
    font-size: 11.5px;
    color: var(--muted);
}
.order-summary-box {
    background: var(--surface-2);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.order-summary-box .row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.order-summary-box .row.total {
    border-top: 1px dashed var(--line);
    padding-top: 9px;
    font-weight: 800;
    font-size: 15px;
}
.captcha-note {
    font-size: 11.5px;
    color: var(--muted);
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-top: 4px;
}

/* ---------- التجاوب ---------- */
@media (max-width: 1180px) {
    .main-nav {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .header-search {
        max-width: 340px;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-contact {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
}
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }
    .hero-stage {
        max-width: 560px;
        margin-inline: auto;
        width: 100%;
    }
    .store-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .store-hero-card {
        max-width: 560px;
    }
    .cat-tiles {
        grid-template-columns: repeat(4, 1fr);
    }
    .cart-layout,
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .summary-card {
        position: static;
    }
    .pdp {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .pdp-media {
        position: static;
    }
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .filters {
        position: static;
    }
    .store-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .store-footer-brand {
        grid-column: 1 / -1;
    }
    .create-shell {
        grid-template-columns: 1fr;
    }
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-side {
        display: none;
    }
    .stat-row {
        grid-template-columns: 1fr 1fr;
    }
    .header-search {
        display: none;
    }
    .prod-grid.cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 860px) {
    .header-main {
        gap: 12px;
    }
    .header-cta {
        display: none;
    }
    .viewbar-links a:first-child {
        display: none;
    }
    .market-hero {
        padding: 52px 0 62px;
    }
    .hero-stats {
        gap: 22px;
    }
    .cat-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
    .banner-strip {
        grid-template-columns: 1fr;
    }
    .trust-strip {
        grid-template-columns: 1fr 1fr;
    }
    .storebar-links a:first-child {
        display: none;
    }
    .store-search {
        display: none;
    }
    .store-actions {
        margin-inline-start: auto;
    }
    .cart-row {
        grid-template-columns: 74px 1fr;
        gap: 12px;
    }
    .cart-row-img {
        width: 74px;
        height: 74px;
    }
    .cart-row-price {
        grid-column: 2;
        text-align: start;
    }
    .order-meta {
        grid-template-columns: 1fr 1fr;
    }
    .footer-cols {
        gap: 18px;
    }
    .theme-picker {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-choice {
        grid-template-columns: repeat(3, 1fr);
    }
    .status-grid {
        grid-template-columns: 1fr;
    }
    .pdp-tabs {
        margin-top: 32px;
    }
    .hero-title {
        letter-spacing: -.6px;
    }
}
@media (max-width: 700px) {
    .container {
        padding-inline: 16px;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.7rem);
    }
    .hero-lead {
        font-size: 15px;
    }
    .hero-search {
        flex-wrap: wrap;
    }
    .hero-search .btn {
        width: 100%;
    }
    .prod-grid,
    .prod-grid.cols-3,
    .prod-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .prod-body {
        padding: 12px 12px 13px;
    }
    .prod-name {
        font-size: 13.4px;
    }
    .prod-price b {
        font-size: 15.5px;
    }
    .prod-stock {
        display: none;
    }
    .quick-add {
        transform: none;
        opacity: 1;
        inset-inline: 8px;
        bottom: 8px;
        width: calc(100% - 16px);
        height: 36px;
        font-size: 12px;
    }
    .store-grid {
        grid-template-columns: 1fr;
    }
    .cat-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-choice {
        grid-template-columns: repeat(2, 1fr);
    }
    .theme-picker {
        grid-template-columns: repeat(2, 1fr);
    }
    .store-footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-block: 38px 26px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-block: 40px 30px;
    }
    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }
    .footer-contact {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-stats {
        gap: 16px;
    }
    .hero-stat strong {
        font-size: 1.25rem;
    }
    .trust-strip {
        grid-template-columns: 1fr;
        padding: 6px;
    }
    .trust-item {
        padding: 12px 14px;
    }
    .store-brand-txt strong {
        font-size: 16px;
    }
    .store-brand-txt small {
        display: none;
    }
    .currency-picker select {
        display: none;
    }
    .currency-picker {
        padding: 4px;
    }
    .cart-row {
        padding: 14px 16px;
    }
    .cart-card-head {
        padding: 16px 18px;
    }
    .summary-card {
        padding: 20px;
    }
    .checkout-section {
        padding: 20px 18px;
    }
    .order-card-body {
        padding: 18px;
    }
    .order-card-head {
        padding: 16px 18px;
    }
    .order-steps {
        margin-bottom: 22px;
    }
    .step-label {
        font-size: 10px;
    }
    .step-dot {
        width: 32px;
        height: 32px;
    }
    .order-steps li::before {
        top: 15px;
    }
    .pdp-buy .btn {
        min-width: 0;
    }
    .pdp-perks {
        grid-template-columns: 1fr;
    }
    .share-row {
        flex-wrap: wrap;
    }
    .flashes {
        inset-inline-start: 16px;
        transform: none;
        width: calc(100vw - 32px);
    }
    .wa-float {
        width: 52px;
        height: 52px;
        inset-inline-start: 14px;
        bottom: 14px;
    }
    .plan-card {
        padding: 22px 20px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .page-head {
        padding-top: 22px;
    }
    .section-head {
        align-items: flex-start;
    }
    .stat-row {
        grid-template-columns: 1fr;
    }
    .form-grid,
    .field-row {
        grid-template-columns: 1fr;
    }
    .auth-main {
        padding: 30px 16px;
    }
    .auth-card h1 {
        font-size: 1.55rem;
    }
}
@media (max-width: 420px) {
    .prod-grid,
    .prod-grid.cols-3,
    .prod-grid.cols-4 {
        grid-template-columns: 1fr;
    }
    .prod-media {
        aspect-ratio: 1.25;
    }
    .header-actions .btn-ghost {
        display: none;
    }
    .brand-txt small {
        display: none;
    }
    .hero-pills {
        font-size: 12px;
    }
}
/* ---------- إضافات الصفحات العامة ---------- */
.section {
    padding: 56px 0;
}
.section.section-tight {
    padding: 38px 0;
}
.section.hero-follow {
    padding-top: 0;
}
.section-band {
    background: var(--surface-2);
    border-block: 1px solid var(--line);
    padding: 54px 0;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    counter-reset: how;
}
.how-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    overflow: hidden;
}
.how-card::before {
    counter-increment: how;
    content: "0" counter(how);
    position: absolute;
    top: 12px;
    inset-inline-end: 20px;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: color-mix(in srgb, var(--brand) 10%, transparent);
}
.how-card .how-ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: var(--on-brand);
    margin-bottom: 16px;
    box-shadow: 0 14px 28px -16px var(--brand-glow);
}
.how-card h3 {
    font-size: 16.5px;
    margin-bottom: 6px;
}
.how-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 46px 48px;
    color: #F4F7FB;
    background:
        radial-gradient(600px 300px at 88% -20%, rgba(245, 196, 81, .24), transparent 62%),
        linear-gradient(140deg, #0A0F1E, #0A1626 52%, #0B3A2E);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset-inline-start: -80px;
    bottom: -140px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 66%);
}
.cta-band > div {
    position: relative;
    z-index: 1;
}
.cta-band h2 {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    color: #fff;
    margin-bottom: 6px;
}
.cta-band p {
    margin: 0;
    color: rgba(244, 247, 251, .68);
    max-width: 520px;
    font-size: 14.5px;
}
.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.cta-band .btn-ghost {
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
    background: rgba(255, 255, 255, .06);
}
.cta-band .btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
}

.currency-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.currency-wall span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}
.currency-wall b {
    color: var(--brand);
    font-weight: 800;
}

/* صفحة فرعية بهيرو بسيط */
.sub-hero {
    background:
        radial-gradient(560px 260px at 90% -20%, rgba(245, 196, 81, .12), transparent 62%),
        linear-gradient(150deg, #0A0F1E, #0A1626 60%, #0B2A24);
    color: #EDF2F8;
    padding: 46px 0;
    position: relative;
    overflow: hidden;
}
.sub-hero h1 {
    color: #fff;
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    margin-bottom: 8px;
}
.sub-hero p {
    color: rgba(237, 242, 248, .7);
    max-width: 660px;
    margin: 0;
    font-size: 14.5px;
}
.sub-hero .breadcrumbs {
    color: rgba(237, 242, 248, .55);
    padding-bottom: 6px;
}
.sub-hero .breadcrumbs .current {
    color: #fff;
}
.sub-hero .breadcrumbs a:hover {
    color: #F5C451;
}

/* صفحة ثابتة */
.prose {
    max-width: 820px;
    margin-inline: auto;
    font-size: 15.5px;
    line-height: 2;
    color: var(--text);
}
.prose h2 {
    margin-top: 34px;
    font-size: 1.35rem;
}
.prose h3 {
    margin-top: 26px;
    font-size: 1.1rem;
}
.prose p,
.prose ul,
.prose ol {
    color: var(--muted);
    margin-bottom: 16px;
}
.prose ul,
.prose ol {
    padding-inline-start: 22px;
}
.prose li {
    margin-bottom: 8px;
}
.prose a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
}

/* صفحة التواصل */
.contact-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 26px;
    align-items: start;
    margin-top: 8px;
}
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: all .16s;
}
.contact-card:hover {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.contact-card.is-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: transparent;
    color: var(--on-brand);
}
.contact-card.is-primary small {
    color: color-mix(in srgb, var(--on-brand) 78%, transparent);
}
.contact-card.is-primary .cc-ico {
    background: color-mix(in srgb, var(--on-brand) 16%, transparent);
    color: var(--on-brand);
}
.contact-card strong {
    display: block;
    font-size: 14.5px;
    margin-bottom: 2px;
}
.contact-card small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}
.cc-ico {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    flex: none;
}
.contact-form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-xs);
}
.contact-form-card h2 {
    margin: 0 0 18px;
    font-size: 19px;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .how-grid {
        grid-template-columns: 1fr;
    }
    .cta-band {
        padding: 32px 24px;
    }
    .section {
        padding: 40px 0;
    }
    .section-band {
        padding: 40px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
