/* ==========================================================
   PRODUCTS PAGE — بلو مارکت
   بازطراحی شبیه دیجی‌کالا (بهتر)
   ========================================================== */

/* ═══════════ Breadcrumb ═══════════ */
.bm-breadcrumb {
    background: linear-gradient(135deg, #fff9f5, #fff5ec);
    padding: 14px 0;
    border-bottom: 1px solid rgba(249, 115, 22, 0.08);
    margin-top: 88px;
}

.bm-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.85rem;
    background: transparent;
    padding: 0;
}

.bm-breadcrumb a {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
}

/* ═══════════ Layout ═══════════ */
.bm-products-page {
    background: #f9fafb;
    padding-bottom: 50px;
    min-height: 100vh;
}

.bm-products-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px;
}

.bm-products-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.05);
    flex-wrap: wrap;
}

.bm-products-head-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bm-page-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.bm-page-title i {
    color: #f97316;
    font-size: 1.35rem;
}

.bm-results-count {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
}

.bm-results-count strong {
    color: #f97316;
    font-weight: 900;
}

.bm-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
    font-family: inherit;
}

.bm-filter-count-badge {
    background: #fff;
    color: #f97316;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 900;
    min-width: 18px;
    text-align: center;
}

/* ═══════════ Layout دو ستونه ═══════════ */
.bm-products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

/* ═══════════ Sidebar فیلتر ═══════════ */
.bm-filter-sidebar {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.05);
    padding: 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.bm-filter-sidebar::-webkit-scrollbar {
    width: 4px;
}

.bm-filter-sidebar::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 2px;
}

.bm-filter-sidebar-head {
    padding: 18px 20px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-radius: 20px 20px 0 0;
}

.bm-filter-sidebar-head h3 {
    font-size: 1rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.bm-filter-sidebar-head h3 i {
    color: #f97316;
}

.bm-reset-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    transition: background 0.2s;
}

.bm-reset-btn:hover {
    background: #fef2f2;
}

.bm-filter-close-mobile {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.bm-filter-group {
    padding: 18px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.bm-filter-group:last-child {
    border-bottom: none;
}

.bm-filter-title {
    font-size: 0.88rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-filter-title i {
    color: #f97316;
    font-size: 0.95rem;
}

.bm-filter-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* چک‌باکس‌های سفارشی */
.bm-filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.bm-filter-check:hover {
    background: #fff7ed;
}

.bm-filter-check input[type="checkbox"] {
    display: none;
}

.bm-check-box {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.bm-filter-check input:checked + .bm-check-box {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-color: #f97316;
}

.bm-filter-check input:checked + .bm-check-box::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.bm-filter-label {
    flex: 1;
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 600;
}

.bm-filter-check input:checked ~ .bm-filter-label {
    color: #f97316;
    font-weight: 800;
}

.bm-filter-count {
    background: #f3f4f6;
    color: #9ca3af;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
}

.bm-filter-check input:checked ~ .bm-filter-count {
    background: #fff7ed;
    color: #f97316;
}

/* دکمه همه محصولات */
.bm-all-products-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.bm-all-products-btn span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-all-products-btn i {
    color: #f97316;
}

.bm-all-products-btn:hover,
.bm-all-products-btn.active {
    background: #fff7ed;
    border-color: #f97316;
    color: #ea580c;
}

.bm-all-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 900;
}

.bm-all-products-btn.active .bm-all-count {
    background: #fff;
    color: #f97316;
}

/* Range قیمت */
.bm-price-range-wrap {
    padding: 6px 0;
}

.bm-price-range {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to left, #f97316 0%, #f97316 50%, #e5e7eb 50%, #e5e7eb 100%);
    outline: none;
    cursor: pointer;
}

.bm-price-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 3px solid #f97316;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
    transition: transform 0.2s;
}

.bm-price-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.bm-price-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #fff;
    border: 3px solid #f97316;
    border-radius: 50%;
    cursor: pointer;
}

.bm-price-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 700;
}

.bm-price-current-label {
    color: #f97316;
    font-weight: 900;
}

