/* ============================================================
   نجم سهيل — التصميم الرئيسي
   Theme: Ramadan Green & Gold | RTL
   ============================================================ */

:root {
    --green-900: #072B20;
    --green-800: #0B3D2E;
    --green-700: #11573F;
    --green-600: #1B7A57;
    --green-100: #E4F1EA;

    --gold: #C9A227;
    --gold-light: #E7C86A;
    --gold-dark: #A8861B;

    --cream: #FDF8EF;
    --cream-2: #F7EEDD;
    --cream-3: #EFE2C8;

    --ink: #17251E;
    --muted: #6C7C73;
    --line: #E3D7BE;

    --white: #FFFFFF;
    --danger: #C0392B;
    --success: #1E8E5A;
    --warning: #C98A16;
    --info: #1F6FA8;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 26px;

    --shadow-sm: 0 2px 10px rgba(11, 61, 46, .08);
    --shadow: 0 10px 32px rgba(11, 61, 46, .12);
    --shadow-lg: 0 22px 60px rgba(11, 61, 46, .18);

    --font: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-display: 'Amiri', 'Cairo', serif;

    --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.85;
    font-size: 16px;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: .25s ease; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

.container {
    width: 100%;
    max-width: 1220px;
    margin-inline: auto;
    padding-inline: 22px;
}

/* ============================================================
   الشريط العلوي
   ============================================================ */
.topbar {
    background: var(--green-900);
    color: #D8E6DE;
    font-size: 13.5px;
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.topbar-item svg { color: var(--gold-light); flex-shrink: 0; }
.topbar-item a:hover { color: var(--gold-light); }

/* ============================================================
   الهيدر
   ============================================================ */
.header {
    background: var(--green-800);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 22px rgba(7, 43, 32, .22);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    /* اللوجو أسود فيُقلب إلى ذهبي فاتح فوق الخلفية الداكنة */
    filter: brightness(0) saturate(100%) invert(83%) sepia(29%) saturate(720%) hue-rotate(3deg) brightness(93%) contrast(92%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-name {
    color: var(--gold-light);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .2px;
}
.brand-sub {
    color: #BFD4C8;
    font-size: 11.5px;
    font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
    color: #E6F0EA;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    position: relative;
}
.nav-link:hover { color: var(--gold-light); background: rgba(255, 255, 255, .07); }
.nav-link.active {
    color: var(--green-900);
    background: var(--gold-light);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--gold-light);
    border: 1px solid rgba(231, 200, 106, .35);
}
.cart-btn:hover { background: var(--gold); color: var(--green-900); }
.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
}
.nav-toggle span {
    width: 25px;
    height: 2.5px;
    background: var(--gold-light);
    border-radius: 3px;
    transition: .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   الأزرار
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    transition: .28s ease;
    white-space: nowrap;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--green-900);
    box-shadow: 0 8px 22px rgba(201, 162, 39, .32);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(201, 162, 39, .42);
}
.btn-green {
    background: var(--green-800);
    color: var(--gold-light);
}
.btn-green:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    border-color: var(--green-800);
    color: var(--green-800);
}
.btn-outline:hover { background: var(--green-800); color: var(--gold-light); }
.btn-ghost-light {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.btn-ghost-light:hover { background: #fff; color: var(--green-800); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 16px 38px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #A93226; }

/* ============================================================
   التنبيهات
   ============================================================ */
.alert {
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    margin: 16px auto;
    max-width: 1220px;
    font-size: 14.5px;
    font-weight: 600;
    border: 1px solid transparent;
}
.alert-success { background: #E3F5EC; color: #14633F; border-color: #B5E2CB; }
.alert-danger  { background: #FBE9E7; color: #96301F; border-color: #F0C2BA; }
.alert-warning { background: #FDF3DC; color: #8A5E0B; border-color: #F1DCA6; }
.alert-info    { background: #E5F1F9; color: #164E77; border-color: #BBD9EC; }

/* ============================================================
   الهيرو
   ============================================================ */
.hero {
    position: relative;
    /* لون احتياطي إذا لم تُحمَّل الخلفية */
    background: linear-gradient(140deg, var(--green-900) 0%, var(--green-800) 45%, var(--green-700) 100%);
    color: #fff;
    padding: 96px 0 104px;
    overflow: hidden;
}

/* طبقة الصورة */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.11); }
}

/* طبقة التظليل لضمان وضوح النص
   أفتح على اليسار (تظهر الصورة) وأغمق على اليمين (مكان النص في RTL) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left,
            rgba(4, 33, 26, .90) 0%,
            rgba(4, 33, 26, .82) 28%,
            rgba(4, 33, 26, .55) 60%,
            rgba(4, 33, 26, .32) 100%),
        linear-gradient(to top,
            rgba(4, 33, 26, .78) 0%,
            rgba(4, 33, 26, 0) 34%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: block;
}
.hero-content { max-width: 680px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(231, 200, 106, .16);
    border: 1px solid rgba(231, 200, 106, .42);
    color: var(--gold-light);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5.6vw, 62px);
    line-height: 1.32;
    font-weight: 700;
    margin-bottom: 18px;
}
.hero h1 .gold { color: var(--gold-light); }
.hero-lead {
    font-size: clamp(16px, 2.1vw, 19.5px);
    color: #D5E4DB;
    max-width: 560px;
    margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-stats {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stat b {
    display: block;
    font-size: 26px;
    color: var(--gold-light);
    font-weight: 800;
    line-height: 1.3;
}
.hero-stat span { font-size: 13.5px; color: #B9CCC1; }

/* عدّاد الإفطار */
.iftar-countdown {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(231, 200, 106, .28);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    backdrop-filter: blur(6px);
}
.countdown-title {
    text-align: center;
    color: var(--gold-light);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
}
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}
.countdown-cell {
    background: rgba(7, 43, 32, .38);
    border-radius: var(--radius-sm);
    padding: 14px 6px;
}
.countdown-num {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}
.countdown-lbl { font-size: 11.5px; color: #B9CCC1; }

/* ============================================================
   أقسام الصفحة
   ============================================================ */
.section { padding: 76px 0; }
.section-tint { background: var(--cream-2); }
.section-green {
    background: linear-gradient(140deg, var(--green-900), var(--green-700));
    color: #fff;
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 46px;
}
.section-tag {
    display: inline-block;
    background: var(--green-100);
    color: var(--green-700);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: .3px;
}
.section-green .section-tag {
    background: rgba(231, 200, 106, .18);
    color: var(--gold-light);
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.4;
    margin-bottom: 12px;
}
.section-head p {
    color: var(--muted);
    font-size: 16.5px;
}
.section-green .section-head p { color: #C6D9CE; }

/* ============================================================
   كروت الوجبات
   ============================================================ */
.meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.meal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: .34s cubic-bezier(.2,.8,.3,1);
    position: relative;
}
.meal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.meal-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-3);
}
.meal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .55s ease;
}
.meal-card:hover .meal-media img { transform: scale(1.09); }
.meal-flag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--green-900);
    padding: 6px 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(201, 162, 39, .38);
}
.meal-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.meal-body h3 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.55;
    margin-bottom: 9px;
}
.meal-body h3 a:hover { color: var(--green-700); }
.meal-desc {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 16px;
    flex: 1;
}
.meal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    flex-wrap: wrap;
}
.meal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.meal-price {
    font-size: 23px;
    font-weight: 800;
    color: var(--green-800);
}
.meal-price small {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.meal-old-price {
    font-size: 14px;
    color: var(--muted);
    text-decoration: line-through;
    margin-inline-start: 7px;
}

/* ============================================================
   المميزات
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}
.feature-card {
    text-align: center;
    padding: 34px 22px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: .3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: var(--green-100);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card h4 {
    font-size: 17.5px;
    font-weight: 800;
    margin-bottom: 9px;
}
.feature-card p {
    color: var(--muted);
    font-size: 14.5px;
}

/* ============================================================
   من نحن
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
}
.about-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--cream-3);
    aspect-ratio: 4 / 3;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--green-900);
    padding: 16px 22px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}
.about-badge b { display: block; font-size: 30px; line-height: 1.2; }
.about-badge span { font-size: 12.5px; font-weight: 700; }
.about-text h2 {
    font-family: var(--font-display);
    font-size: clamp(27px, 3.6vw, 40px);
    line-height: 1.45;
    margin-bottom: 18px;
}
.about-text p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 16px;
}
.check-list { margin: 22px 0; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 8px 0;
    font-size: 15.5px;
    font-weight: 600;
}
.check-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

/* ============================================================
   الخطوات
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 22px;
}
.step-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(231, 200, 106, .24);
    border-radius: var(--radius);
    position: relative;
}
.step-num {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--green-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 800;
}
.step-card h4 { font-size: 17px; margin-bottom: 8px; color: var(--gold-light); }
.step-card p { font-size: 14px; color: #C6D9CE; }

/* ============================================================
   آراء العملاء
   ============================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.review-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
}
.review-stars { color: var(--gold); font-size: 17px; letter-spacing: 2px; margin-bottom: 13px; }
.review-text { color: var(--ink); font-size: 15px; margin-bottom: 18px; line-height: 1.95; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
}
.review-author b { display: block; font-size: 14.5px; }
.review-author span { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   CTA
   ============================================================ */
.cta-band {
    background: linear-gradient(120deg, var(--gold-dark), var(--gold-light));
    color: var(--green-900);
    border-radius: var(--radius-lg);
    padding: 46px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(25px, 3.6vw, 38px);
    margin-bottom: 12px;
}
.cta-band p { font-size: 17px; margin-bottom: 26px; opacity: .92; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   صفحات داخلية — الترويسة
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: #fff;
    padding: 54px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.4vw, 44px);
    margin-bottom: 10px;
}
.page-hero p { color: #C6D9CE; font-size: 16.5px; }
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #B9CCC1;
    margin-top: 14px;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   المنتج المفرد
   ============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: start;
}
.product-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream-3);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    position: relative;
}
.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .25s ease;
}
.product-gallery-wrap { position: sticky; top: 100px; }
@media (min-width: 901px) {
    .product-gallery { position: static; }
}
.product-gallery .meal-flag {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

/* معرض الصور المصغّرة */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.gallery-thumb {
    flex: 0 0 78px;
    width: 78px;
    height: 62px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--cream-3);
    padding: 0;
    cursor: pointer;
    opacity: .62;
    transition: .22s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active {
    border-color: var(--gold);
    opacity: 1;
    box-shadow: 0 5px 16px rgba(201, 162, 39, .3);
}
.gallery-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
    font-size: 12.5px;
    color: var(--muted);
}

