/* ===========================================================================
   SKD Birdy — تجديد بصري للصفحة الرئيسية
   ---------------------------------------------------------------------------
   ورقة تُحمَّل بعد style.min.css و extra.css فتتجاوزهما دون تعديلهما،
   ليبقى التراجع ممكناً بحذف سطر واحد. تعمل مع RTL و LTR معاً.
   =========================================================================== */

:root {
    --brand: #ec8021;
    --brand-dark: #d16a13;
    --brand-soft: #fff4e9;
    --accent: #fca610;

    --ink: #1c1f23;
    --ink-2: #4a5158;
    --ink-3: #79818a;

    --surface: #ffffff;
    --surface-2: #f7f8f9;
    --line: #e8ebee;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-2: 0 8px 24px rgba(16, 24, 40, .10);
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 1) البطل: تكديس على الجوال بدل ضغط النص ---------- */

.hero-section-v2 .signle-banner {
    padding-block: clamp(32px, 6vw, 80px);
}

/* الثيم يعيد ضبط حجم نص البطل داخل عدة media queries (1600/1367/991)
   بمُحدِّدات مطابقة، فنكرّر قاعدتنا داخلها حتى لا تُلغى. */
@media (max-width: 1600px), (max-width: 1367px) {
    .hero-section-v2 .signle-banner .hero-text {
        font-size: clamp(15.2px, 14.4px + .35vw, 17.6px);
        line-height: 1.7;
        margin-bottom: 28px;
        color: var(--ink-2);
    }
}

/* الثيم يضبط 102.4px ثابتة بمُحدِّد أكثر تخصيصاً، فنطابق تخصيصه */
.hero-section-v2 .signle-banner .hero-title,
.hero-section-v2 .hero-title {
    line-height: 1.15;
    letter-spacing: -.01em;
    font-size: clamp(28px, 17.6px + 2.8vw, 64px);
    margin-bottom: 20px;
}

.hero-section-v2 .signle-banner .hero-text,
.hero-section-v2 .hero-text {
    color: var(--ink-2);
    max-width: 52ch;
    font-size: clamp(15.2px, 14.4px + .35vw, 17.6px);
    line-height: 1.7;
    margin-bottom: 28px;
}

.hero-section-v2 .hero-image {
    max-width: 100%;
    height: auto;
}

/* تحت 768px: عمودا البطل كانا col-7/col-5 فيبقيان متجاورين
   ويُضغط النص في نصف شاشة صغيرة. نجعلهما عمودين كاملين. */
@media (max-width: 767.98px) {
    .hero-section-v2 .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero-section-v2 .hero-content {
        text-align: center;
        margin-bottom: 22px;
    }

    /* العنوان كان يتجاوز حدود الشاشة: الثيم يفرض حجماً ثابتاً
       و white-space لا يسمح بالالتفاف. */
    .hero-section-v2 .signle-banner .hero-title,
    .hero-section-v2 .hero-title {
        font-size: clamp(23.2px, 16.8px + 3.4vw, 32px);
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: break-word;
        margin-bottom: 12px;
    }

    /* النص الوصفي كان مخفياً على الجوال في الثيم الأصلي */
    .hero-section-v2 .signle-banner .hero-text,
    .hero-section-v2 .hero-text {
        display: block;
        margin-inline: auto;
        max-width: 100%;
        font-size: 15.2px;
        line-height: 1.65;
        margin-bottom: 18px;
    }

    .hero-section-v2 .hero-banner-image {
        max-width: 300px;
        margin-inline: auto;
    }

    .hero-section-v2 .signle-banner {
        padding-block: 28px;
    }
}

/* ---------- 2) شريط الثقة تحت البطل ---------- */

.trust-strip {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.trust-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 18px;
    text-align: start;
}

.trust-item + .trust-item {
    border-inline-start: 1px solid var(--line);
}

.trust-item__icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 21px;
}

.trust-item__title {
    font-size: 16.8px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 3px;
    line-height: 1.3;
}

