/* ==========================================================================
   custom-style.css — ليدي بترفلاي
   يحوي المتغيرات والتجاوزات المنقولة من <style> في القالب الأصلي + إضافات المشروع.
   يُحمَّل دائماً كآخر ملف CSS.
   ========================================================================== */

/* ===== متغيرات الهوية (هوية ليدي بترفلاي — وردي مريح للعين) ===== */
:root{
    --blue: #cd1568;
    --hov-blue: #9f1e5d;
    --soft-blue: rgba(205, 21, 104, 0.12);
    --secondary-base: #9f1e5d;
    --hov-secondary-base: #cd1568;
    --soft-secondary-base: rgba(159, 30, 93, 0.12);
    --gray: #9d9da6;
    --gray-dark: #8d8d8d;
    --secondary: #919199;
    --soft-secondary: rgba(145, 145, 153, 0.15);
    --success: #85b567;
    --soft-success: rgba(133, 181, 103, 0.15);
    --warning: #f3af3d;
    --soft-warning: rgba(243, 175, 61, 0.15);
    --light: #f5f5f5;
    --soft-light: #dfdfe6;
    --soft-white: #b5b5bf;
    --dark: #221a23;
    --soft-dark: #45223a;
    --primary: #f1469c;
    --hov-primary: #cd1568;
    --soft-primary: rgba(241, 70, 156, 0.12);
}
body{
    font-family: "Tajawal", serif;
    font-weight: 400;
}

/* ===== ترقيم الصفحات ===== */
.pagination .page-link,
.pagination .page-item.disabled .page-link {
    min-width: 32px;
    min-height: 32px;
    line-height: 32px;
    text-align: center;
    padding: 0;
    border: 1px solid var(--soft-light);
    font-size: 0.875rem;
    border-radius: 0 !important;
    color: var(--dark);
}
.pagination .page-item {
    margin: 0 5px;
}

/* ===== تفاصيل عامة من القالب ===== */
.aiz-carousel.coupon-slider .slick-track{ margin-left: 0; }
.form-control:focus { border-width: 2px !important; }
.iti__flag-container { padding: 2px; }
.modal-content { border: 0 !important; border-radius: 0 !important; }
.tagify.tagify--focus{ border-width: 2px; border-color: var(--primary); }
#map{ width: 100%; height: 250px; }
#edit_map{ width: 100%; height: 250px; }
.pac-container { z-index: 100000; }

