/**
 * ProBrace Comparison Tables - Clean, Flat E-Commerce Frontend Styling
 * Tailored specifically for ProBrace.nl (no generic AI/SaaS styles)
 */

.pb-comparison-container {
    margin: 3.2rem 0;
    clear: both;
    position: relative;
    box-sizing: border-box;
}

.pb-comparison-header-title {
    margin-bottom: 1.6rem;
}

.pb-comparison-header-title h3 {
    color: #1f2937;
    font: 700 2.2rem/1.3 "Lato", sans-serif;
    margin: 0;
}

.pb-comparison-scroll-notice {
    display: none;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.pb-comparison-scroll-notice .dashicons {
    font-size: 1.6rem;
    width: 1.6rem;
    height: 1.6rem;
}

.pb-comparison-grid-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.pb-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

.pb-comparison-grid.pb-cols-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 38rem;
    margin: 0 auto;
}

.pb-comparison-grid.pb-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pb-comparison-grid.pb-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-comparison-grid.pb-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ==========================================================================
   Individual Comparison Card
   ========================================================================== */
.pb-comp-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    padding: 1.6rem !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease !important;
    min-width: 0;
}

.pb-comp-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Highlighted Column */
.pb-comp-card.pb-highlighted {
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

/* Badge / Label: Ingetogen tag binnenin de kaart direct boven de titel */
.pb-comp-badge-wrapper {
    margin-bottom: 0.8rem;
    text-align: left;
}

.pb-comp-badge {
    display: inline-block !important;
    font: 700 1.15rem/1.2 "Lato", sans-serif !important;
    letter-spacing: 0.05em !important;
    background: #E1EEF9 !important;
    color: #34485C !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
}

.pb-comp-card.pb-highlighted .pb-comp-badge {
    background: #E1EEF9 !important;
    color: #34485C !important;
}

/* Header & Title */
.pb-comp-card-header {
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1rem;
    min-height: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pb-comp-product-title {
    margin: 0 !important;
    font: 700 1.5rem/1.35 "Lato", sans-serif !important;
}

.pb-comp-product-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.pb-comp-product-title a:hover {
    color: #78BE20 !important;
}

/* Image: Volledig breed zonder zij-padding, object-fit cover */
.pb-comp-card-image {
    width: 100% !important;
    height: 18rem !important;
    padding: 0 !important;
    margin: 0.6rem 0 1.2rem 0 !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    display: block !important;
    box-sizing: border-box !important;
}

.pb-comp-image-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

.pb-comp-card-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
}

/* Live WooCommerce Price (Plat, onderdeel van de witte kaart) */
.pb-comp-card-price {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1rem 0 0.2rem 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 0.6rem !important;
    box-shadow: none !important;
}

.pb-comp-price-label {
    font: 600 1.3rem/1.3 "Lato", sans-serif !important;
    color: #6b7280 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.pb-comp-price-value,
.pb-comp-price-value.price,
.pb-comp-price-value .woocommerce-Price-amount {
    font: 700 1.6rem/1.3 "Lato", sans-serif !important;
    color: #1f2937 !important;
    text-align: left !important;
}

.pb-comp-price-value del,
.pb-comp-price-value del .woocommerce-Price-amount {
    font-size: 1.3rem !important;
    color: #9ca3af !important;
    margin-right: 0.4rem !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    opacity: 1 !important;
}

.pb-comp-price-value ins,
.pb-comp-price-value ins .woocommerce-Price-amount {
    text-decoration: none !important;
    color: #1f2937 !important;
    font-weight: 700 !important;
}

/* Stock status: Subtiel groen bolletje (6px) met strakke 13px tekst direct onder de prijs */
.pb-comp-card-stock {
    margin: 0.2rem 0 1.2rem 0 !important;
    text-align: left !important;
}

.pb-stock-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    font: 500 1.3rem/1.3 "Lato", sans-serif !important;
}

.pb-stock-status.in-stock {
    color: #15803d !important;
}

.pb-stock-status.out-of-stock {
    color: #b91c1c !important;
}

.pb-stock-dot {
    width: 0.6rem !important;
    height: 0.6rem !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.pb-stock-status.in-stock .pb-stock-dot {
    background: #16a34a !important;
}

.pb-stock-status.out-of-stock .pb-stock-dot {
    background: #dc2626 !important;
}

/* Features / Specifications: Compact, minimalistische iconen zonder cirkel-badges */
.pb-comp-card-features {
    flex-grow: 1 !important;
    margin-bottom: 1.4rem !important;
    border-top: 1px solid #f3f4f6 !important;
    padding-top: 1rem !important;
}

.pb-comp-features-list,
.pb-comp-negatives-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pb-comp-features-list {
    margin-bottom: 0.6rem !important;
}

.pb-comp-feat-item,
.pb-comp-neg-item,
.pb-comp-features-list li,
.pb-comp-negatives-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.8rem !important;
    font: 400 1.3rem/1.35 "Lato", sans-serif !important;
    color: #374151 !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.pb-comp-feat-item::before,
.pb-comp-neg-item::before,
.pb-comp-features-list li::before,
.pb-comp-negatives-list li::before {
    display: none !important;
    content: none !important;
}

.pb-comp-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 1.4rem !important;
    height: 1.4rem !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-top: 0.2rem !important;
}

.pb-comp-icon.check {
    color: #16a34a !important;
}

.pb-comp-icon.minus {
    color: #9ca3af !important;
}

.pb-comp-text {
    flex: 1 !important;
}

/* CTA Button: ProBrace thema-stijl (border-radius: 1rem, font: 700 1.6rem/1.25, padding: 1rem 2.4rem) */
.pb-comp-card-cta {
    margin-top: auto !important;
    padding-top: 1rem !important;
}

.pb-comp-button.button,
.pb-comp-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    padding: 1rem 2.4rem !important;
    border-radius: 1rem !important;
    background: #78BE20 !important;
    background-color: #78BE20 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    font: 700 1.6rem/1.25 "Lato", sans-serif !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
    transform: none !important;
}

