/* =====================================================
   AL-THURAYA PLUS - الثريا بلاس - واجهة المتجر
   تصميم RTL عربي - دارك تك فاخر (أسود + أحمر) - Mobile First
   ===================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
/* إصلاح جوهري: سمة hidden يجب أن تتفوق على أي قاعدة display أخرى. */
[hidden] { display: none !important; }
:root {
    --primary: #0F1626;
    --accent: #E5252C;
    --accent-2: #FF4753;
    --ink: #EDEFF4;
    --muted: #97A0B3;
    --line: #202B40;
    --bg: #0A0E17;
    --card: #101725;
    --card-2: #0C1320;
    --green: #1FBF75;
    --red: #EF4444;
    --amber: #F59E0B;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 14px 44px rgba(0, 0, 0, .6);
    --glow: 0 6px 22px rgba(229, 37, 44, .32);
    --font: 'Tajawal', Tahoma, 'Segoe UI', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
/* توهجات حمراء خافتة تعطي عمقاً تقنياً دون التأثير على الأداء */
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(1100px 480px at 88% -8%, rgba(229, 37, 44, .09), transparent 62%),
        radial-gradient(860px 420px at -6% 108%, rgba(229, 37, 44, .05), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: rgba(229, 37, 44, .55); color: #fff; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-sm { width: 17px; height: 17px; }
.site-main { min-height: 60vh; }

/* ---------------- الأزرار ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border: 1.5px solid transparent; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 700; transition: .22s all; text-align: center;
}
.btn-primary, .btn-accent {
    background: linear-gradient(135deg, #F0323A 0%, #E5252C 45%, #B5121B 100%);
    color: #fff; box-shadow: 0 4px 14px rgba(229, 37, 44, .28);
}
.btn-primary:hover, .btn-accent:hover { transform: translateY(-1px); box-shadow: var(--glow); filter: brightness(1.06); }
.btn-outline { background: transparent; border-color: rgba(237, 239, 244, .55); color: var(--ink); }
.btn-outline:hover { background: rgba(237, 239, 244, .12); border-color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 13px 28px; font-size: 16.5px; }
.btn-sm { padding: 6px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.link-danger { color: var(--red); background: none; border: none; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; }

/* ---------------- الشريط العلوي (أحمر) ---------------- */
.topbar { background: linear-gradient(90deg, #B5121B 0%, #E5252C 55%, #C91820 100%); color: #fff; font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; flex-wrap: wrap; padding-block: 5px; }
.topbar-text { display: inline-flex; align-items: center; gap: 7px; opacity: .96; }
.topbar-phone a { display: inline-flex; align-items: center; gap: 6px; direction: ltr; font-weight: 700; }
.topbar-phone a:hover { text-decoration: underline; }

/* ---------------- الترويسة ---------------- */
.site-header { background: var(--card); position: sticky; top: 0; z-index: 900; box-shadow: 0 1px 0 var(--line), 0 8px 26px rgba(0, 0, 0, .35); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1.25; margin-inline-end: auto; }
.brand-logo { height: 44px; width: auto; }
.brand-wordmark { font-size: 25px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; white-space: nowrap; }
.brand-sub { font-size: 9.5px; letter-spacing: 3px; color: var(--accent-2); font-weight: 700; text-transform: uppercase; }
.menu-toggle, .icon-btn { background: none; border: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--ink); position: relative; transition: .2s; }
.icon-btn:hover, .menu-toggle:hover { background: rgba(229, 37, 44, .14); color: #fff; }
.menu-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.cart-badge {
    position: absolute; top: 3px; inset-inline-start: 3px;
    background: linear-gradient(135deg, #F0323A, #B5121B); color: #fff;
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; font-size: 11.5px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(229, 37, 44, .5);
}
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a, .nav-drop-btn {
    padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink);
    display: inline-flex; align-items: center; gap: 6px; background: none; border: none; transition: .2s;
}
.main-nav > a:hover, .nav-drop-btn:hover { background: rgba(229, 37, 44, .14); color: #fff; }
.nav-offer { color: var(--accent-2) !important; font-weight: 700; }
.nav-dropdown { position: relative; }
.nav-drop-menu {
    position: absolute; top: calc(100% + 6px); inset-inline-start: 0; background: #131B2C;
    border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 210px; padding: 7px;
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s; z-index: 50;
}
.nav-dropdown:hover .nav-drop-menu, .nav-dropdown:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a, .nav-drop-empty { display: block; padding: 9px 13px; border-radius: 8px; font-size: 14.5px; }
.nav-drop-menu a:hover { background: rgba(229, 37, 44, .14); color: #fff; }
.search-bar { border-top: 1px solid var(--line); padding-block: 11px; background: var(--card); }
.search-form { display: flex; gap: 9px; }
.search-form input {
    flex: 1; padding: 11px 17px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-size: 15px; background: var(--card-2); color: var(--ink); transition: .2s;
}
.search-form input::placeholder { color: #5F6A80; }
.search-form input:focus { outline: none; border-color: var(--accent); background: #0E1524; box-shadow: 0 0 0 3px rgba(229, 37, 44, .16); }

/* ---------------- الرسائل المؤقتة ---------------- */
.flash {
    display: flex; align-items: center; gap: 9px; margin-block: 13px; padding: 12px 16px;
    border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500; border: 1px solid;
}
.flash-success { background: #0C2519; color: #7CE8B0; border-color: #1B5A3C; }
.flash-error { background: #2A1114; color: #FFA3A9; border-color: #7A242B; }
.flash-warning { background: #2A2110; color: #F3CE7E; border-color: #6E5620; }
.flash-close { margin-inline-start: auto; background: none; border: none; color: inherit; opacity: .6; }

/* ---------------- البطل Hero ---------------- */
.hero { background-size: cover; background-position: center; background-color: #0A0E17; }
.hero-inner { min-height: 440px; display: flex; align-items: center; padding-block: 56px; }
.hero-content { max-width: 560px; color: #fff; }
.hero-title { font-size: clamp(28px, 5vw, 46px); font-weight: 800; line-height: 1.3; margin-bottom: 15px; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero-subtitle { font-size: clamp(15px, 2.4vw, 18px); opacity: .93; margin-bottom: 28px; max-width: 460px; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- شريط الميزات ---------------- */
.features-strip { background: var(--card); border-bottom: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-block: 15px; }
.feature { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.feature .icon { width: 26px; height: 26px; color: var(--accent-2); }

/* ---------------- الأقسام ---------------- */
.section { padding-block: 38px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 21px; flex-wrap: wrap; }
.section-title { font-size: clamp(20px, 3.4vw, 27px); font-weight: 800; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.section-title .icon { color: var(--accent-2); }
.section-title-accent .icon { color: #fff; background: linear-gradient(135deg, #F0323A, #B5121B); border-radius: 8px; padding: 3px; width: 26px; height: 26px; box-shadow: 0 3px 10px rgba(229, 37, 44, .4); }
.see-all { font-weight: 700; font-size: 14px; color: var(--accent-2); display: inline-flex; align-items: center; gap: 5px; }
.see-all:hover { text-decoration: underline; }
.section-offers { background: linear-gradient(180deg, #0C1320 0%, #150D12 100%); }
.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.category-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/4.6; box-shadow: var(--shadow); border: 1px solid var(--line); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card:hover { border-color: rgba(229, 37, 44, .55); }
.category-overlay {
    position: absolute; inset-inline: 0; bottom: 0; padding: 38px 16px 15px;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 12, .88) 100%);
    color: #fff; display: flex; flex-direction: column; gap: 2px;
}
.category-name { font-size: 17px; font-weight: 800; }
.category-count { font-size: 12.5px; opacity: .8; }

/* ---------------- بطاقات المنتجات ---------------- */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    border: 1px solid var(--line);
    display: flex; flex-direction: column; transition: .25s transform, .25s box-shadow, .25s border-color;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(229, 37, 44, .5); }
.product-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--card-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.badge {
    position: absolute; top: 11px; inset-inline-start: 11px; padding: 4px 11px; border-radius: 99px;
    font-size: 12px; font-weight: 800; color: #fff; z-index: 2;
}
.badge-discount { background: linear-gradient(135deg, #F0323A, #B5121B); box-shadow: 0 3px 10px rgba(229, 37, 44, .45); }
.badge-featured { background: #1E293B; border: 1px solid #33415E; }
.badge-low { background: #92610A; }
.badge-out { background: #374151; }
.badge-lg { top: 15px; inset-inline-start: 15px; font-size: 14px; padding: 5px 14px; }
.product-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-cat { font-size: 12px; color: var(--muted); font-weight: 500; }
.product-name { font-size: 15.5px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.product-name a:hover { color: var(--accent-2); }
.product-price { display: flex; align-items: baseline; gap: 9px; margin-block: 2px 4px; }
.price-now { font-size: 17px; font-weight: 800; color: #FFFFFF; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.product-actions { margin-top: auto; }
.product-card.is-out .product-media img { filter: grayscale(.9) opacity(.75); }

/* ---------------- البنرات الترويجية ---------------- */
.section-banners .container { display: grid; gap: 15px; }
.promo-banner { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1200/320; border: 1px solid var(--line); }
.promo-banner img { width: 100%; height: 100%; object-fit: cover; }
.promo-banner-text {
    position: absolute; inset-block: 0; inset-inline-start: 0; width: min(58%, 480px);
    display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 20px 26px;
    background: linear-gradient(90deg, transparent 0%, rgba(6, 8, 14, .55) 45%, rgba(6, 8, 14, .88) 100%); color: #fff;
}
.promo-banner-text strong { font-size: clamp(17px, 3vw, 25px); font-weight: 800; }
.promo-banner-text span { font-size: clamp(12.5px, 2vw, 15px); opacity: .92; }
.promo-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.promo-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px;
    background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 700; box-shadow: var(--shadow);
}
.promo-chip .icon { color: var(--accent-2); }
.promo-chip small { font-weight: 500; color: var(--muted); }

/* ---------------- قسم الخدمات ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 14px; }
.service-card {
    position: relative; display: flex; align-items: center; gap: 15px; padding: 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); transition: .25s all; overflow: hidden;
}
.service-card:hover { transform: translateY(-3px); border-color: rgba(229, 37, 44, .5); box-shadow: var(--shadow-lg); }
.service-card::after {
    content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px;
    background: linear-gradient(180deg, #F0323A, #B5121B);
}
.service-icon {
    width: 58px; height: 58px; flex-shrink: 0; border-radius: 16px;
    background: linear-gradient(135deg, rgba(229, 37, 44, .16), rgba(229, 37, 44, .05));
    border: 1px solid rgba(229, 37, 44, .35); color: var(--accent-2);
    display: flex; align-items: center; justify-content: center;
}
.service-icon .icon { width: 30px; height: 30px; }
.service-info { flex: 1; min-width: 0; }
.service-name { font-size: 16.5px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.service-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.service-link { color: var(--accent-2); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.service-link:hover { text-decoration: underline; }

/* ---------------- التذييل ---------------- */
.site-footer { background: #070B12; color: #C6CCDA; margin-top: 44px; border-top: 2px solid rgba(229, 37, 44, .35); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 38px 20px; }
.footer-brand .brand-wordmark { color: #fff; }
.footer-about p { font-size: 13.8px; opacity: .8; margin-top: 10px; }
.social-links { display: flex; gap: 9px; margin-top: 15px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    display: inline-flex; align-items: center; justify-content: center; transition: .2s;
}
.social-links a:hover { background: linear-gradient(135deg, #F0323A, #B5121B); border-color: transparent; color: #fff; transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 13px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a:hover { color: var(--accent-2); text-decoration: underline; }
.footer-col ul li { font-size: 14px; }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact .icon { color: var(--accent-2); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding-block: 15px; display: flex;
    flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; font-size: 13px;
}
/* حقوق التطوير: الاسم ثم الرقم تحته مباشرة على سطر مستقل في كل الأحوال */
.footer-credits { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-credits .cr-developer { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.footer-credits .cr-line { font-size: 13px; opacity: .95; }
.footer-credits .cr-dev-line strong { color: #FF8A91; font-weight: 700; }
.footer-credits .cr-phone {
    color: #FF8A91; text-decoration: none; direction: ltr; unicode-bidi: embed;
    font-weight: 700; font-size: 14px; letter-spacing: .4px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border: 1px solid rgba(255, 138, 145, .4); border-radius: 99px;
    background: rgba(229, 37, 44, .12); transition: .2s;
}
.footer-credits .cr-phone:hover { background: rgba(229, 37, 44, .25); text-decoration: none; border-color: rgba(255, 138, 145, .75); }
.footer-credits .cr-copy { opacity: .75; font-size: 12.5px; }
.footer-cod { display: inline-flex; align-items: center; gap: 6px; color: #7CE8B0; }

/* ---------------- مسار التنقل وعناوين الصفحات ---------------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 15px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.page-head { margin-bottom: 20px; }
.page-head h1, .page-title { font-size: clamp(23px, 4vw, 31px); font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.page-desc { color: var(--muted); font-size: 15px; }

/* ---------------- شرائح الفئات والتصفية ---------------- */
.cat-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { padding: 7px 17px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: .2s; color: var(--ink); }
.chip:hover { border-color: rgba(229, 37, 44, .5); }
.chip-active { background: linear-gradient(135deg, #F0323A, #B5121B); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(229, 37, 44, .35); }
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 9px; align-items: center; background: var(--card);
    padding: 13px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 22px; border: 1px solid var(--line);
}
.filter-bar input[type="search"] { flex: 1; min-width: 150px; }
.filter-bar input, .filter-bar select {
    padding: 9px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; background: var(--card-2); color: var(--ink);
}
.filter-bar input::placeholder { color: #5F6A80; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--accent); background: #0E1524; }
.filter-bar input[type="number"] { width: 88px; }
.filter-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.filter-check input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------------- الترقيم ---------------- */
.pagination { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.page-link {
    min-width: 38px; height: 38px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink);
}
.page-link:hover { border-color: var(--accent); color: var(--accent-2); }
.page-current { background: linear-gradient(135deg, #F0323A, #B5121B); color: #fff; border-color: transparent; }
.page-dots { padding: 0 4px; color: var(--muted); }

/* ---------------- حالة فراغ ---------------- */
.empty-state { text-align: center; padding: 54px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.empty-state .icon { width: 52px; height: 52px; color: var(--muted); opacity: .5; margin: 0 auto 14px; }
.empty-state h3 { font-size: 19px; margin-bottom: 7px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }
.error-state .error-code { font-size: 62px; font-weight: 800; color: #2A3550; line-height: 1; }
.maintenance-state .icon { color: var(--accent-2); opacity: 1; }

/* ---------------- صفحة المنتج ---------------- */
.product-page { display: grid; grid-template-columns: 1fr; gap: 26px; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card-2); box-shadow: var(--shadow); aspect-ratio: 4/5; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-zoom { position: absolute; bottom: 13px; inset-inline-start: 13px; width: 42px; height: 42px; border-radius: 12px; background: rgba(16, 23, 37, .9); border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.gallery-zoom:hover { border-color: var(--accent); color: var(--accent-2); }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 11px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { flex-shrink: 0; width: 74px; border-radius: 10px; overflow: hidden; border: 2.5px solid transparent; background: none; padding: 0; }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.product-info { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line); }
.product-sku { font-size: 12.5px; color: var(--muted); letter-spacing: .5px; }
.product-title { font-size: clamp(21px, 3.6vw, 28px); font-weight: 800; margin-block: 5px 9px; color: var(--ink); }
.product-short { color: var(--muted); font-size: 15px; margin-bottom: 15px; }
.product-price-lg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 13px; border-block: 1px solid var(--line); margin-bottom: 15px; }
.product-price-lg .price-now { font-size: 25px; }
.product-price-lg .price-old { font-size: 17px; }
.stock-status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 99px; margin-bottom: 18px; }
.stock-in { background: rgba(31, 191, 117, .12); color: #4ADE8C; border: 1px solid rgba(31, 191, 117, .3); }
.stock-low { background: rgba(245, 158, 11, .12); color: #F5C36B; border: 1px solid rgba(245, 158, 11, .3); }
.stock-out { background: rgba(239, 68, 68, .1); color: #FF8A8E; border: 1px solid rgba(239, 68, 68, .3); }
.option-group { margin-bottom: 16px; }
.option-label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 9px; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
    min-width: 46px; padding: 8px 13px; border-radius: 10px; border: 1.5px solid var(--line);
    background: var(--card-2); color: var(--ink); font-weight: 700; font-size: 14px; transition: .18s;
}
.size-btn:hover:not(.disabled) { border-color: var(--accent); }
.size-btn.selected { background: linear-gradient(135deg, #F0323A, #B5121B); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(229, 37, 44, .35); }
.size-btn.disabled { opacity: .38; text-decoration: line-through; cursor: not-allowed; }
.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 9px; border-radius: 99px;
    border: 1.5px solid var(--line); background: var(--card-2); color: var(--ink); font-size: 13.5px; font-weight: 600; transition: .18s;
}
.color-btn:hover:not(.disabled) { border-color: var(--accent); }
.color-btn.selected { border-color: var(--accent); background: rgba(229, 37, 44, .14); }
.color-btn.disabled { opacity: .38; cursor: not-allowed; }
.color-swatch { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); }
.variant-note { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.variant-error { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #FF8A8E; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3); padding: 8px 13px; border-radius: 9px; margin-bottom: 12px; }
.qty-selector { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-bottom: 18px; }
.qty-selector .option-label { margin-bottom: 0; }
.qty-controls { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card-2); }
.qty-btn { width: 38px; height: 40px; background: transparent; border: none; color: var(--ink); font-size: 19px; font-weight: 700; }
.qty-btn:hover:not(:disabled) { background: linear-gradient(135deg, #F0323A, #B5121B); color: #fff; }
.qty-controls input { width: 52px; height: 40px; border: none; text-align: center; font-size: 15.5px; font-weight: 700; background: transparent; color: var(--ink); }
.qty-controls input:focus { outline: none; }
.qty-available { font-size: 13px; color: var(--muted); }
.qty-sm .qty-btn { width: 32px; height: 34px; font-size: 16px; }
.qty-sm .qty-value { min-width: 34px; text-align: center; font-weight: 700; }
.buy-actions { display: grid; gap: 10px; }
.product-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; padding-top: 17px; border-top: 1px dashed var(--line); }
.product-trust div { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.product-trust .icon { color: var(--accent-2); width: 20px; height: 20px; }
.product-desc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-top: 26px; border: 1px solid var(--line); }
.product-desc h2 { font-size: 19px; margin-bottom: 12px; }
.desc-body { color: #C2C9D8; font-size: 15px; }
.related-products { margin-top: 30px; }
.related-products .section-title { margin-bottom: 17px; }

/* ---------------- السلة ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.cart-items { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; border: 1px solid var(--line); }
.cart-item { display: flex; gap: 13px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.cart-item:last-of-type { border-bottom: none; }
.cart-item-media { width: 82px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--card-2); }
.cart-item-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 15px; display: block; margin-bottom: 3px; color: var(--ink); }
.cart-item-name:hover { color: var(--accent-2); }
.cart-item-price { font-size: 13.5px; color: var(--muted); display: block; }
.cart-item-remove { margin-top: 8px; }
.cart-item-qty { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; justify-content: center; }
.cart-item-total { font-weight: 800; color: #fff; font-size: 16px; }
.cart-summary { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 90px; border: 1px solid var(--line); }
.cart-summary h2 { font-size: 18px; margin-bottom: 15px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 9px; font-size: 14.5px; }
.summary-row.summary-total { border-top: 2px solid var(--accent); margin-top: 7px; padding-top: 13px; font-size: 17px; font-weight: 800; color: #fff; }
.summary-row.summary-note { flex-direction: column; align-items: flex-start; gap: 2px; color: var(--muted); font-size: 13px; }
.summary-note .icon { color: var(--accent-2); }
.cart-summary .btn { margin-top: 9px; }

/* ---------------- إتمام الطلب ---------------- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.checkout-form, .checkout-summary { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line); }
.form-title { font-size: 17.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.form-title .icon { color: var(--accent-2); }
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.req { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-size: 15px; background: var(--card-2); color: var(--ink); transition: .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5F6A80; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #0E1524; box-shadow: 0 0 0 3px rgba(229, 37, 44, .16); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 13px; }
.field-hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.payment-option { display: flex; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: .2s; background: var(--card-2); }
.payment-option input { accent-color: var(--accent); width: 18px; }
.payment-option:hover { border-color: rgba(229, 37, 44, .6); }
.payment-option-body { display: flex; flex-direction: column; gap: 3px; }
.payment-option-body small { color: var(--muted); }
.payment-note { display: flex; gap: 9px; align-items: flex-start; background: rgba(245, 158, 11, .1); color: #F5C36B; border: 1px solid rgba(245, 158, 11, .28); padding: 13px 15px; border-radius: var(--radius-sm); font-size: 14px; }
.order-items-mini { display: flex; flex-direction: column; gap: 11px; padding-block: 5px 14px; border-bottom: 1px dashed var(--line); margin-bottom: 9px; }
.mini-item { display: flex; align-items: center; gap: 10px; }
.mini-item img { width: 48px; border-radius: 8px; aspect-ratio: 4/5; object-fit: cover; flex-shrink: 0; }
.mini-item-info { flex: 1; min-width: 0; }
.mini-item-name { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.mini-item-qty { font-size: 12.5px; color: var(--muted); }
.mini-item-total { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.checkout-note { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.shipping-msg { background: rgba(239, 68, 68, .1); color: #FF8A8E; border: 1px solid rgba(239, 68, 68, .3); padding: 10px 13px; border-radius: 9px; font-size: 13.5px; margin-block: 9px; }

/* ---------------- نجاح الطلب ---------------- */
.order-success { text-align: center; max-width: 620px; margin-inline: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 24px; border: 1px solid var(--line); }
.success-icon { width: 74px; height: 74px; border-radius: 50%; background: rgba(31, 191, 117, .12); color: #4ADE8C; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; border: 1.5px solid rgba(31, 191, 117, .35); }
.success-icon .icon { width: 36px; height: 36px; }
.order-success h1 { font-size: 24px; margin-bottom: 9px; }
.success-text { color: var(--muted); margin-bottom: 22px; }
.order-number-box { background: var(--card-2); border: 2px dashed rgba(229, 37, 44, .55); border-radius: var(--radius); padding: 16px; display: inline-flex; flex-direction: column; gap: 7px; align-items: center; margin-bottom: 20px; min-width: min(100%, 320px); }
.order-number-box > span { font-size: 13px; color: var(--muted); }
.order-number-box strong { font-size: 27px; letter-spacing: 2px; color: var(--accent-2); }
.order-mini-summary { text-align: start; margin-bottom: 22px; }
.success-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.success-hint { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* ---------------- تتبع الطلب ---------------- */
.track-wrap { max-width: 780px; margin-inline: auto; }
.track-hero { text-align: center; margin-bottom: 22px; }
.track-hero h1 { font-size: clamp(23px, 4vw, 30px); display: inline-flex; align-items: center; gap: 9px; }
.track-hero p { color: var(--muted); margin-top: 6px; }
.track-form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 22px; border: 1px solid var(--line); }
.track-form .field-row { margin-bottom: 13px; }
.track-result { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.track-header { display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-between; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.track-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.track-number { font-size: 19px; letter-spacing: 1.5px; color: var(--accent-2); }
.timeline { display: flex; padding: 24px 15px 10px; overflow-x: auto; }
.timeline-step { flex: 1; min-width: 90px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; }
.timeline-step::before { content: ''; position: absolute; top: 16px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline-step:first-child::before { display: none; }
.timeline-step.done::before { background: var(--green); }
.timeline-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--card-2); border: 2.5px solid var(--line); display: flex; align-items: center; justify-content: center; z-index: 1; color: var(--muted); transition: .3s; }
.timeline-step.done .timeline-dot { background: rgba(31, 191, 117, .14); border-color: var(--green); color: #4ADE8C; }
.timeline-step.current .timeline-dot { background: linear-gradient(135deg, #F0323A, #B5121B); border-color: transparent; color: #fff; box-shadow: 0 0 0 5px rgba(229, 37, 44, .2); }
.timeline-label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.timeline-step.done .timeline-label, .timeline-step.current .timeline-label { color: var(--ink); }
.track-items, .track-history { padding: 19px 22px; border-top: 1px solid var(--line); }
.track-items h2, .track-history h2 { font-size: 16.5px; margin-bottom: 13px; }
.track-items .summary-row { font-size: 14px; }
.history-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.history-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.history-note { font-size: 13.5px; color: var(--muted); }
.history-meta { font-size: 12.5px; color: var(--muted); }
.history-time { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); }
.track-help { display: flex; align-items: center; gap: 8px; padding: 14px 22px; background: var(--card-2); font-size: 13.5px; flex-wrap: wrap; }
.track-help a { color: var(--accent-2); font-weight: 700; }

/* ---------------- شارات الحالة ---------------- */
.status-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status-blue { background: rgba(59, 130, 246, .13); color: #8AB6F9; }
.status-cyan { background: rgba(34, 211, 238, .12); color: #7DE6F5; }
.status-teal { background: rgba(45, 212, 191, .12); color: #7BEFE2; }
.status-amber { background: rgba(245, 158, 11, .13); color: #F5C36B; }
.status-indigo { background: rgba(129, 140, 248, .14); color: #B3BBFA; }
.status-green { background: rgba(31, 191, 117, .13); color: #4ADE8C; }
.status-orange { background: rgba(249, 115, 22, .13); color: #FDB177; }
.status-red { background: rgba(239, 68, 68, .13); color: #FF8A8E; }
.status-gray { background: rgba(148, 163, 184, .13); color: #B6C0D2; }

/* ---------------- صفحة محتوى واتصل بنا ---------------- */
.content-page { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; border: 1px solid var(--line); }
.content-body { color: #C2C9D8; font-size: 15px; }
.content-footer-links { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; padding-top: 17px; border-top: 1px dashed var(--line); }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.contact-layout h2 { font-size: 18px; margin-bottom: 15px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.contact-card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 17px 15px;
    display: flex; flex-direction: column; gap: 4px; transition: .2s; border: 1px solid var(--line);
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--accent-2); border-color: rgba(229, 37, 44, .5); }
.contact-card .icon { width: 25px; height: 25px; color: var(--accent-2); margin-bottom: 5px; }
.contact-card-label { font-size: 12.5px; color: var(--muted); }
.contact-card strong { font-size: 14px; }
.contact-form-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line); }
.contact-form-hint { color: var(--muted); font-size: 14px; margin-bottom: 15px; }

/* ---------------- الإشعارات المنبثقة Toast ---------------- */
.toast-wrap { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 9px; max-width: min(92vw, 340px); }
.toast {
    background: #1A2334; color: #fff; padding: 13px 17px; border-radius: 12px; font-size: 14px;
    display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow-lg); border: 1px solid #2A3550;
    animation: toast-in .3s ease;
}
.toast-success { background: #0F3D28; border-color: #1B5A3C; }
.toast-error { background: #48151B; border-color: #7A242B; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- معرض تكبير الصور ---------------- */
.lightbox { position: fixed; inset: 0; background: rgba(5, 7, 12, .94); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 22px; }
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 17px; inset-inline-start: 17px; width: 46px; height: 46px; border-radius: 13px; background: rgba(229, 37, 44, .85); border: none; color: #fff; }
.overlay { position: fixed; inset: 0; background: rgba(5, 7, 12, .62); z-index: 850; }

/* ---------------- تجاوب - الأجهزة الكبيرة ---------------- */
@media (min-width: 560px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .field-row { grid-template-columns: 1fr 1fr; }
    .contact-cards { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .cart-layout, .checkout-layout { grid-template-columns: 1.9fr 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .product-page { grid-template-columns: 1fr 1.1fr; }
    .contact-layout { grid-template-columns: 1.15fr 1fr; }
    .promo-banner { aspect-ratio: 1200/300; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(5, 1fr); }
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
    .hero-inner { min-height: 500px; }
}
@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; top: 0; bottom: 0; inset-inline-end: -310px; width: 295px; background: #0E1524;
        flex-direction: column; align-items: stretch; padding: 20px 14px; gap: 4px; z-index: 950;
        transition: inset-inline-end .3s ease; overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,.5);
        border-inline-start: 1px solid var(--line);
    }
    .main-nav.nav-open { inset-inline-end: 0; }
    .main-nav > a, .nav-drop-btn { padding: 12px 15px; font-size: 15.5px; }
    .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 10px; background: transparent; }
    .nav-dropdown { display: flex; flex-direction: column; }
    .brand { margin-inline-end: auto; }
}
@media (max-width: 480px) {
    .brand-wordmark { font-size: 18.5px; }
    .brand-sub { font-size: 8px; letter-spacing: 2px; }
    .topbar-text { font-size: 12px; }
    .btn-lg { padding: 12px 20px; font-size: 15px; }
    .cart-item-qty { align-items: center; }
    .product-trust { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}
