/*------------------listingPage css----------------------------------*/
/* باکس مسیر */
.breadcrumb-box{
    background: #fff;
    border-radius: 18px;
    padding: 12px 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

/* breadcrumb */
.custom-breadcrumb{
    --bs-breadcrumb-divider: ""; /* جداکننده پیشفرض بوت استرپ رو حذف کن */
    gap: 8px; /* فاصله بین آیتم‌ها */
}

/* لینک ها */
.breadcrumb-link{
    text-decoration: none;
    color: rgba(0,0,0,0.55);
    font-weight: 600;
    font-size: 13px;
    transition: 0.15s;
}

.breadcrumb-link:hover{
    color: #111;
}

/* آخرین آیتم */
.breadcrumb-item.active{
    color: #111;
    font-size: 13px;
}

/* پیکان بین آیتم‌ها (فقط بین آیتم‌ها نه آخرین) */
.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before{
    content: "\f284"; /* bi-chevron-left */
    font-family: "bootstrap-icons";
    color: rgba(0,0,0,0.25);
    font-size: 12px;
    padding: 0 4px;
}

/* موبایل */
@media (max-width: 576px){
    .breadcrumb-box{
        padding: 10px 12px;
        border-radius: 16px;
    }

    .breadcrumb-link,
    .breadcrumb-item.active{
        font-size: 12px;
    }
}


/* Sidebar */
.filter-sidebar {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    position: sticky;
    top: 18px;
}

/* Titles */
.filter-title {
    font-weight: 900;
    font-size: 13px;
    color: #111;
}

/* Icon inside input */
.icon-input {
    position: relative;
}

.icon-input i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #0d6efd; /* آبی خوشگل */
}

.icon-input .form-control {
    border-radius: 16px;
    padding-right: 44px; /* جا برای آیکون */
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 13px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: 0.15s;
}

.icon-input .form-control:focus {
    border-color: rgba(13,110,253,0.5);
    box-shadow: 0 0 0 0.18rem rgba(13,110,253,0.12);
}

/* Car Select Box */
.car-select-box {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.15s;
}

.car-select-box:hover {
    border-color: rgba(13,110,253,0.35);
    box-shadow: 0 12px 22px rgba(0,0,0,0.06);
}

.car-icon {
    font-size: 18px;
    color: #fd7e14; /* نارنجی */
}

.car-select-text {
    font-size: 13px;
    font-weight: 700;
    color: #444;
}

/* Modal */
.car-modal {
    border-radius: 24px;
    border: 0;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

/* Car cards */
.car-card {
    border: 1px solid rgba(0,0,0,0.07);
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    transition: 0.15s;
    text-align: center;
}

.car-card:hover {
    border-color: rgba(13,110,253,0.35);
    transform: translateY(-2px);
    box-shadow: 0 14px 25px rgba(0,0,0,0.08);
}

.car-card img {
    width: 100%;
    height: 92px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px auto;
}

.car-name {
    font-weight: 900;
    font-size: 13px;
    color: #111;
}
/* Selected Filters */
.selected-filters {
    background: #f8f9fa;
    border: 1px dashed rgba(0,0,0,0.15);
    border-radius: 18px;
    padding: 12px;
}

.selected-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 12px;
    font-weight: 800;
    color: #333;
    box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}

.filter-tag .remove-tag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 0;
    background: rgba(220,53,69,0.12);
    color: #dc3545;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.15s;
}

.filter-tag .remove-tag:hover {
    background: rgba(220,53,69,0.22);
}

.brand-select-box {
    font-size: 0.95rem;
    background: #f8f9fa;
    border-radius: 13px;
    /*gap: 0.5rem;*/
}

.brand-select-box i {
    font-size: 1.2rem;
}
.input-group-text i {
    font-size: 1rem;
}
.brand-icon{
    color: #6f42c1; /* بنفش */
    font-size: 1.2rem;
}

/* Icon colors */
.category-icon {
    color: #0d6efd;
    font-size: 18px;
}

/* Dropdown container */
.category-dropdown {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Search box */
.category-search-box {
    position: relative;
}

.category-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d6efd;
    font-size: 15px;
}

.category-search-box input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    outline: none;
    font-size: 14px;
}

.category-search-box input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.12);
}

/* Scroll list */
.category-list {
    max-height: 280px;
    overflow-y: auto;
    padding-left: 4px;
}

/* Items */
.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    user-select: none;
}

.cat-item:hover {
    background: #f3f7ff;
}

.cat-item i {
    color: #6c757d;
    font-size: 14px;
}

/* Children */
.cat-children {
    display: none;
    padding-right: 14px;
    margin-bottom: 6px;
    border-right: 2px dashed #eaeaea;
}

/* Active */
.cat-item.open + .cat-children {
    display: block;
}

/* Scroll style */
.category-list::-webkit-scrollbar {
    width: 6px;
}

.category-list::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 10px;
}

.selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 999px;
    font-size: 13px;
}

.filter-chip button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #dc3545;
    font-size: 16px;
    line-height: 1;
}


.price-range-box {
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.range-wrapper {
    height: 30px;
}

.range-wrapper input[type="range"] {
    position: absolute;
    left: 0;
    top: 10px;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: transparent;
}

.range-wrapper input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(13,110,253,0.35);
}

.range-wrapper input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 10px;
    background: #e9ecef;
}

.range-wrapper input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(13,110,253,0.35);
}

.range-wrapper input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 10px;
    background: #e9ecef;
}





.product-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* ✅ عکس کوچکتر */
.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 5%; /* ارتفاع 4:3 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center; /* وسط چین */
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge نصب رایگان */
.free-install-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: flex;
    align-items: center;
    background: red;
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 5;
}

/* ✅ دایره ها بزرگتر */
.badge-circles {
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 0.3rem;
}

.circle-outer {
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.circle-inner {
    width: 60%;
    height: 60%;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 20%;
    left: 20%;
}

/* محتوا */
.product-card .p-3 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* ✅ کادر هم اندازه قطر دایره بزرگ + روی دایره ها */
.badge-text {
    position: absolute;
    left: 18px; /* میاد روی دایره */
    height: 48px; /* دقیقا اندازه قطر دایره */
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    border: 3px red;
    background: green;
    opacity: 80%;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(220, 53, 69, 0.25);
}

/* Car */
.product-car {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.3rem;
}

.product-car i {
    font-size: 14px;
    opacity: 0.8;
}

/* Title */
.product-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    flex-grow: 1;
}

/* Fast send */
.product-fast {
    font-size: 0.85rem;
    color: #ff7a00;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.3rem;
}

.product-fast i {
    font-size: 15px;
}

/* Stock */
.product-stock {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Bottom */
.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
}

.product-price span {
    font-size: 12px;
    font-weight: 700;
    color: #777;
    margin-right: 5px;
}

/* Quantity UI */
.qty-box {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.qty-add-btn {
    width: 44px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background-color: #0d6efd !important;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.15s ease;
}

.qty-add-btn:hover {
    opacity: 0.9;
}

.qty-controller {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f4f6fb;
    border: 1px solid #e8ecf5;
    border-radius: 14px;
    padding: 5px 6px;
}

.qty-add-btn,
.qty-controller button {
    border: none;
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-number {
    min-width: 1.2rem;
    text-align: center;
    font-weight: 600;
}
/* تصویر محصول */
.product-img-wrapper .product-img {
    position: relative; /* absolute برداریم */
    width: 50%;
    height: 50%;
    object-fit: contain; /* تصویر کامل داخل باکس بدون برش */
}

/* Overlay ناموجود */
.out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    border-radius: 0.75rem;
    z-index: 10;
    text-align: center;
}

.out-of-stock-overlay.active {
    display: flex;
}


.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.custom-pagination {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
}

.custom-pagination .page-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #f4fbff;
    color: #0284c7;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #bfe8ff;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.08);
}

.custom-pagination .page-link:hover {
    background: #0284c7;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.2);
}

.custom-pagination .page-item.active .page-link {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
}

.custom-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.custom-pagination .dots span {
    padding: 10px 10px;
    color: #0284c7;
    font-weight: 700;
    opacity: 0.6;
}