/* الكمية والإجمالي */
.qty-total {
    background: var(--cream-2);
    padding: 9px 17px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--muted);
}
.qty-total b {
    color: var(--green-800);
    font-size: 16px;
    font-weight: 800;
}

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* شريط الشراء الثابت للجوال */
.mobile-buy-bar {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 12px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    z-index: 95;
    box-shadow: 0 -8px 30px rgba(11, 61, 46, .13);
}
.mobile-buy-price {
    font-size: 21px;
    font-weight: 800;
    color: var(--green-800);
}
.mobile-buy-price small { font-size: 12px; color: var(--muted); }
.mobile-buy-actions {
    display: flex;
    gap: 9px;
    flex: 1;
    justify-content: flex-end;
}
.product-info h1 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.6vw, 38px);
    line-height: 1.5;
    margin-bottom: 14px;
}
.product-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--green-800);
    margin-bottom: 18px;
}
.product-price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.product-desc {
    color: var(--muted);
    font-size: 16px;
    white-space: pre-line;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.qty-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.qty-box {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}
.qty-btn {
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    font-size: 21px;
    font-weight: 700;
    color: var(--green-800);
}
.qty-btn:hover { background: var(--green-100); }
.qty-input {
    width: 58px;
    height: 46px;
    border: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    background: transparent;
}
.qty-input:focus { outline: none; }

.product-meta {
    background: var(--cream-2);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-top: 26px;
}
.product-meta li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 14.5px;
    color: var(--muted);
}
.product-meta li b { color: var(--ink); min-width: 110px; }

