﻿.price-live-flash {
    transition: color 0.3s ease, background-color 0.3s ease;
    animation: priceLivePulse 1.2s ease;
}

@keyframes priceLivePulse {
    0% { color: inherit; }
    35% { color: var(--main-color-one, #00a651); }
    100% { color: inherit; }
}

.submit-filter-btn {
    width: 95%;
    display: inline-block;
    margin-bottom: 10px;
}

.items-between {
    display: flex;
    justify-content: space-between;
}

.text-dark-blue {
    color: #000080;
}

.order-item {
    cursor: pointer;
}

.filter-product-color-item {
    width: 15px;
    height: 15px;
    display: inline-block;
    margin-left: 5px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.product-card-filter.product-box .product-action.product-card-filter-action {
    padding: 8px 6px 10px;
    border-top: 1px solid var(--bs-gray-300, #dee2e6) !important;
    gap: 8px;
}

.product-card-filter .product-card-variants {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px !important;
    padding: 0 2px;
}

button.filter-product-color-item.product-card-variant {
    padding: 0;
    cursor: pointer;
}

button.filter-product-color-item.product-card-variant.active {
    outline: 2px solid var(--main-color-one, #00a651);
    outline-offset: 2px;
}

button.filter-product-color-item.product-card-variant:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* قیمت + شمارنده در یک ردیف */
.product-card-filter .product-card-price-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-height: 28px;
}

.product-card-filter .product-card-price-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

/* فروشنده: زیر قیمت و شمارنده، جدا از رنگ‌ها */
.product-card-filter .product-card-seller-row {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: 6px;
    padding: 4px 6px 2px;
    border-top: 1px dashed var(--bs-gray-300, #dee2e6);
    min-height: 22px;
    line-height: 1.3;
}

.product-card-filter .product-card-seller-row .bi-shop-window {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--main-color-one, #00a651);
}

.product-card-filter .product-card-seller-label {
    flex-shrink: 0;
    font-size: 11px;
    color: #6c757d;
}

.product-card-filter .product-card-seller-name {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.product-card-filter .product-card-price {
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-filter .product-card-counter {
    flex: 0 0 auto;
}

.product-card-filter .product-card-counter--out-of-stock {
    opacity: 0.65;
}

.product-card-filter .product-card-counter--out-of-stock .bootstrap-touchspin-down,
.product-card-filter .product-card-counter--out-of-stock .bootstrap-touchspin-up {
    pointer-events: none;
}

.bootstrap-touchspin {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.bootstrap-touchspin .input-group-btn {
    flex: 0 0 auto;
}

.bootstrap-touchspin input.form-control,
.bootstrap-touchspin input.counter,
.bootstrap-touchspin input.product-card-quantity,
.bootstrap-touchspin input.count-input {
    flex: 0 1 auto;
    width: auto !important;
    min-width: 3rem;
    max-width: 7.5rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.bootstrap-touchspin-down i,
.bootstrap-touchspin-up i {
    pointer-events: none;
    font-size: 14px;
    line-height: 1;
}

.product-card-filter .product-card-counter .bootstrap-touchspin {
    width: auto;
    max-width: none;
}

.product-card-filter .product-card-counter .input-group {
    width: auto !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.product-card-filter .product-card-counter .input-group-btn {
    width: auto;
    flex: 0 0 auto;
}

.product-card-filter .product-card-counter .bootstrap-touchspin-down,
.product-card-filter .product-card-counter .bootstrap-touchspin-up,
.product-card-filter .product-card-counter .btn-counter {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.product-card-filter .product-card-counter input.product-card-quantity,
.product-card-filter .product-card-counter input.form-control {
    width: auto !important;
    min-width: 2.75rem !important;
    max-width: 5.5rem !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 600;
    text-align: center;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    background: #fff;
}

.product-card-filter .product-card-counter input.product-card-quantity:focus {
    outline: none;
    border-color: var(--main-color-one, #00a651) !important;
}

.enamad-trust-seal__placeholder {
    display: inline-block;
    width: 80px;
    height: 100px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
}

.enamad-trust-seal img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.desc-text {
    line-height: 30px;
    text-align: justify;
}

/* Cart Detail Item */
.cart-product-item:not(:first-child) {
    margin-top: 15px;
}

.favorite {
    color: red;
}

@media only screen and (max-width: 768px) {
    .lg-only {
        display: none;
    }
}

/* کارت محصولات تازه‌وارد — صفحه اصلی */
.home-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-product-card__title {
    height: auto !important;
    min-height: 48px;
    align-items: flex-start !important;
}

.home-product-card__action {
    margin-top: auto;
    border-top: 2px solid var(--bs-gray-400);
    padding: 8px 7px 6px;
    gap: 4px;
}

.home-product-card__features li {
    line-height: 1.5;
}

/* دسته‌بندی صفحه اصلی — موبایل: ۳ ستون */
@media only screen and (max-width: 575.98px) {
    .home-categories-grid .cat-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 8px 4px;
        height: 100%;
    }

    .home-categories-grid .cat-item-image img {
        width: 52px;
        height: 52px;
        object-fit: cover;
        border-radius: 8px;
    }

    .home-categories-grid .cat-item-desc {
        margin: 6px 0 0 !important;
        width: 100%;
    }

    .home-categories-grid .cat-item-desc h5 {
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 0;
        line-height: 1.35;
    }

    .home-categories-grid .cat-item-desc p {
        display: none;
    }
}

.my-paginate button.page-link {
    cursor: pointer;
}

.my-paginate .page-item.active button.page-link {
    pointer-events: auto;
    cursor: default;
}