.trust-item__text {
    font-size: 14.4px;
    color: var(--ink-3);
    margin: 0;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(odd) { border-inline-start: 0; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 575.98px) {
    .trust-item { padding: 14px 10px; gap: 9px; }
    .trust-item__icon { width: 34px; height: 34px; font-size: 15px; }
    .trust-item__title { font-size: 13.6px; }
    .trust-item__text { display: none; }
}

/* ---------- 3) شريط المنتجات المتحرّك ---------- */

/* الثيم ينسّق هذا الشريط بأصناف Slick (.slick-slide) بينما الـ JS
   يُهيّئه بـ Owl Carousel مع autoWidth، فلا يجد أي عرض محدَّداً
   وتتمدّد صورة المنتج الأولى لتملأ الصف. نضبط عرض الشريحة. */
.recommend-product-slide.owl-carousel .owl-item {
    padding-inline: 10px;
}

.recommend-product-slide.owl-carousel .single-grid-product-v2 {
    width: 100%;
}

/* مع autoWidth تحتاج الشريحة عرضاً صريحاً */
.recommend-product-slide.owl-carousel .owl-item > .single-grid-product-v2 {
    width: 280px;
    max-width: 100%;
}

/* قبل أن يعمل السكربت: نمنع ظهور المنتجات بحجم ضخم */
.recommend-product-slide:not(.owl-loaded) {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow: hidden;
}

.recommend-product-slide:not(.owl-loaded) > .single-grid-product-v2 {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}

@media (max-width: 1199.98px) {
    .recommend-product-slide:not(.owl-loaded) > .single-grid-product-v2 {
        flex-basis: calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 767.98px) {
    .recommend-product-slide:not(.owl-loaded) > .single-grid-product-v2 {
        flex-basis: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 479.98px) {
    .recommend-product-slide:not(.owl-loaded) > .single-grid-product-v2 {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* صور بطاقات هذا الشريط تتبع نفس نسبة بطاقات المنتجات */
.single-grid-product-v2 .product-top img,
.single-grid-product-v2 .product-thumbnal {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--surface-2);
}

/* ---------- 4) بطاقات المنتجات ---------- */

.single-product,
.single-grid-product,
.single-grid-product-v2 {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.single-product:hover,
.single-grid-product:hover,
.single-grid-product-v2:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: #dfe3e8;
}

.single-product .product-thumbnal,
.single-grid-product .product-thumbnal,
.single-grid-product-v2 .product-thumbnal,
.single-product .product-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--surface-2);
    padding: 12px;
    transition: transform .35s var(--ease);
}

.single-product:hover .product-thumbnal,
.single-grid-product:hover .product-thumbnal,
.single-grid-product-v2:hover .product-thumbnal {
    transform: scale(1.04);
}

.single-product .product-info,
.single-grid-product .product-info,
.single-grid-product-v2 .product-info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
}

.single-product .product-catagory,
.single-grid-product .product-catagory,
.single-grid-product-v2 .product-catagory {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-3);
    margin: 0;
    font-weight: 600;
}

.single-product .product-name,
.single-grid-product .product-name,
.single-grid-product-v2 .product-name {
    margin: 0;
    font-size: 15.7px;
    line-height: 1.45;
    min-height: 2.9em;
}

.single-product .product-name .product-link,
.single-grid-product .product-name .product-link,
.single-grid-product-v2 .product-name .product-link {
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-product .product-name .product-link:hover,
.single-grid-product .product-name .product-link:hover,
.single-grid-product-v2 .product-name .product-link:hover { color: var(--brand); }

.single-product .product-price,
.single-grid-product .product-price,
.single-grid-product-v2 .product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.single-product .product-price .price,
.single-grid-product .product-price .price,
.single-grid-product-v2 .product-price .price {
    color: var(--brand);
    font-weight: 700;
    font-size: 17.9px;
}

.single-product .product-price .regular-price,
.single-grid-product .product-price .regular-price,
.single-grid-product-v2 .product-price .regular-price {
    color: var(--ink-3);
    text-decoration: line-through;
    font-size: 14.1px;
    font-weight: 400;
}

/* زر الإضافة للسلة: ظاهر دائماً على اللمس، لا يعتمد على المرور */
.single-product .add-cart,
.single-grid-product .add-cart,
.single-grid-product-v2 .add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 14.4px;
    line-height: 1.2;
    transition: background .2s var(--ease), transform .12s var(--ease);
}

