/**
 * SMD Trims WooCommerce Styles
 * 
 * Custom styles for WooCommerce product archive, filters, and product cards
 * Designed to work with the SMD Trims theme
 */

/* ==========================================================================
   WooCommerce Archive Page
   ========================================================================== */

.woocommerce-product-archive-area {
    padding: 100px 0;
    background-color: #f8f9fa;
}

/* Page Title Area */
.page-title-area {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: #ffffff;
    text-align: center;
}

.page-title-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb .delimiter {
    margin: 0 8px;
    color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   Product Filter Sidebar
   ========================================================================== */

.product-filter-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 30px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.filter-widget {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.filter-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Categories Filter */
.product-categories-filter {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-categories-filter li {
    margin-bottom: 8px;
}

.product-categories-filter a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.product-categories-filter a:hover {
    background-color: #f8f9fa;
    color: #667eea;
    transform: translateX(5px);
}

.product-categories-filter .current-cat > a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.product-categories-filter .count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-categories-filter .current-cat .count {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* Child Categories */
.product-categories-filter .children {
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
    border-left: 2px solid #e9ecef;
}

.product-categories-filter .children li {
    margin-bottom: 5px;
}

.product-categories-filter .children a {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Price Filter */
.price-filter {
    padding: 15px 0;
}

.price-range-slider {
    margin-bottom: 20px;
}

#price-range {
    height: 6px;
    border: none;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 25px;
}

#price-range .noUi-connect {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

#price-range .noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #667eea;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
}

#price-range .noUi-handle:before,
#price-range .noUi-handle:after {
    display: none;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.price-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.price-inputs input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.price-separator {
    color: #6c757d;
    font-weight: 500;
}

.filter-btn {
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Attribute and Stock Filters */
.attribute-filter,
.stock-filter {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attribute-filter li,
.stock-filter li {
    margin-bottom: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.filter-checkbox:hover {
    color: #667eea;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark:after {
    display: block;
}

/* Clear Filters Button */
.clear-filters-btn {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-filters-btn:hover {
    background: #dc3545;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Product Toolbar
   ========================================================================== */

.product-toolbar {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.product-result-count {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

.product-sorting {
    text-align: right;
}

.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select.orderby {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #ffffff;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ==========================================================================
   Product Grid and Cards
   ========================================================================== */

.product-grid-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.product-item {
    padding: 15px;
    margin-bottom: 0;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Product Image */
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f8f9fa;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-thumbnail {
    transform: scale(1.05);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-image-placeholder span {
    font-size: 0.9rem;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-sale {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #ffffff;
}

.badge-featured {
    background: linear-gradient(135deg, #ffd93d 0%, #ffcd02 100%);
    color: #2c3e50;
}

.badge-out-of-stock {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #ffffff;
}

/* Product Actions */
.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.btn-action:hover {
    background: #ffffff;
    color: #667eea;
    transform: scale(1.1);
}

.btn-action.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-action.added {
    background: #28a745;
    color: #ffffff;
}

.btn-action.in-wishlist {
    background: #dc3545;
    color: #ffffff;
}

/* Product Content */
.product-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-categories {
    margin-bottom: 10px;
}

.product-categories a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-categories a:hover {
    text-decoration: underline;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #667eea;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-rating.no-rating {
    color: #6c757d;
    font-size: 0.85rem;
}

.star-rating {
    position: relative;
    width: 80px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e9ecef"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>') repeat-x;
    background-size: 16px 16px;
}

.star-rating span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffc107"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>') repeat-x;
    background-size: 16px 16px;
    overflow: hidden;
}

.review-count {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Product Price */
.product-price {
    margin-bottom: 12px;
}

.product-price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

.product-price .price del {
    color: #6c757d;
    font-weight: 400;
    font-size: 1rem;
    margin-right: 8px;
}

.product-price .price ins {
    background: none;
    color: #e74c3c;
    text-decoration: none;
}

/* Stock Status */
.product-stock-status {
    margin-bottom: 15px;
}

.product-stock-status span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

.in-stock {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.out-of-stock {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.backorder {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

/* Product Short Description */
.product-short-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Add to Cart Button */
.product-add-to-cart {
    margin-top: auto;
}

.product-add-to-cart .button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-add-to-cart .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.product-add-to-cart .button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.product-pagination {
    margin-top: 40px;
    text-align: center;
}

.product-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.product-pagination .page-numbers li {
    display: inline-block;
}

.product-pagination a,
.product-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    color: #495057;
}

.product-pagination a:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.product-pagination .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.product-pagination .prev,
.product-pagination .next {
    font-size: 1.1rem;
}

/* ==========================================================================
   No Products Found
   ========================================================================== */

.no-products-found {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-products-message i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-products-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #495057;
}

.no-products-message p {
    margin-bottom: 25px;
    font-size: 1rem;
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */

/* ==========================================================================
   Desktop List View Styles
   ========================================================================== */

/* 桌面端列表视图样式 */
.product-list-item-desktop {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-list-item-desktop:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-list-item-desktop .product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #f8f9fa;
    text-align: center;
    padding: 10px;
}

.product-list-item-desktop .product-image {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
}

.product-list-item-desktop .product-header {
    margin-bottom: 10px;
}

.product-list-item-desktop .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-list-item-desktop .product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-list-item-desktop .product-name a:hover {
    color: #007bff;
}

.product-list-item-desktop .product-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-list-item-desktop .product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.product-list-item-desktop .product-specs-horizontal {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-list-item-desktop .spec-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.product-list-item-desktop .spec-label {
    font-weight: 500;
    color: #666;
    min-width: 50px;
    margin-right: 8px;
}

.product-list-item-desktop .spec-value {
    color: #333;
    font-weight: 400;
}

.product-list-item-desktop .stock-instock {
    color: #28a745;
}

.product-list-item-desktop .stock-outofstock {
    color: #dc3545;
}

.product-list-item-desktop .product-price-actions {
    text-align: right;
}

.product-list-item-desktop .product-price-section {
    margin-bottom: 15px;
}

.product-list-item-desktop .price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.product-list-item-desktop .price-regular {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.product-list-item-desktop .price-sale {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e74c3c;
}

.product-list-item-desktop .price-normal {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.product-list-item-desktop .price-contact {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.product-list-item-desktop .product-actions-horizontal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.product-list-item-desktop .btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    min-width: 80px;
}

/* 移动端卡片视图样式保持原有样式 */
.product-list-item-mobile .product-list-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-list-item-mobile .product-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    color: #667eea;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */

.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-modal .modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #dc3545;
}

.quick-view-product {
    padding: 30px;
}

.quick-view-images .main-image {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.quick-view-images .thumbnails {
    display: flex;
    gap: 10px;
}

.quick-view-images .thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.quick-view-images .thumbnails img:hover {
    border-color: #667eea;
}

.quick-view-info h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.quick-view-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

.quick-view-info .rating {
    margin-bottom: 20px;
}

.quick-view-info .description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quick-view-actions {
    display: flex;
    gap: 15px;
}

.quick-view-actions .btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-view-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
}

.quick-view-actions .btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

/* ==========================================================================
   Notifications
   ========================================================================== */

.smd-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 500;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.smd-notification.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.smd-notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.smd-notification.show {
    transform: translateX(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 991px) {
    .product-filter-sidebar {
        position: static;
        margin-bottom: 30px;
        max-height: none;
    }
    
    .product-toolbar {
        text-align: center;
    }
    
    .product-result-count {
        margin-bottom: 15px;
    }
    
    .product-sorting {
        text-align: center;
    }
    
    .page-title-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .woocommerce-product-archive-area {
        padding: 60px 0;
    }
    
    .page-title-area {
        padding: 60px 0;
    }
    
    .page-title-content h2 {
        font-size: 1.8rem;
    }
    
    .product-grid-wrapper {
        padding: 20px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .quick-view-modal .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .quick-view-product {
        padding: 20px;
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
    
    /* 列表视图响应式 */
    .product-card-list {
        flex-direction: column;
        text-align: center;
    }
    
    .product-thumbnail-list {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .product-content-list .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .product-price-list {
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    .product-filter-sidebar {
        padding: 20px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price .price {
        font-size: 1.1rem;
    }
    
    .product-pagination .page-numbers {
        gap: 4px;
    }
    
    .product-pagination a,
    .product-pagination span {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Product List View Styles
   ========================================================================== */

.products-list {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-item-list {
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.product-item-list:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-card-list {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.product-thumbnail-list {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    position: relative;
    flex-shrink: 0;
}

.product-thumbnail-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.product-content-list {
    flex: 1;
}

.product-title-list {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-title-list a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title-list a:hover {
    color: #667eea;
}

.product-excerpt-list {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-price-list {
    text-align: right;
    min-width: 120px;
}

.product-price-list .price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.product-price-list .price-original {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through;
    display: block;
}

.product-actions-list {
    display: flex;
    gap: 10px;
}

.product-actions-list .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* View Toggle Buttons */
.view-toggle {
    display: inline-flex;
    border: 1px solid #ced4da;
    border-radius: 6px;
    overflow: hidden;
}

.view-toggle .btn {
    border: none;
    background: #ffffff;
    color: #495057;
    padding: 8px 12px;
    margin: 0;
    border-radius: 0;
    transition: all 0.3s ease;
}

.view-toggle .btn:hover {
    background: #f8f9fa;
    color: #667eea;
}

.view-toggle .btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.view-toggle .btn:first-child {
    border-right: 1px solid #ced4da;
}

/* ==========================================================================
   Product List Styles
   ========================================================================== */

.product-list-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.product-list-header {
    text-align: center;
    margin-bottom: 40px;
}

.product-list-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
}

.product-list-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.product-list-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-top: 20px;
}

.product-list-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.product-list-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-list-item:hover {
    /* transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); */
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-list-item:hover .product-image {
    /* transform: scale(1.05); */
}

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-list-item:hover .product-image-overlay {
    /* opacity: 1; */
}

.btn-view-details {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-view-details:hover {
    background: linear-gradient(45deg, #2980b9, #27ae60);
    color: white;
    transform: translateY(-2px);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.sale {
    background: #e74c3c;
    color: white;
}

.product-badge.out-of-stock {
    background: #95a5a6;
    color: white;
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: 15px;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #3498db;
}

.product-category {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
}

.product-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.product-specs {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-label {
    color: #7f8c8d;
    font-weight: 500;
}

.spec-value {
    color: #2c3e50;
    font-weight: 600;
}

.spec-value.stock-instock {
    color: #27ae60;
}

.spec-value.stock-outofstock {
    color: #e74c3c;
}

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

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-regular {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 1rem;
}

.price-sale {
    color: #e74c3c;
    font-size: 1.4rem;
    font-weight: 700;
}

.price-normal {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.price-contact {
    color: #3498db;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-view-details,
.btn-quick-inquiry {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-view-details {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
}

.btn-view-details:hover {
    background: linear-gradient(45deg, #2980b9, #27ae60);
    color: white;
    transform: translateY(-2px);
}

.btn-quick-inquiry {
    background: #f39c12;
    color: white;
}

.btn-quick-inquiry:hover {
    background: #e67e22;
    color: white;
    transform: translateY(-2px);
}

.no-products-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-products-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-products-found h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.no-products-found p {
    color: #95a5a6;
}

.btn-load-more {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    background: linear-gradient(45deg, #2980b9, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-list-wrapper {
        padding: 25px 20px;
    }
    
    .product-list-title {
        font-size: 2rem;
    }
    
    .product-image-wrapper {
        height: 200px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-view-details,
    .btn-quick-inquiry {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .product-list-grid {
        margin: 0 -10px;
    }
    
    .product-list-item {
        margin-bottom: 20px;
    }
    
    .product-specs {
        padding: 12px;
    }
    
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ==========================================================================
   WooCommerce Compatibility
   ========================================================================== */

.woocommerce .woocommerce-result-count {
    margin: 0;
    font-size: 0.95rem;
    color: #6c757d;
}

.woocommerce .woocommerce-ordering {
    margin: 0;
}

.woocommerce .star-rating {
    margin: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin: 0;
    padding: 15px;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 700;
}

.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
    color: #6c757d;
    font-weight: 400;
    font-size: 1rem;
}

.woocommerce ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins {
    background: none;
    color: #e74c3c;
    text-decoration: none;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 加载更多按钮样式 */
.btn-load-more {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-load-more:hover {
    background: linear-gradient(45deg, #2980b9, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-load-more:disabled {
    background: #bdc3c7;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* 快速询价按钮样式 */
.btn-quick-inquiry {
    background: linear-gradient(45deg, #e67e22, #f39c12);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.3);
}

.btn-quick-inquiry:hover {
    background: linear-gradient(45deg, #d35400, #e67e22);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

/* 产品规格标签样式 */
.product-specs .spec-item {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 15px;
    padding: 4px 12px;
    margin: 2px;
    font-size: 12px;
    color: #495057;
    display: inline-block;
    transition: all 0.3s ease;
}

.product-specs .spec-item:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    transform: translateY(-1px);
}

/* 库存状态样式 */
.stock-status {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-status.in-stock {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #b1dfbb;
}

.stock-status.out-of-stock {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* 价格样式增强 */
.product-price .price-compare {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 14px;
    margin-right: 8px;
}

.product-price .price-sale {
    color: #e74c3c;
    font-weight: 700;
    font-size: 18px;
}

/* 产品卡片悬停效果增强 */
.product-list-item:hover {
    /* transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #3498db; */
}

.product-list-item:hover .product-image img {
    /* transform: scale(1.1); */
}

.product-list-item:hover .product-name {
    /* color: #3498db; */
}

/* 无产品结果样式 */
.no-products-found {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    margin: 20px 0;
}

.no-products-found .no-products-icon {
    font-size: 64px;
    color: #6c757d;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-products-found h3 {
    color: #495057;
    margin-bottom: 10px;
    font-weight: 500;
}

.no-products-found p {
    color: #6c757d;
    margin-bottom: 0;
}

/* 产品搜索框样式 */
.product-search-box {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.product-search-box h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 响应式产品网格 */
@media (max-width: 1200px) {
    .product-list-grid .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .product-list-grid .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-search-box {
        margin: 0 15px 30px 15px;
    }
}

/* 产品分类标签 */
.product-category-tag {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
}

/* 产品描述文本截断 */
.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 4.5em;
}

/* 产品操作按钮组 */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.product-actions .btn-primary {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.product-actions .btn-primary:hover {
    background: linear-gradient(45deg, #2980b9, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.product-actions .btn-outline-primary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.product-actions .btn-outline-primary:hover {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}