/* ============================================================
   السلة
   ============================================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
    align-items: start;
}
.cart-items {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.cart-row {
    display: grid;
    grid-template-columns: 92px 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-thumb {
    width: 92px;
    height: 78px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--cream-3);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.cart-info .unit-price { font-size: 13.5px; color: var(--muted); }
.cart-line-total {
    font-size: 17px;
    font-weight: 800;
    color: var(--green-800);
    min-width: 105px;
    text-align: center;
}
.cart-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-remove:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.summary-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    position: sticky;
    top: 100px;
}
.summary-card h3 {
    font-size: 19px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    font-size: 15px;
    color: var(--muted);
}
.summary-row strong { color: var(--ink); }
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 0 20px;
    margin-top: 12px;
    border-top: 2px solid var(--line);
    font-size: 19px;
    font-weight: 800;
}
.summary-total .amount { color: var(--green-800); font-size: 25px; }

/* ============================================================
   النماذج
   ============================================================ */
.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
}
.form-card h3 {
    font-size: 19px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--ink);
}
.form-label .req { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--cream);
    font-size: 15px;
    transition: .22s;
}
.form-control:focus {
    outline: none;
    border-color: var(--green-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27, 122, 87, .12);
}
.form-control.is-invalid { border-color: var(--danger); background: #FDF2F0; }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field-error { font-size: 12.5px; color: var(--danger); margin-top: 5px; font-weight: 600; }

.radio-group {
    display: grid;
    gap: 11px;
}
.radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--cream);
    cursor: pointer;
    transition: .22s;
}
.radio-card:hover { border-color: var(--green-600); }
.radio-card input { accent-color: var(--green-700); width: 18px; height: 18px; }
.radio-card.selected {
    border-color: var(--green-700);
    background: var(--green-100);
}
.radio-card .radio-title { font-weight: 700; font-size: 15px; display: block; }
.radio-card .radio-sub { font-size: 12.5px; color: var(--muted); display: block; }
.radio-card .radio-icon { color: var(--green-700); flex-shrink: 0; }

