/* 商品详情页面样式 */
.sku-option {
    min-width: 80px;
    transition: all 0.3s ease;
}

.sku-option:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sku-option.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(192, 149, 120, 0.3) !important;
}

.animated {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.breadcrumb {
    background-color: var(--background-color);
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}


.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}



.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}



.action-btn {
    color: #555555;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
}

.action-btn:hover {
    color: var(--primary-color);
}

.action-btn i {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.action-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

.action-btn:hover i {
    transform: scale(1.1);
}

.table {
    color: var(--text-primary);
}

.table th {
    background-color: var(--background-color);
}

.card {
    border-color: #fff;
}

.card-title {
    color: var(--secondary-color);
}

.text-muted {
    color: var(--text-secondary) !important;
}


.btn-cart {
    max-width: 180px;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-cart:hover {
    color: white !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}


.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.recommended-products {
    margin-top: 3rem;
}

.recommended-products .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.recommended-products .card:hover {
    transform: translateY(-5px);
}

.recommended-products .card-img-top {
    height: 300px;
    object-fit: cover;
}

.recommended-products .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

.recommended-products .card-text {
    color: var(--primary-color);
    font-weight: 700;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .product-info {
        padding-left: 0;
        margin-top: 2rem;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .product-price {
        font-size: 1.6rem;
    }

    .add-to-cart-btn {
        font-size: 1rem;
    }
}




/* ----------------------list start------------------ */

.product-list .hover-bg:hover {
    background-color: #f8f9fa;
}

.product-list .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-list .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-list .btn-cart {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.product-list .card-badge {
    border-radius: 0 0 5px 0;
}

.product-list .bi-heart {
    color: var(--primary-color);
}


.product-list .card-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}


.product-list .screen-title::before {
    content: "";
    width: 32px;
    border-top: 1px solid #333;
    position: absolute;
    display: inline-block;
    left: 0;
    top: 20px;
}

.product-list .screen-title {
    font-size: 18px;
    font-family: 'Roboto';
    text-transform: uppercase;
    font-weight: 700;
    padding-bottom: 25px;
    margin-bottom: 0;
    position: relative;
    letter-spacing: 0.1em;
    z-index: 1;
    padding-left: 40px;
    padding-top: 10px;
}

.product-list .screen-title::after {
    content: "";
    width: 18px;
    border-top: 1px solid #333;
    position: absolute;
    display: inline-block;
    margin-right: 10px;
    left: 0;
    top: 25px;
}
.product-list .bg-light{
    background-color: #fff!important;
}


.product-list .btn-check:checked+.btn, .product-list   .product-list  .btn.show{
    background-color: #fff !important;
    color: var(--primary-color)!important;
    border-color: var(--primary-color)!important;
}

.product-list .card-icons .btn{
    padding:0.7rem 1rem !important;
}


/* 价格筛选器样式 */
.product-list .price-filter {
    padding: 0 10px;
}

.product-list .custom-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.product-list .custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color)!important;
    border-radius: 50%;
    cursor: pointer;
}

#currentPriceRange {
    font-size: 1.1rem;
    color: #007bff;
}

.comment-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.comment-images {
    margin-top: 10px;
}
.rating {
    font-size: 1.2rem;
}
.user-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 竖直推荐商品样式 */
.vertical-recommend-products {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    margin-top: 3rem;
}

.vertical-recommend-products h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.vertical-recommend-list {
    /* display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem; */
}

.vertical-recommend-item {
    transition: all 0.3s ease;
}

.vertical-recommend-item .product-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.vertical-recommend-item .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vertical-recommend-item .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.vertical-recommend-item .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}

.vertical-recommend-item .card-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}


