    .product-card {
        text-align: center;
        font-size: 18px;
        background: #5e5e5e;
        border-radius: 5px;
        overflow: hidden;
        position: relative;
    }

    .product-image-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        padding-top: 133.33%;
    }

    .product-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-info {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        padding: 10px;
        opacity: 0;
        transition: opacity 0.3s;
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(49, 49, 49, 0.03) 15%, rgba(49, 49, 49, 0.1) 100%);
    }

    .product-title {
        height: 30px;
        width: 90%;
        display: flex;
        justify-items: center;
        align-items: center;
        justify-content: space-between;
    }

    .product-card:hover .product-info {
        opacity: 1;
    }

    .product-info h3 {
        color: #ebebeb;
        margin-bottom: 2px;
        border-radius: 5px;
        padding: 5px;
        width: max-content;
        font-size: 28px;
    }

    .button-container {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: var(--button-width, 220px);
    }

    .button {
        --button-width: 220px;
        --height: 35px;
        --button-color: #222;
        width: var(--button-width);
        height: var(--height);
        background: var(--button-color);
        position: relative;
        text-align: center;
        border-radius: 0.45em;
        transition: background 0.3s;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .text {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 4px;
    }

    .button-wrapper,
    .text,
    .icon {
        overflow: hidden;
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        color: #ebebeb;
    }

    .text {
        top: 0;
        font-size: 25px;
    }

    .text,
    .icon {
        transition: top 0.5s;
    }

    .icon {
        color: #ebebeb;
        top: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .icon svg {
        width: 24px;
        height: 24px;
    }

    .button:hover {
        background: #5e8099;
    }

    .button:hover .text {
        top: -100%;
    }

    .button:hover .icon {
        top: 0;
    }

    .no-results {
        text-align: center;
        margin: 150px 0;
        font-size: 18px;
        color: #ebebeb;
        grid-column: 1 / -1;
    }

    /* FIX: Changed selector from .favorite to .favorite-toggle */
    .favorite-toggle {
        cursor: pointer;
        transition: transform 0.2s ease;
        z-index: 10;
    }

    .favorite-toggle .fa-heart {
        color: #ebebeb;
        font-weight: 400;
        /* Regular (hollow) heart by default */
        font-size: 24px;
        /* A bit larger for better visibility */
    }

    .favorite-toggle:hover {
        transform: scale(1.02);
    }

    .favorite-toggle:hover .fa-heart {
        color: #f59287;
    }

    .favorite-toggle.active .fa-heart {
        color: #e74c3c;
        /* Red color when active */
        font-weight: 900;
        /* Solid heart */
    }

    /* Add this to for quick view */
    .quick-view-button {
        cursor: pointer;
        color: #ebebeb;
        font-size: 22px;
        transition: transform 0.2s ease;
        z-index: 10;
    }

    .quick-view-button:hover {
        transform: scale(1.15);
        color: #5e8099;
    }

    @media (max-width: 1024px) {

        .product-info p {
            bottom: 30px;
        }

        .product-info .button {
            bottom: 0px;
        }

        .product-info h3 {
            top: 0px;
        }

        .product-card:hover .product-info {
            opacity: 1;
        }

        body {
            font-size: 24px;
        }

        .filter-box,
        .search-box {
            width: 100%;
        }

        .product-info {
            opacity: 1;
            position: absolute;
            top: auto;
            bottom: 0px;
            left: 0;
            right: 0;
            width: 100%;
            height: 100%;
            padding: 10px;
            border-bottom-left-radius: 5px;
            border-bottom-right-radius: 5px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
        }

        .product-info h3 {
            font-size: 20px;
            color: #ebebeb;
            position: relative;
            top: 0;
            left: 0;
            transform: translate(0%);
            text-align: center;
            width: 100%;
            padding: 0;
            margin: 0 0 5px 0;
            background: none;
        }

        .product-info p {
            font-size: 22px;
            color: #ebebeb;
            position: static;
            transform: none;
            text-align: center;
            width: 100%;
            padding: 0;
            margin: 0;
            background: none;
        }

        .button-container {
            bottom: 5px;
        }

        .button {
            margin: auto;
        }

        .discount-badge-overlay {
            right: 0px !important;
        }
    }

    @media (max-width:768px) {
        .button-container {
            bottom: 5px;
        }

        .button {
            margin: auto;
        }
    }

    @media (max-width: 480px) {

        .product-info {
            padding: 5px;
        }

        .product-info h3 {
            font-size: 18px;
            margin-bottom: 3px;
        }

        .product-info p {
            font-size: 20px;
        }

    }

    @media (max-width:400px) {
        .icon {
            font-size: 12px !important;
        }

        .button-container {
            bottom: 2px;
        }

        .button {
            height: 30px;
            max-width: 160px !important;
            margin: auto;
        }

        .text {
            font-size: 18px !important;
        }
    }

    /* === START: Out of Stock Styles for Product Card === */

    .product-card .out-of-stock-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        background-color: rgba(0, 0, 0, 0.3);

        /* Semi-transparent black overlay */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 5;
        /* Below the product-info overlay */
    }

    .product-card .out-of-stock-text {
        /* Semi-transparent red */
        color: white;
        font-weight: bold;
        /* Diagonal text */
        border-radius: 5px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);

    }

    /* Ensure the hover effect still works */
    .product-card:hover .product-info {
        z-index: 6;
    }

    /* === END: Out of Stock Styles === */

    /* Price Display Styles */
    .price-container {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .current-price,
    .new-price {
        font-size: 16px;
        font-weight: bold;
        color: #5e8099;
    }

    .old-price {
        font-size: 12px;
        color: #888;
        text-decoration: line-through;
    }

    /* === استایل بج تخفیف روی عکس محصول === */
    .discount-badge-overlay {
        position: absolute;
        bottom: 30px;
        right: 10px;
        background-color: #ef4444;
        /* قرمز جذاب برای تخفیف */
        color: white;
        font-size: 0.85rem;
        font-weight: bold;
        padding: 4px 10px;
        border-radius: 20px;
        z-index: 11;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
        direction: rtl;
    }

    /* === بهینه‌سازی کادر قیمت برای دکمه محصول === */
    .button-wrapper .text {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        /* جلوگیری از بیرون زدن متن قیمت */
        gap: 6px;
        font-size: 0.9rem;
        background-color: #131313;
    }

    /* اگر در فایل قیمت شما درصد تخفیف وجود دارد، آن را در کارت محصول مخفی می‌کنیم */
    .product-card .button-wrapper .text .discount-percent-tag {
        display: none !important;
    }

    @media (max-width: 480px) {
        .discount-badge-overlay {
            bottom: 30px;
            right: 10px;
            font-size: 0.75rem;
            padding: 2px 8px;
        }

        .button-wrapper .text {
            font-size: 0.8rem;
        }

        .new-price {
            font-size: 14px;
        }

        .old-price {
            font-size: 12px !important;
        }

        .price-container {
            margin-top: 0px !important;
        }

    }

    @media (max-width: 400px) {
        .new-price {
            font-size: 13px !important;
        }

        .old-price {
            font-size: 10px !important;
        }

        .current-price {
            font-size: 14px !important;
        }
    }

    /* === استایل اختصاصی شمارش معکوس زیر کارت محصول === */
    .product-card-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .product-card-countdown {
        background: rgba(19, 19, 19, 0.95);
        border: 1px solid rgba(243, 171, 37, 0.3);
        border-radius: 6px;
        padding: 8px 12px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        direction: rtl;
        transition: border-color 0.3s ease;
    }

    .product-card-wrapper:hover .product-card-countdown {
        border-color: #5e8099;
    }

    .countdown-title {
        font-size: 11px;
        color: #5e8099;
        margin-bottom: 5px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .countdown-title i {
        color: #e74c3c;
    }

    .countdown-timer-units {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        direction: ltr;
    }

    .timer-unit {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(255, 255, 255, 0.06);
        padding: 3px 6px;
        border-radius: 4px;
        min-width: 32px;
    }

    .timer-unit span {
        font-size: 14px;
        font-weight: 800;
        color: #ffffff;
        font-family: monospace, 'Anjoman', sans-serif;
        line-height: 1.2;
    }

    .timer-unit small {
        font-size: 9px;
        color: #aaa;
        margin-top: 1px;
    }

    .timer-separator {
        color: #5e8099;
        font-weight: bold;
        font-size: 14px;
        line-height: 1;
    }

    @media (max-width: 480px) {
        .product-card-countdown {
            padding: 6px 8px;
        }

        .countdown-title {
            font-size: 10px;
        }

        .timer-unit {
            padding: 2px 4px;
            min-width: 28px;
        }

        .timer-unit span {
            font-size: 12px;
        }

        .timer-unit small {
            font-size: 8px;
        }
    }