/* خط Cairo من الموقع نفسه (نفس ملفات Google Fonts، خط متغيّر يغطي كل الأوزان) —
   بلا طلب خارجي يحبس ظهور الصفحة. swap: النص يظهر فوراً ثم يتبدّل للخط حين يصل */
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
    src: url('../fonts/cairo-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
    src: url('../fonts/cairo-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
    src: url('../fonts/cairo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --navy-950: #081428;
    --navy-900: #0c1d3a;
    --navy-800: #123058;
    --gold-500: #f3b93c;
    --gold-600: #dc9f22;
    --gold-glow: #ffd876;
    --cream: #f6f1e6;

    --bg: var(--cream);
    --text: var(--navy-900);
    --muted: #6b7280;
    --primary: var(--gold-600);
    --primary-dark: #b9800f;
    --whatsapp: #25d366;
    --border: rgba(18, 48, 88, .14);
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 12px;
}

* { box-sizing: border-box; }

html, body { height: 100%; background: var(--bg); max-width: 100%; }
html { overflow-x: hidden; overflow-x: clip; }
body { overflow-x: clip; }
img, video, iframe, input, select, textarea { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
.order-form > *, .order-form label, .order-form input, .order-form select, .order-form textarea { min-width: 0; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--text);
    direction: rtl;
    background: var(--bg);
}

.store-header {
    display: flex;
    justify-content: center;
    padding: 16px 20px;
    background: var(--navy-900);
}
.store-header img { height: 34px; width: auto; display: block; }
.store-header a { display: block; }

.banner-carousel { position: relative; display: grid; }
.banner-slide {
    grid-area: 1 / 1;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 40px 20px 56px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}
@media (min-width: 761px) {
    .banner-slide { min-height: 340px; }
}
.banner-slide.active { opacity: 1; pointer-events: auto; }
.banner-slide h1 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: var(--gold-glow); }
.banner-slide p { margin: 0; font-size: 15px; color: rgba(255,255,255,.85); }
.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.banner-dot.active { background: var(--gold-glow); transform: scale(1.3); }

.store-home { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 28px 20px; }

.product-section { margin-bottom: 36px; }
.product-section h2 { font-size: 19px; margin: 0 0 16px; color: var(--navy-900); text-align: center; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 240px));
    justify-content: center;
    gap: 16px;
}

.product-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(12,29,58,.12); }

.product-card-img { aspect-ratio: 1 / 1; background: #fff; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-img .no-image {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 13px; background: var(--cream);
}

.product-card-body { padding: 12px; text-align: center; }
.product-card-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.product-card-price { font-size: 15px; font-weight: 800; color: var(--primary-dark); }

.product-page {
    flex: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 760px) {
    .product-page { grid-template-columns: 1fr 1fr; align-items: start; }
}

.gallery .main-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: contain;
    aspect-ratio: 1 / 1;
    background: #fff;
}
.gallery .no-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs .thumb {
    width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
    cursor: pointer; border: 1px solid var(--border);
}