/* شبكة العنوان التفصيلي (نمط الإمارات) */
.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.addr-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 5px;
}
.addr-label .req { color: var(--danger); }
@media (max-width: 640px) {
    .address-grid { grid-template-columns: 1fr; }
}

/* بطاقة بيانات التحويل البنكي */
.bank-info-box {
    display: none;
    margin-top: 14px;
    background: linear-gradient(135deg, #FBF7EA, #F6EED7);
    border: 1.5px solid #E2D6AE;
    border-radius: var(--radius-sm);
    padding: 16px;
}
.bank-info-box.visible { display: block; animation: bankIn .3s ease; }
@keyframes bankIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.bank-info-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #DDCD9D;
}
.bank-info-head svg { color: var(--gold-dark, #9A7B14); flex-shrink: 0; margin-top: 3px; }
.bank-info-head strong { color: var(--green-800); font-size: 15px; display: block; }
.bank-info-head span { font-size: 12.5px; color: #6B7A6E; line-height: 1.8; display: block; }
.bank-info-grid { display: grid; gap: 10px; }
.bank-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid #E7DBB3;
    border-radius: 9px;
    padding: 9px 13px;
    flex-wrap: wrap;
}
.bank-label { font-size: 12px; color: #8B9A8F; font-weight: 700; }
.bank-value { font-size: 14px; font-weight: 700; color: var(--ink); }
.bank-value code {
    font-family: 'Courier New', monospace;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--green-800);
}
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--green-800);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 4px 11px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}
.copy-btn:hover { background: var(--gold-dark, #9A7B14); }

/* ملحوظة استعادة البيانات */
.form-restored-note {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--green-100);
    border: 1px solid #CFE0D3;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--green-800);
    font-weight: 600;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.form-restored-note svg { flex-shrink: 0; }
.clear-saved-btn {
    margin-inline-start: auto;
    background: none;
    border: 1px solid var(--green-700);
    color: var(--green-700);
    border-radius: 8px;
    padding: 3px 11px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}
.clear-saved-btn:hover { background: var(--green-700); color: #fff; }

/* ============================================================
   بطاقة التحويل البنكي + وصل التحويل (صفحة تأكيد الطلب)
   ============================================================ */
.transfer-bank-box {
    text-align: right;
    background: linear-gradient(135deg, #FBF7EA, #F5EDD3);
    border: 1.5px solid #E0D3A6;
    border-radius: var(--radius);
    padding: 20px;
    margin: 22px 0;
    box-shadow: 0 8px 26px rgba(201, 162, 39, .12);
}
.transfer-bank-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1.5px dashed #DCCF9E;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.transfer-bank-head svg { color: var(--gold-dark, #9A7B14); margin-top: 4px; }
.transfer-bank-head strong { color: var(--green-800); font-size: 16.5px; display: block; }
.transfer-bank-head span { color: #6C7A6F; font-size: 13px; display: block; margin-top: 2px; }
.transfer-bank-head .status-badge { margin-inline-start: auto; }
.transfer-bank-rows { display: grid; gap: 9px; }
.tb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid #E7DBB0;
    border-radius: 10px;
    padding: 11px 15px;
    flex-wrap: wrap;
}
.tb-row > span { font-size: 12.5px; font-weight: 700; color: #8B9A8F; }
.tb-row > strong { font-size: 14.5px; color: var(--ink); }
.tb-row code {
    font-family: 'Courier New', monospace;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--green-800);
}
.tb-amount { background: var(--green-800); border-color: var(--green-800); }
.tb-amount > span { color: #A9C2B5; }
.tb-amount .tb-total {
    color: #FFD977;
    font-size: 17px;
}
.receipt-upload-card, .receipt-done-card {
    text-align: right;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}
.receipt-upload-head, .receipt-done-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--green-800);
}
.receipt-done-head { color: var(--success, #1E8E5A); }
.receipt-thumb {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

/* ============================================================
   تدفق الدفع عبر رابط Ziina (PayLink)
   ============================================================ */
.ziina-amount-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: var(--green-800);
    color: #fff;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 22px 0;
    box-shadow: 0 10px 28px rgba(11, 61, 46, .25);
}
.ziina-amount-box > span { font-size: 13px; font-weight: 700; color: #A9C2B5; }
.ziina-amount-box strong { font-size: 21px; color: #FFD977; }
.ziina-step {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 15px;
    margin-bottom: 10px;
}
.ziina-step-num {
    flex: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold, #C9A227);
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(201, 162, 39, .35);
}
.ziina-step strong { display: block; color: var(--green-800); font-size: 15px; }
.ziina-step span { display: block; color: #6C7A6F; font-size: 13px; margin-top: 3px; line-height: 1.8; }
.ziina-notice {
    margin-top: 12px;
    background: #EFF6F0;
    border-inline-start: 4px solid var(--primary, #0B3D2E);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--green-800);
    font-size: 13px;
    line-height: 1.9;
}
.ziina-pay-btn svg { margin-inline-end: 8px; }
.ziina-unpaid-notice {
    background: #FBF7EA;
    border: 1.5px solid #E0D3A6;
    border-radius: var(--radius);
    padding: 16px 18px;
    color: var(--green-800);
    text-align: right;
}
.ziina-unpaid-notice strong { display: block; font-size: 15px; margin-bottom: 4px; }
.ziina-unpaid-notice span { display: block; font-size: 13.5px; color: #6C7A6F; line-height: 1.9; }
.ziina-return-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
    background: #EAF7EF;
    border: 1.5px solid #BFE6CC;
    border-radius: var(--radius);
    padding: 15px 17px;
    margin: 20px 0 8px;
}
.ziina-return-banner svg { color: var(--success, #1E8E5A); flex: none; }
.ziina-return-banner strong { display: block; color: var(--success, #1E8E5A); font-size: 15px; }
.ziina-return-banner span { display: block; color: #4F6857; font-size: 13px; margin-top: 2px; line-height: 1.8; }
.ziina-pending-box {
    text-align: right;
    background: linear-gradient(135deg, #F2F8F4, #E7F1EA);
    border: 1.5px solid #BFD8C8;
    border-radius: var(--radius);
    padding: 20px;
    margin: 22px 0;
    box-shadow: 0 8px 26px rgba(11, 61, 46, .10);
}
.ziina-pending-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1.5px dashed #C2D8CA;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ziina-pending-head svg { color: var(--green-800); margin-top: 4px; }
.ziina-pending-head strong { color: var(--green-800); font-size: 16.5px; display: block; }
.ziina-pending-head span { color: #5F7266; font-size: 13px; display: block; margin-top: 2px; }
.ziina-pending-head .status-badge { margin-inline-start: auto; }

/* بطاقة التوزيع التبرّعي */
.radio-card.distribution-card {
    border-color: #D9C98A;
    background: linear-gradient(135deg, #FBF7EA, #F6EED7);
}
.radio-card.distribution-card:hover { border-color: var(--gold); }
.radio-card.distribution-card.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, #FBF5E0, #F3E9C8);
    box-shadow: 0 4px 14px rgba(201, 162, 39, .18);
}
.radio-card.distribution-card .radio-icon { color: var(--gold-dark, #9A7B14); }
.radio-card.distribution-card .radio-title { color: var(--green-800); }

/* حقول التوزيع */
.distribution-fields { display: none; }
.distribution-note {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    background: var(--green-100);
    border: 1px solid #CFE0D3;
    border-right: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 4px 0 18px;
    color: var(--ink);
}
.distribution-note svg { color: var(--gold-dark, #9A7B14); flex-shrink: 0; margin-top: 2px; }
.distribution-note strong { color: var(--green-800); display: block; margin-bottom: 4px; font-size: 14px; }
.distribution-note p { margin: 0; font-size: 13px; line-height: 1.9; color: #3E5A4D; }

.cart-line-total { /* موضع مضمّن في كتلة السلة أسفله */ }
.cart-line-total.flash-pulse,
#cartTotal.flash-pulse,
#cartSubtotal.flash-pulse {
    animation: cartPulse .8s ease;
    border-radius: 8px;
}
@keyframes cartPulse {
    0%   { background: rgba(201, 162, 39, .35); transform: scale(1.04); }
    100% { background: transparent; transform: scale(1); }
}

/* ============================================================
   تأكيد والتتبع
   ============================================================ */
.success-wrap {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.success-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-icon svg { width: 52px; height: 52px; }
.order-number-box {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--cream-2);
    border: 1px dashed var(--gold);
    border-radius: var(--radius);
    padding: 16px 28px;
    margin: 18px 0 26px;
}
.order-number-box span { font-size: 13.5px; color: var(--muted); }
.order-number-box b {
    font-size: 24px;
    color: var(--green-800);
    letter-spacing: 1px;
    user-select: all;
}

.timeline {
    text-align: right;
    position: relative;
    padding-inline-start: 30px;
    margin: 24px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    right: 10px;
    width: 2px;
    background: var(--line);
}
.timeline-item {
    position: relative;
    padding: 0 0 22px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    right: -25px;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--line);
    border: 2px solid var(--cream);
}
.timeline-item.done::before { background: var(--green-600); }
.timeline-item.current::before {
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, .25);
}
.timeline-item h5 { font-size: 15px; margin-bottom: 3px; }
.timeline-item time { font-size: 12px; color: var(--muted); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
}
.st-pending   { background: #FDF3DC; color: #8A5E0B; }
.st-confirmed { background: #E5F1F9; color: #164E77; }
.st-preparing { background: #F0E7FA; color: #5B2E91; }
.st-transit   { background: #E4F1EA; color: #14633F; }
.st-delivered { background: #E3F5EC; color: #14633F; }
.st-cancelled { background: #FBE9E7; color: #96301F; }
.st-paid      { background: #E3F5EC; color: #14633F; }
.st-unpaid    { background: #FBE9E7; color: #96301F; }
.st-failed    { background: #FBE9E7; color: #96301F; }

.proof-card {
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 18px;
    text-align: right;
}
.proof-card img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

/* ============================================================
   جداول
   ============================================================ */
.table-wrap {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow-x: auto;
}
table.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th {
    background: var(--cream-2);
    padding: 13px 16px;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--cream); }

/* ============================================================
   الفوتر
   ============================================================ */
.footer {
    background: var(--green-900);
    color: #C6D9CE;
    padding: 62px 0 0;
    margin-top: 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
    gap: 38px;
    padding-bottom: 42px;
}
.footer-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(83%) sepia(29%) saturate(720%) hue-rotate(3deg) brightness(93%) contrast(92%);
    margin-bottom: 16px;
}
.footer-desc { font-size: 14.5px; line-height: 2; max-width: 320px; }
.footer-col h4 {
    color: var(--gold-light);
    font-size: 17px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 11px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 42px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a {
    font-size: 14.5px;
    color: #A9C2B5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-links a::before { content: '◂'; color: var(--gold); font-size: 11px; }
.footer-links a:hover { color: var(--gold-light); padding-inline-start: 5px; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 15px;
    font-size: 14px;
}
.footer-contact svg { color: var(--gold); flex-shrink: 0; margin-top: 5px; }
.footer-contact a:hover { color: var(--gold-light); }

.social-links { display: flex; gap: 11px; margin-top: 20px; }
.social-links a {
    width: 41px;
    height: 41px;
    border-radius: 50%;
    background: rgba(231, 200, 106, .13);
    border: 1px solid rgba(231, 200, 106, .3);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-links a:hover {
    background: var(--gold);
    color: var(--green-900);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(231, 200, 106, .18);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
}
.payment-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badge {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 5px 13px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #B9CCC1;
}

/* ============================================================
   زر واتساب العائم
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2BD46B, #1FA855);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 26px rgba(31, 168, 85, .46),
        0 2px 6px rgba(0, 0, 0, .18),
        inset 0 -2px 4px rgba(0, 0, 0, .12),
        inset 0 2px 4px rgba(255, 255, 255, .18);
    z-index: 200;
    transition: transform .28s cubic-bezier(.2, .8, .3, 1), box-shadow .28s;
    isolation: isolate;
}
.whatsapp-float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow:
        0 18px 38px rgba(31, 168, 85, .55),
        0 4px 10px rgba(0, 0, 0, .22),
        inset 0 -2px 4px rgba(0, 0, 0, .12),
        inset 0 2px 4px rgba(255, 255, 255, .18);
}
.whatsapp-float:active { transform: scale(.96); }

.whatsapp-icon {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .22));
}

/* حلقة التموج */
.whatsapp-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(43, 212, 107, .6);
    z-index: 1;
    animation: waRing 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes waRing {
    0%   { transform: scale(1); opacity: .85; }
    70%  { transform: scale(1.72); opacity: 0; }
    100% { transform: scale(1.72); opacity: 0; }
}

/* البطاقة النصية */
.whatsapp-label {
    position: absolute;
    left: calc(100% + 13px);
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: #fff;
    color: var(--ink);
    padding: 9px 15px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 12px 32px rgba(11, 61, 46, .22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .26s ease, transform .26s ease, visibility .26s;
    border: 1px solid var(--line);
}
/* السهم */
.whatsapp-label::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 11px;
    height: 11px;
    background: #fff;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.whatsapp-float:hover .whatsapp-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
.whatsapp-label-title {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--green-800);
    line-height: 1.5;
}
.whatsapp-label-sub {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* نبض خفيف مستمر للزر */
@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
.whatsapp-float .whatsapp-icon { animation: waFloat 3.2s ease-in-out infinite; }

/* ============================================================
   حالات فارغة
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 70px 24px;
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.empty-state .empty-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--cream-2);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state h3 { font-size: 21px; margin-bottom: 9px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ============================================================
   التحميل
   ============================================================ */
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after {
    content: '';
    width: 17px;
    height: 17px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   الظهور عند التمرير
   ملاحظة: الإخفاء يحدث فقط عندما يكون JS مفعّلاً (class="js")
   فلا يختفي المحتوى أبداً إذا فشل تشغيل الجافاسكريبت
   ============================================================ */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   استجابة الشاشات
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cart-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .product-gallery-wrap { position: static; }
}

@media (max-width: 900px) {
    .nav {
        position: fixed;
        top: calc(var(--header-h) + 32px);
        right: 0;
        left: 0;
        background: var(--green-800);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 22px 24px;
        gap: 4px;
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
        transition: .32s ease;
        box-shadow: 0 22px 40px rgba(7, 43, 32, .3);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
    .nav.open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link {
        border-radius: var(--radius-sm);
        padding: 13px 16px;
        font-size: 16px;
    }
    .nav-toggle { display: flex; }
    .hide-mobile { display: none; }
    .product-detail { grid-template-columns: 1fr; }
    .product-gallery-wrap { position: static; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .mobile-buy-bar { display: flex; }
    /* اكتساح شريط الشراء الثابت — صفحات المنتج فقط (كان يقفز للفوتر فتظهر فجوة بيضاء تحته) */
    body:has(.mobile-buy-bar) { padding-bottom: 76px; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .section { padding: 52px 0; }
    .hero { padding: 62px 0 70px; }
    .hero-lead { font-size: 15.5px; }
    .topbar { font-size: 12px; }
    .topbar-inner { justify-content: center; text-align: center; }
    .brand-sub { display: none; }
    .brand-name { font-size: 19px; }
    .brand-logo { width: 44px; height: 44px; }
    .hero-stats { gap: 22px; }
    .hero-stat b { font-size: 22px; }
    .cart-row {
        grid-template-columns: 72px 1fr;
        grid-template-areas: "thumb info" "qty total";
        gap: 12px;
    }
    .cart-thumb { grid-area: thumb; width: 72px; height: 64px; }
    .cart-info { grid-area: info; }
    .cart-row .qty-box { grid-area: qty; }
    .cart-line-total { grid-area: total; text-align: left; }
    .cart-remove { position: absolute; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .cta-band { padding: 34px 22px; }
    .order-number-box { padding: 13px 18px; flex-direction: column; gap: 4px; }
    .order-number-box b { font-size: 20px; }
    .whatsapp-float { width: 52px; height: 52px; bottom: 18px; left: 18px; }
    .whatsapp-label { display: none; }
    /* رفع الزر فوق شريط الشراء الثابت في صفحة المنتج */
    body:has(.mobile-buy-bar) .whatsapp-float { bottom: 86px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   توثيق التوزيع — قسم الفيديوهات
   ============================================================ */
.videos-section {
    background:
        radial-gradient(ellipse 70% 55% at 15% 8%,  rgba(201, 162, 39, .13), transparent),
        radial-gradient(ellipse 60% 50% at 88% 92%, rgba(27, 122, 87, .28), transparent),
        linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, #0A3327 100%);
    color: #DFEDE5;
    padding: 74px 0 80px;
}
.videos-head h2 { color: var(--gold-light); }
.videos-head p  { color: #B9CFC2; }

.video-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 720px;
    margin-inline: auto;
    margin-top: 44px;
}

.video-card {
    margin: 0;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(231, 200, 106, .35);
    border-radius: 22px;
    padding: 10px 10px 0;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(231, 200, 106, .7);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .42), 0 0 0 1px rgba(201, 162, 39, .25);
}

/* ---- بوستر الفيديو (تصميمي — غير مرتبط بكادر من الفيديو) ---- */
.video-poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 15;
    overflow: hidden;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 34%, #11573F 0%, transparent 58%),
        linear-gradient(170deg, #0E4A36 0%, var(--green-900) 70%);
    padding: 0;
    text-align: center;
}
.video-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(7, 43, 32, .65) 100%);
    pointer-events: none;
}

/* حلقات ذهبية زخرفية */
.video-deco {
    position: absolute;
    inset: -22% -60%;
    background:
        radial-gradient(circle at 50% 50%, transparent 24%, rgba(201, 162, 39, .16) 24.5%, transparent 25.5%),
        radial-gradient(circle at 50% 50%, transparent 37%, rgba(201, 162, 39, .11) 37.5%, transparent 38.5%),
        radial-gradient(circle at 50% 50%, transparent 50%, rgba(201, 162, 39, .07) 50.5%, transparent 51.5%);
    filter: saturate(1.2);
    transition: transform .5s ease;
}
.video-card:hover .video-deco { transform: scale(1.06) rotate(-2deg); }

/* شعار مصغّر أعلى الكارت */
.video-logo-mini {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .3px;
    color:var(--gold-light);
    background: rgba(7, 43, 32, .55);
    border: 1px solid rgba(231, 200, 106, .4);
    border-radius: 999px;
    padding: 4px 12px;
    backdrop-filter: blur(4px);
}

/* جمعية التشغيل الذهبية النابضة */
.video-play {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-900);
    background: linear-gradient(150deg, var(--gold-light), var(--gold));
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .4), 0 0 0 0 rgba(201, 162, 39, .45);
    transition: transform .25s ease, box-shadow .25s ease;
    animation: playRing 2.2s ease-out infinite;
}
.video-poster:hover .video-play,
.video-poster:focus-visible .video-play {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    animation: none;
}
@keyframes playRing {
    0%   { box-shadow: 0 10px 28px rgba(0, 0, 0, .4), 0 0 0 0 rgba(201, 162, 39, .45); }
    70%  { box-shadow: 0 10px 28px rgba(0, 0, 0, .4), 0 0 0 22px rgba(201, 162, 39, 0); }
    100% { box-shadow: 0 10px 28px rgba(0, 0, 0, .4), 0 0 0 0 rgba(201, 162, 39, 0); }
}

/* نداء وظيفي أسفل الزر */
.video-cta {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    transition: color .25s ease, gap .25s ease;
}
.video-card:hover .video-cta { color: var(--gold-light); }

/* شارة المدة */
.video-duration {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    color: #fff;
    background: rgba(7, 43, 32, .62);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 7px;
    padding: 3px 9px;
    backdrop-filter: blur(4px);
}

.video-caption {
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gold-light);
    padding: 12px 6px 15px;
}
.video-caption::after {
    content: '';
    display: block;
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: rgba(201, 162, 39, .55);
    margin: 9px auto 0;
}

.videos-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 560px;
    margin: 34px auto 0;
    font-size: 13.5px;
    color: #B9CFC2;
    text-align: center;
    line-height: 1.9;
    flex-wrap: wrap;
}
.videos-note svg { color: var(--gold); flex-shrink: 0; }
.videos-note a, .videos-note { color: inherit; }

/* ============================================================
   نافذة مشاهد الفيديو (Lightbox)
   ============================================================ */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-lightbox[hidden] { display: none; }
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 24, 18, .93);
    backdrop-filter: blur(9px);
    animation: lbFade .25s ease;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: lbRise .3s ease;
}
@keyframes lbRise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

#lightboxVideo {
    width: min(94vw, calc(88vh * 9 / 16));
    max-width: 430px;
    max-height: 88vh;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #000;
    border: 1px solid rgba(231, 200, 106, .45);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
}

.lightbox-close {
    position: absolute;
    top: -46px;
    left: -46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    transition: .2s;
    z-index: 4;
}
.lightbox-close:hover { background: var(--danger); border-color: var(--danger); transform: rotate(90deg); }

.lightbox-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #CFE0D4;
    font-size: 13.5px;
    font-weight: 700;
}
.lightbox-pop {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gold-light);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(231, 200, 106, .4);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}
.lightbox-pop:hover { background: var(--gold); color: var(--green-900); border-color: var(--gold); }
.lightbox-counter { letter-spacing: 1px; font-size: 12.5px; color: #9AB5A6; }

@media (max-width: 900px) {
    .lightbox-close { top: 12px; left: auto; right: 12px; background: rgba(7, 43, 32, .7); }
}

@media (max-width: 640px) {
    .video-cards { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 320px; }
    .videos-section { padding: 56px 0 62px; }
    .video-deco { inset: -30% -95%; }
    #lightboxVideo { width: min(94vw, calc(80vh * 9 / 16)); max-height: 80vh; }
    .lightbox-nav { gap: 11px; }
    .lightbox-pop { padding: 8px 13px; font-size: 12.5px; }
}