.single-product .add-cart:hover,
.single-grid-product .add-cart:hover,
.single-grid-product-v2 .add-cart:hover { background: var(--brand-dark); color: #fff; }
.single-product .add-cart:active,
.single-grid-product .add-cart:active,
.single-grid-product-v2 .add-cart:active { transform: scale(.98); }

/* شارات الخصم */
.product-flags {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-flag {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    background: var(--ink);
}

.product-flag.discount { background: #d92d20; }
.product-flag.sale { background: var(--brand); }

/* أزرار المقارنة/المفضلة */
.single-product .prdouct-btn-wrapper .product-btn,
.single-grid-product .prdouct-btn-wrapper .product-btn,
.single-grid-product-v2 .prdouct-btn-wrapper .product-btn {
    background: rgba(255, 255, 255, .95);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    color: var(--ink-2);
}

.single-product .prdouct-btn-wrapper .product-btn:hover,
.single-grid-product .prdouct-btn-wrapper .product-btn:hover,
.single-grid-product-v2 .prdouct-btn-wrapper .product-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* ---------- 4) الماركات: شريط هادئ بدل 19 شعاراً صاخباً ---------- */

/* الشعارات كانت بأحجام متفاوتة وبإطارات متفرّقة؛ نوحّد الارتفاع
   ونجعلها رمادية تهدأ بصرياً ثم تتلوّن عند المرور. */
.brads-area-v2 .sigle-brad,
.brads-area-v2 .single-brand,
.brand-logo-area .single-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.brads-area-v2 .sigle-brad img,
.brads-area-v2 .single-brand img,
.brand-logo-area .single-brand img {
    filter: grayscale(.55);
    opacity: .92;
    transition: filter .25s var(--ease), opacity .25s var(--ease);
    height: 56px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.brads-area-v2 .sigle-brad:hover img,
.brads-area-v2 .single-brand:hover img,
.brand-logo-area .single-brand:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* الخطوط الفاصلة حول شريط الماركات كانت برتقالية صارخة */
.brads-area-v2 .brads-wrap {
    border-color: var(--line) !important;
}

/* ---------- 5) عناوين الأقسام ---------- */

.section-title,
.catagory-title {
    letter-spacing: -.01em;
    line-height: 1.25;
}

.section-header-area .section-title {
    position: relative;
    padding-bottom: 12px;
}

.section-header-area .section-title::after {
    content: "";
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    width: 52px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.text-center .section-title::after,
.section-header-area.text-center .section-title::after {
    inset-inline-start: 50%;
    transform: translateX(-50%);
}

/* ---------- 6) التصنيفات ---------- */

/* الأصل: padding رأسي 155px يترك فراغاً ضخماً، وعنوان 76.8px ثابت
   لا يتجاوب، وخط مائل بعد العنوان يبدو كأثر غير مقصود. */
.popular-categories-area-v2 .catagory-left {
    padding-block: clamp(28px, 5vw, 64px);
}

.popular-categories-area-v2 .catagory-left .catagory-title {
    font-size: clamp(27.2px, 17.6px + 2.2vw, 48px);
    line-height: 1.22;
    margin-bottom: 24px;
}

.popular-categories-area-v2 .catagory-left .catagory-title::after {
    display: none;
}

/* الشكل الدائري الخلفي كان يمتد 90% ويطغى على المساحة */
.popular-categories-area-v2 .catagory-left::after {
    width: calc(100% + 60px);
    border-radius: 0 240px 240px 0;
    opacity: .7;
}

.direction-rtl .popular-categories-area-v2 .catagory-left::after {
    left: auto;
    right: -60px;
    border-radius: 240px 0 0 240px;
}

/* شبكة منتظمة بدل space-between الذي يترك السطر الأخير مبعثراً */
.popular-categories-area-v2 .catagory-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: center;
    height: 100%;
}

.popular-categories-area-v2 .catagory-list .sigle-catagory {
    width: auto;
    margin: 0;
}

@media (max-width: 575.98px) {
    .popular-categories-area-v2 .catagory-list { grid-template-columns: 1fr; }
}

.catagory-list .sigle-catagory .catatory-link {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 500;
    transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.catagory-list .sigle-catagory .catatory-link:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
    transform: translateY(-2px);
}

/* ---------- 7) الأزرار ---------- */

.primary-btn-v2,
.secondary-btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: transform .12s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.primary-btn-v2:hover,
.secondary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(236, 128, 33, .28);
}

/* ---------- 8) إيقاع المسافات بين الأقسام ---------- */

.section { padding-block: clamp(36px, 5vw, 72px); }
.section-top { padding-block-start: clamp(36px, 5vw, 72px); }

/* ---------- 9) هوامش جانبية على الشاشات الصغيرة ---------- */

/* الحاوية كانت بلا هوامش جانبية على الجوال فيلتصق النص بالحافة
   ويبدو كأنه يخرج من الشاشة. */
@media (max-width: 767.98px) {
    .container,
    .container-fluid {
        padding-inline: 18px;
    }

    .hero-section-v2 .hero-text {
        max-width: 100%;
    }

    /* منع أي تمرير أفقي ناتج عن عنصر يتجاوز العرض */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* رأس الجوال: الشعار + 5 أيقونات + اسم اللغة لا يتّسعون في 390px
       فيتمدّد العرض ويبدو باقي المحتوى مقصوصاً من الحافة. */
    .mobile-header-area .menu-wrap {
        gap: 8px;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .mobile-header-area .header-left,
    .mobile-header-area .header-right {
        min-width: 0;
    }

    .mobile-header-area .brand-logo .brand-image {
        max-width: 96px;
        height: auto;
    }

    .mobile-header-area .btn-list {
        display: flex;
        align-items: center;
        gap: 4px;
        margin: 0;
        flex-wrap: nowrap;
    }

    .mobile-header-area .btn-list > li {
        margin: 0;
    }

    /* اسم اللغة نصاً كاملاً يأخذ عرضاً كبيراً؛ يكفي مبدّل مختصر */
    .mobile-header-area .btn-list .lang-name,
    .mobile-header-area .language-list > li > a > span {
        display: none;
    }
}

/* ---------- 9b) صفحة المنتج الواحد ---------- */

/* الزر الأساسي في الموقع كان رمادياً داكناً (#5a5e5d) لا يحمل
   هوية المتجر، رغم استخدامه في 17 قالباً ومنها "اشترِ الآن". */
.primary-btn,
.buy-now-btn {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.primary-btn:hover,
.buy-now-btn:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.primary-btn:active,
.buy-now-btn:active { transform: scale(.99); }

/* الثيم يجعل زر "اشترِ الآن" أسود بمُحدِّد من خمسة مستويات،
   فنطابق تخصيصه بدل استخدام important. */
.product-single-area-v2 .product-single-details .product-info .product-bottom-button .primary-btn {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.product-single-area-v2 .product-single-details .product-info .product-bottom-button .primary-btn:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

/* محدِّد الكمية والأزرار المجاورة */
.product-quantity,
.quantity-area,
.product-details-area .quantity {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.product-details-area .add-cart,
.single-product-right .add-cart {
    border-radius: var(--radius-sm);
    border: 1px solid var(--brand);
    color: var(--brand);
    background: #fff;
    font-weight: 600;
}

.product-details-area .add-cart:hover,
.single-product-right .add-cart:hover {
    background: var(--brand);
    color: #fff;
}

/* طرق الدفع: شرائح نصّية بدل صورة بطاقات */
.payment-methods__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.payment-methods__list--footer {
    justify-content: flex-end;
}

.payment-method-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.payment-method-chip i {
    color: var(--brand);
    font-size: 15px;
}

@media (max-width: 991.98px) {
    .payment-methods__list--footer { justify-content: flex-start; }
}

/* ---------- 9c) صفحة السلة ---------- */

/* خلية المنتج كانت شاهقة والصورة صغيرة في وسطها، فتبدو الصفحة
   مفكّكة. نجعل الصف مضغوطاً والصورة والاسم في سطر واحد. */
.cart-page-item .single-grid-product {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: start;
    box-shadow: none;
    height: auto;
}

.cart-page-item .single-grid-product:hover {
    transform: none;
    box-shadow: none;
    border: 0;
}

.cart-page-item .single-grid-product .product-top {
    flex: 0 0 auto;
    width: 90px;
    margin: 0;
}

.cart-page-item .single-grid-product .product-thumbnal {
    width: 90px;
    height: 90px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 6px;
}

.cart-page-item .single-grid-product .product-info {
    flex: 1 1 auto;
    padding: 0;
    text-align: start;
    gap: 4px;
}

.cart-page-item .single-grid-product .product-name {
    min-height: 0;
    font-size: 15px;
    margin: 0;
}

/* الشارات فوق صورة مصغّرة تحتاج حجماً أصغر */
.cart-page-item .product-flags {
    inset-block-start: 4px;
    inset-inline-start: 4px;
    gap: 3px;
}

.cart-page-item .product-flag {
    font-size: 10px;
    padding: 2px 6px;
}

/* ترويسة الجدول والخلايا */
.cart-page-item table th, .cart-page-area table th {
    font-weight: 600;
    color: var(--ink);
    background: var(--surface-2);
}

.cart-table td,
.cart-page-item table th, .cart-page-area table th {
    vertical-align: middle;
}

/* صندوق الملخّص */
.cart-total-area,
.cart-summary {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

@media (max-width: 575.98px) {
    .cart-page-item .single-grid-product { gap: 10px; }
    .cart-page-item .single-grid-product .product-top,
    .cart-page-item .single-grid-product .product-thumbnal { width: 64px; height: 64px; }
}

/* ---------- 9d) صفحة الدفع ---------- */

/* خيارات الدفع كانت تعرض صورة فقط بلا نص واضح، وصورة "الدفع عند
   الاستلام" غير موجودة أصلاً فتظهر أيقونة صورة مكسورة. */
.pay-option {
    display: block;
    padding: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .2s var(--ease), background .2s var(--ease);
    position: relative;
}

.pay-option:hover { border-color: var(--brand); }

.pay-option:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.pay-option .form-check-input {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 16px;
    transform: translateY(-50%);
    margin: 0;
    float: none;
    width: 18px;
    height: 18px;
    z-index: 1;
}

.pay-option .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

/* مساحة كافية للزر الدائري قبل الأيقونة حتى لا يتداخلا */
.pay-option__label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-block: 14px;
    padding-inline: 62px 16px;
    width: 100%;
    cursor: pointer;
    margin: 0;
}

.pay-option__icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 16px;
}

.pay-option__name {
    display: block;
    font-weight: 600;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.3;
}

.pay-option__hint {
    display: block;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 2px;
}

/* زر إتمام الطلب: أبرز عنصر في الصفحة.
   الثيم يجعله رمادياً فاتحاً (#f7f8f9) بمُحدِّد ثلاثي، فنطابقه. */
.checkout .checkout-form .checkout-btn,
.checkout-btn {
    background-color: var(--brand);
    border: 1px solid var(--brand);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.checkout .checkout-form .checkout-btn:hover,
.checkout-btn:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

/* ملخّص السلة */
.checkout-sidebar,
.order-summary {
    border-radius: var(--radius);
}

/* ---------- 9e) القائمة الجانبية في صفحة المتجر ---------- */

.shop-page-area .single-widget,
.product-page-area .single-widget,
.sidebar-area .single-widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 18px;
}

.sidebar-area .widget-title,
.single-widget .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

/* صف التصنيف: مربّع الاختيار ثم الاسم ثم العدد في الطرف */
.single-category,
.single-subcategory,
.single-childcategory {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 0;
    line-height: 1.35;
}

.category-left,
.subcategory-left,
.childcategory-left {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 auto;
    min-width: 0;
}

/* مربّع الاختيار كان يتراكب مع النص */
.categories-list .form-check-input {
    flex: 0 0 auto;
    margin: 0;
    float: none;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.categories-list .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.categories-list .form-check-label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.categories-list .form-check-label:hover { color: var(--brand); }

/* العدد كشارة ملتصقة بالصف لا معلّقة في الطرف */
.category-count,
.subcategory-count,
.childcategory-count {
    flex: 0 0 auto;
    margin: 0 !important;
    min-width: 26px;
    text-align: center;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 600;
}

/* تمييز المستويات: خط جانبي وإزاحة منطقية تعمل مع RTL و LTR
   (الأصل كان margin-right فقط فينقلب في العربية) */
.subcategory-list,
.childcategory-list {
    margin: 2px 0 6px !important;
    padding-inline-start: 14px;
    border-inline-start: 2px solid var(--line);
    color: inherit !important;
    font-weight: 400 !important;
}

.childcategory-list {
    padding-inline-start: 12px;
}

.single-category > .category-left > .form-check-label {
    font-weight: 600;
    color: var(--ink);
}

.single-subcategory .form-check-label { font-size: 13.5px; }
.single-childcategory .form-check-label { font-size: 13px; color: var(--ink-3); }

/* فلتر السعر: الحقول كانت تبدو كمربّعين برتقاليين صامتين
   لا يُفهم أنهما حقلا إدخال. */
.sidebar-widget-area .price-widget .price-wrap .price-wrap-left .form-control,
.single-price .form-control,
.price-widget .form-control {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    padding: 9px 12px;
    height: auto;
    box-shadow: none;
}

.single-price .form-control:focus,
.price-widget .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(236, 128, 33, .15);
}

.single-price .form-control::placeholder,
.price-widget .form-control::placeholder {
    color: var(--ink-3);
    opacity: 1;
}

.price-submit {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    line-height: 1;
}

.price-submit:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

/* حقل البحث في الشريط الجانبي */
.sidebar-search input,
.single-widget .search-form input {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm);
    color: var(--ink) !important;
}

/* ---------- 9f) بطاقات المدونة ---------- */

.single-grid-blog {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 26px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.single-grid-blog:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

/* الصور كانت بارتفاعات متفاوتة فتبدو الشبكة غير مستوية */
.single-grid-blog .blog-thumbnail {
    margin: 0;
    overflow: hidden;
}

.single-grid-blog .thumbnail-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .4s var(--ease);
}

.single-grid-blog:hover .thumbnail-image { transform: scale(1.04); }

.single-grid-blog .blog-info {
    padding: 16px 18px 18px;
    flex: 1 1 auto;
}

.single-grid-blog .blog-category {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--ink-3);
}

.blog-date i { color: var(--brand); }

.single-grid-blog .blog-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
}

.single-grid-blog .blog-title .blog-link {
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-grid-blog .blog-title .blog-link:hover { color: var(--brand); }

.single-grid-blog .blog-content {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-grid-blog .blog-btn {
    margin-top: auto;
    align-self: flex-start;
    color: var(--brand);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

.single-grid-blog .blog-btn:hover { color: var(--brand-dark); }

/* ---------- 9g) صفحة التواصل ---------- */

/* العنوان الفرعي كان أبيض على خلفية فاتحة فلا يُقرأ إطلاقاً */
.contact-us-area .section-text,
.contact-form-area .section-text,
.contact-us-area .sub-title,
.contact-form-wrap .section-text {
    color: var(--ink-2) !important;
}

/* أيقونات وسائل التواصل بلون العلامة بدل الأزرق المخضرّ */
.contact-info-area .contact-icon i,
.single-contact-info .contact-icon i,
.contact-info-item i {
    color: var(--brand);
}

.contact-info-area .contact-title,
.single-contact-info .contact-title {
    color: var(--ink);
}

/* حقول النموذج */
.contact-form-area .form-control,
.contact-us-area .form-control {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    padding: 12px 14px;
}

.contact-form-area .form-control:focus,
.contact-us-area .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(236, 128, 33, .15);
}

/* ---------- 9h) صفحات الدخول والتسجيل ---------- */

.sign-in-page .login-wrap,
.sign-up-page .login-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-1);
    padding: 34px 30px 30px;
}

.sign-in-page .login-wrap .icon,
.sign-up-page .login-wrap .icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 26px;
    margin-inline: auto;
    margin-bottom: 14px;
}

.sign-in-page .login-wrap h1,
.sign-up-page .login-wrap h1 {
    font-size: 26px;
    color: var(--ink);
}

.login-form .form-group { margin-bottom: 14px; }

.login-form .form-control {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    padding: 12px 14px;
    height: auto;
}

.login-form .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(236, 128, 33, .15);
}