/* ===== الشريط العلوي المتحرك (Marquee) ===== */
.marquee {
    color: white;
    width: 100%;
    background: #222;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}
.marquee div {
    font-size: 12px;
    font-family: 'akira';
    padding-left: 100%;
    display: inline-block;
}
html:dir(ltr) .marquee div { animation: animate 15s linear infinite reverse; }
.marquee div {
    animation: animate 15s linear infinite;
    animation-play-state: running;
    -o-animation-play-state: running;
}
.marquee:hover div {
    animation-play-state: paused;
    -o-animation-play-state: paused;
}
@keyframes animate {
    0%   { transform: translate(-130%, 0); }
    100% { transform: translate(100%, 0); }
}

/* ===== القصص (Stories) ===== */
@media (max-width: 767px){
    #flash_deal .flash-deals-baner{ height: 203px !important; }
}
.stories.snapgram .story > .item-link > .item-preview {
    background: radial-gradient(ellipse at 70% 70%, #9f1e5d 42%, #f1469c 58%);
}
.stories.carousel { display: flex; gap: 10px; }
#zuck-modal { direction: ltr; }
.story-viewer .left { float: left; }

/* ==========================================================================
   إضافات مشروع ليدي بترفلاي
   ========================================================================== */

/* صورة المنتج البديلة (إيموجي) عند عدم توفر صورة */
.emoji-thumb {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    background: #f6f4ef;
}
@media (min-width: 768px){
    .emoji-thumb { height: 210px; font-size: 72px; }
}
.emoji-thumb-lg {
    width: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    background: #f6f4ef;
}

/* أيقونة الفئة (إيموجي) في القائمة الجانبية */
.cat-emoji {
    display: inline-block;
    width: 29px;
    text-align: center;
    font-size: 16px;
}

/* شعار الماركة البديل */
.brand-emoji {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

/* بطاقة الفئة / الماركة في صفحات القوائم */
.category-tile, .brand-tile {
    border: 1px solid var(--soft-light);
    background: #fff;
    border-radius: .5rem;
    padding: 18px 10px;
    transition: .2s ease;
}
.category-tile:hover, .brand-tile:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.category-tile-img {
    width: 74px; height: 74px; object-fit: cover; border-radius: 50%;
}
.brand-tile-img {
    width: 90px; height: 74px; object-fit: contain;
}
.category-tile-emoji {
    width: 74px; height: 74px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; background: #f6f4ef; border-radius: 50%;
}

/* شارة "نفدت الكمية" على بطاقة المنتج */
.stock-out {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #d43533;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
}

/* ===== بطاقة منتج موحّدة (الأقسام والكتالوج والمفضلة) ===== */
.aiz-card-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}
.aiz-card-box > .position-relative {
    position: relative;
    overflow: hidden;
}
.aiz-card-box .emoji-thumb { transition: none; }
.aiz-card-box .img-fit {
    width: 100%;
    object-fit: contain;
    background: #f6f4ef;
    transition: none;
}
/* ثابت دائماً: لا تكبير للصورة عند المرور */
.aiz-card-box:hover .emoji-thumb,
.aiz-card-box:hover > .position-relative .img-fit { transform: none !important; }

/* أيقونات الإجراءات السريعة — متراكبة أنيقة أعلى الصورة */
.aiz-card-box .aiz-p-hov-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    bottom: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
    z-index: 3;
}
.aiz-card-box .aiz-p-hov-icon a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 16px;
    transition: background-color .15s ease, color .15s ease;
}
.aiz-card-box .aiz-p-hov-icon a:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== إلغاء حركات قالب المتجر: الأزرار ثابتة تماماً في بطاقة المنتج ===== */
/* أيقونات العرض/المقارنة/المفضلة: لا انزلاق ولا إخفاء */
.aiz-card-box .aiz-p-hov-icon a,
[dir="rtl"] .aiz-card-box .aiz-p-hov-icon a,
.aiz-card-box:hover .aiz-p-hov-icon a {
    transform: none !important;
    -webkit-transform: none !important;
    transition-delay: 0s !important;
}
/* نسبة الخصم: شارة حمراء ثابتة على زاوية الصورة (بلا حركة) */
.aiz-card-box .disc-amount,
.aiz-card-box:hover .disc-amount {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    bottom: auto;
    display: inline-block;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
    background: #cd1568;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    padding: 3px 9px;
    border-radius: 3px;
    z-index: 3;
    direction: ltr;
    unicode-bidi: isolate;
}
/* زر أضف للسلة: كامل وظاهر دائماً بلا انزلاق */
.aiz-card-box .cart-btn,
.aiz-card-box:hover .cart-btn,
.aiz-card-box .cart-btn:hover {
    transform: none !important;
    -webkit-transform: none !important;
    opacity: 1 !important;
    transition: background-color .15s ease, color .15s ease !important;
}
.aiz-card-box .cart-btn .cart-btn-text,
.aiz-card-box .cart-btn:hover .cart-btn-text {
    margin: 0 !important;
    transition: none !important;
}
/* الصورة: بلا أي تحريك */
.aiz-card-box .emoji-thumb,
.aiz-card-box .img-fit {
    transform: none !important;
    transition: none !important;
}

/* جسم البطاقة */
.lb-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-align: right;
}
.lb-card-body h3 { min-height: 36px; }
.lb-card-body .cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
}
@media (max-width: 575.98px) {
    .aiz-card-box .aiz-p-hov-icon a {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .lb-card-body .cart-btn { padding: 4px 8px; }
}

/* حالات الفراغ العامة */
.store-empty-hint {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary);
    background: #fff;
    border: 1px dashed var(--soft-light);
    border-radius: .5rem;
}
.store-empty-hint i { color: var(--primary); }

/* صندوق صورة صفحة المنتج */
.product-image-box {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== صفحات الحساب ===== */
.auth-wrap { padding: 44px 0 60px; }
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--soft-light);
    border-radius: .5rem;
    padding: 28px 26px;
}
.auth-card.auth-wide { max-width: 720px; }
.auth-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }

