/*============================================================================================
   Start Top Selling Product
==============================================================================================*/
.top-selling-product .section-head.style-6 {
    margin-bottom: 32px;
}
.tp-product-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tp-product-card {
    display: flex;
    align-items: center;
    gap: 24px;
    border-radius: 8px;
    position: relative;
    background: #f5f5f5;
}

.tp-product-badge {
    border-radius: 2px 8px;
    background: #ff3f33;
    color: var(--white-color);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 120%;
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 8px;
}
.tp-product-badge i {
    position: relative;
    top: 2px;
}

.tp-product-img {
    display: block;
    width: 300px;
    min-width: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.tp-product-img img {
    border-radius: 8px;
    width: 100%;
    transition: all 0.4s ease;
}
.tp-product-card:hover img {
    transform: scale(1.06);
}
.tp-product-content {
    width: 100%;
    padding: 12px 12px 12px 0px;
}

.tp-product-title {
    color: var(--title-color);
    font-style: normal;
    font-size: 20px;
    font-weight: 600;
    line-height: 130%;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tp-product-price {
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 6px;
    align-items: center;
}
.tp-product-price .disct-price {
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    color: var(--primary-color);
}
.tp-product-price .main-price {
    color: var(--hints-color);
    font-size: 18px;
    font-weight: 500;
    line-height: 120%;
    text-decoration-line: line-through;
}
.tp-product-price .save-price {
    border-radius: 99px;
    background: #bfdb38;
    font-size: 12px;
    font-weight: 600;
    line-height: 120%;
    color: var(--title-color);
    padding: 4px 8px;
    text-align: center;
}
.tp-product-action {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-product-action .theme-btn {
    padding: 12px 16px;
    color: var(--white-color);
    font-size: 14px;
    font-weight: 600;
    line-height: 120%;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    height: 40px;
}
.tp-product-action .theme-btn i {
    position: relative;
    top: 2px;
}
.tp-product-action .theme-btn:hover {
    background: var(--secondary-color);
}
.tp-product-action .theme-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.tp-product-action .theme-btn.secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
}
.product-section-button {
    text-align: center;
    margin-top: 24px;
}
.product-section-button .btn {
    margin: auto;
    text-transform: capitalize;
}

.top-selling-product .quantity-container {
    position: relative;
    display: inline-block;
    width: auto;
}
.top-selling-product .open-quantity-btn {
    font-family: var(--font-family);
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color);
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 16px;
    background: transparent;
    height: 40px;
    line-height: 120%;
}
.top-selling-product .open-quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border: 1px solid transparent;
}
.top-selling-product .open-quantity-btn.hidden {
    opacity: 0;
    pointer-events: none;
}
.top-selling-product .open-quantity-btn i {
    position: relative;
    top: 1px;
}
.top-selling-product .quantity-box {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 4px 0;
    gap: 10px;
    transition: all 0.4s ease;
    height: 40px;
    opacity: 1;
    visibility: visible;
    width: 100%;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}
.top-selling-product .quantity-box.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.top-selling-product .decrease-btn,
.top-selling-product .increase-btn {
    border: none;
    font-size: 16px;
    color: var(--white-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--primary-color);
}
.top-selling-product .decrease-btn {
    border-radius: 4px 0px 0px 4px;
}
.top-selling-product .increase-btn {
    border-radius: 0px 4px 4px 0px;
}
.top-selling-product .decrease-btn:hover,
.top-selling-product .increase-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.top-selling-product .quantity {
    color: var(--title-color);
    font-size: 14px;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-align: center;
    min-width: 20px;
    transition: all 0.2s ease;
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .tp-product-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media only screen and (max-width: 767px) {
    .top-selling-product .section-head.style-6 {
        margin-bottom: 16px;
    }
    .tp-product-wrapper {
        gap: 12px;
    }
    .tp-product-card {
        gap: 0;
        flex-wrap: wrap;
    }
    .tp-product-badge {
        font-weight: 600;
    }
    .tp-product-img {
        width: 100%;
        min-width: 100%;
    }
    .tp-product-title {
        font-size: 14px;
        line-height: 120%;
    }

    .tp-product-action {
        margin-top: 12px;
    }

    .tp-product-price .save-price {
        font-size: 12px;
        padding: 4px;
        text-align: center;
    }
    .tp-product-action .theme-btn {
        padding: 8px;
        font-size: 12px;
    }

    .tp-product-content {
        padding: 12px;
    }
    .tp-product-price {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .tp-product-price .disct-price,
    .tp-product-price .main-price {
        font-size: 14px;
    }
    .tp-product-price .save-price {
        font-size: 10px;
        padding: 2px 4px;
    }
    .tp-product-action .theme-btn i {
        font-size: 14px;
        display: block;
        top: 0;
    }
    .tp-product-action .theme-btn {
        padding: 0;
        width: 100%;
        height: 30px;
        text-align: center;
        justify-content: center;
    }
    .product-section-button .btn {
        padding: 8px 16px;
    }
    .d-sm-none {
        display: none !important;
    }
    .top-selling-product .open-quantity-btn {
        font-size: 12px;
        padding: 4px 16px;
        height: 30px;
    }
    .top-selling-product .quantity-container {
        width: 100%;
    }
    .top-selling-product .quantity-box {
        height: 30px;
    }
}

/*============================================================================================
   End Top Selling Product
==============================================================================================*/