.login-form .form-control.is-invalid {
    border-color: #d92d20;
}

/* زر الدخول/التسجيل: كان أسود في extra.css ويظهر أبيض بفعل
   أصناف bootstrap، أي أن أهم زر في الصفحة بلا هوية ولا وضوح. */
.login-form .auth-btn,
.login-wrap .auth-btn,
.sign-in-page .auth-btn,
.sign-up-page .auth-btn {
    padding-block: 12px;
    border-radius: var(--radius-sm);
    background-color: var(--brand);
    border: 1px solid var(--brand);
    color: #fff;
    font-weight: 600;
}

.login-form .auth-btn:hover,
.login-wrap .auth-btn:hover,
.sign-in-page .auth-btn:hover,
.sign-up-page .auth-btn:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

/* فاصل "أو" بين الدخول بالبريد والدخول بجوجل */
.social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: var(--ink-3);
    font-size: 13px;
}

.social-divider::before,
.social-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--line);
}

/* زر جوجل بالشكل الرسمي: خلفية بيضاء وإطار رمادي */
.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #dadce0;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #3c4043;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    transition: background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.social-login-btn:hover {
    background: #f8f9fa;
    border-color: #c6c9cd;
    box-shadow: var(--shadow-1);
    color: #3c4043;
}

.social-login-btn__icon { flex: 0 0 auto; }

