/* Bestsellers Section */
.bestsellers-section {
    padding: 40px 0;
    max-width: 1770px;
    margin: 0 auto;
    clear: both;
}

.bestsellers-section::after {
    content: '';
    display: table;
    clear: both;
}

.bestsellers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.bestsellers-title {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 1px;
}

.bestsellers-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bestsellers-view-all {
    font-size: 0.85em;
    font-weight: 600;
    color: #3BA8D0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.bestsellers-view-all:hover {
    color: #2d8bb5;
}

.bestsellers-arrow {
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
    padding: 5px;
}

.bestsellers-arrow:hover {
    color: #3BA8D0;
}

.bestsellers-slider {
    position: relative;
    min-height: 400px;
}

.bestsellers-slider .owl-stage-outer {
    overflow: hidden;
}

.bestsellers-slider .owl-item {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.bestsellers-slider .owl-item.active {
    opacity: 1;
}

/* Bestseller Card */
.bestseller-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 10px;
}

.bestseller-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #3BA8D0;
}

.bestseller-card__image {
    position: relative;
    width: 100%;
    height: 280px;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bestseller-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /*padding: 20px;*/
    transition: transform 0.3s ease;
}

.bestseller-card:hover .bestseller-card__image img {
    transform: scale(1.05);
}

.bestseller-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FF8C00;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

span.bestseller-badge.red {
    background-color: rgba(222, 41, 41, 1);
}

.bestseller-favorite,
.bestseller-compare {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: unset;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    z-index: 2;
}

.bestseller-favorite:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

.bestseller-compare {
    top: 55px;
}

.bestseller-compare:hover {
    color: #3BA8D0;
    border-color: #3BA8D0;
}

.bestseller-card__content {
    padding: 20px;
}

.bestseller-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bestseller-availability {
    flex: 1;
}

.availability-in-stock {
    font-size: 0.8em;
    color: #27ae60;
    font-weight: 500;
}

.availability-out-stock {
    font-size: 0.8em;
    color: #e74c3c;
    font-weight: 500;
}

.bestseller-rating {
    flex-shrink: 0;
}

.bestseller-card__name {
    margin: 0 0 15px;
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: flex-start;
}

.bestseller-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bestseller-card__name a:hover {
    color: #3BA8D0;
}

.bestseller-card__price {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
}

.price-old {
    font-size: 0.9em;
    color: #999;
    text-decoration: line-through;
}

.bestseller-card__cart {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.qty-minus,
.qty-plus {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #333;
}

.qty-minus:hover,
.qty-plus:hover {
    background: #e0e0e0;
}

.qty-input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    flex: 1;
    height: 32px;
    background: #3BA8D0;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #2d8bb5;
}

/* Responsive */
@media (max-width: 1200px) {
    .bestsellers-section {
        padding: 30px 0;
    }

    .bestsellers-title {
        font-size: 1.7em;
    }

    .bestseller-card__content {
        padding: 15px;
    }

    .bestseller-card__name {
        font-size: 0.9em;
        min-height: 45px;
    }
}

@media (max-width: 992px) {
    .bestsellers-title {
        font-size: 1.5em;
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {
    .bestsellers-section {
        padding: 25px 0;
    }

    .bestsellers-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .bestsellers-title {
        font-size: 1.3em;
        margin-bottom: 0;
    }

    .bestseller-card__image {
        height: 220px;
    }

    .bestseller-card__content {
        padding: 12px;
    }

    .bestseller-card__name {
        font-size: 0.85em;
        min-height: 40px;
    }

    .price-current {
        font-size: 1.1em;
    }
}

@media (max-width: 575px) {
    .bestsellers-title {
        font-size: 1.2em;
    }

    .bestseller-card__image {
        height: 280px;
    }

    .bestseller-card__cart {
        flex-direction: column;
    }

    .quantity-control {
        width: 100%;
    }

    .add-to-cart-btn {
        width: 100%;
    }
}
