/* Catalogue Dehon - Frontend Styles */
/* Plugin autonome - indépendant du thème actif */

/* ============================================
   RESET THEME OVERRIDES
   Force le plugin à occuper toute la largeur
   quel que soit le thème (Astra, custom, etc.)
   ============================================ */

body.b2b-product-page {
    background-color: hsl(0 0% 96%) !important;
}

body.b2b-product-page .ast-article-single:not(.ast-related-post),
body.b2b-product-page .error-404,
body.b2b-product-page .no-results,
body.b2b-product-page .ast-author-meta,
body.b2b-product-page .related-posts-title-wrapper,
body.b2b-product-page .comments-count-wrapper,
body.b2b-product-page .comments-area,
body.b2b-product-page .ast-archive-description,
body.b2b-product-page .site-content {
    background-color: hsl(0 0% 96%) !important;
}

body.b2b-product-page #primary,
body.b2b-product-page #main,
body.b2b-product-page .site-main,
body.b2b-product-page .content-area,
body.b2b-product-page .site-content,
body.b2b-product-page #content,
.b2b-archive-main,
.b2b-product-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    float: none !important;
    box-sizing: border-box;
    background: transparent !important;
}

body.b2b-product-page .site-content > *:not(.b2b-archive-main):not(.b2b-product-main) {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.b2b-product-page aside#secondary,
body.b2b-product-page .widget-area,
body.b2b-product-page .sidebar {
    display: none !important;
}

/* ============================================
   CATALOG HERO SECTION
   ============================================ */

.b2b-catalog-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #03171D;
    background-size: cover;
    background-position: center;
    padding-top: 2.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.admin-bar .b2b-catalog-hero {
    margin-top: 0;
}

.b2b-catalog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, transparent 50%, #010D10);
}

.b2b-catalog-hero-breadcrumb {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2.5rem 0.75rem;
}

.b2b-catalog-hero-breadcrumb ul,
.b2b-catalog-hero-breadcrumb ol {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    counter-reset: none !important;
}

.b2b-catalog-hero-breadcrumb li {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    list-style: none !important;
    counter-increment: none !important;
}

.b2b-catalog-hero-breadcrumb li::before,
.b2b-catalog-hero-breadcrumb li::marker {
    content: none !important;
    display: none !important;
}

.b2b-catalog-hero-breadcrumb a {
    font-size: 0.75rem;
    font-weight: 400;
    color: #F8F9F9;
    text-decoration: none;
}

.b2b-catalog-hero-breadcrumb a:hover {
    text-decoration: underline;
}

.b2b-catalog-hero-breadcrumb span {
    font-size: 0.75rem;
    font-weight: 400;
    color: #fff;
}

.b2b-breadcrumb-chevron {
    width: 0.75rem;
    height: 0.75rem;
    color: #F8F9F9;
}

.b2b-catalog-hero-header {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 2.5rem 2.5rem;
}

.b2b-catalog-hero-icon {
    display: none;
}

.b2b-catalog-hero-icon svg {
    width: 4rem;
    height: 4rem;
}

.b2b-catalog-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
}

.b2b-catalog-hero-text h1 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin: 0;
}

.b2b-catalog-hero-text p {
    font-size: 0.875rem;
    font-weight: 400;
    color: #F8F9F9;
    line-height: 1.5rem;
    margin: 0;
}

@media (min-width: 768px) {
    .b2b-catalog-hero-icon {
        display: block;
    }

    .b2b-catalog-hero-text h1 {
        font-size: 3.5rem;
        line-height: 4rem;
    }

    .b2b-catalog-hero-text p {
        font-size: 1rem;
    }
}

/* Products Grid */
.b2b-products-grid {
    display: grid;
    gap: 30px;
}

.b2b-products-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.b2b-products-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.b2b-products-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
    .b2b-products-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .b2b-products-grid.columns-4,
    .b2b-products-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .b2b-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card - Maquette Style */
