/**
 * B2B Product Plugin Styles
 * 
 * @package B2B_Product_Plugin
 */

/* ==========================================================================
   General Styles
   ========================================================================== */

.b2b-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.b2b-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.b2b-col {
    padding: 0 15px;
    flex: 1;
}

.b2b-col-1 {
    flex: 0 0 8.333333%;
}

.b2b-col-2 {
    flex: 0 0 16.666667%;
}

.b2b-col-3 {
    flex: 0 0 25%;
}

.b2b-col-4 {
    flex: 0 0 33.333333%;
}

.b2b-col-6 {
    flex: 0 0 50%;
}

.b2b-col-8 {
    flex: 0 0 66.666667%;
}

.b2b-col-9 {
    flex: 0 0 75%;
}

.b2b-col-12 {
    flex: 0 0 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--b2b-primary-color, #007cba);
    color: var(--b2b-background-color, #ffffff);
}

.btn-primary:hover {
    background-color: var(--b2b-primary-hover, #005a87);
    color: var(--b2b-background-color, #ffffff);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--b2b-secondary-color, #6c757d);
    color: var(--b2b-background-color, #ffffff);
}

.btn-secondary:hover {
    background-color: var(--b2b-secondary-hover, #545b62);
    color: var(--b2b-background-color, #ffffff);
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--b2b-primary-color, #007cba);
    border: 2px solid var(--b2b-primary-color, #007cba);
}

.btn-outline:hover {
    background-color: var(--b2b-primary-color, #007cba);
    color: var(--b2b-background-color, #ffffff);
    text-decoration: none;
}

/* ==========================================================================
   Product Archive Styles
   ========================================================================== */

.b2b-product-archive {
    padding: 40px 0;
}

.b2b-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.b2b-archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--b2b-text-color, #333);
}

.b2b-archive-description {
    font-size: 1.1rem;
    color: var(--b2b-secondary-color, #666);
    max-width: 600px;
    margin: 0 auto;
}

.b2b-archive-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* Category Filter */
.b2b-category-filter {
    margin-bottom: 40px;
    text-align: center;
}

.b2b-category-filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.b2b-category-filter li {
    margin: 0;
}

.b2b-category-filter a {
    display: block;
    padding: 8px 16px;
    background-color: var(--b2b-light-bg, #f8f9fa);
    color: var(--b2b-text-color, #333);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.b2b-category-filter a:hover,
.b2b-category-filter a.active {
    background-color: var(--b2b-primary-color, #007cba);
    color: var(--b2b-background-color, #ffffff);
    text-decoration: none;
}

/* Product Grid */
.b2b-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.b2b-product-item {
    background: var(--b2b-background-color, #ffffff);
    border: 1px solid var(--b2b-border-color, #e9ecef);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.b2b-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.b2b-product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.b2b-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.b2b-product-item:hover .b2b-product-image img {
    transform: scale(1.05);
}

.b2b-product-content {
    padding: 20px;
}

.b2b-product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.b2b-product-title a {
    color: var(--b2b-text-color, #333);
    text-decoration: none;
}

.b2b-product-title a:hover {
    color: var(--b2b-primary-color, #007cba);
    text-decoration: none;
}

.b2b-product-item-number {
    font-size: 0.9rem;
    color: var(--b2b-secondary-color, #666);
    margin-bottom: 10px;
    font-weight: 500;
}

.b2b-product-description {
    font-size: 0.9rem;
    color: var(--b2b-secondary-color, #666);
    line-height: 1.5;
    margin-bottom: 15px;
}

.b2b-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.b2b-product-categories {
    font-size: 0.8rem;
    color: var(--b2b-muted-color, #999);
}

.b2b-product-categories a {
    color: var(--b2b-primary-color, #007cba);
    text-decoration: none;
}

.b2b-product-categories a:hover {
    text-decoration: underline;
}

/* Pagination */
.b2b-pagination {
    text-align: center;
    margin-top: 40px;
}

.b2b-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.b2b-pagination .page-numbers:hover,
.b2b-pagination .page-numbers.current {
    background-color: #007cba;
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   Single Product Styles
   ========================================================================== */

.b2b-single-product {
    padding: 40px 0;
}

.b2b-product-header {
    margin-bottom: 40px;
}

.b2b-product-gallery {
    margin-bottom: 30px;
}

.b2b-product-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.b2b-product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.b2b-product-thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.b2b-product-thumbnail:hover,
.b2b-product-thumbnail.active {
    border-color: #007cba;
}

.b2b-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b2b-product-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.b2b-product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.b2b-product-meta-info {
    margin-bottom: 30px;
}

.b2b-meta-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 1rem;
}

.b2b-meta-label {
    font-weight: 600;
    min-width: 120px;
    color: #333;
}

.b2b-meta-value {
    color: #666;
}

.b2b-product-description {
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.b2b-product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Related Products */
.b2b-related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.b2b-related-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

/* ==========================================================================
   Category Archive Styles
   ========================================================================== */

.b2b-category-archive {
    padding: 40px 0;
}

.b2b-category-header {
    text-align: center;
    margin-bottom: 40px;
}

.b2b-category-banner {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.b2b-category-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.b2b-category-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.b2b-subcategories {
    margin-bottom: 40px;
}

.b2b-subcategories-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.b2b-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.b2b-subcategory-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.b2b-subcategory-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.b2b-subcategory-image {
    height: 120px;
    overflow: hidden;
}

.b2b-subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b2b-subcategory-content {
    padding: 15px;
}

.b2b-subcategory-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.b2b-subcategory-count {
    font-size: 0.9rem;
    color: #666;
}

/* ==========================================================================
   Breadcrumb Styles
   ========================================================================== */

.b2b-breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.b2b-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.b2b-breadcrumb li {
    margin: 0;
}

.b2b-breadcrumb li:not(:last-child)::after {
    margin: 0 8px;
    color: #999;
}

.b2b-breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

.b2b-breadcrumb a:hover {
    text-decoration: underline;
}

.b2b-breadcrumb .current {
    color: #666;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.b2b-contact-form-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.b2b-contact-form-container.horizontal {
    margin: 0 auto 30px;
}

.b2b-contact-form-container.vertical {
    margin: 0 auto 30px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.b2b-contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.b2b-contact-form-container.vertical .form-row {
    flex-direction: column;
    gap: 0;
}

.b2b-contact-form .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.b2b-contact-form .form-group.full-width {
    flex: 0 0 100%;
}

.b2b-contact-form .form-group.captcha-group {
    flex: 0 0 200px;
}

.b2b-contact-form .form-group.submit-group {
    flex: 0 0 auto;
    margin-bottom: 0;
    text-align: center;
}

.b2b-contact-form input,
.b2b-contact-form select,
.b2b-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.b2b-contact-form input:focus,
.b2b-contact-form select:focus,
.b2b-contact-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.b2b-contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.b2b-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Inquiry Page */
.b2b-inquiry-page {
    padding: 40px 0;
}

.inquiry-product-table {
    margin-bottom: 40px;
}

.inquiry-product-table h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.product-info-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-info-table th,
.product-info-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.product-info-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.product-info-table td img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}

/* ==========================================================================
   Carousel Styles
   ========================================================================== */

.b2b-category-carousel-container,
.b2b-product-carousel-container {
    margin: 40px 0;
    position: relative;
}

.category-slide,
.product-slide {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-slide:hover,
.product-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-image,
.product-image {
    height: 180px;
    overflow: hidden;
}

.category-image img,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-slide:hover .category-image img,
.product-slide:hover .product-image img {
    transform: scale(1.05);
}

.category-content,
.product-content {
    height: calc(100% - 180px);
    display: flex;
    flex-direction: column;
}

.category-title,
.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #ffffff;
}

.category-title a,
.product-title a {
    color: inherit;
    text-decoration: none;
}

.category-title a:hover,
.product-title a:hover {
    color: var(--b2b-primary-color, #007cba);
    text-decoration: none;
}

.category-description,
.product-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-item-number {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

.view-more-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #333 !important;
    background: rgba(255, 255, 255, 0.9);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: 600;
}

.swiper-pagination-bullet {
    background: var(--b2b-secondary-color, #6c757d);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .b2b-container {
        padding: 0 15px;
    }

    .b2b-row {
        margin: 0 -10px;
    }

    .b2b-col {
        padding: 0 10px;
    }

    .b2b-col-3,
    .b2b-col-4,
    .b2b-col-6,
    .b2b-col-8,
    .b2b-col-9 {
        flex: 0 0 100%;
    }

    .b2b-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .b2b-subcategory-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .b2b-archive-title,
    .b2b-category-title {
        font-size: 2rem;
    }

    .b2b-product-title {
        font-size: 1.6rem;
    }

    .b2b-contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .b2b-contact-form .form-group.captcha-group {
        flex: 1;
    }

    .b2b-product-actions {
        flex-direction: column;
    }

    .b2b-product-main-image {
        height: 250px;
    }

    .b2b-product-info {
        padding: 20px;
    }

    .b2b-contact-form-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .b2b-product-grid {
        grid-template-columns: 1fr;
    }

    .b2b-subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .b2b-archive-title,
    .b2b-category-title {
        font-size: 1.8rem;
    }

    .b2b-product-title {
        font-size: 1.4rem;
    }

    .b2b-category-filter ul {
        flex-direction: column;
        align-items: center;
    }

    .b2b-product-main-image {
        height: 200px;
    }

    .category-image,
    .product-image {
        height: 150px;
    }
}

/* ==========================================================================
   Category Page Styles
   ========================================================================== */

/* Category Banner */
.b2b-category-banner {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.banner-content .category-title {
    font-size: 3em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Breadcrumb */
.b2b-breadcrumb {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.b2b-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.b2b-breadcrumb .breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.b2b-breadcrumb .breadcrumb li {
    margin: 0;
}

.b2b-breadcrumb .breadcrumb a {
    color: #666;
    text-decoration: none;
}

.b2b-breadcrumb .breadcrumb a:hover {
    color: #007cba;
    text-decoration: underline;
}

.b2b-breadcrumb .breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
}

.b2b-breadcrumb .breadcrumb .current {
    color: #333;
    font-weight: bold;
}

/* Category Header */
.category-header {
    margin-bottom: 10px;
}

.category-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-custom-title {
    margin-bottom: 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
}

.category-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 15px;
}

.category-title {
    margin-bottom: 15px;
    color: #ffffff;
    display: none;
}

/* Contact Form Section */
.b2b-contact-form-section {
    background: #f0f8ff;
    padding: 40px 0;
    margin-bottom: 40px;
    position: relative;
}

.b2b-contact-form-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-us-bg-button {
    position: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-bottom: 40px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
    width: 166px;
    margin-bottom: -30px;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.contact-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.contact-form-field {
    flex: 1;
    min-width: 200px;
}

.contact-form-field input,
.contact-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background: #fafafa;
    height: 45px;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    border-color: #8BC34A;
    background: white;
    outline: none;
}

.contact-form-field input:not(:focus),
.contact-form-field textarea:not(:focus) {
    border-color: #e0e0e0;
    background: #fafafa;
}

.captcha-field {
    flex: 0 0 180px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.captcha-input {
    width: 80px;
    padding: 12px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background: #fafafa;
    height: 45px;
}

.captcha-input:focus {
    border-color: #8BC34A;
    background: white;
    outline: none;
}

.captcha-display {
    width: 50px;
    height: 45px;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.submit-button-field {
    flex: 0 0 auto;
}

.contact-submit-btn {
    background: linear-gradient(135deg, #8BC34A, #7CB342);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
    height: 45px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.4);
}

.contact-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
}

/* Content Layout */
.b2b-content-wrapper {
    display: flex;
    gap: 30px;
}

.b2b-content-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar */
.b2b-sidebar {
    flex: 0 0 250px;
}

/* Category styles moved to frontend.css for consistency */

/* Main Content */
.b2b-main-content {
    flex: 1;
    display: flex;
    gap: 30px;
}

/* Product Content Area */
.product-content-area {
    flex: 1;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.product-info h3 a {
    color: #333;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: var(--b2b-primary-color, #007cba);
}

.product-info h3 a:hover {
    color: #007cba;
}

.product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

/* Single Product Page Styles */
.b2b-product-single .b2b-product-banner {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.b2b-product-single .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Product Details */
.product-details {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.product-gallery {
    flex: 1;
}

.main-image {
    margin-bottom: 20px;
}

.main-product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.no-image-placeholder {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 8px;
    border: 1px solid #eee;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #007cba;
}

.gallery-thumb:hover {
    opacity: 1;
    border-color: #007cba;
}

/* Product Info */
.product-info {
    flex: 1;
}

.product-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 2.2em;
}

.product-short-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Social Share */
.social-share {
    margin-bottom: 25px;
}

.social-share h4 {
    margin-bottom: 10px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.email {
    background: #666;
}

/* New platforms & icon image size */
.share-btn .share-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.share-btn.x {
    background: #000;
}

.share-btn.pinterest {
    background: #e60023;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.product-actions .btn:hover {
    transform: translateY(-1px);
}

/* Product Content */
.product-content {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.product-main-content {
    flex: 1;
}

/* Content Tabs */
.content-tabs {
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.content-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.tab-link {
    display: block;
    padding: 15px 0;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-link.active {
    color: #007cba;
    border-bottom-color: #007cba;
    font-weight: bold;
}

.tab-link:hover {
    color: #007cba;
}

/* Tab Content */
.tab-content {
    margin-bottom: 40px;
}

.tab-content:not(.active) {
    display: none;
}

.product-description {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

/* Quote Form */
.quote-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.quote-form-wrapper h3 {
    margin-bottom: 20px;
    color: #333;
    display: none;
}

.product-quote-form {
    display: grid;
    gap: 20px;
}

.product-quote-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.product-quote-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.product-quote-form input,
.product-quote-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.product-quote-form textarea {
    resize: vertical;
}

.product-quote-form button {
    background: var(--b2b-primary-color, #007cba);
    color: var(--b2b-background-color, white);
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.product-quote-form button:hover {
    background: var(--b2b-primary-hover, #005a8b);
}

/* Contact Widget */
.contact-widget {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.contact-widget h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item span {
    color: #007cba;
    font-size: 18px;
}

.contact-item strong {
    display: block;
    color: #333;
    margin-bottom: 2px;
}

.contact-item a {
    color: #007cba;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-qr {
    text-align: center;
    margin-top: 20px;
}

.contact-qr img {
    max-width: 120px;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.contact-qr p {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #666;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
    font-size: 2rem !important;
}

/* Removed duplicate - keeping the one with media queries below */

@media (max-width: 1200px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Specifications Table Styles */
.specifications-table {
    margin-top: 20px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.specs-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.specs-table tr:hover {
    background-color: #f5f5f5;
}

.spec-name {
    font-weight: 500;
    color: #555;
    width: 40%;
}

.spec-value {
    color: #333;
}

@media (max-width: 768px) {

    .specs-table th,
    .specs-table td {
        padding: 8px 10px;
        font-size: 14px;
    }

    .spec-name {
        width: 35%;
    }
}

/* Responsive Design for Single Product */
@media (max-width: 999px) {
    .product-details {
        flex-direction: column;
    }

    .product-content {
        flex-direction: column-reverse;
    }

    .b2b-sidebar {
        flex: none;
        order: 2;
        margin-top: 30px;
    }

    .product-main-content {
        order: 1;
    }

    .content-tabs ul {
        flex-direction: column;
        gap: 0;
    }

    .product-actions {
        gap: 10px;
    }

    .product-actions .btn {
        flex-direction: column;
    }
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.category-shortcode-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   Single Product Page Styles
   ========================================================================== */

/* Single Product Banner */
.single-product-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.single-product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.single-product-banner-content {
    position: relative;
    z-index: 2;
}

.single-product-banner h1 {
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.single-breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
}

.single-breadcrumb-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-breadcrumb-item {
    color: #666;
}

.single-breadcrumb-item a {
    color: #007cba;
    text-decoration: none;
}

.single-breadcrumb-item a:hover {
    text-decoration: underline;
}

.single-breadcrumb-separator {
    color: #999;
    margin: 0 5px;
}

.single-product-details {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.single-product-gallery {
    flex: 1;
}

.single-main-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.single-no-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    margin-bottom: 20px;
}

.single-thumbnail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.single-gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.single-gallery-thumb:hover,
.single-gallery-thumb.active {
    border-color: #007cba;
}

.single-product-info {
    flex: 1;
}

.single-product-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
}

.single-product-meta {
    margin-bottom: 30px;
}

.single-meta-item {
    display: block;
    margin-bottom: 10px;
    color: #666;
}

.single-meta-label {
    font-weight: bold;
    color: #333;
}

.single-product-price {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
}

.single-social-share {
    margin-bottom: 30px;
}

.single-share-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.single-share-buttons {
    display: flex;
    gap: 10px;
}

.single-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.single-share-btn:hover {
    opacity: 0.8;
    color: white;
}

.single-share-btn.facebook {
    background: #1877f2;
}

.single-share-btn.twitter {
    background: #1da1f2;
}

.single-share-btn.linkedin {
    background: #0077b5;
}

.single-share-btn.whatsapp {
    background: #25d366;
}

.single-product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.single-action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.single-action-btn.primary {
    background: #007cba;
    color: white;
}

.single-action-btn.primary:hover {
    background: #005a87;
    color: white;
}

.single-action-btn.secondary {
    background: #6c757d;
    color: white;
}

.single-action-btn.secondary:hover {
    background: #545b62;
    color: white;
}

/* Product Main Content */
.product-main-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

/* Single Product Layout Fix: prevent card .product-content rules from affecting single page layout */
.b2b-product-single .product-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 30px;
    height: auto !important;
}

.b2b-product-single .b2b-sidebar {
    flex: 0 0 260px !important;
    order: 1 !important;
}

.b2b-product-single .product-main-content {
    flex: 1 1 auto !important;
    min-width: 0;
    order: 2 !important;
}

@media (max-width: 999px) {
    .b2b-product-single .product-content {
        flex-direction: column-reverse !important;
        gap: 20px;
    }

    .b2b-product-single .b2b-sidebar {
        flex: none !important;
        order: 2;
        margin-top: 20px;
    }

    .b2b-product-single .product-main-content {
        order: 1;
    }
}

.tab-navigation-border {
    border-bottom: 1px solid #eee;
}

.tab-navigation {
    display: flex;
    background: #f8f9fa;
}

/* 强制覆盖主题的圆角按钮样式 */
.product-main-content .tab-button,
.b2b-product-wrapper .tab-button,
.single-b2b-product .tab-button {
    flex: 1 !important;
    padding: 15px 20px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    color: #666 !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    font-size: 15px !important;
}

.product-main-content .tab-button.active,
.b2b-product-wrapper .tab-button.active,
.single-b2b-product .tab-button.active {
    color: var(--b2b-primary-color, #a60f17) !important;
    border-bottom-color: var(--b2b-primary-color, #a60f17) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.product-main-content .tab-button:hover,
.b2b-product-wrapper .tab-button:hover,
.single-b2b-product .tab-button:hover {
    color: var(--b2b-primary-color, #007cba) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
}

.tab-text {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.tab-empty {
    color: #999;
    font-style: italic;
}

/* Quote Form Styles */
.quote-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-textarea {
    resize: vertical;
}

.form-submit {
    background: var(--b2b-primary-color, #007cba) !important;
    color: var(--b2b-background-color, #ffffff) !important;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.form-submit:hover {
    background: var(--b2b-primary-hover, #005a87) !important;
}

/* Contact Widget Styles */
.contact-widget {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-widget-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.contact-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info-item {
    flex: 1;
    min-width: 200px;
}

.contact-label {
    color: #666;
    font-weight: bold;
}

.contact-link {
    color: #007cba;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-text {
    color: #333;
}

.wechat-qr-image {
    max-width: 100px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Contact Widget in Sidebar */
.contact-widget {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    color: #007cba;
    font-size: 18px;
}

.contact-qr {
    text-align: center;
    margin-top: 20px;
}

.qr-code-image {
    max-width: 120px;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.qr-code-text {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .single-product-details {
        flex-direction: column;
        gap: 20px;
    }

    .single-product-banner h1 {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .single-product-actions {
        flex-direction: column;
    }

    .single-action-btn {
        text-align: center;
        justify-content: center;
    }

    .tab-navigation {
        flex-direction: column;
    }

    .tab-button {
        flex: none;
    }

    .contact-info-grid {
        flex-direction: column;
    }

    .contact-info-item {
        min-width: auto;
    }

}
}

/* ==========================================================================
   Category Page Styles
   ========================================================================== */

.b2b-category-page {
    min-height: 100vh;
}

.b2b-category-banner {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.category-title {
    font-size: 2.5em;
    margin: 0;
    font-weight: bold;
}

.category-header {
    padding: 40px 0;
    background: #f8f9fa;
}

.category-custom-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #333;
}

.category-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
    margin: 0 auto;
}

.b2b-contact-form-section {
    background: #007cba;
    padding: 60px 0;
    position: relative;
}

.contact-us-bg-button {
    position: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-bottom: 40px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
    width: 166px;
    margin-bottom: -30px;
}

.contact-form-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.contact-form-field {
    flex: 1;
    min-width: 200px;
}

.contact-form-field input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.captcha-field {
    flex: 1;
    min-width: 200px;
}

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

.captcha-display {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
    min-width: 80px;
    text-align: center;
}

.submit-button-field {
    flex: 0 0 auto;
}

.contact-submit-btn {
    background: #28a745;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-submit-btn:hover {
    background: #218838;
}

.contact-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.contact-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Layout and product grid styles moved to frontend.css to avoid conflicts */

/* Product styles moved to frontend.css to avoid conflicts */

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products h3 {
    margin-bottom: 10px;
    color: #333;
}

.category-shortcode-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid var(--b2b-secondary-color, #6c757d);
    border-radius: 4px;
    color: var(--b2b-secondary-color, #6c757d);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrapper a:hover {
    background: var(--b2b-secondary-color, #6c757d);
    color: white;
}

.pagination-wrapper .current {
    background: var(--b2b-secondary-color, #6c757d);
    color: white;
    border-color: var(--b2b-secondary-color, #6c757d);
}

/* Enhanced Inquiry Page Styles */
.inquiry-form-section .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: white;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-wrapper input {
    flex: 1;
}

.captcha-wrapper #captcha-display {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
    min-width: 100px;
    text-align: center;
}

.captcha-refresh {
    background: #6c757d;
    color: white;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.captcha-refresh:hover {
    background: #5a6268;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .b2b-content-wrapper {
        flex-direction: column;
    }

    .b2b-main-content {
        flex-direction: column;
    }

    .b2b-sidebar {
        flex: none;
        order: 2;
    }

    .contact-form-row {
        flex-direction: column;
    }

    .contact-form-field,
    .captcha-field,
    .submit-button-field {
        flex: none;
        min-width: auto;
    }

    .category-title {
        font-size: 2em;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================================================
   Inquiry Page Styles
   ========================================================================== */

.b2b-inquiry-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.inquiry-header {
    background: #f8f9fa;
    padding: 40px 0;
    margin-bottom: 40px;
}

.inquiry-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.inquiry-header h1 {
    margin: 0;
    color: #333;
    text-align: center;
    font-size: 2.5em;
}

.inquiry-header p {
    margin: 10px 0 0 0;
    color: #666;
    text-align: center;
    font-size: 18px;
}

.inquiry-products {
    margin-bottom: 40px;
}

.inquiry-products h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 25px;
}

.products-table-wrapper {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table thead tr {
    background: #f8f9fa;
}

.products-table th {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #333;
}

.products-table th:last-child {
    text-align: center;
}

.products-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.products-table td:last-child {
    text-align: center;
}

.products-table tr:hover {
    background: #f8f9fa;
}

.product-image-cell {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #eee;
}

.product-image-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.product-code-cell {
    font-weight: bold;
    color: #333;
}

.product-name-link {
    color: #007cba;
    text-decoration: none;
    font-weight: bold;
}

.product-name-link:hover {
    text-decoration: underline;
}

.remove-product-btn {
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.remove-product-btn:hover {
    background: #c82333;
}

.no-products-cell {
    padding: 40px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.add-products-section {
    margin-top: 20px;
    text-align: center;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.inquiry-form-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 25px;
}

.form-wrapper {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 40px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-textarea {
    resize: vertical;
}

.form-file {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-help {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.captcha-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-container {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    min-width: 120px;
    text-align: center;
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
}

.captcha-refresh {
    background: #6c757d;
    color: white;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.captcha-refresh:hover {
    background: #5a6268;
}

.form-submit-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.submit-inquiry-btn {
    background: #007cba;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s;
}

.submit-inquiry-btn:hover {
    background: #0056b3;
}

/* ==========================================================================
   Archive B2B Product Styles
   ========================================================================== */

.b2b-product-archive .b2b-product-banner {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-product-archive .banner-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.5em;
    margin: 0;
}

.b2b-product-archive .b2b-breadcrumb {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.b2b-product-archive .breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.b2b-product-archive .breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.b2b-product-archive .breadcrumb li {
    margin-right: 10px;
}

.b2b-product-archive .breadcrumb li:nth-child(2) {
    margin: 0 10px;
    color: #ccc;
}

.b2b-product-archive .breadcrumb li:last-child {
    color: #333;
    font-weight: bold;
}

.b2b-product-archive .breadcrumb a {
    color: #666;
    text-decoration: none;
}

.b2b-product-archive .b2b-contact-form-section {
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 40px;
}

.b2b-product-archive .contact-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.b2b-product-archive .contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.b2b-product-archive .contact-form-wrapper h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.b2b-product-archive .b2b-contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.b2b-product-archive .contact-form-field {
    flex: 1;
    min-width: 200px;
}

.b2b-product-archive .contact-form-field.message-field {
    flex: 2;
    min-width: 300px;
}

.b2b-product-archive .contact-form-field input,
.b2b-product-archive .contact-form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.b2b-product-archive .contact-form-field textarea {
    resize: vertical;
}

.b2b-product-archive .contact-form-submit button {
    background: #007cba;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.b2b-product-archive .main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Archive styles moved to frontend.css to avoid conflicts */

.b2b-product-archive .product-no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.b2b-product-archive .product-info {
    padding: 20px;
}

.b2b-product-archive .product-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.b2b-product-archive .product-info h3 a {
    color: #333;
    text-decoration: none;
}

.b2b-product-archive .product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.b2b-product-archive .product-actions {
    display: flex;
    gap: 10px;
}

.b2b-product-archive .product-actions .btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.b2b-product-archive .product-actions .btn-primary {
    background: var(--b2b-primary-color) !important;
    color: white !important;
}

.b2b-product-archive .product-actions .btn-secondary {
    background: var(--b2b-secondary-color) !important;
    color: white !important;
}

.b2b-product-archive .product-actions .btn-primary:hover {
    background: var(--b2b-primary-hover) !important;
}

.b2b-product-archive .product-actions .btn-secondary:hover {
    background: var(--b2b-secondary-hover) !important;
}

.b2b-product-archive .pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.b2b-product-archive .no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.b2b-product-archive .category-list a:hover {
    background: #e9ecef !important;
}

.b2b-product-archive .btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .b2b-floating-buttons,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }

    .b2b-product-item,
    .category-slide,
    .product-slide {
        break-inside: avoid;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .inquiry-form-row {
        flex-direction: column;
    }

    .inquiry-form-group {
        flex: none !important;
        min-width: auto !important;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-input {
        margin-top: 10px;
    }

    .b2b-product-archive .b2b-content-wrapper {
        flex-direction: column;
    }

    .b2b-product-archive .b2b-sidebar {
        flex: none;
        order: 2;
    }

    .b2b-product-archive .b2b-contact-form {
        flex-direction: column;
    }

    .b2b-product-archive .contact-form-field {
        flex: none !important;
        min-width: auto !important;
    }
}

/* ==========================================================================
   Archive B2B Product Additional Styles
   ========================================================================== */

/* Load More and Loading Spinner */
.load-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

.loading-spinner {
    margin-top: 15px;
    color: #6c757d;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* No Products Found */
.no-products-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 30px 0;
}

.no-products-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-products-content i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 20px;
    display: block;
}

.no-products-content h3 {
    color: #495057;
    margin-bottom: 15px;
}

.no-products-content p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Inquiry Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.modal-body {
    padding: 30px;
}

/* Product Item Styles */
.product-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-item .product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-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-item:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.product-categories {
    margin-bottom: 10px;
}

.category-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    margin-right: 5px;
    margin-bottom: 5px;
}

.category-tag:hover {
    background: #007bff;
    color: white;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--b2b-primary-color, #007cba);
}

.product-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-meta {
    margin-bottom: 15px;
}

.meta-item {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
}

.meta-item.price {
    color: #28a745;
    font-weight: 600;
}

.meta-item.status.in-stock {
    color: #28a745;
}

.meta-item.status.out-of-stock {
    color: #dc3545;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Responsive Design for Archive B2B Product */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

/* Page Inquiry Styles */
.product-image-cell {
    width: 80px;
    padding: 10px;
}

.product-image-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.product-code-cell {
    font-family: monospace;
    font-size: 14px;
    color: #666;
}

.product-name-cell {
    font-weight: bold;
}

.product-name-link {
    color: #007cba;
    text-decoration: none;
}

.product-name-link:hover {
    text-decoration: underline;
}

.product-action-cell {
    text-align: center;
}

.no-products-cell {
    padding: 40px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Inquiry Form Button Hover Effects */
.btn:hover,
.submit-inquiry-btn:hover,
.remove-product-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Table Row Hover Effect */
.products-table tr:hover {
    background-color: #f8f9fa;
}

/* Single B2B Product Styles */
.b2b-product-banner[data-bg-image] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    position: relative;
}

.product-content {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.b2b-sidebar {
    flex: 0 0 250px;
}


/* Category styles moved to frontend.css for consistency */

.product-main-content {
    flex: 1;
}

.tab-content {
    margin-bottom: 40px;
    min-height: 220px;
}

.tab-content.hidden {
    display: none;
}

.product-description {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.product-specifications {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.no-specifications {
    color: #999;
    font-style: italic;
}

.quote-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.tab-title {
    margin-bottom: 20px;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-textarea {
    resize: vertical;
}

.form-submit {
    background: #007cba;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.related-products {
    margin-top: 60px;
}

.related-products-title {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.related-products .product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.related-products .product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-products .product-no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.related-products .product-info {
    padding: 20px;
}

.related-products .product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.related-products .product-title a {
    color: #333;
    text-decoration: none;
}

.related-products .product-title a:hover {
    color: var(--b2b-primary-color, #007cba);
}

.related-products .product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-products .product-actions {
    display: flex;
    gap: 10px;
}

.related-products .btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.related-products .btn-primary {
    background: #007cba;
    color: white;
}

.related-products .btn-secondary {
    background: #6c757d;
    color: white;
}

/* Single Product Hover Effects */
.gallery-thumb:hover {
    opacity: 1 !important;
    border-color: #007cba !important;
}

.gallery-thumb.active {
    opacity: 1 !important;
    border-color: #007cba !important;
}

.tab-link:hover {
    color: #007cba !important;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive Design for Single Product and Inquiry */
@media (max-width: 999px) {
    .product-details {
        flex-direction: column;
    }

    .product-content {
        flex-direction: column-reverse;
    }

    .b2b-sidebar {
        flex: none;
        order: 2;
        margin-top: 30px;
    }

    .product-main-content {
        order: 1;
    }

    .content-tabs ul {
        flex-direction: column;
        gap: 0;
    }

    .product-actions {
        gap: 10px;
    }

    .product-actions>div {
        flex-direction: column;
    }

    .inquiry-form {
        grid-template-columns: 1fr;
    }

    .products-table {
        font-size: 14px;
    }

    .products-table td {
        padding: 8px;
    }
}

/* Desktop layout styles moved to frontend.css for better responsive design */
/* ====
======================================================================
   Banner Dynamic Styles - Remove Inline Styles
   ========================================================================== */

/* Ensure all banners have consistent height */
.b2b-category-banner {
    height: 500px !important;
}

/* All Products Banner */
.b2b-all-products-banner {
    height: 500px !important;
}

/* Taxonomy Banner */
.b2b-taxonomy-banner {
    height: 500px !important;
}