﻿.modern-price-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.seller-title {
    font-size: 14px;
    color: #777;
}

.seller-name {
    font-weight: 600;
    margin-top: 4px;
}

.seller-rate {
    font-size: 13px;
    margin-top: 4px;
}

.price-section {
    margin-top: 15px;
}

.discount-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-badge {
    background: #ef4056;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.final-price {
    font-size: 24px;
    font-weight: bold;
    margin-top: 8px;
}

.currency {
    font-size: 14px;
    margin-right: 4px;
}

.saving-text {
    color: #ef4056;
    font-size: 13px;
    margin-top: 8px;
}

.buy-btn {
    width: 100%;
    background: #ef4056;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    margin-top: 18px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s;
}

    .buy-btn:hover {
        background: #d73748;
    }

    .buy-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

.service-row {
    margin-top: 15px;
    font-size: 13px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sale-timer-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.sale-timer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sale-timer-title {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.6;
}

.sale-timer-sub {
    margin-top: 6px;
    color: #666;
    font-size: 12.5px;
}

.sale-timer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #f6f7f9;
    color: #555;
    font-size: 12px;
    white-space: nowrap;
}

.sale-timer-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

.tbox {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}

.tval {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.tcap {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}

.tsep {
    font-weight: 900;
    color: #bbb;
    text-align: center;
    font-size: 18px;
    transform: translateY(-2px);
}

/* موبایل */
@media (max-width: 576px) {
    .sale-timer-grid {
        gap: 6px;
    }

    .tval {
        font-size: 18px;
    }
}

.sale-status-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    transition: .2s ease;
}

    .sale-status-box i {
        width: 16px;
        height: 16px;
    }

.status-success {
    background: #e9f7ef;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.status-warning {
    background: #fff4e5;
    color: #b26a00;
    border: 1px solid #ffe1b3;
}

.status-danger {
    background: #fdecea;
    color: #c82333;
    border: 1px solid #f5c6cb;
}

.modern-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #eee;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
}

.modern-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 15px;
}

.modern-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
}

.info-value {
    font-weight: 600;
    font-size: 13.5px;
    text-align: left;
}

.status-green {
    color: #1e7e34;
}

.status-red {
    color: #dc3545;
}

.modern-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #eee;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
}

.modern-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 15px;
}

.modern-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
}

.info-value {
    font-weight: 600;
    font-size: 13.5px;
    text-align: left;
}

.status-green {
    color: #1e7e34;
}

.status-red {
    color: #dc3545;
}

.sale-rules-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #eee;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
}

.sale-rules-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 15px;
}

.sale-rules-category {
    margin-right: 6px;
    color: #777;
    font-weight: 500;
}

.sale-rule-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sale-rule-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 14px;
}

.rule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13.5px;
}

    .rule-row:last-child {
        margin-bottom: 0;
    }

.rule-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.rule-value {
    font-weight: 600;
    text-align: left;
}

.sale-rule-empty {
    color: #777;
    font-size: 13px;
}

.product-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 13.5px;
}

.meta-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
}

.meta-separator {
    color: #ccc;
    margin: 0 6px;
}

.brand-chip {
    background: #f5f7fa;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.stock-chip {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.stock-ok {
    background: #e9f7ef;
    color: #1e7e34;
}

.stock-no {
    background: #fdecea;
    color: #c82333;
}

.product-summary {
    margin-top: 15px !important;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.9;
    color: #555;
}
.price-note {
    background: #faf7ff;
    border: 1px solid rgba(111,66,193,.15);
    border-radius: 12px;
    padding: 10px 14px;
    line-height: 1.7;
}

.old-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.old-price-text {
    color: #999;
    font-size: 17px;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.old-currency {
    color: #999;
    font-size: 13px;
}

.discount-badge {
    background: #dc3545;
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}



.cart-action-buttons .btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 11px 14px;
}

.cart-action-buttons .btn-success {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.cart-action-buttons .btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}












.product-detail-modern .product-image-column,
.product-detail-modern .product-info-column,
.product-detail-modern .product-buy-column {
    background: #fff;
    border-radius: 18px;
}