.info h1 { font-size: 22px; margin: 0 0 6px; text-align: center; }
.info .price-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.info .price { font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.info .compare-price { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.price-breakdown {
    background: var(--cream);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    margin: -6px 0 16px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.price-breakdown[hidden] { display: none; }

.thank-you-page {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.thank-you-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.thank-you-page h1 { font-size: 22px; margin: 0 0 10px; color: var(--navy-900); }
.thank-you-page p { color: var(--navy-800); margin: 0 0 24px; line-height: 1.7; }
.thank-you-order {
    background: #fff;
    border: 1px dashed var(--gold-600);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 14px;
    color: var(--navy-800);
    margin-bottom: 14px;
}
.thank-you-order strong { color: var(--navy-900); letter-spacing: .5px; }
.thank-you-extra { width: 100%; text-align: start; margin: 0 0 24px; }
.thank-you-extra img { max-width: 100%; height: auto; border-radius: 10px; }
.thank-you-actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; }
.thank-you-page .btn-whatsapp { width: 100%; max-width: 280px; margin: 0; }
.btn-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    padding: 12px 18px;
    border-radius: var(--radius);
    background: var(--navy-900);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.btn-track:hover { background: var(--navy-800); }
.btn-back-store { color: var(--primary-dark); font-weight: 700; text-decoration: none; font-size: 14px; }

.faq-section { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px 32px; }
.faq-section h2 { font-size: 19px; margin: 0 0 14px; color: var(--navy-900); text-align: center; }
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.faq-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.faq-item p { margin: 10px 0 0; color: var(--navy-800); line-height: 1.7; font-size: 14px; }

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: var(--success);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.price-breakdown .total-line { color: var(--navy-900); font-size: 15px; }

/* محاذاة موحّدة للوسط لكل مكوّنات صفحة المنتج — نصوص وحاويات مرنة معاً،
   لأن text-align وحده لا يؤثّر في عناصر flex/grid (تحتاج justify-content). */
.product-page .info { text-align: center; }
.thumbs { justify-content: center; }
.qty-stepper { margin-inline: auto; }
.quantity-option, .payment-option { justify-content: center; }
.variant-group { align-items: center; }
.size-swatches, .color-swatches { justify-content: center; }
.payment-proof label, .payment-proof .hint { text-align: center; }
.description-section .description { text-align: center; }
.description-section .description img { margin-inline: auto; }
/* الأسئلة الشائعة: النصّ والأيقونة محاذيان لليمين داخل المستطيل (في المتجر وصفحات المنتجات معاً) */
.faq-item summary { justify-content: flex-start; text-align: right; }
.faq-item p { text-align: right; }

.description-section { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px 32px; }
.description-section h2 { font-size: 19px; margin: 0 0 14px; color: var(--navy-900); text-align: center; }
.description-section .description {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--navy-800);
    line-height: 1.7;
}
.description-section .description p { margin: 0 0 10px; }
.description-section .description ul, .description-section .description ol { margin: 0 0 10px; padding-inline-start: 22px; }
.description-section .description img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; display: block; }

.reviews-section { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px 32px; }
.reviews-section h2 { font-size: 19px; margin: 0 0 14px; color: var(--navy-900); text-align: center; }
.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    width: 220px;
    text-align: center;
}
.review-card img { width: 100%; border-radius: 8px; display: block; }
.review-name { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }

.review-card--voice {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    padding: 10px 14px;
    text-align: initial;
}
.voice-play-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--navy-900);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.voice-play-btn svg { margin-inline-start: 1px; }
.voice-play-btn .icon-pause { display: none; }
.voice-play-btn.is-playing .icon-play { display: none; }
.voice-play-btn.is-playing .icon-pause { display: block; margin-inline-start: 0; }
.voice-track {
    flex: 1;
    min-width: 0;
    height: 5px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.voice-track-fill { width: 0%; height: 100%; background: var(--gold-600); border-radius: 999px; }
.voice-time { flex-shrink: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 32px; text-align: center; }
.review-card--voice .review-name { margin: 0; flex-shrink: 0; }

.review-card--text { text-align: initial; max-width: 260px; }
.review-card--text p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text); }

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--whatsapp);
    color: #fff;
    text-decoration: none;
    padding: 13px;
    border-radius: var(--radius);
    font-weight: 700;
}
.order-form .btn-whatsapp { margin: 0; }

.order-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.order-form h2 { margin: 0 0 4px; font-size: 17px; text-align: center; }
.delivery-fields:not([hidden]) { display: flex; flex-direction: column; gap: 14px; }

.quantity-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.quantity-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
}
.quantity-option:has(input:checked) { border-color: var(--gold-600); background: #fff8ea; }

.quantity-offer { display: flex; flex-direction: column; gap: 8px; }

.variant-picker {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: #fffdf7;
}
.variant-group { display: flex; flex-direction: column; gap: 8px; }
.variant-label { font-size: 13px; font-weight: 700; color: var(--navy-900); }
.size-swatches, .color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }

.size-swatch {
    min-width: 52px;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
    transition: border-color .15s, background .15s;
}
.size-swatch.selected { border-color: var(--gold-600); background: var(--gold-500); color: var(--navy-950); }

.color-swatch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 74px;
    padding: 8px 6px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.color-swatch.selected { border-color: var(--gold-600); background: #fff8ea; }
.swatch-color {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.08);
}
.swatch-name { font-size: 11px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.2; }
.swatch-check {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold-600);
    color: #fff;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.color-swatch.selected .swatch-check { display: flex; }