/* سوییچ */
.bm-filter-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.bm-filter-switch:hover {
    background: #fff7ed;
}

.bm-filter-switch-label {
    font-size: 0.82rem;
    color: #4b5563;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-filter-switch-label i {
    color: #f97316;
}

.bm-switch-input {
    appearance: none;
    width: 42px;
    height: 22px;
    background: #d1d5db;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s;
    flex-shrink: 0;
}

.bm-switch-input:checked {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.bm-switch-input::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.bm-switch-input:checked::after {
    right: calc(100% - 20px);
}

/* Overlay */
.bm-filters-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1050;
}

.bm-filters-overlay.show {
    display: block;
}

/* ═══════════ محتوای محصولات ═══════════ */
.bm-products-content {
    min-width: 0;
}

/* Toolbar */
.bm-toolbar {
    background: #fff;
    border-radius: 16px;
    padding: 12px 18px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(31, 38, 135, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bm-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bm-toolbar-label {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bm-toolbar-label i {
    color: #f97316;
}

.bm-sort-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.bm-sort-pill {
    padding: 7px 14px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.bm-sort-pill:hover {
    color: #f97316;
    background: #fff7ed;
}

.bm-sort-pill.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.bm-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-view-toggle {
    display: flex;
    gap: 3px;
    background: #f3f4f6;
    padding: 3px;
    border-radius: 10px;
}

.bm-view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.2s;
}

.bm-view-btn.active {
    background: #fff;
    color: #f97316;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* چیپ فیلتر فعال */
.bm-active-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.bm-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.25);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    transition: all 0.2s;
}

.bm-active-chip button {
    background: transparent;
    border: none;
    color: #f97316;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.bm-active-chip button:hover {
    transform: rotate(90deg);
}

.bm-chip-clear {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
    cursor: pointer;
}

.bm-chip-clear:hover {
    background: #fee2e2;
}

/* ═══════════ Grid محصولات ═══════════ */
.bm-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bm-products-grid > .bm-product-card {
    min-width: 0;
}

/* ═══════════ List محصولات ═══════════ */
.bm-products-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bm-list-item {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}

.bm-list-item:hover {
    border-color: #fed7aa;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
    transform: translateY(-2px);
}

.bm-list-img {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #f9fafb;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.bm-list-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bm-list-info {
    flex: 1;
    min-width: 0;
}

.bm-list-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 8px;
    line-height: 1.5;
}

.bm-list-desc {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-list-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 600;
}

.bm-list-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bm-list-meta i {
    color: #f97316;
}

.bm-list-rating {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 800;
}

.bm-list-actions {
    flex-shrink: 0;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 16px;
    border-right: 1px solid #f3f4f6;
}

.bm-list-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.bm-list-price .bm-current-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: #1f2937;
}

.bm-list-add-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.bm-list-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

/* ═══════════ Empty ═══════════ */
.bm-empty-wrap {
    display: block;
}

.bm-empty-state {
    background: #fff;
    border-radius: 20px;
    padding: 60px 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.05);
}

.bm-empty-icon {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
    color: #f97316;
    animation: bmBounce 2s infinite;
}

@keyframes bmBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.bm-empty-state h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 10px;
}

.bm-empty-state p {
    color: #6b7280;
    margin: 0 0 22px;
    font-size: 0.9rem;
}

.bm-empty-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.bm-btn-primary,
.bm-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.bm-btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.3);
}

.bm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.4);
    color: #fff;
}

.bm-btn-outline {
    background: #fff;
    color: #f97316;
    border: 2px solid #f97316;
}

.bm-btn-outline:hover {
    background: #f97316;
    color: #fff;
    transform: translateY(-2px);
}

/* ═══════════ Pagination ═══════════ */
.bm-pagination-wrap {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.bm-pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.bm-pagination a,
.bm-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
}

.bm-pagination a:hover {
    border-color: #f97316;
    color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.15);
}

