.product-card {
    background-color: transparent;
    width: 100%;
    overflow: hidden;
    text-align: left;
    max-width: 260px;
    min-width: 260px;
    border-radius: 6px;
    position: relative;
}

.image-container {
    position: relative;
    padding-bottom: 65%;
    background-color: var(--text-white);
    box-shadow: 0px 7px 20px 0px var(--drop-shadow);
    overflow: hidden;
    border-radius: 6px;
    touch-action: pan-y;
}

/* The <a> tag wrapper doesn't affect the slider logic, but is included in HTML structure */
.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 180px;
    object-fit: cover;
    object-position: center;
    transition: opacity var(--transition-speed) ease-in-out;
    opacity: 0;
}

.product-image.active {
    opacity: 1;
}

.favorite-wrapper {
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 1;
    width: 40px;
    height: 41px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    background-color: var(--text-white);
    box-shadow: 0 4px 10px var(--drop-shadow);
    transition: all ease var(--transition-speed);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.favorite-icon {
    width: 20px;
    height: 20px;
}

.favorite-icon path {
    fill: none;
    stroke: var(--main-darck);
    stroke-width: 1.5px;
    transition: all var(--transition-speed) ease;
}

.favorite-wrapper.active svg path {
    fill: var(--main-red);
    stroke: var(--main-red);
}

.favorite-wrapper:hover svg path {
    fill: var(--main-red);
    stroke: var(--main-red);
}

.favorite-wrapper svg path {
    transition: all var(--transition-speed) ease;
}

.product-content {
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.current-price {
    color: var(--main-red);
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    white-space: nowrap;
}

.old-price {
    font-weight: 400;
    font-size: 10px;
    line-height: 100%;
    text-decoration: line-through;
    color: var(--main-darck);
    white-space: nowrap;
}

.discount-badge {
    color: var(--main-red);
    font-weight: 600;
    font-size: 10px;
    line-height: 100%;
    white-space: nowrap;
}

.product-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: var(--main-darck);
    transition: all ease var(--transition-speed);
    cursor: pointer;
}

.product-title:hover, .product-title a:hover {
    color: var(--main-darck-hover);
    transition: all ease var(--transition-speed);
}

.slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 0;
    z-index: 1;
}

@media (max-width: 767px) {
    .slider-controls .line {
        cursor: pointer;
    }
}

.line {
    height: 4px;
    width: 30px;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color var(--transition-speed) ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.line.active {
    background-color: var(--main-red);
}

.progress-bar {
    height: 100%;
    background-color: #FF0000;
    width: 0;
    transition: width 0s linear;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1025px) {
    .current-price {
        font-size: 20px;
    }

    .product-title {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .slider-controls {
        bottom: 10px;
    }

    .line {
        height: 3px;
        width: 30px;
    }

    .favorite-wrapper {
        left: 16px;
    }

    .product-content {
        padding: 20px 0;
    }

    .current-price {
        font-size: 18px;
    }
}