/* --- Hover Image Effect --- */
.product-image {
    position: relative;
    overflow: hidden;
}

.product-image .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    object-fit: contain;
}

.product-card:hover .product-image .hover-img {
    opacity: 1;
}

/* --- Countdown Timer --- */
.sale-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 10px 0 5px;
    font-family: system-ui, -apple-system, sans-serif;
    width: 100%;
    z-index: 10;
    position: relative;
}

.timer-block {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 4px;
    padding: 2px 4px;
    text-align: center;
    min-width: 38px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.25);
    animation: pulse-timer 2s infinite;
    position: relative;
    overflow: hidden;
}

.timer-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.timer-block span {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

.timer-block small {
    display: block;
    font-size: 0.5rem;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 1px;
}

@keyframes pulse-timer {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}