.b2b-product-card {
    text-align: left;
    padding: 0;
    border: 1px solid #E1E3E3;
    background: #fff;
    overflow: hidden;
    display: inline-flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.b2b-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.b2b-product-card .product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.b2b-product-card .product-image {
    position: relative;
    background: #F8F9F9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem 1.5rem;
    min-height: 280px;
}

.b2b-product-card .product-image img {
    max-width: 220px;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s;
}

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

.b2b-product-card .no-image {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F9F9;
}

.b2b-product-card .no-image svg,
.b2b-product-card .no-image .dashicons {
    width: 64px;
    height: 64px;
    font-size: 64px;
    color: #A1A7A9;
}

.b2b-product-card .product-title {
    font-size: 1.25rem;
    margin: 0;
    padding: 0.5rem 0.75rem 0;
    font-weight: 700;
    color: #03171D;
    line-height: 1.75rem;
    flex: 1;
    transition: color 0.2s;
}

.b2b-product-card:hover .product-title {
    color: #C44717;
}

.b2b-product-card .product-conditionnements {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem 0.75rem;
    margin: 0 0.75rem 0;
    border-top: 1px solid #E1E3E3;
    font-size: 0.75rem;
    color: #4C565A;
    line-height: 1;
}

.b2b-product-card .conditionnement-item {
    white-space: nowrap;
}

.b2b-product-card .conditionnement-item.first {
    font-weight: 700;
    text-decoration: underline;
    color: #203237;
}

.b2b-product-card .conditionnement-item + .conditionnement-item::before {
    content: '\00B7';
    display: inline;
    opacity: 0.4;
    color: #4C565A;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Product Badges */
.b2b-badge {
    position: absolute;
    z-index: 5;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.b2b-badge-new {
    top: 0.75rem;
    left: 0.75rem;
    background-color: #C44717;
    color: #fff;
}

.b2b-badge-concentre {
    bottom: 0.5rem;
    right: 0.5rem;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background-color: #E3C000;
    color: #03171D;
    border: 1px solid #E3C000;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
}

/* Single Product - Hide theme-generated elements */
.single-b2b_product .entry-header,
.single-b2b_product .ast-single-post-order,
.single-b2b_product .entry-title:not(.product-title),
.single-b2b_product .entry-meta,
.single-b2b_product .posted-on,
.single-b2b_product .byline,
.single-b2b_product .comments-link,
.single-b2b_product .cat-links,
.single-b2b_product .tags-links,
.single-b2b_product .post-navigation,
.single-b2b_product .author-info,
.single-b2b_product header.entry-header,
.single-b2b_product .ast-header-entry-meta,
.single-b2b_product .ast-single-post-header,
body.single-b2b_product .entry-header,
body.b2b-product-page .entry-header,
body.b2b-product-page .entry-title:not(.product-title),
body.b2b-product-page .entry-meta,
body.b2b-product-page .posted-on,
body.b2b-product-page .byline,
body.b2b-product-page .comments-link {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Single Product */
.b2b-single-product {
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.b2b-product-layout {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 89px !important;
    /* padding: 40px 80px !important; */
    max-width: 1440px !important;
    margin: 0 auto !important;
}

@media (max-width: 1024px) {
    .b2b-product-layout {
        gap: 40px !important;
        padding: 30px 30px !important;
    }
}

@media (max-width: 768px) {
    .b2b-product-layout {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 30px !important;
    }
}

/* Gallery - Maquette: 720px fixed, 640px height */
.b2b-product-gallery {
    flex: 0 0 720px !important;
    max-width: 720px !important;
    width: 720px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

@media (max-width: 1200px) {
    .b2b-product-gallery {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: auto !important;
    }
}

@media (max-width: 768px) {
    .b2b-product-gallery {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

.b2b-product-gallery .b2b-badge-new {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 2 !important;
    background: #fff !important;
    border: 1px solid #E1E3E3 !important;
    padding: 4px 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #03171D !important;
    letter-spacing: 0 !important;
    line-height: 1.75rem !important;
}

.b2b-product-gallery .main-image {
    position: relative !important;
    width: 100% !important;
    height: 640px !important;
    padding: 0.25rem 1.5rem !important;
    background: #F8F9F9 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.625rem !important;
    overflow: visible !important;
    border-radius: 0 !important;
}

.b2b-product-gallery .main-image img {
    width: auto !important;
    height: auto !important;
    max-width: 550px !important;
    max-height: 100% !important;
    object-fit: contain !important;
    mix-blend-mode: darken !important;
    -webkit-box-shadow: 0 0 0 0 !important;
    
}

.b2b-product-gallery .main-image.no-image {
    background: #F8F9F9 !important;
}

.b2b-product-gallery .main-image.no-image .placeholder-icon {
    font-size: 80px !important;
    color: #ccc !important;
}

/* Gallery navigation arrows */
.b2b-product-gallery .gallery-nav {
    display: none !important;
}

.b2b-product-gallery.has-gallery .gallery-nav {
    position: absolute !important;
    left: 1rem !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.b2b-product-gallery .gallery-prev,
.b2b-product-gallery .gallery-next {
    padding: 0.25rem !important;
    background: #F8F9F9 !important;
    border: 1px solid #A1A7A9 !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    color: #4C565A !important;
    transition: all 0.2s ease !important;
}

.b2b-product-gallery .gallery-prev svg,
.b2b-product-gallery .gallery-next svg {
    width: 32px !important;
    height: 32px !important;
    color: #4C565A !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    fill: none !important;
}

.b2b-product-gallery .gallery-prev:hover:not(:disabled),
.b2b-product-gallery .gallery-next:hover:not(:disabled) {
    border-color: #03171D !important;
    background: white !important;
}

.b2b-product-gallery .gallery-prev:disabled,
.b2b-product-gallery .gallery-next:disabled {
    opacity: 0.1 !important;
    cursor: default !important;
    background: #E1E3E3 !important;
    border-color: #6F797D !important;
}

.b2b-product-gallery .gallery-prev:disabled svg,
.b2b-product-gallery .gallery-next:disabled svg {
    color: #8A9295 !important;
}

/* Thumbnail strip */
.b2b-product-gallery .gallery-thumbnails {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.b2b-product-gallery .thumb-strip {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.b2b-product-gallery .thumb-strip::-webkit-scrollbar {
    display: none !important;
}

.b2b-product-gallery .thumb-btn {
    flex-shrink: 0 !important;
    width: 140px !important;
    height: 140px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border: 1px solid #E1E3E3 !important;
    background: #fff !important;
    cursor: pointer !important;
    padding: 8px !important;
    transition: border-color 0.2s !important;
}

.b2b-product-gallery .thumb-btn.active {
    border: 2px solid #03171D !important;
}

.b2b-product-gallery .thumb-btn:hover {
    border-color: #A1A7A9 !important;
}

.b2b-product-gallery .thumb-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.b2b-product-gallery .thumb-nav-btn {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 9999px !important;
    background: #F8F9F9 !important;
    border: 1px solid #A1A7A9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #4C565A !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
}

.b2b-product-gallery .thumb-nav-btn svg {
    width: 16px !important;
    height: 16px !important;
    color: #4C565A !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    fill: none !important;
}

.b2b-product-gallery .thumb-nav-btn:hover:not(:disabled) {
    border-color: #03171D !important;
    background: white !important;
}

.b2b-product-gallery .thumb-nav-btn:disabled {
    opacity: 0.1 !important;
    cursor: default !important;
    border-color: #6F797D !important;
    background: #E1E3E3 !important;
}

/* Product Summary - Right column */
.b2b-product-summary {
    flex: 1 !important;
    max-width: 506px !important;
    min-width: 0 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 32px !important;
}

.b2b-summary-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Breadcrumb - inside summary */
.b2b-product-summary .b2b-breadcrumb {
    padding: 24px 0 12px !important;
    margin: 0 !important;
}

.b2b-product-summary .b2b-breadcrumb ul {
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

.b2b-product-summary .b2b-breadcrumb li {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.75rem !important;
    color: #203237 !important;
}

.b2b-product-summary .b2b-breadcrumb li:not(:last-child)::after {
    content: '' !important;
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23203237' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    margin: 0 !important;
}

.b2b-product-summary .b2b-breadcrumb li.current {
    font-weight: 700 !important;
    color: #03171D !important;
}

.b2b-product-summary .b2b-breadcrumb a {
    color: #203237 !important;
    text-decoration: none !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
}

.b2b-product-summary .b2b-breadcrumb a:hover {
    text-decoration: underline !important;
}

/* Title - Maquette: 56px/64px bold */
.b2b-product-summary h1.product-title,
.b2b-single-product .b2b-product-summary .product-title,
h1.product-title {
    font-size: 56px !important;
    font-weight: 700 !important;
    line-height: 64px !important;
    margin: 0 !important;
    color: #03171D !important;
    font-family: inherit !important;
    letter-spacing: 0 !important;
    padding: 0 !important;
    border: none !important;
    text-transform: none !important;
    min-width: 300px;
      width: 0px;
}

@media (max-width: 1024px) {
    .b2b-product-summary h1.product-title,
    .b2b-single-product .b2b-product-summary .product-title,
    h1.product-title {
        font-size: 36px !important;
        line-height: 44px !important;
    }
}

@media (max-width: 768px) {
    .b2b-product-summary h1.product-title,
    .b2b-single-product .b2b-product-summary .product-title,
    h1.product-title {
        font-size: 28px !important;
        line-height: 36px !important;
    }
}

.b2b-product-summary .product-short-description {
    margin: 0 !important;
    color: #4C565A !important;
    line-height: 1.6 !important;
    font-size: 0.875rem !important;
}

/* Variations Form */
.b2b-variations-form {
    margin: 0 !important;
}

/* Variation Buttons - Maquette SMB Auto */
.b2b-variations-form .variation-row {
    margin-bottom: 20px !important;
}

.b2b-variations-form .variation-label {
    display: block !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: #6b7b82 !important;
    margin-bottom: 10px !important;
    text-transform: none !important;
}

.b2b-variations-form .variation-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.var-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: 1px solid #2F3A3F !important;
    background: #fff !important;
    color: #03171D !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 0px !important;
    position: relative !important;
    line-height: 1.5 !important;
}

.var-btn-icon {
    padding: 4px 8px !important;
    min-height: 48px !important;
    min-width: 28px !important;
}

.var-btn-text {
    padding: 8px 16px !important;
    min-height: 48px !important;
}

.var-btn:hover {
    background: #f0f2f3 !important;
    border-color: #203237 !important;
}

.var-btn.selected {
    background: #03171D !important;
    color: #fff !important;
    border-color: #03171D !important;
}

.var-btn.selected .var-btn-svg svg {
    fill: #fff !important;
    color: #fff !important;
}

.var-btn.selected .var-btn-svg .var-icon-img {
    filter: brightness(0) invert(1) !important;
}

.var-btn.disabled,
.var-btn:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

.var-btn-svg {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.var-btn-svg svg {
    fill: #03171D !important;
    color: #03171D !important;
    width: auto !important;
    height: 28px !important;
}

.var-btn-svg .var-icon-img {
    width: auto !important;
    height: 28px !important;
    object-fit: contain !important;
    display: block !important;
}

.var-btn-label {
    white-space: nowrap !important;
}

.b2b-conditioning-info {
    margin-top: 12px !important;
    font-size: 0.9rem !important;
    color: #203237 !important;
    padding: 0 !important;
}

.b2b-conditioning-info strong {
    font-weight: 700 !important;
}

/* Add to Cart Form - Maquette: orange #C44717, h-56px, text-24px */
.b2b-add-to-cart-form {
    display: flex !important;
    gap: 12px !important;
    margin: 0 !important;
    align-items: stretch !important;
}

.b2b-add-to-cart-form .quantity-field {
    width: 56px !important;
    flex-shrink: 0 !important;
}

.b2b-add-to-cart-form .qty-input {
    width: 100% !important;
    height: 56px !important;
    padding: 0 !important;
    border: 1px solid #2F3A3F !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #03171D !important;
    background: #fff !important;
}

.b2b-add-to-cart-form .add-to-cart-btn {
    /* flex: 1 !important; */
    max-width: none !important;
    height: 56px !important;
    padding: 0 24px !important;
    background: #C44717 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.b2b-add-to-cart-form .add-to-cart-btn:hover {
    background: #a03a10 !important;
}

.b2b-add-to-cart-form .add-to-cart-btn.btn-incomplete {
    background: #C44717 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.b2b-add-to-cart-form .add-to-cart-btn.btn-incomplete:hover {
    background: #C44717 !important;
}

/* Product Documents */
.b2b-product-documents {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
}

.b2b-documents-title {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #4C565A !important;
    line-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.b2b-documents-list {
    display: flex !important;
    flex-direction: column !important;
    border-top: 1px solid #E1E3E3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.b2b-doc-item {
    padding: 16px 0 !important;
    border-bottom: 1px solid #E1E3E3 !important;
}

.b2b-doc-item.b2b-doc-hidden {
    display: none !important;
}

.b2b-doc-link {
    display: inline-flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}

.b2b-doc-link span {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2F3A3F !important;
    line-height: 1.4 !important;
}

.b2b-doc-link:hover span {
    color: #03171D !important;
}

.b2b-doc-icon {
    flex-shrink: 0 !important;
    color: #4C565A !important;
    width: 24px !important;
    height: 24px !important;
}

.b2b-docs-voir-plus {
    display: inline-block !important;
    margin-top: 4px !important;
    color: #c44b1a !important;
    font-size: 14px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.b2b-docs-voir-plus:hover {
    text-decoration: underline !important;
}

/* Product Meta */
.b2b-product-summary .product-meta {
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9em;
}

.b2b-product-summary .product-meta a {
    color: #333;
}

/* Product Tabs - Custom tabs with accordion */
.b2b-product-tabs {
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: hsl(0 0% 96%) !important;
    padding: 60px 80px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    width: auto !important;
}

.b2b-tabs-nav-wrapper {
    max-width: 1024px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-bottom: 1px solid #E1E3E3 !important;
}

.b2b-tabs-nav-front {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding-left: 109px !important;
    gap: 0 !important;
}

.b2b-tabs-nav-front li {
    padding: 12px 24px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6B7280 !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -1px !important;
    transition: color 0.2s, border-color 0.2s !important;
    white-space: nowrap !important;
    background: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.b2b-tabs-nav-front li:hover {
    color: #2F3A3F !important;
}

.b2b-tabs-nav-front li.active {
    color: #2F3A3F !important;
    font-weight: 600 !important;
    border-bottom-color: #2F3A3F !important;
}

.b2b-tabs-content-front {
    max-width: 1024px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.b2b-tab-panel-front {
    display: none !important;
}

.b2b-tab-panel-front.active {
    display: block !important;
}

/* Accordion */
.b2b-accordion {
    margin: 0 !important;
    padding: 0 !important;
}

.b2b-accordion-row {
    border-bottom: 1px solid #E1E3E3 !important;
}

.b2b-accordion-trigger {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 20px 0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    text-align: left !important;
    outline: none !important;
    box-shadow: none !important;
}

.b2b-accordion-label {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: rgb(3, 23, 29) !important;
    line-height: 2rem !important;
    text-align: left !important;
}

.b2b-accordion-icon {
    font-size: 22px !important;
    color: #6B7280 !important;
    font-weight: 300 !important;
    flex-shrink: 0 !important;
    width: 24px !important;
    text-align: center !important;
    line-height: 1 !important;
}

.b2b-accordion-content {
    max-height: 0;
    overflow: hidden !important;
    transition: max-height 0.35s ease-out !important;
}

.b2b-accordion-inner {
    padding: 0 0 24px 0 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #4B5563 !important;
}

.b2b-accordion-inner p {
    margin: 0 0 12px 0 !important;
}

.b2b-accordion-inner table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    margin: 0 !important;
    font-size: 15px !important;
}

.b2b-accordion-inner table tr {
    border-bottom: 1px solid #E1E3E3 !important;
}

.b2b-accordion-inner table tr:last-child {
    border-bottom: none !important;
}

.b2b-accordion-inner table td,
.b2b-accordion-inner table th {
    padding: 16px 20px !important;
    border: none !important;
    vertical-align: top !important;
    line-height: 1.6 !important;
    color: #2F3A3F !important;
    background: transparent !important;
}

.b2b-accordion-inner table td:first-child,
.b2b-accordion-inner table th:first-child {
    font-weight: 700 !important;
    color: #1a2a3a !important;
    white-space: nowrap !important;
    width: 220px !important;
}

.b2b-accordion-inner table tr:nth-child(even) {
    background-color: #F7F8F8 !important;
}

.b2b-accordion-inner table tr:nth-child(odd) {
    background-color: #FFFFFF !important;
}

.b2b-accordion-inner ul,
.b2b-accordion-inner ol {
    margin: 0 0 12px 20px !important;
    padding: 0 !important;
}

.b2b-accordion-inner li {
    margin-bottom: 4px !important;
}

.b2b-accordion-inner strong {
    color: #2F3A3F !important;
}

/* Product CTA Banner - Maquette: max-w-1024px, border, bg-gray, flex-row */
.b2b-product-cta {
    display: flex !important;
    justify-content: center !important;
    padding: 0 80px !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
}

.b2b-cta-inner {
    max-width: 1024px !important;
    width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: hsl(0 0% 94%) !important;
    border: 1px solid #E1E3E3 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}

.b2b-cta-image {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
}

.b2b-cta-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.b2b-cta-content {
    flex: 1 !important;
    padding: 2.5rem 2.5rem 2.5rem 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.b2b-cta-title {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    color: #03171D !important;
    line-height: 2.5rem !important;
    margin: 0 0 1rem 0 !important;
    letter-spacing: -0.025em !important;
}

.b2b-cta-text {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    color: #4C565A !important;
    margin: 0 0 1.5rem 0 !important;
}

.b2b-cta-button {
    display: inline-block !important;
    background: #C44717 !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 14px 32px !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
    border-radius: 0 !important;
    align-self: flex-start !important;
}

.b2b-cta-button:hover {
    background: #a03a10 !important;
    color: #fff !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .b2b-product-cta {
        padding: 0 20px !important;
    }
    .b2b-cta-inner {
        flex-direction: column !important;
    }
    .b2b-cta-image {
        flex: none !important;
        max-width: 100% !important;
    }
    .b2b-cta-content {
        padding: 2rem !important;
        text-align: center !important;
    }
    .b2b-cta-button {
        align-self: center !important;
    }
}

.product-meta{
    display: none !important;
}
/* Section spacing - 80px gap between tabs, CTA, similar products */
.b2b-single-product > .b2b-product-tabs,
.b2b-single-product > .b2b-product-cta,
.b2b-single-product > .dehon-related-products {
    margin-top: 80px !important;
}

@media (max-width: 768px) {
    .b2b-single-product > .b2b-product-tabs,
    .b2b-single-product > .b2b-product-cta,
    .b2b-single-product > .dehon-related-products {
        margin-top: 40px !important;
    }
    .b2b-product-tabs {
        padding: 40px 20px !important;
    }
}

/* Produits similaires - Carousel */
/* Similar products carousel styles are now inline in single-product.php template */

/* Pagination */
.navigation.pagination {
    margin-top: 30px;
    text-align: center;
}

.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.navigation.pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.navigation.pagination .page-numbers.current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* No products message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Product SKU and EAN */
.b2b-product-card .product-sku {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 5px;
}

/* Product Refs - Maquette: 16px semibold #4C565A */
.b2b-product-summary .product-refs {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px 24px !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.b2b-product-summary .product-ref-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.b2b-product-summary .product-refs .ref-label,
.b2b-product-summary .product-refs .ean-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #4C565A !important;
}

.b2b-product-summary .product-refs .ref-value,
.b2b-product-summary .product-refs .ean-value {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #4C565A !important;
}

.b2b-product-summary .product-ref-conditioning {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #4C565A !important;
}

.b2b-product-summary .conditioning-link {
    color: #4C565A !important;
    text-decoration: underline !important;
    font-style: normal !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    margin-left: 4px !important;
}

.b2b-product-summary .conditioning-link:hover {
    color: #03171D !important;
}

/* Description List - orange checkmarks #F26522 (maquette) */
.b2b-description-list {
    margin: 0 !important;
}

.b2b-description-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.b2b-description-list li {
    display: inline-flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    align-self: stretch !important;
    width: 100% !important;
    padding: 6px 0 !important;
    color: #203237 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5rem !important;
    font-family: inherit !important;
}

.b2b-description-list li.b2b-desc-hidden {
    display: none !important;
}

.b2b-description-list .b2b-check-icon {
    flex-shrink: 0 !important;
    margin-top: 3px !important;
    color: #F26522 !important;
    stroke: #F26522 !important;
    width: 18px !important;
    height: 18px !important;
}

.b2b-description-list li span {
    flex: 1 !important;
    color: #203237 !important;
}

.b2b-voir-plus {
    display: inline-block !important;
    margin-top: 4px !important;
    color: #203237 !important;
    font-size: 0.9rem !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-style: italic !important;
}

.b2b-voir-plus:hover {
    color: #c44b1a !important;
}

/* ========================================
   CART PAGE STYLES - Dehon Style
   ======================================== */

.b2b-cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.b2b-cart-page .cart-title {
    font-size: 2.5em;
    font-weight: 400;
    margin: 0 0 40px;
    font-family: inherit;
    letter-spacing: -0.02em;
}

.b2b-cart-page .empty-cart {
    text-align: center;
    padding: 60px 40px;
    color: #666;
    font-size: 1.1em;
    background: #fafafa;
    border: 1px solid #e5e5e5;
}

.b2b-cart-page .continue-shopping {
    display: inline-block;
    padding: 14px 30px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    margin-top: 25px;
    font-size: 0.9em;
}

.b2b-cart-page .continue-shopping:hover {
    background: #333;
}

/* Cart Header */
.b2b-cart-header {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

/* Cart Layout */
.b2b-cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .b2b-cart-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Cart Items */
.b2b-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 25px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    align-items: start;
}

.cart-item:first-child {
    border-top: 1px solid #e5e5e5;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 15px;
    }
}

.cart-item .item-image {
    width: 80px;
    height: 80px;
    background: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
}

.cart-item .item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item .item-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cart-item .item-image .no-image .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #ccc;
}

.cart-item .item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cart-item .item-header {
    margin: 0;
}

.cart-item .item-title {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
}

.cart-item .item-title a {
    color: #333;
    text-decoration: none;
}

.cart-item .item-title a:hover {
    color: #e67e22;
}

.cart-item .item-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
}

.cart-item .attribute-inline {
    display: inline-flex;
    gap: 4px;
    white-space: nowrap;
}

.cart-item .attr-name {
    color: #888;
}

.cart-item .attr-value {
    font-weight: 500;
    color: #333;
}

.cart-item .item-refs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85em;
}

.cart-item .item-sku,
.cart-item .item-gtin {
    color: #888;
}

.cart-item .item-actions-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 5px;
}

/* Quantity Controls - Dehon Style */
.cart-item .item-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e5e5e5;
    margin-top: 15px;
}

.cart-item .qty-btn {
    width: 32px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    transition: background 0.2s;
}

.cart-item .qty-btn:hover {
    background: #f5f5f5;
}

.cart-item .qty-input {
    width: 40px;
    height: 36px;
    border: none;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    text-align: center;
    font-size: 0.95em;
    background: #fff;
    -moz-appearance: textfield;
}

.cart-item .qty-input::-webkit-outer-spin-button,
.cart-item .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Link - Dehon Style */
.cart-item .item-remove {
    margin-top: 10px;
}

.cart-item .remove-link {
    color: #999;
    text-decoration: underline;
    font-size: 0.85em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.cart-item .remove-link:hover {
    color: #c00;
}

/* Cart Summary - Dehon Style */
.b2b-cart-summary {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 30px;
    position: sticky;
    top: 20px;
}

.b2b-cart-summary h2 {
    margin: 0 0 25px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.b2b-cart-summary .summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.b2b-cart-summary .summary-line span {
    color: #666;
}

.b2b-cart-summary .summary-line strong {
    color: #333;
}

/* Cart Actions - Dehon Style */
.b2b-cart-summary .cart-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.b2b-cart-summary .cart-actions .button {
    width: 100%;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: none;
    transition: all 0.2s;
}

.b2b-cart-summary .cart-actions .button-primary {
    background: #1a1a1a;
    color: #fff;
}

.b2b-cart-summary .cart-actions .button-primary:hover {
    background: #333;
}

.b2b-cart-summary .cart-actions .button-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #333;
}

.b2b-cart-summary .cart-actions .button-secondary:hover {
    background: #333;
    color: #fff;
}

/* Cart Help */
.b2b-cart-summary .cart-help {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

.b2b-cart-summary .cart-help p {
    margin: 5px 0;
}

/* Login Required Notice */
.b2b-cart-summary .login-required-notice {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
    text-align: center;
}

.b2b-cart-summary .login-required-notice p {
    margin: 0;
    color: #856404;
    font-size: 0.9em;
}

.b2b-cart-summary .login-btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.2s;
}

.b2b-cart-summary .login-btn:hover {
    background: #333;
    color: #fff;
}

/* Floating Cart Icon */
.b2b-floating-cart{
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

/* Bouton */
.b2b-floating-cart #b2b-open-sidebar{
  width: 56px;
  height: 56px;
  background: #1a1a1a;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  position: relative;

  /* ✅ Astra-proof */
  display: grid;
  place-items: center;
  padding: 0 !important;
  line-height: 0 !important;
  color: #fff !important;
}

.b2b-floating-cart #b2b-open-sidebar:hover{
  background: #333;
  transform: scale(1.05);
}

/* Icône */
.b2b-floating-cart #b2b-open-sidebar svg{
  width: 24px;
  height: 24px;
  display: block;
  color: #fff !important;
  fill: currentColor !important;
  margin: 0 !important;
}

.b2b-floating-cart #b2b-open-sidebar svg path{
  fill: currentColor !important;
}

/* Badge */
.b2b-floating-cart .cart-count{
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e67e22;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  pointer-events: none;
}

.b2b-floating-cart.empty .cart-count{ display:none; }

/* Cart Sidebar */
.b2b-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.b2b-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.b2b-cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
}

.b2b-cart-sidebar.open {
    right: 0;
}

.b2b-cart-sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.b2b-cart-sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.b2b-cart-sidebar .close-sidebar {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.b2b-cart-sidebar .close-sidebar:hover {
    color: #333;
}

.b2b-cart-sidebar .sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.b2b-cart-sidebar .empty-cart {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.sidebar-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-cart-item .item-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-cart-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-cart-item .item-image .no-image-icon {
    font-size: 24px;
    color: #ccc;
}

.sidebar-cart-item .item-details {
    flex: 1;
}

.sidebar-cart-item .item-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.sidebar-cart-item .item-sku {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.sidebar-cart-item .item-attrs {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.sidebar-cart-item .item-attrs span {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 5px;
}

.sidebar-cart-item .item-qty-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.sidebar-cart-item .sidebar-qty-minus,
.sidebar-cart-item .sidebar-qty-plus {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    line-height: 1;
    padding: 0;
    text-align: center;
}

.sidebar-cart-item .sidebar-qty-minus:hover,
.sidebar-cart-item .sidebar-qty-plus:hover {
    background: #e0e0e0;
    border-color: #999;
}

.sidebar-cart-item .sidebar-qty-input {
    width: 45px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.sidebar-cart-item .sidebar-remove-item {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.sidebar-cart-item .sidebar-remove-item:hover {
    color: #e74c3c;
}

.b2b-cart-sidebar .sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.b2b-cart-sidebar .btn-place-order,
.b2b-cart-sidebar .btn-login {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.b2b-cart-sidebar .btn-place-order:hover,
.b2b-cart-sidebar .btn-login:hover {
    background: #d35400;
}

.b2b-cart-sidebar .btn-logout {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-top: 10px;
    background: #666;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.b2b-cart-sidebar .btn-logout:hover {
    background: #444;
}

@media (max-width: 768px) {
    .b2b-floating-cart {
        bottom: 20px;
        right: 20px;
    }
    .b2b-floating-cart button {
        width: 50px;
        height: 50px;
    }
    .b2b-floating-cart svg {
        width: 24px;
        height: 24px;
    }
    .b2b-cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* ============================================
   SHOP FILTER SIDEBAR
   ============================================ */

.b2b-shop-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background-color: #fff;
    padding: 2.5rem 2.5rem 5rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.b2b-shop-container.with-filters .b2b-filters-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.b2b-shop-container .b2b-products-main {
    flex: 1;
    min-width: 0;
    position: relative;
}

.b2b-filters-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.b2b-search-input-wrap {
    display: flex;
    height: 2.75rem;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.75rem;
    border: 1px solid hsl(0, 0%, 83%);
    border-radius: 0.375rem;
    background: #fff;
}

.b2b-search-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #666;
    flex-shrink: 0;
}

.b2b-filter-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    background: transparent;
    height: 100%;
}

.b2b-filter-search input:focus {
    outline: none;
}

.b2b-filter-search input::placeholder {
    color: #999;
}

.b2b-reset-filters {
    display: block;
    margin: 15px 0;
    color: #666;
    font-size: 13px;
    text-decoration: underline;
}

.b2b-reset-filters:hover {
    color: #1a1a1a;
}

.b2b-filter-section {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.b2b-filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: hsl(0, 0%, 9%);
    cursor: pointer;
    user-select: none;
}

.b2b-filter-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(0, 0%, 9%);
    transition: transform 0.2s;
}

.b2b-filter-title .toggle-icon {
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
}

.b2b-filter-content {
    max-height: 300px;
    overflow-y: auto;
    transition: max-height 0.3s;
}

.b2b-filter-content.collapsed {
    max-height: 0;
    overflow: hidden;
}

.b2b-category-list,
.b2b-attribute-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.b2b-category-list li,
.b2b-attribute-list li {
    margin-bottom: 8px;
}

.b2b-category-list label,
.b2b-attribute-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.b2b-category-list label:hover,
.b2b-attribute-list label:hover {
    color: #1a1a1a;
}

.b2b-category-list input[type="checkbox"],
.b2b-attribute-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a1a1a;
    cursor: pointer;
}

.b2b-category-list .count {
    color: #999;
    font-size: 12px;
}

.b2b-subcategory-list {
    list-style: none;
    padding-left: 24px;
    margin: 8px 0 0 0;
}

.b2b-subcategory-list li {
    margin-bottom: 6px;
}

.b2b-hidden-term {
    display: none;
}

.b2b-show-more {
    display: inline-block;
    margin-top: 8px;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
}

.b2b-show-more:hover {
    color: #666;
}

/* Products Header */
.b2b-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
}

.b2b-products-count {
    font-size: 0.875rem;
    color: hsl(0, 0%, 40%);
}

.b2b-products-count #b2b-count-number {
    font-weight: 600;
    color: hsl(0, 0%, 9%);
}

.b2b-products-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.b2b-products-sort label {
    font-size: 0.875rem;
    color: hsl(0, 0%, 40%);
}

.b2b-products-sort select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid hsl(0, 0%, 83%);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    background: #fff;
    cursor: pointer;
    appearance: auto;
    color: hsl(0, 0%, 9%);
}

.b2b-products-sort select:focus {
    outline: none;
    border-color: hsl(0, 0%, 40%);
}

/* Loading Overlay */
.b2b-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.b2b-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: b2b-spin 0.8s linear infinite;
}

@keyframes b2b-spin {
    to { transform: rotate(360deg); }
}

/* Responsive Filter Sidebar */
@media (max-width: 1024px) {
    .b2b-shop-container {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .b2b-shop-container.with-filters .b2b-filters-sidebar {
        width: 100%;
    }

    .b2b-filter-content {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .b2b-shop-container {
        padding: 1.5rem 1rem;
    }

    .b2b-products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .b2b-products-sort {
        width: 100%;
    }

    .b2b-products-sort select {
        flex: 1;
    }

    .b2b-products-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .b2b-products-grid.columns-3 {
        grid-template-columns: 1fr;
    }
}