.variant-error { color: var(--danger); font-size: 13px; font-weight: 600; margin: -4px 0 0; }

.qty-stepper { display: flex; align-items: center; gap: 0; width: fit-content; }
.qty-stepper button {
    width: 40px;
    height: 42px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: var(--navy-900);
}
.qty-stepper button:first-child { border-radius: 8px 0 0 8px; }
.qty-stepper button:last-child { border-radius: 0 8px 8px 0; }
.qty-stepper input {
    width: 56px;
    height: 42px;
    text-align: center;
    border: 1px solid var(--border);
    border-inline: none;
    font: inherit;
    -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-option input { width: auto; }

.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.delivery-option {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 6px;
    font-weight: 600 !important;
    font-size: 13px !important;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 8px;
    cursor: pointer;
    background: #fff;
    text-align: center;
}
.delivery-option:has(input:checked) { border-color: var(--gold-600); background: #fff8ea; }
.delivery-option input { position: absolute; opacity: 0; width: 0; height: 0; }

.payment-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.payment-option {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    font-weight: 600 !important;
    font-size: 13px !important;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    cursor: pointer;
    background: #fff;
}
.payment-option:has(input:checked) { border-color: var(--gold-600); background: #fff8ea; }
.payment-details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    background: #f8f9fb;
}
.payment-details p { margin: 2px 0; }

.payment-proof {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 16px;
    background: #fff;
}
.payment-proof label { margin-bottom: 8px; }
.payment-proof .hint { margin: 6px 0; font-size: 12px; color: #6b7280; }
.payment-proof input[type="file"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
    padding: 10px;
}
.payment-proof input[type="file"]::file-selector-button {
    font: inherit;
    margin-inline-end: 8px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f3f4f6;
    color: var(--text);
    cursor: pointer;
    max-width: 100%;
}

.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 40;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(8, 20, 40, .12);
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sticky-cta span { font-size: 16px; font-weight: 800; color: var(--primary-dark); }
.sticky-cta button {
    background: var(--primary);
    color: var(--navy-950);
    border: none;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}
@media (max-width: 760px) {
    .sticky-cta { display: flex; }
    body { padding-bottom: 62px; }
}
.order-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; text-align: center; }
.order-form input, .order-form select {
    font: inherit;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
}
.order-form button {
    background: var(--primary);
    color: var(--navy-950);
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}
.order-form button:hover { background: var(--primary-dark); }
.order-form button:disabled { opacity: .6; cursor: default; }

.form-msg { font-size: 14px; min-height: 20px; }
.form-msg.success { color: var(--success); font-weight: 600; }
.form-msg.error { color: var(--danger); font-weight: 600; }

.policy-page { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 36px 20px; }
.policy-page h1 { font-size: 22px; margin: 0 0 18px; color: var(--navy-900); }
.policy-content { line-height: 1.9; color: var(--navy-800); }

/* ══════ صفحة تتبّع الطلب ══════ */
.track-page { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 36px 20px; }
.track-page h1 { font-size: 22px; margin: 0 0 8px; color: var(--navy-900); }
.track-intro { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.track-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.track-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    direction: ltr;
    text-align: center;
}
.track-form input:focus { outline: 2px solid var(--gold-600); outline-offset: 1px; }
.track-form button {
    padding: 12px 28px;
    border: 0;
    border-radius: var(--radius);
    background: var(--gold-600);
    color: var(--navy-900);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.track-form button:hover { background: var(--gold-500); }
.track-msg {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--navy-800);
}
.track-msg--error { border-color: rgba(220, 38, 38, .35); color: var(--danger); }
.track-msg a { color: var(--primary-dark); font-weight: 600; }

.track-results { display: flex; flex-direction: column; gap: 16px; }
.track-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}
.track-card--cancelled { opacity: .75; }
.track-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.track-product { font-weight: 700; color: var(--navy-900); line-height: 1.6; }
.track-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.track-total { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.track-status {
    display: inline-block;
    margin: 12px 0 4px;
    background: var(--navy-900);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 14px;
}
.track-card--cancelled .track-status { background: var(--danger); }

/* مدرّج المراحل: الخطوات المنجزة ذهبية والباقية رمادية */
.track-steps { list-style: none; display: flex; margin: 16px 0 0; padding: 0; }
.track-steps li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
    line-height: 1.4;
}
.track-steps li::before {
    /* الخطّ الواصل يمتدّ من نقطة المرحلة نحو المرحلة السابقة (يمينها في الاتجاه العربي)،
       فيتلوّن ذهبياً بمجرّد بلوغ هذه المرحلة — وأوّل مرحلة بلا خطّ قبلها */
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
}
.track-steps li:first-child::before { display: none; }
.track-steps li.done::before { background: var(--gold-600); }
.track-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
    position: relative;
    z-index: 1;
}
.track-steps li.done { color: var(--navy-900); font-weight: 600; }
.track-steps li.done .track-dot { background: var(--gold-600); border-color: var(--gold-600); }
.track-steps li.current .track-dot { box-shadow: 0 0 0 4px rgba(220, 159, 34, .25); }
.track-note { font-size: 14px; color: var(--navy-800); margin: 14px 0 0; line-height: 1.8; }
.track-number {
    margin-top: 12px;
    background: var(--cream);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13.5px;
    color: var(--navy-900);
}
.track-number strong { letter-spacing: .5px; }