.already-have-account {
    text-align: center;
    margin-top: 16px;
    color: var(--ink-2);
    font-size: 14px;
}

.already-have-account .forget-password-link {
    color: var(--brand);
    font-weight: 600;
    margin-inline-start: 6px;
}

.forget-password-link { color: var(--brand); }
.forget-password-link:hover { color: var(--brand-dark); }

/* ---------- 9i) قائمة المستخدم في الترويسة ---------- */

/* القائمة كانت ضيقة فيلتفّ النص ("تسجيل / خروج") وتتداخل مع
   شريط التنقّل أسفلها. */
.account-switcher { position: relative; }

.account-switcher .account-list {
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    z-index: 60;
    /* كانت تخرج عن حافة الشاشة اليمنى؛ نُثبّتها تحت الأيقونة
       ومحاذاة لطرفها الداخلي فتعمل مع RTL و LTR. */
    inset-inline-end: 0;
    inset-inline-start: auto;
    left: auto;
    right: auto;
}

.direction-ltr .account-switcher .account-list { right: 0; }
.direction-rtl .account-switcher .account-list { left: 0; }

.account-switcher .account-list .single-lang {
    width: 100%;
    border: 0;
}

.account-switcher .account-list .lang-text {
    display: block;
    width: 100%;
    white-space: nowrap;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.3;
    text-align: start;
}

