.product-card {
    background-color: transparent;
    width: 100%;
    overflow: hidden;
    text-align: left;
    min-width: 260px;
    border-radius: 6px;
    position: relative;
}


.product-item-detail-btn-container {
    display: flex;
    align-items: center;
}
.preview-text{
    margin-top: 20px;
    font-size: 16px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.custom-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--main-red);
    border-radius: 0.5rem;
    color: var(--main-darck);
    transition: all 0.15s;
}

.custom-input:focus {
    outline: none;
    border-color: var(--main-red);
    box-shadow: 0 0 0 1px #FF0000;
}
#modalTitle, .colorFFF, .nameCustom{
    color: #fff;
}
.product-item-detail-quantity-container {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.product-item-detail-quantity-container-title {
    background: var(--main-darck);
    border-radius: 4px;
    padding: 7px 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: var(--text-white);
}
.btn.buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 250px;
    width: 100%;
    height: 50px;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.02em;
    line-height: 100%;
    opacity: 1;
    padding: 15px 26px;
    border-radius: 6px;
    background-color: var(--main-red);
    color: var(--text-white);
    text-decoration: none;
    transition: box-shadow var(--transition-speed);
}

.btn.buy-button:hover {
    background-color: var(--main-red-hover);
    text-decoration: none;
    transition: box-shadow var(--transition-speed);
}

.product-item-detail-short-card-btn .btn.buy-button {
    margin: 0;
}

.d-flex{
    display: flex;
    justify-content: space-between;
}
.image-container{
    width: 100%;
}

.main-button-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}


.image-container {
    position: relative;
    background-color: var(--text-white);
    overflow: hidden;
    border-radius: 6px;
    touch-action: pan-y;
    width: 30%;
}

/* 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;
    width: 25%;
}
.content-block{
    width: 50%;
}
.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: 600;
    font-size: 18px;
    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) {
    .mobile-cart-text{
        padding: 10px;
    }
    .slider-controls .line {
        cursor: pointer;
    }
    a.mobile-cart-text {
        padding: 12px 0 0;
    }
    h5.product-title {
        font-size: 12px;
        margin-top: -4px;
        height: 30px;
    }
    div.product-content {
        padding: 0;
    }
    .article-block{
        font-size: 10px;
    }
    .image-container{
        height: 170px;
    }
    .slider-controls{
        max-width: 108px;
    }
    div.catalog-section{
        gap: 12px;
        justify-content: space-between;
        row-gap: 45px;
    }
    .catalog-section-item {
        max-width: 48%;
        min-width: 48%;
        /*box-shadow: 0px 7px 20px 0px var(--drop-shadow);*/
    }
    .product-card {
        max-width: 100%;
        min-width: 100%;
        /*box-shadow: 0px 7px 20px 0px var(--drop-shadow);*/
    }
    .image-container{
        height: 200px;
        width: 100%;
    }
    .content-block{
        width: 100%;
    }
    .d-flex{
        padding: 12px;
        flex-direction: column;
    }
    .main-button-container{
        margin-top: 0;
        display: block;
    }
    .mobile-cart-text{
        padding: 0;
    }
    .product-content{
        padding-bottom: 0;
        gap: 0;
        width: 100%;
    }
}

.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;
    }
}