/* =========================
   REVIEW MODAL
========================= */
.review-modal-content{
    border-radius: 22px;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.review-modal-header{
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 18px 18px;
}

.review-modal-product{
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-modal-img{
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #eee;
}

.review-modal-product-title{
    font-weight: 800;
    font-size: 14px;
    color: #111;
    line-height: 1.7;
}

.review-modal-body{
    padding: 18px 18px 20px 18px;
}

.review-modal-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.review-label{
    font-weight: 800;
    font-size: 14px;
    color: #111;
}

.review-stars{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
}

.review-stars i{
    color: #cfcfcf;
    cursor: pointer;
    transition: 0.15s;
}

.review-stars i.active{
    color: #f7b500; /* طلایی */
}

.review-textarea{
    width: 100%;
    border-radius: 18px;
    border: 1px solid #e6e6e6;
    padding: 14px 14px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    resize: none;
}

.review-textarea:focus{
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13,110,253,0.08);
}

.review-user-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.review-user-name{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    color: #333;
}

.review-user-name i{
    font-size: 18px;
    color: #0d6efd;
}

.review-name-options{
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-radio{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #444;
}

.review-radio input{
    accent-color: #dc3545;
    cursor: pointer;
}

.review-submit-btn{
    width: 100%;
    background: #dc3545;
    color: #fff;
    border-radius: 18px;
    padding: 13px 16px;
    font-weight: 900;
    border: none;
    transition: 0.2s;
}

.review-submit-btn:hover{
    background: #b02a37;
}

.review-submit-btn:disabled{
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(30%);
}

/*------------------------------------detailsPage css----------------------------------*/

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.product-breadcrumb a {
    text-decoration: none;
    transition: 0.2s;
}

.breadcrumb-home {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.breadcrumb-link {
    font-size: 14px;
    font-weight: 600;
    color: #0284c7;
}

.breadcrumb-link:hover {
    color: #0369a1;
}

.breadcrumb-current {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.breadcrumb-slash {
    color: #9ca3af;
    font-weight: 700;
}


.product-gallery-card {
     background: #fff;
     /*border: 1px solid #eee;*/
     border-radius: 18px;
     padding: 16px;
     position: relative;
     /*box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);*/
 }

/* wishlist */
.wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    z-index: 50; /* خیلی مهم */
}

.wishlist-btn i {
    font-size: 20px;
    color: #777;
    transition: 0.2s;
}

.wishlist-btn.active {
    border-color: #ff4d4f;
}

.wishlist-btn.active i {
    color: #ff4d4f;
}

/* main image */
.main-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    /*background: #fafafa;*/
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
}

/* thumbs */
.thumbs-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-item {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    border: 1px solid #eee;
    background: #fff;
    flex: 0 0 auto;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: 0.2s;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    display: block;
    background: #fafafa;
}

.thumb-item.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* modal */
.gallery-modal {
    background: #0b0b0b;
    color: #fff;
}

.gallery-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 70vh;
}

.modal-gallery-img {
    max-width: 92%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 18px;
    background: #111;
    padding: 10px;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    z-index: 9999; /* خیلی مهم */
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.gallery-nav-btn i {
    font-size: 26px;
}

.prev-btn {
    right: 18px;
}

.next-btn {
    left: 18px;
}

/* modal thumbs */
.modal-thumbs-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    max-width: 100%;
    padding: 10px 0;
}

.modal-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
    padding: 0;
    transition: 0.2s;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    display: block;
    background: rgba(255, 255, 255, 0.05);
}

.modal-thumb.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}




.product-info-box{
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.06);*/
}

.product-title2{
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.8;
}