.store-footer {
    margin-top: 40px;
    background: var(--navy-900);
    color: rgba(255, 255, 255, .85);
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 700px) {
    .footer-inner { grid-template-columns: 1.4fr 1fr 1fr auto; }
}
.footer-col h3 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer-col a {
    display: block;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
}
.footer-col a:hover { color: var(--gold-glow); }
.footer-brand img { height: 30px; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: rgba(255, 255, 255, .65); margin: 0 0 14px; }
.footer-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    margin-bottom: 0 !important;
}
.footer-whatsapp-btn svg { flex-shrink: 0; }
.footer-whatsapp-btn:hover { border-color: var(--whatsapp); color: var(--whatsapp) !important; }

.payment-badges { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.payment-badge {
    display: block;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    text-align: right;
    color: #fff !important;
    text-decoration: none;
    margin-bottom: 0 !important;
}
.payment-badge:hover { border-color: var(--gold-600); color: var(--gold-glow) !important; }

/* تابعنا: أيقونات السوشل ميديا بألوان منصّاتها الرسمية، في منتصف العمود */
/* العمود يمتدّ بطول جيرانه، والأيقونات في منتصفه عمودياً (لا ملتصقة بالأعلى) */
.footer-col--social { text-align: center; display: flex; flex-direction: column; }
.social-links { display: flex; gap: 10px; justify-content: center; align-items: center; flex: 1; }
/* الانتقاء بـ.footer-col ضروري: القاعدة العامة `.footer-col a { display:block }` أقوى وتُلغي الـflex فيلتصق الشعار بأعلى المربّع */
.footer-col a.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff !important;
    margin-bottom: 0 !important;
    transition: border-color .15s;
}
.social-link svg { flex-shrink: 0; }
/* الشعار نفسه بلون منصّته، والمربّع يبقى كما هو (انستغرام لونه تدرّج داخل الـSVG).
   نفس انتقاء `.footer-col a.social-link` ضروري هنا أيضاً، وإلا غلبه اللون الأبيض ذو الـ!important فوقه. */