.account-switcher .account-list .lang-text:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

/* ---------- 9j) صفحات حساب المستخدم ---------- */

.account-page-menu {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
}

.account-page-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-page-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 500;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.account-page-menu li a i { color: var(--ink-3); width: 18px; text-align: center; }

.account-page-menu li a:hover {
    background: var(--surface-2);
    color: var(--brand-dark);
}

.account-page-menu li.active a,
.account-page-menu li a.active {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 600;
}

.account-page-menu li.active a i,
.account-page-menu li a:hover i { color: var(--brand); }

/* زر تسجيل الخروج في آخر القائمة */
.account-page-menu .logout-item a {
    color: #b42318;
    margin-top: 6px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.account-page-menu .logout-item a i { color: #b42318; }

.account-page-menu .logout-item a:hover {
    background: #fef3f2;
    color: #912018;
}

/* بطاقات معلومات الحساب */
.user-profile-area .profile-info-box,
.profile-content .single-profile-box,
.user-profile-wrap .profile-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.user-profile-area .profile-title,
.profile-content h3,
.profile-box-title {
    color: var(--ink);
}

/* النصوص كانت رمادية باهتة يصعب قراءتها */
.user-profile-area p,
.profile-content p {
    color: var(--ink-2);
}

/* ---------- 10) لافتة الكوكيز ---------- */

/* الأصل: ارتفاع ثابت 165px يقصّ النص بلغات أطول، و left ثابت
   لا يتبع اتجاه الصفحة، ومظهر باهت بلا فصل عن المحتوى. */
.cookie-consent {
    inset-inline-start: 20px;
    left: auto;
    right: auto;
    bottom: 16px;
    height: auto;
    min-height: 0;
    max-width: min(340px, calc(100vw - 32px));
    width: auto;
    padding: 16px 18px;
    line-height: 1.6;
    font-size: 15.2px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    gap: 4px;
}

.direction-rtl .cookie-consent { inset-inline-start: 20px; }

.cookie-consent .allow-button {
    height: auto;
    line-height: 1.2;
    padding: 10px 18px;
    margin-top: 12px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
    align-self: flex-start;
}

.cookie-consent .allow-button:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

@media (max-width: 575.98px) {
    .cookie-consent {
        inset-inline: 12px;
        max-width: none;
        bottom: 12px;
    }
}

/* ---------- 11) تفاصيل عامة ---------- */

/* منع القفز أثناء تحميل الصور المؤجّلة */
img[loading="lazy"] { background-color: var(--surface-2); }

/* وضوح مؤشّر لوحة المفاتيح (كان مخفياً في الثيم الأصلي) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
