/* 产品列表页面样式 - 适用于 archive-product.php 和 taxonomy-product_category.php */

/* 顶部横幅区域 */
.product-top-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.product-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.product-top-content {
    position: relative;
    z-index: 2;
}

.product-top-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-top-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}
.btn-primarypa {
-webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 300px;
}
/* 产品筛选区域 */
.product-filter {
   margin-bottom: 20px;
    margin-top: 20px;
}

.category-filter,
.tag-filter,
.attribute-filter {
    margin-bottom: 10px;
}

.category-filter h5,
.tag-filter h5,
.attribute-filter h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.category-tags,
.tag-tags,
.attribute-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag,
.tag-tag,
.attribute-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bs-gray-100, #f8f9fa);
    color: var(--bs-gray-600, #666);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--bs-gray-200, #e9ecef);
}

.category-tag:hover,
.tag-tag:hover,
.attribute-tag:hover {
    background: var(--bs-gray-200, #e9ecef);
    color: var(--secondary-color);
    text-decoration: none;
}

.category-tag.active,
.tag-tag.active,
.attribute-tag.active {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
}

/* 产品卡片样式 */
.product-list {
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--bs-white, #fff);
    border-radius: 8px;
    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-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* 产品徽章 */
.product-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-category-badge span {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    border-radius: 12px;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: var(--main-color);
    color: white;
    font-size: 0.75rem;
    border-radius: 12px;
    z-index: 2;
}

.product-badge.virtual {
    background: var(--bs-gray-500, #6c757d);
}

.product-badge.sale {
    background: var(--bs-danger, #dc3545);
}

/* 产品价格 */
.product-price {
    padding: 15px;
    background: var(--bs-gray-100, #f8f9fa);
    border-top: 1px solid var(--bs-gray-200, #e9ecef);
}

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

.base-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.sale-price {
    font-size: 1rem;
    color: var(--bs-danger, #dc3545);
    text-decoration: line-through;
}

/* 产品卡片内容 */
.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--main-color);
}

/* 产品参数 */
.product-params {
   margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
}


.product-param {
    font-size: 0.85rem;
    color: var(--bs-gray-600, #666);
    margin-bottom: 4px;
}

.param-name {
    color: var(--bs-gray-500, #888);
}

.param-value {
    color: #6c757d;
}

/* 产品操作按钮 */
.product-actions {
    margin-top: auto;
}

.card-titles a {
    color: #333333;
    line-height: 1.4;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-quote span {
    color: #666;
    font-size: 14px;
}

.card-titles {
    line-height: 1.2;
    margin-bottom: 10px;
}

.add-to-quote {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.add-to-quote input[type="checkbox"] {
    margin-right: 8px;
}

.view-details {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    background-color: #e9ecef;
    font-size: 14px;
    padding: 3px 10px;
    border-radius: 5px;
}

.card-bodysa {
    background-color: #fff;
    padding: 10px;
    border-radius: 0px 0px 10px 10px;
}

.product-card {
    border-radius: 20px;
}

.product-imagesa {
    border-radius: 10px 10px 0px 0px;
}

.view-details:hover {
    text-decoration: underline;
}

/* 无产品提示 */
.no-products {
    text-align: center;
    padding: 60px 20px;
}

.no-products i {
    color: #ccc;
    margin-bottom: 20px;
}

.no-products h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-products p {
    color: #999;
}

/* 分页样式 */
.pagination {
    margin-top: 40px;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 4px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.pagination .page-numbers:hover {
    background: #e9ecef;
    color: #333;
}

.pagination .page-numbers.current {
    background: var(--main-color);
    color: white;
}

.pagination .prev,
.pagination .next {
    padding: 0 16px;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .product-top-section {
        padding: 60px 0;
    }
    
    .product-top-title {
        font-size: 2rem;
    }
    
    .product-top-description {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .product-top-section {
        padding: 40px 0;
    }
    
    .product-top-title {
        font-size: 1.75rem;
    }
    
    .category-tags,
    .tag-tags,
    .attribute-tags {
        gap: 8px;
    }
    
    .category-tag,
    .tag-tag,
    .attribute-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .product-top-title {
        font-size: 1.5rem;
    }
    
  
}
.codst{
    margin-bottom: 10px;
}
/* 报价功能窗口 */
.quote-window {
    position: fixed;
    bottom: -115px;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: bottom 0.3s ease;
    z-index: 1000;
}

/* 模态框样式 */
#inquiry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    background-color: rgba(0, 0, 0, 0.5);
}

#inquiry-modal.show {
    display: block;
}

#inquiry-modal .modal-dialog {
    position: relative;
    margin: 50px auto;
    max-width: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#inquiry-modal .modal-content {
    background-color: #fff;
    border-radius: 8px;
}

#inquiry-modal .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#inquiry-modal .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#inquiry-modal .close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#inquiry-modal .modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

#inquiry-modal .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#inquiry-modal .form-group {
    margin-bottom: 15px;
}

#inquiry-modal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

#inquiry-modal .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#inquiry-modal .form-control:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

#inquiry-modal .product-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

#inquiry-modal .product-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#inquiry-modal .product-info ul li {
    padding: 5px 0;
    border-bottom: 1px solid #e5e5e5;
}

#inquiry-modal .product-info ul li:last-child {
    border-bottom: none;
}

.quote-window.active {
    bottom: 0;
}

.quote-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-left {
    font-size: 16px;
    font-weight: 600;
}

.quote-right {
    display: flex;
    gap: 10px;
}

#get-quote-btn {
   display: inline-block;
    padding: 12px 30px;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#get-quote-btn:hover {
    background-color: var(--button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#get-quote-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quote-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Bootstrap工具类样式 */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--button-hover-color);
    border-color: var(--button-hover-color);
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.p-3 {
    padding: 1rem !important;
}

.rounded {
    border-radius: 0.25rem !important;
}