.footer-col a.social-link--facebook { color: #1877F2 !important; }
.social-link--facebook:hover { border-color: #1877F2; }
.social-link--instagram:hover { border-color: #D6249F; }
.social-link--tiktok:hover { border-color: #25F4EE; }
.social-link--youtube:hover { border-color: #FF0000; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    padding: 16px 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}

/* الهاتف: كل عناصر الفوتر في المنتصف */
@media (max-width: 699px) {
    .footer-inner { text-align: center; justify-items: center; }
    .footer-col { width: 100%; max-width: 320px; }
    .footer-whatsapp-btn { margin-inline: auto; }
    .payment-badge { text-align: center; }
    .social-links { justify-content: center; }
}

/* عدّاد الكمية: الإشارتان في المنتصف تماماً والرقم أثخن */
.order-form .qty-stepper button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    font-size: 0;
    color: var(--navy-900);
    background: #fff;
    border: 1px solid var(--border);
    transition: background .15s, border-color .15s;
}
.order-form .qty-stepper button:hover { background: #fff8ea; border-color: var(--gold-600); }
.order-form .qty-stepper button:active { background: #fdecc8; }
/* الإشارتان مرسومتان هندسياً بدل الخط — في المنتصف بالبكسل مهما كان الخط */
.order-form .qty-stepper button::before,
.order-form .qty-stepper #qtyPlus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
}
.order-form .qty-stepper #qtyPlus::after { width: 3px; height: 14px; }
.order-form .qty-stepper input { font-weight: 800; font-size: 17px; padding: 0; }
/* العدّاد قطعة واحدة: إطار واحد مدوَّر، فواصل رفيعة بين الأجزاء */
.order-form .qty-stepper {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.order-form .qty-stepper button,
.order-form .qty-stepper button:first-child,
.order-form .qty-stepper button:last-child {
    border: none;
    border-radius: 0;
}
.order-form .qty-stepper input {
    border: none;
    border-radius: 0;
    border-inline: 1px solid var(--border);
}
.shipping-free { color: var(--success); font-weight: 800; }

/* شعار بريدي موب الرسمي في شارة طرق الدفع (على بلاطة بيضاء ليبقى واضحاً فوق الكحلي) */
.payment-badge--logo { display: flex; align-items: center; gap: 8px; }
.pay-logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    padding: 2px 5px;
    height: 30px;
}
.pay-logo img { height: 24px; width: auto; display: block; }
@media (max-width: 699px) {
    .payment-badge--logo { justify-content: center; }
}
.payment-badges .payment-badge { display: flex; align-items: center; gap: 8px; min-height: 44px; }
@media (max-width: 699px) {
    .payment-badges .payment-badge { justify-content: center; }
}
/* أيقونة بريدي موب أكبر (طلب يحيى) — الشارتان تكبران معاً للتناسق */
.pay-logo { height: 42px; padding: 3px 7px; border-radius: 8px; }
.pay-logo img { height: 36px; }
.payment-badges .payment-badge { min-height: 56px; }
/* أيقونة بريدي موب أصغر (تصحيح: يحيى طلب تصغيرها لا تكبيرها) */
.pay-logo { height: 24px; padding: 2px 4px; border-radius: 5px; }
.pay-logo img { height: 18px; }
.payment-badges .payment-badge { min-height: 44px; }

/* بانر بصورتين: الهاتف يعرض صورة الهاتف، ومن 761px فأكثر صورة الحاسوب */
.banner-slide.has-bg { background-image: var(--bg-mobile); }
@media (min-width: 761px) {
    .banner-slide.has-bg { background-image: var(--bg-desktop); }
}
/* البانر كلّه قابل للضغط حين يُضاف له رابط (الزرّ المرسوم داخل الصورة يصبح فعّالاً) */
.banner-link { position: absolute; inset: 0; z-index: 1; }
.banner-slide:not(.active) .banner-link { pointer-events: none; }
.banner-slide { position: relative; }

/* ══════ صفحة المنتج: عمود واحد بأقسام قابلة لإعادة الترتيب من لوحة التحكّم ══════ */
.product-page {
    max-width: 780px;
    grid-template-columns: 1fr !important; /* يلغي تقسيم العمودين القديم على الحاسوب */
    gap: 24px;
}
.product-page > .gallery,
.product-page > .info-block,
.product-page > .form-block { max-width: 560px; width: 100%; margin-inline: auto; }
/* الأقسام السفلية صارت داخل نفس العمود، فتُلغى هوامشها الخاصة */
.product-page > .description-section,
.product-page > .reviews-section,
.product-page > .faq-section { max-width: 100%; padding: 0; margin: 0; }

/* صور الوصف: بعرض الصورة الرئيسية نفسه، بلا إطار أبيض حولها — تتتابع كصفحة واحدة
   يفصل بينها خطّ أبيض رفيع فقط (طلب يحيى 2026-10-18). النصّ (إن وُجد) يحتفظ بهامشه. */
.product-page > .description-section { max-width: 560px; width: 100%; margin-inline: auto; }
.product-page > .description-section .description {
    padding: 0;
    border: none;
    background: #fff;
    overflow: hidden;
}
.product-page > .description-section .description > *:not(:has(img)) { padding-inline: 16px; }
.product-page > .description-section .description > *:first-child:not(:has(img)) { padding-top: 14px; }
.product-page > .description-section .description p:has(img) { margin: 0; line-height: 0; }
.product-page > .description-section .description img {
    display: block;
    width: 100%;
    margin: 0 0 3px;
    border-radius: 0;
}
.product-page > .description-section .description > :last-child img:last-child { margin-bottom: 0; }

/* ══════ هيدر المتجر: الشعار وحده، والروابط في الصفحة الرئيسية فقط ══════ */
.store-header--nav {
    position: relative;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 16px;
}
.header-logo { display: block; }
/* الأقسام كـ«حبّات» داخل شريط واحد، والقسم الحالي مملوء — يعرف الزبون أين هو بنظرة */
.header-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 4px;
}
.header-nav .nav-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.header-nav .nav-pill svg { flex-shrink: 0; opacity: .9; }
.header-nav .nav-pill:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.header-nav .nav-pill--active {
    background: var(--gold-600);
    color: var(--navy-900);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.header-nav .nav-pill--active:hover { background: var(--gold-600); color: var(--navy-900); }
@media (min-width: 761px) {
    /* الحاسوب: الشعار عند حافة اليمين ثم الروابط بعده (الهاتف: كلاهما في المنتصف) */
    .store-header--nav { gap: 30px; padding: 16px 28px; }
    .store-header--nav .header-nav { position: static; transform: none; }
}
@media (max-width: 760px) {
    /* الهاتف: الشريط في سطر مستقلّ تحت الشعار وفي المنتصف — ثلاث حبّات في سطر واحد بلا كسر */
    .store-header--nav { justify-content: center; gap: 10px; }
    .header-nav { flex-basis: 100%; justify-content: center; flex-wrap: nowrap; gap: 2px; }
    .header-nav .nav-pill { font-size: 12.5px; padding: 7px 10px; gap: 5px; }
    .header-nav .nav-pill svg { width: 14px; height: 14px; }
}

/* الشريط السفلي «اطلب الآن»: يظهر أيضاً على أي جهاز لمس (هاتف/لوحي) حتى لو أبلغ المتصفح
   عن عرض أكبر من 760 — مثل وضع «عرض سطح المكتب» في متصفح الهاتف، الذي كان يُخفيه */
@media (pointer: coarse) and (max-width: 1200px) {
    .sticky-cta { display: flex; }
    body { padding-bottom: 62px; }
}

/* الشريط السفلي «اطلب الآن» على كل الشاشات: بعد تحويل صفحة المنتج لعمود واحد صار نموذج الطلب
   بعيداً في الأسفل على الحاسوب أيضاً، فالشريط لازم للوصول إليه بضغطة واحدة */
.sticky-cta { display: flex; }
body { padding-bottom: 62px; }
@media (min-width: 761px) {
    /* الحاسوب: المحتوى في عمود بعرض الصفحة نفسه بدل تباعد السعر والزرّ لأطراف الشاشة */
    .sticky-cta { padding-inline: max(16px, calc((100% - 780px) / 2)); }
}

/* ══════ كود الخصم في نموذج الطلب ══════ */
.coupon-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.order-form .coupon-toggle {
    background: none;
    border: 0;
    padding: 4px 8px;
    color: var(--primary-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.coupon-field { display: flex; gap: 8px; width: 100%; }
.coupon-field[hidden] { display: none; }
.coupon-field input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.coupon-field input:disabled { background: #f0fdf4; border-color: var(--success); color: var(--success); }
.order-form .coupon-field button {
    width: auto;
    padding: 11px 18px;
    margin: 0;
    background: var(--navy-900);
    color: #fff;
    white-space: nowrap;
}
.coupon-msg { font-size: 13px; min-height: 0; text-align: center; }
.coupon-msg:empty { display: none; }
.coupon-msg.ok { color: var(--success); font-weight: 700; }
.coupon-msg.error { color: var(--danger); font-weight: 600; }
.discount-line { color: var(--success); font-weight: 700; }
.discount-line[hidden] { display: none; }
#shippingLine[hidden] { display: none; }
.order-form .coupon-toggle:hover { background: none; color: var(--navy-900); }
.order-form .coupon-field button:hover { background: var(--navy-800); }