.pb-comp-button.button:hover,
.pb-comp-button:hover {
    background: #68A61B !important;
    background-color: #68A61B !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

.pb-comp-button.button:active,
.pb-comp-button:active {
    background-color: #5b9217 !important;
    box-shadow: none !important;
    transform: none !important;
}

.pb-comp-button .button__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.pb-comp-button .button__icon {
    display: flex;
    align-items: center;
    transition: transform 0.15s ease;
}

.pb-comp-button:hover .button__icon {
    transform: translateX(2px);
}

/* ==========================================================================
   Responsive Adjustments (Mobile Horizontal Swipe)
   ========================================================================== */
@media only screen and (max-width: 1024px) {
    .pb-comparison-grid.pb-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 768px) {
    .pb-comparison-scroll-notice {
        display: flex;
    }

    .pb-comparison-grid-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1.2rem;
    }

    .pb-comparison-grid.pb-cols-2,
    .pb-comparison-grid.pb-cols-3,
    .pb-comparison-grid.pb-cols-4 {
        display: flex;
        flex-wrap: nowrap;
        gap: 1.2rem;
        min-width: 100%;
    }

    .pb-comparison-grid.pb-cols-2 .pb-comp-card,
    .pb-comparison-grid.pb-cols-3 .pb-comp-card,
    .pb-comparison-grid.pb-cols-4 .pb-comp-card {
        flex: 0 0 26rem;
        max-width: 82vw;
    }
}

/* ==========================================================================
   Horizontal Rows Layout (Used when >3 products or layout="rows")
   ========================================================================== */
.pb-comparison-rows {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.6rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pb-comp-row-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    padding: 1.8rem 2rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2.4rem !important;
    position: relative !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease !important;
}

.pb-comp-row-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Row Image / Media */
.pb-comp-row-media {
    flex: 0 0 16rem !important;
    width: 16rem !important;
    height: 14rem !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    display: block !important;
    box-sizing: border-box !important;
    background: #f9fafb !important;
}

.pb-comp-row-media .pb-comp-image-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

.pb-comp-row-media img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
}

/* Row Info (Middle: Badge, Title, Features & Negatives) */
.pb-comp-row-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
}

.pb-comp-row-info .pb-comp-badge-wrapper {
    margin-bottom: 0.6rem !important;
}

.pb-comp-row-info .pb-comp-product-title {
    margin: 0 0 0.8rem 0 !important;
    font: 700 1.7rem/1.3 "Lato", sans-serif !important;
}

.pb-comp-row-info .pb-comp-product-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.pb-comp-row-info .pb-comp-product-title a:hover {
    color: #78BE20 !important;
}

.pb-comp-row-features {
    margin-top: 0.4rem !important;
}

.pb-comp-row-features .pb-comp-features-list,
.pb-comp-row-features .pb-comp-negatives-list {
    margin-bottom: 0.4rem !important;
}

/* Row Action (Right: Price, Stock & Button) */
.pb-comp-row-action {
    flex: 0 0 22rem !important;
    width: 22rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    border-left: 1px solid #f3f4f6 !important;
    padding-left: 2rem !important;
    box-sizing: border-box !important;
}

.pb-comp-row-action .pb-comp-card-price {
    padding: 0 !important;
    margin: 0 0 0.4rem 0 !important;
}

.pb-comp-row-action .pb-comp-card-stock {
    margin: 0 0 1.4rem 0 !important;
}

.pb-comp-row-action .pb-comp-card-cta {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Responsive behavior for Row layout */
@media only screen and (max-width: 860px) {
    .pb-comp-row-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1.6rem !important;
        gap: 1.4rem !important;
    }

    .pb-comp-row-media {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: 18rem !important;
    }

    .pb-comp-row-action {
        flex: 0 0 auto !important;
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid #f3f4f6 !important;
        padding-left: 0 !important;
        padding-top: 1.4rem !important;
    }
}

/* ==========================================================================
   Blog Meta (Leestijd & Bijgewerkt op) in .blog-summary__info
   Exact: font: 400 1.4rem/2 "Lato",sans-serif; color: #000;
   ========================================================================== */
.blog-summary__info .blog-summary__reading-time,
.blog-summary__info .blog-summary__updated {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    margin-right: 1.6rem !important;
    font: 400 1.2rem/2 "Lato", sans-serif !important;
    color: #000 !important;
    vertical-align: middle !important;
}

.blog-summary__info .blog-summary__reading-time .icon,
.blog-summary__info .blog-summary__updated .icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.6rem !important;
    height: 1.6rem !important;
    flex-shrink: 0 !important;
}

.blog-summary__info .blog-summary__reading-time .icon svg,
.blog-summary__info .blog-summary__updated .icon svg {
    width: 1.6rem !important;
    height: 1.6rem !important;
    stroke: #8cc540 !important;
}

.blog-summary__info .blog-summary__reading-time .text,
.blog-summary__info .blog-summary__updated .text {
    font: 400 1.2rem/2 "Lato", sans-serif !important;
    color: #000 !important;
}