.product-detail-modern .product-image-column {
    border: 1px solid #eee;
    padding: 20px;
}

.product-detail-modern .product-image-box {
    width: 100%;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-modern .product-main-img {
    width: 100%;
    height: 440px;
    object-fit: contain;
    display: block;
}

.product-detail-modern .product-info-column {
    padding: 18px;
}

.product-detail-modern .product-buy-column {
    position: sticky;
    top: 95px;
}

.product-detail-modern .modern-price-card {
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 16px;
}

@media (max-width: 1199.98px) {
    .product-detail-modern .product-image-box {
        min-height: 390px;
    }

    .product-detail-modern .product-main-img {
        height: 370px;
    }
}

@media (max-width: 991.98px) {
    .product-detail-modern .product-buy-column {
        position: static;
    }

    .product-detail-modern .product-image-box {
        min-height: 340px;
    }

    .product-detail-modern .product-main-img {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .product-detail-modern .product-image-column {
        padding: 12px;
    }

    .product-detail-modern .product-image-box {
        min-height: 280px;
    }

    .product-detail-modern .product-main-img {
        height: 260px;
    }
}














/* نشان تخفیف بزرگ و جذاب */
.discount-badge-modern {
    background: linear-gradient(135deg, #dc3545, #ff1744);
    color: #fff;
    font-size: 1rem; /* حدود 16px */
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    animation: pulseDiscount 1.8s infinite;
    letter-spacing: 0;
}

    .discount-badge-modern svg {
        width: 18px;
        height: 18px;
        stroke-width: 2.5;
    }

    /* بزرگ‌تر کردن عدد تخفیف */
    .discount-badge-modern #discountBadgeText {
        font-size: 1.15rem; /* حدود 18px */
        font-weight: 900;
        line-height: 1;
    }

/* افکت ضربان ملایم */
@keyframes pulseDiscount {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(220, 53, 69, 0.35);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 28px rgba(220, 53, 69, 0.45);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(220, 53, 69, 0.35);
    }
}

/* موبایل */
@media (max-width: 575.98px) {
    .discount-badge-modern {
        font-size: 0.85rem;
        padding: 8px 12px;
        border-radius: 12px;
    }

        .discount-badge-modern #discountBadgeText {
            font-size: 1rem;
        }

        .discount-badge-modern svg {
            width: 16px;
            height: 16px;
        }
}

.share-inline-btn {
    color: #0d6efd;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
}

    .share-inline-btn:hover {
        color: #0a58ca;
    }

    .share-inline-btn svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.2;
    }






/* پیام مالیات و هزینه‌ها */
.final-price-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    /* رنگ‌بندی جذاب */
    background: linear-gradient(135deg, #e8fff1 0%, #f4fff8 100%);
    border: 1px solid rgba(25, 135, 84, 0.22);
    /* متن */
    color: #157347;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
    /* سایه */
    box-shadow: 0 6px 18px rgba(25, 135, 84, 0.10);
    /* انیمیشن */
    transition: all 0.25s ease;
}

    /* حالت Hover */
    .final-price-note:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(25, 135, 84, 0.16);
        border-color: rgba(25, 135, 84, 0.35);
    }

    /* آیکون */
    .final-price-note svg {
        width: 20px;
        height: 20px;
        stroke-width: 2.8;
        color: #198754;
        flex-shrink: 0;
        /* جلوه درخشش */
        filter: drop-shadow(0 2px 4px rgba(25, 135, 84, 0.20));
    }

    /* متن داخلی */
    .final-price-note span {
        display: inline-block;
    }

/* موبایل */
@media (max-width: 768px) {
    .final-price-note {
        font-size: 12px;
        padding: 9px 12px;
        margin-top: 10px;
        margin-bottom: 8px;
        border-radius: 12px;
        gap: 6px;
    }

        .final-price-note svg {
            width: 18px;
            height: 18px;
        }
}

/* موبایل‌های کوچک */
@media (max-width: 480px) {
    .final-price-note {
        font-size: 11px;
        line-height: 1.8;
        flex-wrap: wrap;
    }
}