.breadcrumb {
    background-color: #fff;
}

/* Product Filter Styles */
.filter-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.filter-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    color: #1c2e5c;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h5 {
    margin-bottom: 10px;
    color: #1c2e5c;
}

.form-check {
   margin-bottom: 8px;
   padding-left: 0;
}

.form-check-label {
   margin-left: 5px;
   color: #495057;
	font-size: 14px;
	font-weight: 600; 
   margin-bottom: 10px; 
   background-color: #f8f9fa; 
   border-left: 3px solid #007cba; 
	padding: 0 10px;
}

.form-check.sub-category {
	font-weight: 500;
}

.sub-category .form-check-label {
	font-weight: 400; /* 正常字体粗细 */
   font-size: 12px; /* 稍小字体 */
   margin-bottom: 6px; /* 减少间距 */
   background-color: transparent; /* 透明背景 */
   border-left: 1px solid #ced4da; /* 较细的左侧线 */
	color: #6c757d;
	padding: 0
}

.media {
    border-bottom: 1px solid #b9c0c0;
}

.media-body p {
	line-height: 1.75rem;
}

/* Product Grid Adjustments */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 0;
}

.product-card {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card .card-img-top {
    object-fit: cover;
    height: 200px;
}

.product-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
	 color: #1c2e5c;
	margin-bottom: 0;
}


.product-card .card-text {
	 font-size: 12px;
    flex-grow: 1;
    color: #5a5655;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    background-color: #1c2e5c;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

/* Product Detail Page Styles */
.product-detail-section {
    padding: 15px 0;
}

/* Product Image Gallery */
.product-image-gallery {
    margin-bottom: 30px;
}

.main-image {
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-images {
    display: flex;
    gap: 15px;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumb:hover,
.thumb.active {
    border-color: #007bff;
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding: 0 20px;
}

.product-title {
    font-size: 28px;
    color: #1c2e5c;
    margin-bottom: 15px;
}

.product-code {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
}

.product-price {
    margin-bottom: 20px;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.original-price {
    font-size: 18px;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stars {
    color: #ffc107;
    margin-right: 10px;
}

.star {
    font-size: 18px;
}

.star.filled {
    color: #ffc107;
}

.reviews {
    color: #6c757d;
}

.product-description {
    margin-bottom: 30px;
}

.specifications h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #1c2e5c;
}

.specifications ul {
    list-style-type: none;
    padding-left: 0;
}

.specifications li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.specifications li:last-child {
    border-bottom: none;
}

/* Product Options */
.product-options {
    margin-bottom: 30px;
}

.product-options ul {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-content: space-between;
}


.sku,
.categories,
.tags {
    margin-bottom: 10px;
    color: #6c757d;
}

.sku a,
.categories a,
.tags a {
    color: #1c2e5c;
    text-decoration: none;
}

.sku a:hover,
.categories a:hover,
.tags a:hover {
    text-decoration: underline;
}

/* Product Tabs */
.product-tabs {
    margin-top: 50px;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 0;
    padding: 12px 20px;
}

.nav-tabs .nav-link.active {
    color: #1c2e5c;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 500;
}

.tab-content {
    padding: 30px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.tab-pane h3 {
    color: #1c2e5c;
    margin-bottom: 20px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Reviews */
.reviews-summary {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-value {
    font-size: 36px;
    font-weight: bold;
    color: #1c2e5c;
}

.review-count {
    color: #6c757d;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 500;
    color: #1c2e5c;
}

.review-date {
    color: #6c757d;
    font-size: 14px;
}

.review-title {
    font-weight: 500;
    margin-bottom: 10px;
}

.review-content {
    color: #495057;
    line-height: 1.6;
}

.add-review {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.rating-input {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.rating-input .star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-input .star.selected,
.rating-input .star:hover {
    color: #ffc107;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Related Products */
.related-products-section {
    padding: 30px 0;
    margin-top: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #1c2e5c;
}

.related-products-section .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.related-products-section .card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-products-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.related-products-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

.related-products-section .card-body {
    padding: 20px;
}

.related-products-section .card-title {
    font-size: 16px;
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.related-products-section .product-price {
    margin-bottom: 15px;
}

.related-products-section .current-price {
    font-size: 18px;
    color: #007bff;
}

.related-products-section .btn-primary {
    padding: 8px 15px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) and (min-width: 993px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .filter-sidebar {
        padding: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    /* Product Detail Responsive Adjustments */
    .product-detail-container .row {
        flex-direction: column;
    }
    
    .product-image-gallery {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: block;
    }
    
    .filter-sidebar {
        display: none;
        margin-top: 20px;
    }
    
    .filter-sidebar.active {
        display: block;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .image-placeholder-product {
        min-height: 400px;
        padding: 25px 20px 60px;
    }
    
    /* Product Detail Responsive Adjustments */
    .product-detail-container .row {
        flex-direction: column;
    }
    
    .product-image-gallery {
        margin-bottom: 30px;
    }
    
    .product-info {
        padding: 0;
        margin-top: 30px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .related-products-section .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .product-tabs .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .filter-sidebar {
        padding: 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 20px;
    }
    
    .product-card .card-img-top {
        height: 180px;
    }
    
    .image-placeholder-product {
        min-height: 350px;
        padding: 20px 15px 50px;
    }
    
    /* 移动端媒体对象样式调整 */
    .media {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #525353;
    }
    
    .media img {
        margin-left: 0 !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        order: -1; /* 将图片移到上方 */
    }
    
    .media .media-body {
        width: 100%;
        order: 2; /* 确保文字在下方 */
    }
    
    /* Product Detail Mobile Specific Styles */
    .thumbnail-images {
        gap: 8px;
        justify-content: center;
    }
    
    .thumb {
        width: 50px;
        height: 50px;
    }
    
    .product-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .product-code {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .product-price {
        margin-bottom: 15px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .original-price {
        font-size: 14px;
    }
    
    .product-rating {
        margin-bottom: 15px;
    }
    
    .stars {
        font-size: 16px;
    }
    
    .reviews {
        font-size: 14px;
    }
    
    .quantity-selector {
        margin-bottom: 20px;
    }
    
    .quantity-controls {
        width: 120px;
    }
    
    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-actions .btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .product-meta {
        font-size: 14px;
    }
    
    .related-products-section .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 20px;
    }
    
    .related-products-section .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .tab-content {
        padding: 20px 15px;
    }

    .tab-content ul {
        padding-left: 20px;
    }
    
    .reviews-summary {
        text-align: center;
    }
    
    .average-rating {
        flex-direction: column;
        gap: 10px;
    }
    
    .rating-value {
        font-size: 32px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .add-review .form-group {
        margin-bottom: 15px;
    }
    
    .add-review .btn-primary {
        width: 100%;
        padding: 12px;
    }
}