/* meta row */
.product-meta-row{
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.meta-item{
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-star{
    font-size: 15px;
    color: #f6b100;
}

.meta-strong{
    font-weight: 800;
    color: #111;
}

.meta-muted{
    color: #6b7280;
    font-weight: 500;
}

.meta-dot{
    color: #c0c6d4;
}

/* divider */
.product-title-divider{
    margin: 14px 0 0;
    border: none;
    height: 1px;
    background: #acaeb4;
}

.meta-boxes{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-right: 12px;
}

/* each mini box */
.meta-mini-box{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #e9edf3;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: 0.2s ease;
    font-size: 13px;
}

.meta-mini-box:hover{
    background: #f7f9fc;
    border-color: #dbe3ef;
}

/* text */
.meta-mini-text{
    color: #111;
    font-weight: 700;
    white-space: nowrap;
}

/* arrow */
.meta-mini-arrow{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa4b2;
    font-size: 14px;
}

/* icon for summary */
.meta-mini-icon{
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* summary icon style */
.summary-icon{
    background: #e8f4ff;
    color: #1d72f3;
}


/* Features Section */
.product-features{
    background: transparent;
}

/* title */
.features-title{
    font-size: 18px;
    font-weight: 900;
    color: #111;
}

/* 3 different gray backgrounds */
.feature-box-1{ background: #f7f7f9; }
.feature-box-2{ background: #f4f6f9; }
.feature-box-3{ background: #f8f9fb; }

/* label */
.feature-label{
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 6px;
}

/* label colors */
.feature-box-1 .feature-label{ color: #0d6efd; }   /* blue */
.feature-box-2 .feature-label{ color: #198754; }   /* green */
.feature-box-3 .feature-label{ color: #fd7e14; }   /* orange */

/* feature box */
.feature-box{
    border-radius: 16px;
    padding: 14px 14px 16px;
    border: 1px solid #e8edf5;
    background: #f7f7f9;

    /* مهم: ارتفاع یکسان */
    height: 110px;

    /* برای اینکه لیبل بالا و مقدار پایین مرتب قرار بگیرن */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* value */
.feature-value{
    font-size: 13px;
    color: #333;

    /* مهم: متن از باکس بیرون نزنه */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    /* هم‌ردیف شدن + ارتفاع یکسان */
    width: 100%;
}


/* View all features row */
.view-all-features{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* lines */
.view-all-features .line{
    height: 1px;
    background: #dbe3ef;
    flex: 1;
}

/* center button */
.view-all-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dbe3ef;
    font-weight: 800;
    font-size: 13px;
    color: #0d6efd;
    text-decoration: none;
    transition: 0.2s ease;
    white-space: nowrap;
}

.view-all-btn:hover{
    background: #f3f8ff;
    border-color: #bcd3ff;
}

/*-------------استایل موجود و ناموجود بودن کالا------------------*/
/* Buy Card */
.product-buy-card{
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* Price */
.price-icon{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(13,110,253,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0d6efd;
}

.buy-title{
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.product-price{
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.product-price span{
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

/* Buttons */
.add-to-cart-btn{
    font-size: 15px;
}

/* Info rows */
.buy-info-row{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.info-icon{
    font-size: 18px;
}

/* Divider */
.buy-divider{
    margin: 16px 0;
    opacity: 0.25;
}

/* Out of stock */
.out-of-stock-card{
    text-align: center;
    width: 100%;
}

.out-title{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.out-title .line{
    flex: 1;
    height: 1px;
    background: rgba(220,53,69,0.45);
}

.out-title .text{
    white-space: nowrap;
    font-size: 18px;
    font-weight: 900;
    color: #dc3545;
}


.out-desc{
    font-size: 14px;
    color: #555;
    line-height: 1.9;
}

/* Card */
.product-desc-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 22px;
    padding: 22px 22px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Header */
.product-desc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Title */
.product-desc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 900;
    color: #222;
}

.product-desc-title i {
    font-size: 20px;
    color: #dc3545;
}

/* Body */
.product-desc-body {
    margin-top: 14px;
    position: relative;
}

/* Text */
.product-desc-text {
    font-size: 14px;
    line-height: 2.25;
    color: #444;
    overflow: hidden;

    /* حالت پیشفرض: کوتاه */
    max-height: 150px;

    transition: max-height 0.45s ease;
}

/* وقتی باز شد */
.product-desc-text.expanded {
    max-height: 2000px;
}

/* Fade (کمرنگ شدن متن نزدیک دکمه) */
.product-desc-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 55px;
    height: 90px;

    /* Fade حرفه‌ای */
    background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(255, 255, 255, 0.9) 70%,
    #ffffff 100%);

    pointer-events: none;
    transition: 0.3s ease;
}

/* وقتی باز شد Fade حذف شود */
.product-desc-fade.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Button */
.product-desc-btn {
    width: 100%;
    margin-top: 18px;

    border: none;
    border-radius: 16px;
    padding: 13px 14px;

    font-weight: 800;
    font-size: 14px;

    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #dc3545;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    box-shadow: 0 8px 18px rgba(220, 53, 69, 0.12);
    transition: 0.25s ease;
}

.product-desc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(220, 53, 69, 0.18);
}

.product-desc-btn:active {
    transform: translateY(0px);
}

/* Icon */
.product-desc-btn .btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.12);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.25s ease;
}

.product-desc-btn i {
    font-size: 15px;
    transition: 0.3s ease;
}

/* وقتی باز شد آیکون بچرخد */
.product-desc-btn.expanded i {
    transform: rotate(180deg);
}


/* Notify modal */
.notify-modal{
    border-radius: 18px;
    border: 1px solid #eee;
    padding-bottom: 6px;
}

.notify-option{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.notify-data{
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-top: 3px;
}

/* ========== Product Tabs (Digikala Style) ========== */

.product-tabs-wrapper{
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    z-index: 1050;

    /* مهم: جلوگیری از بریدن */
    overflow: hidden;
}
/* اسکرول افقی واقعی */
.product-tabs-scroll{
    display: flex;
    align-items: center;
    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;
    -webkit-overflow-scrolling: touch;

    padding: 10px 12px;

    /* این دو تا خیلی مهمه */
    width: 100%;
    max-width: 100%;
}
/* مخفی کردن اسکرول بار */
.product-tabs-scroll::-webkit-scrollbar{
    height: 0;
}
.product-tabs-scroll{
    scrollbar-width: none;
}

.product-tabs-inner{
    display: flex;
    align-items: center;
    gap: 10px;

    overflow-x: auto;     /* ✅ */
    overflow-y: hidden;
    white-space: nowrap;  /* ✅ */

    padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.product-tabs-inner::-webkit-scrollbar{
    display: none;
    height: 0;
}
/* حالت دسکتاپ: وسط چین و بدون اسکرول */
@media (min-width: 992px){
    .product-tabs-inner{
        justify-content: center;
        overflow-x: visible;
    }
}

.product-tab-link{
    white-space: nowrap;

    flex: 0 0 auto;  /* ✅ خیلی مهم (باعث میشه آیتم آخر قطع نشه) */

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    color: #333;
    background: #f6f7f9;

    transition: 0.2s;
}

.product-tab-link i{
    font-size: 16px;
    color: #0d6efd;
}

.product-tab-link:hover{
    background: #eef3ff;
}

.product-tab-link.active{
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    /*position: relative;*/
    color: #d90429;
    border: 1px solid #ffd1d9;
}

.product-tab-link.active::after{
    content: "";
    position: absolute;
    bottom: -8px;
    left: 18px;
    right: 18px;
    height: 3px;
    border-radius: 999px;
    background: #dc3545;
}

/* Sticky behavior */
.product-tabs-wrapper.is-sticky{
    position: fixed;
    top: 92px; /* چون هدر fixed داری */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(1320px, 80%);
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    z-index: 1050;
}

/* Sections */
.product-tab-sections{
    margin-top: 16px;
}

.tab-section{
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

.tab-title{
    font-weight: 900;
    color: #111;
    font-size: 18px;
    margin-bottom: 14px;
}

/* ========== Specs ========== */
.specs-box{
    border-radius: 14px;
    overflow: hidden;
}

.spec-row{
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* مهم */
    gap: 25px;                     /* فاصله منطقی */
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.spec-row:last-child{
    border-bottom: none;
}

.spec-name{
    min-width: 140px;  /* اندازه ثابت برای عنوان */
    font-weight: 700;
    color: #111;
    font-size: 14px;
}

.spec-value{
    font-weight: 700;
    color: #444;
    font-size: 14px;
    text-align: left;
}

/* ========== Reviews Empty Layout ========== */
.review-empty-layout{
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.review-empty-right{
    width: 280px;
    min-width: 260px;
    background: #f7f7f9;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.empty-title{
    font-weight: 900;
    color: #111;
    margin-bottom: 12px;
}

.empty-stars{
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.empty-stars i{
    color: #cfd4da;
    font-size: 18px;
}

.empty-subtext{
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

.btn-review-submit{
    border: none;
    color: #fff;
    font-weight: 900;
    border-radius: 14px;
    padding: 10px 16px;
    width: 100%;
}

.review-empty-left{
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.06);
}

.review-empty-left .big-text{
    font-weight: 900;
    font-size: 16px;
    color: #111;
    margin-bottom: 10px;
}

.review-empty-left .small-text{
    font-size: 13px;
    color: #555;
    line-height: 1.9;
}

/* responsive for empty review */
@media(max-width: 992px){
    .review-empty-layout{
        flex-direction: column;
    }
    .review-empty-right{
        width: 100%;
        min-width: auto;
    }
}

/* ========== Reviews List ========== */
.review-list{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item{
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.review-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-user{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #111;
}

.review-user i{
    font-size: 18px;
    color: #0d6efd;
}

.review-rate{
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    color: #111;
}

.review-rate i{
    color: #ffc107;
}

.review-text{
    font-size: 14px;
    color: #333;
    line-height: 1.9;
}

.review-meta{
    margin-top: 10px;
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #666;
}

.review-meta i{
    color: #198754;
}

/* ========== Questions ========== */
/* FAQ Card */
.product-faq-card {
    background: #fff;
    border-radius: 22px;
    padding: 18px 18px 14px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Header */
.product-faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-faq-header .faq-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 900;
    color: #222;
}

.product-faq-header .faq-title i {
    font-size: 20px;
    color: #dc3545;
}

.product-faq-header .faq-badge {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    font-weight: 800;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
}

/* Search */
.faq-search-box {
    margin-top: 14px;
    position: relative;
}

.faq-search-input {
    border-radius: 16px !important;
    padding: 12px 42px 12px 14px !important;
    font-size: 14px;
    border: 1px solid #eee !important;
    box-shadow: none !important;
    transition: 0.2s ease;
}

.faq-search-input:focus {
    border-color: rgba(220, 53, 69, 0.35) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.08) !important;
}

.faq-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    font-size: 18px;
}

/* Divider */
.faq-divider {
    margin: 14px 0 18px;
    border-top: 1px solid #f0f0f0;
}

/* Accordion */
.product-faq-accordion .faq-item {
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #f3f3f3 !important;
    transition: 0.25s ease;
}

.product-faq-accordion .faq-item:hover {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Accordion Button */
.product-faq-accordion .faq-btn {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;

    font-weight: 900;
    font-size: 14px;
    color: #222;

    padding: 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Remove Bootstrap default arrow */
.product-faq-accordion .accordion-button::after {
    display: none !important;
}

/* Question Icon */
.faq-q-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(220, 53, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-q-icon i {
    font-size: 18px;
    color: #dc3545;
}

/* Question Text */
.faq-q-text {
    flex: 1;
    line-height: 1.9;
}

/* Arrow */
.faq-arrow {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.25s ease;
}

.faq-arrow i {
    font-size: 18px;
    color: #333;
    transition: 0.25s ease;
}

/* Rotate arrow when open */
.accordion-button:not(.collapsed) .faq-arrow i {
    transform: rotate(-90deg);
    color: #dc3545;
}

/* Answer Body */
.faq-body {
    font-size: 14px;
    line-height: 2.2;
    color: #555;
    background: #fafafa;
    padding: 14px 16px 18px;
}

/* Not Found */
.faq-not-found {
    margin-top: 18px;
    background: #fff7f7;
    border: 1px dashed rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 14px;
}

.faq-not-found i {
    font-size: 20px;
}


/* ========== Critic Box ========== */
.critic-box{
    background: #f7f7f9;
    border-radius: 16px;
    padding: 16px;
    line-height: 2;
    font-size: 14px;
    color: #333;
}


.product-tabs-wrapper{
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    z-index: 1050;
    overflow: hidden;

    /* برای fade */
    position: relative;
}

/* اسکرول افقی */
.product-tabs-scroll{
    display: flex;
    align-items: center;
    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;
    -webkit-overflow-scrolling: touch;

    padding: 10px 12px;

    width: 100%;
    max-width: 100%;

    /* اسکرول نرم */
    scroll-behavior: smooth;

    /* مهم: اسکرول بار مخفی نباشه */
    scrollbar-width: thin;              /* Firefox */
    scrollbar-color: #d90429 #f1f1f1;   /* Firefox */
}

/* اسکرول بار برای Chrome/Safari */
.product-tabs-scroll::-webkit-scrollbar{
    height: 6px;
}

.product-tabs-scroll::-webkit-scrollbar-track{
    background: #f1f1f1;
    border-radius: 999px;
}

.product-tabs-scroll::-webkit-scrollbar-thumb{
    background: #d90429;
    border-radius: 999px;
}

/* Fade left/right (مثل دیجی کالا) */
.product-tabs-wrapper::before,
.product-tabs-wrapper::after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 3;
    pointer-events: none;
}

.product-tabs-wrapper::before{
    right: 0;
    background: linear-gradient(to left, #fff 40%, rgba(255,255,255,0));
}

.product-tabs-wrapper::after{
    left: 0;
    background: linear-gradient(to right, #fff 40%, rgba(255,255,255,0));
}

/* لینک ها */
.product-tab-link{
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    color: #333;
    background: #f6f7f9;

    transition: 0.2s;
}

.product-tab-link i{
    font-size: 16px;
}

.product-tab-link.active{
    background: #fff;
    color: #d90429;
    border: 1px solid #ffd1d9;
}

/* دسکتاپ */
@media (min-width: 992px){
    .product-tabs-scroll{
        justify-content: center;
        overflow-x: visible;

        /* اسکرول بار تو دسکتاپ حذف */
        scrollbar-width: none;
    }
    .product-tabs-scroll::-webkit-scrollbar{
        height: 0;
    }

    /* fade هم تو دسکتاپ حذف */
    .product-tabs-wrapper::before,
    .product-tabs-wrapper::after{
        display: none;
    }
}

/* ========== Similar Products ========== */
.similar-products {
    margin-top: 20px;
}

/* title */
.similar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.similar-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

/* slider wrap (for buttons) */
.similar-slider-wrap {
    position: relative;
}

/* swiper */
.similarSwiper {
    padding: 6px 6px 14px 6px;
}

/* card */
.similar-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    overflow: hidden; /* خیلی مهم: روبان بیرون نزنه */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%; /* باعث میشه همه کارت ها یکسان بشن */
    transition: 0.2s ease;
}

.similar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* image */
.similar-img-wrap {
    position: relative;
    width: 100%;
    height: 190px; /* ثابت برای یکسان بودن */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden; /* روبان بیرون نزنه */
}

.similar-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* ribbon (inside card, not outside) */
.special-badge {
    position: absolute;
    top: 14px;
    right: -38px; /* این باعث میشه مورب بیاد ولی چون overflow hidden هست بیرون نمیزنه */
    transform: rotate(45deg);
    background: #e11d48;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 55px;
    z-index: 10;
    border-radius: 6px;
}

/* body */
.similar-body {
    padding: 12px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1; /* باعث میشه ارتفاع ها برابر بشه */
}

/* product name */
.similar-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    line-height: 1.7;
    min-height: 48px; /* برای یکسان شدن ارتفاع اسم ها */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* price row */
.similar-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* old price */
.similar-price.old {
    font-size: 13px;
    color: #777;
    text-decoration: line-through;
    font-weight: 600;
}

/* discount */
.similar-discount {
    background: rgba(225, 29, 72, 0.1);
    color: #e11d48;
    font-size: 13px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* final price */
.similar-final-price {
    font-size: 15px;
    font-weight: 900;
    color: #111;
}

/* ========== Buttons on slider ========== */
.similar-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.similar-btn:hover {
    background: rgba(0,0,0,0.75);
}

.similar-btn-prev {
    right: 10px;
}

.similar-btn-next {
    left: 10px;
}

/* hide buttons on mobile (optional) */
@media (max-width: 576px) {
    .similar-btn {
        width: 40px;
        height: 40px;
    }
}

/* همه کارت‌ها دقیقاً هم ارتفاع */
.similar-card {
    height: 100%;
}

/* ارتفاع ثابت برای بخش قیمت‌ها (همه یکسان بشن) */
.similar-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* این بخش باعث میشه قیمت‌ها همیشه جای ثابت داشته باشن */
.similar-price-row {
    min-height: 26px;
}

/* این بخش باعث میشه جای قیمت نهایی همیشه ثابت باشه */
.similar-final-price {
    min-height: 24px;
    display: flex;
    align-items: center;
}

/* --- CART ITEMS --- */
/*.cart-item-box{*/
    /*background: #fff;*/
    /*border: 1px solid #e9ecef;*/
    /*border-radius: 18px;*/
    /*padding: 14px;*/
    /*box-shadow: 0 6px 18px rgba(0,0,0,0.04);*/
/*}*/

.cart-img-wrap{
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-product-img{
    width: 100%;
    max-width: 120px;
    height: 120px;
    object-fit: contain;
}

.cart-badge-free-install{
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(220,53,69,0.12);
    color: #dc3545;
    border: 1px solid rgba(220,53,69,0.35);
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    font-weight: 700;
}

/* info */
.cart-info{
    padding: 6px 8px;
}

.cart-title{
    font-size: 15px;
    font-weight: 800;
    color: #111;
    line-height: 1.8;
    margin-bottom: 8px;
}

.cart-meta-row{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #495057;
    margin-bottom: 6px;
    line-height: 1.7;
}

.cart-meta-icon{
    color: #0d6efd;
    font-size: 14px;
}

/* price */
.cart-price-box{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    padding: 6px 8px;
}

.cart-price{
    font-size: 15px;
    font-weight: 900;
    color: #111;
}

/* qty */
.cart-qty-controls{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 999px;
    padding: 6px 10px;
}

.qty-btn{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: 0.15s ease;
}

.qty-btn:hover{
    transform: scale(1.05);
}

.qty-number{
    min-width: 18px;
    text-align: center;
    font-weight: 900;
    color: #111;
    font-size: 14px;
}

/* responsive fixes */
@media (max-width: 767px){

    .cart-price-box{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 10px;
        border-top: 1px dashed #e9ecef;
        margin-top: 10px;
    }

    .cart-product-img{
        height: 100px;
        max-width: 100px;
    }
}

.cart-page-title{
    font-size: 22px;
    font-weight: 900;
    color: #111;
}

.cart-title-row{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.cart-remove-btn{
    border: none;
    background: transparent;
    color: #dc3545;
    font-size: 18px;
    padding: 4px 6px;
    border-radius: 10px;
    transition: 0.15s ease;
    flex: 0 0 auto;
}

.cart-remove-btn:hover{
    background: rgba(220,53,69,0.10);
    transform: scale(1.05);
}

.cart-price-currency{
    font-size: 12px;
    font-weight: 800;
    color: #6c757d;
    margin-right: 6px;
}

/* =========================
   CART SUMMARY (LEFT BOX)
========================= */

.cart-summary-box{
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 20px;
    padding: 18px 16px;
    box-shadow: 0 12px 40px rgba(20, 20, 20, 0.06);
}

/*!* Title *!*/
/*.cart-summary-title{*/
    /*font-size: 17px;*/
    /*font-weight: 950;*/
    /*color: #0b2a5b; !* آبی تیره *!*/
    /*margin-bottom: 6px;*/
/*}*/

/*.cart-summary-subtitle{*/
    /*font-size: 12.5px;*/
    /*font-weight: 800;*/
    /*color: #7a8599;*/
    /*margin-bottom: 16px;*/
/*}*/

/* Items list */
.cart-summary-items{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-summary-item{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.cart-summary-name{
    font-size: 13px;
    font-weight: 900;
    color: #111;
    line-height: 1.7;
    flex: 1;
}

.cart-summary-name span{
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 900;
    color: #6c757d;
    background: #fff;
    border: 1px solid #e9edf3;
    padding: 2px 10px;
    border-radius: 999px;
}

.cart-summary-price{
    font-size: 13px;
    font-weight: 950;
    color: #0b2a5b;
    white-space: nowrap;
}

/* Divider */
.cart-summary-divider{
    border: none;
    border-top: 1px dashed #e4e9f1;
    margin: 16px 0;
}

/* Discount label */
.cart-discount-label{
    font-size: 13px;
    font-weight: 900;
    color: #222;
    line-height: 1.9;
}

/* Discount row */
.cart-discount-row{
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Input */
.cart-discount-input{
    border-radius: 14px;
    height: 46px;
    font-size: 13px;
    font-weight: 900;
    border: 1px solid #dfe7f3;
    background: linear-gradient(180deg, #f7fbff, #ffffff);
    padding-right: 14px;
}

.cart-discount-input::placeholder{
    color: #9aa6b6;
    font-weight: 800;
}

.cart-discount-input:focus{
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.22rem rgba(13,110,253,0.12);
}

/* Apply button (آبی واقعی و جذاب) */
.cart-discount-btn{
    height: 46px;
    border-radius: 14px;
    padding: 0 18px;
    font-weight: 950;
    /*background: linear-gradient(135deg, #0d6efd, #084298);*/
    /*color: #fff;*/
    border: none;
    box-shadow: 0 10px 22px rgba(13,110,253,0.20);
    transition: 0.2s ease;
    white-space: nowrap;
}

.cart-discount-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(13,110,253,0.28);
}

.cart-discount-btn:active{
    transform: translateY(0);
}

/* Discount message */
.cart-discount-message{
    font-size: 13px;
    font-weight: 950;
}

/* Totals */
.cart-total-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef2f7;
}

/* مجموع سبد خرید با رنگ قرمز جگری */
.cart-total-label{
    font-size: 14px;
    font-weight: 950;
    color: #7a0b1b; /* قرمز جگری */
}

/* total value */
.cart-total-value{
    font-size: 14px;
    font-weight: 950;
    color: #111;
}

/* Strike original total when discount applied */
.cart-total-value.striked{
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(0,0,0,0.28);
}

/* Discount amount row */
.cart-discount-amount-label{
    color: #6c4b00;
    font-size: 13px;
    font-weight: 950;
}

.cart-discount-amount-value{
    color: #6c4b00;
    font-size: 13px;
    font-weight: 950;
}

/* Final price row */
.cart-final-label{
    color: #0d6efd;
    font-size: 14px;
    font-weight: 950;
}

.cart-final-value{
    color: #0d6efd;
    font-size: 15px;
    font-weight: 950;
}

/* =========================
   PAYMENT METHODS (RADIO)
========================= */

.payment-methods{
    margin-top: 8px;
}

.payment-title{
    font-size: 13px;
    font-weight: 950;
    color: #0b2a5b;
    margin-bottom: 10px;
}

/* each option */
.payment-option{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    cursor: pointer;
    transition: 0.2s ease;
    margin-bottom: 10px;
    user-select: none;
}

.payment-option:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #dbe6ff;
}

/* hide default radio */
.payment-option input{
    display: none;
}

/* custom radio */
.payment-radio{
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #b7c7e6;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    background: #fff;
}

/* dot */
.payment-option input:checked + .payment-radio::after{
    content: "";
    width: 9px;
    height: 9px;
    background: #0d6efd;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* icon */
.payment-icon{
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e8eef8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 18px;
    flex-shrink: 0;
}

/* text */
.payment-text{
    font-size: 13px;
    font-weight: 950;
    color: #111;
}

/* active style */
.payment-option input:checked ~ .payment-icon{
    background: rgba(13,110,253,0.08);
    border-color: rgba(13,110,253,0.25);
}

.payment-option input:checked ~ .payment-text{
    color: #0b2a5b;
}

/* =========================
   CHECKOUT BUTTON
========================= */

.checkout-btn{
    width: 100%;
    height: 52px;
    border-radius: 16px;
    font-weight: 950;
    font-size: 14px;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #084298);
    box-shadow: 0 14px 30px rgba(13,110,253,0.22);
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.checkout-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(13,110,253,0.28);
}

.checkout-btn:active{
    transform: translateY(0);
}

/* =========================
   REMOVE CONFIRM MODAL
========================= */

.remove-modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}

.remove-modal{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(92vw, 360px);
    background: #fff;
    border-radius: 20px;
    padding: 18px 16px;
    z-index: 9999;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    direction: rtl;
}

.remove-modal.show{
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.remove-modal-overlay.show{
    opacity: 1;
    visibility: visible;
}

.remove-modal-title{
    font-weight: 950;
    font-size: 14px;
    color: #7a1b1b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.remove-modal-text{
    font-size: 13px;
    font-weight: 900;
    color: #111;
    line-height: 1.9;
    margin-bottom: 14px;
}

.remove-modal-actions{
    display: flex;
    gap: 10px;
}

.remove-modal-btn{
    flex: 1;
    height: 44px;
    border-radius: 14px;
    font-weight: 950;
    font-size: 13px;
    border: none;
    transition: 0.2s ease;
}

.remove-modal-btn.yes{
    background: #dc3545;
    color: #fff;
}

.remove-modal-btn.yes:hover{
    filter: brightness(0.95);
}

.remove-modal-btn.no{
    background: #f1f5f9;
    color: #111;
}

.remove-modal-btn.no:hover{
    background: #e2e8f0;
}

/* =========================
   CART TOAST
========================= */

.cart-toast{
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 99999;
    background: #198754;
    color: #fff;
    padding: 12px 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.25s ease;
}

.cart-toast.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-toast i{
    font-size: 18px;
}

.buy-price-row{
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
}

.buy-price-label{
    font-size: 13px;
    font-weight: 800;
    color: #555;
    white-space: nowrap;
}

.buy-price-value{
    font-size: 15px;
    font-weight: 900;
    color: #111;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.buy-currency{
    font-size: 12px;
    font-weight: 800;
    opacity: 0.9;
}

/* خط خوردن قیمت اصلی */
.old-price{
    color: #777 !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(0,0,0,0.35);
}
