/* ============================================
   ShirazGate - استایل‌های سبد خرید و مینی‌کارت
   ============================================ */

/* --- ۱. نوار مسیر (Breadcrumb) --- */
.breadcrumb {
    background: #f8fafc !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 20px !important;
}
.breadcrumb a {
    color: #002e57 !important;
    font-weight: 700 !important;
}

/* --- ۲. کانتینر اصلی لیست سبد خرید --- */
.cart-context .lg\:w-7\/10 > .border.rounded-lg {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 5px solid #002e57 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 46, 87, 0.04) !important;
    overflow: hidden !important;
}

/* هدر کانتینر سبد خرید */
.cart-context .lg\:w-7\/10 .border-b:first-child {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.cart-context .lg\:w-7\/10 .border-b:first-child span {
    color: #002e57 !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

/* آیتم‌های داخل سبد خرید */
.cart-context div[ng-repeat="item in model.items"] {
    border-bottom: 1px dashed #cbd5e1 !important;
    transition: background 0.2s ease !important;
}
.cart-context div[ng-repeat="item in model.items"]:hover {
    background: #f8fafc !important;
}

/* قاب تصویر محصول */
.cart-context .thumbnail-holder {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 8px !important;
}
.cart-context .thumbnail-holder img {
    object-fit: contain !important;
}

/* عنوان و چیپ‌های ویژگی‌های محصول */
.cart-context a[ng-href*="/"] {
    color: #002e57 !important;
    font-weight: 800 !important;
}
.cart-context div[ng-repeat="item in item.attributes"] {
    background: #f1f5f9 !important;
    color: #334155 !important;
    display: inline-block !important;
    padding: 3px 10px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    margin-top: 4px !important;
    margin-left: 4px !important;
    border: 1px solid #e2e8f0 !important;
}

/* کنترل‌کننده تعداد محصول */
.cart-context form[name="items"] {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    padding: 2px 6px !important;
}
.cart-context form[name="items"] button {
    transition: all 0.2s ease !important;
}
.cart-context form[name="items"] button:hover {
    color: #002e57 !important;
    transform: scale(1.1) !important;
}

/* --- ۳. سیدبار صورت‌حساب (Cart Sidebar) --- */
.cart-sidebar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 5px solid #002e57 !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 32px rgba(0, 46, 87, 0.06) !important;
    overflow: hidden !important;
}
.cart-sidebar .border-b {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.cart-sidebar .border-b span {
    color: #002e57 !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

/* ردیف‌های مقادیر صورت‌حساب */
.cart-sidebar .space-y-14 > div,
.cart-sidebar .space-y-16 > div {
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* برجسته‌سازی بخش «قابل پرداخت» */
.cart-sidebar .space-y-14 > div:last-child,
.cart-sidebar .space-y-16 > div:last-child {
    border-bottom: none !important;
    background: #f8fafc !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 12px !important;
}
.cart-sidebar .space-y-14 > div:last-child .text-dark,
.cart-sidebar .space-y-16 > div:last-child .text-dark {
    color: #002e57 !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
}

/* دکمه ثبت سفارش */
.cart-sidebar a.btn-primary {
    background: linear-gradient(135deg, #002e57 0%, #00407a 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px !important;
    font-weight: 800 !important;
    font-size: 0.98rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 8px 20px rgba(0, 46, 87, 0.2) !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
}
.cart-sidebar a.btn-primary:hover {
    background: linear-gradient(135deg, #F4B860 0%, #e0a34b 100%) !important;
    color: #002e57 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(244, 184, 96, 0.35) !important;
}

/* --- ۴. حالت سبد خرید خالی --- */
.cart-context .rounded-lg.border.text-center {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 4px solid #002e57 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 46, 87, 0.04) !important;
}
.cart-context .icon-bag-cross {
    color: #002e57 !important;
}