.bm-pagination .active span {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-color: #f97316;
    color: #fff;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

.bm-pagination .disabled span {
    opacity: 0.4;
    pointer-events: none;
}

.bm-pagination .dots span {
    background: transparent;
    border: none;
    cursor: default;
    color: #9ca3af;
}

/* ═══════════ ریسپانسیو ═══════════ */
@media (max-width: 1200px) {
    .bm-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .bm-breadcrumb {
        margin-top: 76px;
    }

    .bm-products-layout {
        grid-template-columns: 1fr;
    }

    .bm-mobile-filter-btn {
        display: inline-flex;
    }

    .bm-filter-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: 340px;
        max-width: 90vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        z-index: 1060;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 8px;
    }

    .bm-filter-sidebar.open {
        transform: translateX(0);
    }

    .bm-filter-sidebar-head {
        border-radius: 0;
    }

    .bm-filter-close-mobile {
        display: flex;
    }

    .bm-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bm-list-item {
        flex-direction: column;
        padding: 14px;
    }

    .bm-list-img {
        width: 100%;
        height: 200px;
    }

    .bm-list-actions {
        min-width: 0;
        width: 100%;
        padding-right: 0;
        padding-top: 12px;
        border-right: none;
        border-top: 1px solid #f3f4f6;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .bm-list-price {
        text-align: right;
    }
}

@media (max-width: 767px) {
    .bm-products-container {
        padding: 16px 12px;
    }

    .bm-products-head {
        padding: 14px 16px;
    }

    .bm-page-title {
        font-size: 1.1rem;
    }

    .bm-page-title i {
        font-size: 1.1rem;
    }

    .bm-toolbar {
        padding: 10px 14px;
    }

    .bm-sort-pills {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .bm-sort-pills::-webkit-scrollbar {
        display: none;
    }

    .bm-sort-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .bm-toolbar-left {
        width: 100%;
    }

    .bm-toolbar-label {
        display: none;
    }

    .bm-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .bm-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .bm-page-title {
        font-size: 1rem;
    }
}

.bm-out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 16px 16px 0 0;
}

.bm-out-of-stock-overlay span {
    background: #ef4444;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.5px;
}

/* کارت محصول دیجی‌کالا-لایک */
.bm-product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.bm-product-card:hover {
    border-color: #fed7aa;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.15);
}

.bm-product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    overflow: hidden;
}

.bm-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 12px;
    transition: transform 0.5s ease;
}

.bm-product-card:hover .bm-product-img img {
    transform: scale(1.08);
}

.bm-badge {
    position: absolute;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.bm-badge-new { top: 10px; right: 10px; background: linear-gradient(135deg, #10b981, #059669); }
.bm-badge-best { top: 10px; left: 10px; background: linear-gradient(135deg, #1e293b, #0f172a); }
.bm-badge-discount { bottom: 10px; left: 10px; background: linear-gradient(135deg, #ef4444, #dc2626); font-size: 0.78rem; padding: 5px 12px; }

.bm-out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 16px 16px 0 0;
}

.bm-out-of-stock-overlay span {
    background: #ef4444;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.bm-product-card.is-out-of-stock { opacity: 0.85; }
.bm-product-card.is-out-of-stock:hover { opacity: 1; }

.bm-product-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.bm-product-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.bm-product-seller {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}
.bm-product-seller i { color: #f97316; }

.bm-product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
}

.bm-old-price { color: #9ca3af; text-decoration: line-through; font-size: 0.72rem; font-weight: 600; }
.bm-current-price { color: #1f2937; font-weight: 900; font-size: 0.98rem; }

.bm-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 600;
}

.bm-product-rating i { color: #fbbf24; font-size: 0.72rem; }

@media (max-width: 767px) {
    .bm-product-card { min-height: 280px; }
    .bm-product-info { padding: 10px 12px 12px; }
    .bm-product-title { font-size: 0.78rem; min-height: 2.4em; }
    .bm-current-price { font-size: 0.88rem; }
    .bm-badge { font-size: 0.65rem; padding: 3px 8px; }
    .bm-badge-discount { font-size: 0.7rem; }
}