.account-card {
    background: #fff;
    border: 1px solid var(--soft-light);
    border-radius: .5rem;
    padding: 20px;
}
.account-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--soft-primary); color: var(--hov-primary);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    flex: 0 0 auto;
}
.account-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--soft-light);
    border-radius: .5rem;
    padding: 14px 16px;
    transition: .2s ease;
    height: 100%;
}
.account-tile:hover { border-color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.account-tile i { font-size: 22px; color: var(--hov-primary); }
.account-tile .tile-title { font-size: 14px; font-weight: 700; color: var(--dark); }
.account-tile .tile-sub { font-size: 12px; color: var(--secondary); }

.order-card {
    background: #fff;
    border: 1px solid var(--soft-light);
    border-radius: .5rem;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.order-card:hover { border-color: var(--primary); }
.status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}
.status-badge.s-new { background: #fff3cd; color: #856404; }
.status-badge.s-confirmed { background: #d1ecf1; color: #0c5460; }
.status-badge.s-processing { background: #e7e0fb; color: #4b3b8f; }
.status-badge.s-shipping { background: #cce5ff; color: #004085; }
.status-badge.s-done { background: #d4edda; color: #155724; }
.status-badge.s-cancelled { background: #f8d7da; color: #721c24; }

.order-item-icon {
    width: 44px; height: 44px; border-radius: .375rem;
    background: #f6f4ef; display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex: 0 0 auto;
    overflow: hidden;
}

/* ===== السلة والدفع ===== */
.cart-line { padding: 14px 16px; border-bottom: 1px solid var(--soft-light); }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
    width: 64px; height: 64px; border-radius: .375rem; background: #f6f4ef;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    overflow: hidden; flex: 0 0 auto;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty-input { width: 84px; }
.mini-cart-img { width: 100%; height: 100%; object-fit: cover; border-radius: .375rem; }

/* ===== خيارات إتمام الطلب (حساب / زائر) ===== */
.option-box {
    border: 1px solid var(--soft-light);
    border-radius: .5rem;
    padding: 14px 16px;
    transition: border-color .15s ease;
}
.option-box-active {
    border-color: var(--primary);
    background: #fef7fb;
}

/* ===== المقارنة ===== */.compare-table th { font-size: 13px; vertical-align: middle; }
.compare-table td { font-size: 14px; vertical-align: middle; }
.compare-thumb { width: 84px; height: 84px; object-fit: contain; display: block; }

/* ===== البانرات الإعلانية ===== */
.banner-box { border-radius: .5rem; }
.banner-img { min-height: 130px; object-fit: cover; }
.banner-caption {
    position: absolute;
    top: 50%;
    inset-inline-start: 22px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .9);
    border-radius: .375rem;
    padding: 10px 18px;
    color: #2b2b2b;
    max-width: 70%;
}

/* ===== شريط الأزرار السفلي للهواتف ===== */
.aiz-mobile-bottom-nav {
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 -6px 24px rgba(43, 43, 43, .10);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1040;
}
.mbn-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px 7px;
    min-height: 64px;
    color: #7a7a85;
    transition: color .15s ease, transform .12s ease;
}
.mbn-link .las {
    font-size: 24px;
    line-height: 1;
}
.mbn-label {
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
}
.mbn-link.active {
    color: var(--primary, #f1469c);
}
.mbn-link.active .mbn-label {
    color: var(--primary, #f1469c);
}
.mbn-link.active .las {
    transform: translateY(-1px);
}
.mbn-link:active {
    transform: scale(.94);
}
.mbn-ico-wrap {
    position: relative;
    display: inline-flex;
}
.mbn-badge {
    position: absolute;
    top: -7px;
    inset-inline-end: -11px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #f1469c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
}
@media (min-width: 1200px) {
    .aiz-mobile-bottom-nav { display: none !important; }
}
@media (min-width: 576px) and (max-width: 1199.98px) {
    /* شريط عائم بشكل كبسولة على الشاشات المتوسطة */
    .aiz-mobile-bottom-nav {
        border: 1px solid #ececec;
        border-radius: 36px !important;
        box-shadow: 0 10px 30px rgba(43, 43, 43, .14);
        overflow: hidden;
    }
}
@media (max-width: 575.98px) {
    .aiz-mobile-bottom-nav { border-radius: 0; }
}
@media (max-width: 1199.98px) {
    /* مساحة أسفل الصفحة حتى لا يغطي الشريط آخر الفوتر */
    body { padding-bottom: 84px; }
    /* لوحة التحكم لا تحتوي الشريط السفلي */
    .admin-body { padding-bottom: 0 !important; }
} 