/**
 * BDW Product Catalog Styling
 * Integrates with wcreate base theme
 */

/* =========================== Variables =========================== */
:root {
    --bdw-primary: #0F925E;
    --bdw-primary-dark: #0d7a4e;
    --bdw-yellow: #F5E96B;
    --bdw-text: #0a2d22;
    --bdw-border: #e0e0e0;
    --bdw-bg-light: #f9f9f9;

    /* Product detail pagina tokens */
    --pd-bg:           #FDFAF7;
    --pd-surface:      #FFFFFF;
    --pd-green:        #0F925E;
    --pd-green-dark:   #0A6E46;
    --pd-green-light:  #E8F5EF;
    --pd-dark:         #1A1612;
    --pd-mid:          #6B6560;
    --pd-border:       #E8E2DA;
    --pd-radius:       0px;
}

/* =========================== Catalog Header =========================== */
.catalog-header {
    position: relative;
    margin-bottom: 3rem;
}

.catalog-header .header-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.catalog-header .header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-header .header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.catalog-header .header-content {
    padding: 1rem 0;
}

.catalog-header .breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #ffffff;
}

.catalog-header .breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
}

.catalog-header .breadcrumbs .separator {
    margin: 0 0.5rem;
}

.catalog-header .page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.catalog-header .category-description {
    color: #ffffff;
    max-width: 800px;
}

/* =========================== Catalog Layout =========================== */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

@media (max-width: 968px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        order: 2;
    }

    .catalog-main {
        order: 1;
    }
}

/* =========================== Sidebar =========================== */
.bdw-category-sidebar {
    position: sticky;
    top: calc(var(--header-height, 80px) + 20px);
}

.sidebar-block {
    background: white;
    border: 1px solid var(--bdw-border);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--bdw-text);
    font-weight: 600;
}

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

.category-item {
    margin-bottom: 0.75rem;
}

/* Parent Category Styling */
.parent-category {
    border-bottom: 1px solid var(--bdw-border);
    padding-bottom: 0.75rem;
}

.parent-category:last-child {
    border-bottom: none;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.category-toggle {
    font-size: 0.7rem;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
    color: var(--bdw-primary);
    font-weight: bold;
    min-width: 16px;
}

.parent-category.open .category-toggle {
    transform: rotate(180deg);
}

.category-link {
    color: var(--bdw-text);
    text-decoration: none;
    flex: 1;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.category-link:hover {
    color: var(--bdw-primary);
}

/* Parent link styling */
.parent-link {
    font-weight: 600;
    font-size: 1.05rem;
}

.current-parent > .category-header .parent-link {
    color: var(--bdw-primary);
}

.category-count {
    font-size: 0.85rem;
    color: #999;
    margin-left: 0.25rem;
}

/* Subcategory list */
.subcategory-list {
    list-style: none;
    padding-left: 1.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.subcategory-item {
    margin-bottom: 0.25rem;
}

.subcategory-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 0;
    transition: all 0.2s ease;
}

.subcategory-link:hover {
    color: var(--bdw-primary);
    background: var(--bdw-bg-light);
    padding-left: 1rem;
}

.current-category .subcategory-link {
    color: var(--bdw-primary);
    background: var(--bdw-bg-light);
    font-weight: 600;
    border-left: 3px solid var(--bdw-primary);
}

.downloads-block .download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bdw-primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.downloads-block .download-button:hover {
    background: var(--bdw-primary-dark);
}

.contact-block p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
}

.contact-button {
    display: inline-block;
    background: var(--bdw-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.contact-button:hover {
    background: var(--bdw-primary-dark);
}

/* =========================== Product Grid =========================== */
.products-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bdw-border);
}

.products-count {
    color: #0a0a0a80;
    text-transform: uppercase;
    font-size: .75em;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

/* =========================== Product Card =========================== */
.bdw-product-card {
    background: white;
    border: 1px solid var(--bdw-border);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bdw-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-thumbnail {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: var(--bdw-bg-light);
}

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

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

.product-no-image .no-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 0.9rem;
}

.product-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--bdw-text);
    font-weight: 600;
    line-height: 1.3;
}

.product-sku {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.product-stock { display: none; } /* vervangen door bdw-stock-badge */

.product-price {
    margin-top: auto;
    padding-top: 0.75rem;
}

.price-label {
    display: inline-block;
    background: transparent;
    color: var(--bdw-text);
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================== Product Actions =========================== */
.product-actions {
    padding: 1rem 1.25rem;
    background: var(--bdw-bg-light);
    border-top: 1px solid var(--bdw-border);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.quantity-wrapper {
    width: 80px;
}

.quantity-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--bdw-border);
    border-radius: 0;
    text-align: center;
    font-size: 0.95rem;
}

/* ── .btn context overrides (product catalog) ──────────────────── */
/* Geen afgeronde hoeken op knoppen in het catalogus/offertesysteem */
.product-actions .btn,
.bdw-action-row .btn,
.configurator-footer .btn {
    border-radius: 0;
}

/* Kaart acties: knop vult vrije breedte */
.product-actions .btn {
    flex: 1;
    width: auto;
    border: none;
    overflow: hidden;
}

/* Single page actierij: knop vult vrije breedte */
.bdw-action-row .btn {
    flex: 1;
    width: auto;
    height: auto;
    border: none;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    align-self: stretch;
}

/* Configurator footer: knop volledig breed */
.configurator-footer .btn {
    width: 100%;
    height: auto;
    border: none;
    overflow: hidden;
    padding: 14px 20px;
    justify-content: center;
}

/* Loading state (JS voegt .loading toe) */
.bdw-add-to-quote.loading,
.bdw-configure-product.loading,
.bdw-add-configured-to-quote.loading,
.bdw-add-configured-product.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* =========================== CTA Section =========================== */
.catalog-cta {
    background: var(--bdw-primary);
    padding: 3rem 0;
    margin-top: 4rem;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
}

.cta-text h2 {
    color: white;
    font-size: 2rem;
    margin: 0;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--bdw-primary);
    padding: 1rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bdw-yellow);
    transform: translateX(5px);
}

/* =========================== Single Product =========================== */
.product-breadcrumbs {
    padding: 1.5rem 0;
    background: var(--bdw-bg-light);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 3rem 0;
}

@media (max-width: 968px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.product-gallery .main-image img {
    width: 100%;
    border-radius: 0;
    border: 1px solid var(--bdw-border);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.thumbnail-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0;
    border: 2px solid var(--bdw-border);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail-item img:hover {
    border-color: var(--bdw-primary);
}

.product-info .product-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-meta {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-info .product-stock {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.product-info .product-price {
    margin: 1.5rem 0;
}

.product-info .price-label {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
}

.product-description {
    line-height: 1.7;
    margin: 1.5rem 0;
    color: #555;
}

.product-quote-form {
    background: var(--bdw-bg-light);
    padding: 1.5rem;
    border-radius: 0;
    margin: 2rem 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quantity-selector label {
    font-weight: 600;
}

.quantity-selector .quantity-input {
    width: 100px;
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Product Configuration Form on Detail Page */
.product-configuration-form {
    margin-bottom: 1.5rem;
}

.config-option-group {
    margin-bottom: 1.5rem;
}

.config-option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bdw-text);
}

.config-option-label .required {
    color: #e74c3c;
    margin-left: 0.25rem;
}

.config-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--bdw-border);
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.config-input:focus {
    outline: none;
    border-color: var(--bdw-primary);
}

.config-radio-group,
.config-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.config-radio-label,
.config-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border: 1px solid var(--bdw-border);
    border-radius: 0;
    transition: all 0.2s ease;
}

.config-radio-label:hover,
.config-checkbox-label:hover {
    border-color: var(--bdw-primary);
    background: #f8f9fa;
}

.config-radio-label input[type="radio"],
.config-checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.config-radio-label input[type="radio"]:checked ~ span,
.config-checkbox-label input[type="checkbox"]:checked ~ span {
    font-weight: 600;
    color: var(--bdw-primary);
}

.product-categories {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bdw-border);
}

.category-tag {
    display: inline-block;
    background: var(--bdw-bg-light);
    color: var(--bdw-text);
    padding: 0.4rem 0.8rem;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid var(--bdw-border);
}

.category-tag:hover {
    background: var(--bdw-primary);
    color: white;
    border-color: var(--bdw-primary);
}

/* =========================== Product Details Tabs =========================== */
.product-details {
    background: var(--bdw-bg-light);
    padding: 3rem 0;
    margin-top: 3rem;
}

.details-tabs {
    background: white;
    border-radius: 0;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid var(--bdw-border);
}

.tab-button {
    flex: 1;
    padding: 1.25rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: var(--bdw-primary);
    background: var(--bdw-bg-light);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid var(--bdw-border);
}

.specifications-table th,
.specifications-table td {
    padding: 1rem;
    text-align: left;
}

.specifications-table th {
    font-weight: 600;
    color: var(--bdw-text);
    width: 40%;
}

.documents-list {
    display: grid;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bdw-bg-light);
    border-radius: 0;
    text-decoration: none;
    color: var(--bdw-text);
    transition: background 0.3s ease;
}

.document-item:hover {
    background: var(--bdw-primary);
    color: white;
}

.doc-icon {
    font-size: 1.5rem;
}

.doc-title {
    flex: 1;
    font-weight: 500;
}

.doc-download {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================== Related Products =========================== */
.related-products {
    margin: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--bdw-text);
}

/* =========================== No Products =========================== */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
}

.no-products p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* =========================== Pagination =========================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--bdw-border);
    border-radius: 0;
    text-decoration: none;
    color: var(--bdw-text);
}

.pagination a:hover {
    background: var(--bdw-primary);
    color: white;
    border-color: var(--bdw-primary);
}

.pagination .current {
    background: var(--bdw-primary);
    color: white;
    border-color: var(--bdw-primary);
}

/* =========================== Category Overview =========================== */
.bdw-category-overview .category-header {
    text-align: center;
    padding: 3rem 0;
}

.bdw-category-overview .category-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--bdw-text);
}

.bdw-category-overview .category-intro {
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
}

.subcategories-section {
    padding: 3rem 0;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .subcategories-grid {
        grid-template-columns: 1fr;
    }
}

.subcategory-card {
    background: white;
    border: 1px solid var(--bdw-border);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.subcategory-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.subcategory-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: var(--bdw-bg-light);
}

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

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

.subcategory-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.subcategory-content {
    padding: 1.5rem;
}

.subcategory-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--bdw-text);
    font-weight: 600;
}

.subcategory-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.subcategory-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--bdw-border);
}

.subcategory-meta .product-count {
    font-size: 0.9rem;
    color: #999;
}

.subcategory-meta .view-link {
    color: var(--bdw-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.subcategory-card:hover .view-link {
    transform: translateX(5px);
}

.no-subcategories {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.category-content {
    padding: 3rem 0;
    background: var(--bdw-bg-light);
}

.category-content .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    color: #555;
}


/* ══════════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGINA  —  bdw-* componenten
   ══════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb (link styling) ──────────────────────────────────── */
.bdw-breadcrumb a { color: var(--pd-mid); text-decoration: none; transition: color .15s; }
.bdw-breadcrumb a:hover { color: var(--pd-green); }
.bdw-breadcrumb__sep { opacity: .35; font-size: 10px; }
.bdw-breadcrumb__current { color: var(--pd-dark); font-weight: 500; }

/* ── Image column layout helpers ────────────────────────────────── */
.bdw-img-sticky-wrap {
    position: sticky;
    top: calc(var(--header-height, 80px) + 20px);
}

/* ── Afbeeldingen ───────────────────────────────────────────────── */
.bdw-main-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #EDE4D8;
    border-radius: var(--pd-radius);
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bdw-main-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .2s;
}
.bdw-main-image__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.bdw-thumb-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.bdw-thumb {
    width: 76px;
    height: 76px;
    border-radius: 0;
    border: 2px solid transparent;
    background: #EDE4D8;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: border-color .15s;
}
.bdw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bdw-thumb--active,
.bdw-thumb:hover { border-color: var(--pd-green); }

/* ── Info zijde ─────────────────────────────────────────────────── */
.bdw-product-cat {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--pd-green);
    margin-bottom: 12px;
}
.bdw-product-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.05;
    color: var(--pd-dark);
    margin-bottom: 18px;
}
.bdw-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.bdw-stock-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
}
.bdw-stock-badge.bdw-stock--in  { color: var(--pd-green); }
.bdw-stock-badge.bdw-stock--out { color: #C0392B; }
.bdw-stock-badge.bdw-stock--back { color: #E67E22; }

.bdw-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
}
.bdw-stock--in .bdw-stock-dot {
    animation: bdw-pulse 2s infinite;
}
@keyframes bdw-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15,146,94,.4); }
    50%       { box-shadow: 0 0 0 4px rgba(15,146,94,0); }
}
.bdw-meta-sep {
    width: 1px;
    height: 16px;
    background: var(--pd-border);
    flex-shrink: 0;
}
.bdw-meta-note { font-size: 12px; color: var(--pd-mid); }
.bdw-divider { height: 1px; background: var(--pd-border); margin: 22px 0; }

/* ── Prijs rij ──────────────────────────────────────────────────── */
.bdw-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 18px;
    background: var(--pd-green-light);
    border: 1px solid rgba(15,146,94,.2);
    border-radius: 0;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.bdw-price-lbl { font-size: 13px; font-weight: 500; color: var(--pd-green); }
.bdw-price-val {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--pd-green);
}
.bdw-price-note { font-size: 12px; color: var(--pd-mid); margin-left: auto; align-self: center; }

.bdw-product-desc {
    font-size: var(--font-size);
    color: var(--pd-mid);
    line-height: 1.75;
    margin-bottom: 4px;
}
.bdw-product-desc p { margin-top: 0; margin-bottom: .75em; }
.bdw-product-desc p:last-child { margin-bottom: 0; }

.bdw-desc-toggle {
    display: inline-block;
    font-size: 12px;
    color: var(--pd-green);
    cursor: pointer;
    margin-bottom: 12px;
    user-select: none;
}
.bdw-desc-toggle:hover { text-decoration: underline; }

/* ── Configurator ───────────────────────────────────────────────── */
.bdw-config-block {
    background: transparent;
    border: 1.5px solid var(--pd-border);
    border-radius: var(--pd-radius);
    overflow: hidden;
    margin: 22px 0;
}
.bdw-config-head {
    padding: 12px 20px;
    background: var(--pd-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.bdw-config-head__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .3px;
}
.bdw-config-head__sub { font-size: 11px; color: rgba(255,255,255,.4); margin-left: auto; }
.bdw-config-body { padding: 20px; }

.bdw-form-row { margin-bottom: 18px; }
.bdw-form-row:last-child { margin-bottom: 0; }

.bdw-f-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--pd-dark);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.bdw-req  { color: var(--pd-green); font-size: 14px; }
.bdw-opt  { color: var(--pd-mid); font-weight: 400; font-size: 11px; }

/* Pill opties (radio) */
.bdw-pill-options { display: flex; gap: 8px; flex-wrap: wrap; }
.bdw-pill {
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--pd-border);
    border-radius: 0;
    background: var(--pd-surface);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    color: var(--pd-mid);
    transition: all .15s;
    user-select: none;
}
.bdw-pill--active {
    border-color: var(--pd-green);
    background: var(--pd-green-light);
    color: var(--pd-green);
    font-weight: 500;
}
.bdw-pill:hover:not(.bdw-pill--active) { background: transparent; color: var(--pd-dark); }
.bdw-pill[aria-hidden="true"] { display: none !important; }

/* Toggle / checkbox stijl */
.bdw-toggle-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.bdw-toggle-label { display: contents; }
.bdw-toggle-label input.bdw-toggle-cb { display: none; }
.bdw-tog {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--pd-border);
    border-radius: 0;
    background: var(--pd-surface);
    font-size: 13px;
    cursor: pointer;
    color: var(--pd-mid);
    transition: all .15s;
    user-select: none;
}
.bdw-tog:hover,
.bdw-tog--active {
    border-color: var(--pd-green);
    background: var(--pd-green-light);
    color: var(--pd-green);
    font-weight: 500;
}

/* Select */
.bdw-f-select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--pd-border);
    border-radius: 0;
    background: var(--pd-surface);
    font-family: inherit;
    font-size: 13px;
    color: var(--pd-dark);
    padding: 0 36px 0 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6560' fill='none' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color .15s;
}
.bdw-f-select:focus { outline: none; border-color: var(--pd-green); }

/* Textarea / input */
.bdw-f-textarea,
.bdw-f-input {
    width: 100%;
    border: 1px solid var(--pd-border);
    border-radius: 0;
    background: var(--pd-surface);
    font-family: inherit;
    font-size: 13px;
    color: var(--pd-dark);
    padding: 11px 14px;
    transition: border-color .15s;
    resize: none;
}
.bdw-f-textarea { min-height: 80px; }
.bdw-f-input    { height: 42px; resize: none; }
.bdw-f-textarea:focus,
.bdw-f-input:focus  { outline: none; border-color: var(--pd-green); }
.bdw-f-textarea::placeholder,
.bdw-f-input::placeholder { color: #B0A89E; }

/* Hint tekst bij option */
.bdw-option-hint {
    margin-top: 10px;
    padding: 10px 13px;
    background: var(--pd-green-light);
    border-radius: 0;
    font-size: 12px;
    color: var(--pd-green-dark);
}

/* ── Actie rij ──────────────────────────────────────────────────── */
.bdw-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}
.bdw-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--pd-border);
    border-radius: 0;
    overflow: hidden;
    background: var(--pd-surface);
    flex-shrink: 0;
}
.bdw-qty-btn {
    width: 38px;
    height: 46px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--pd-mid);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s;
}
.bdw-qty-btn:hover { background: transparent; color: var(--pd-dark); }
.bdw-qty-val {
    width: 44px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--pd-dark);
    border-left: 1px solid var(--pd-border);
    border-right: 1px solid var(--pd-border);
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.bdw-cta-phone {
    width: 100%;
    height: 44px;
    margin-top: 10px;
    background: transparent;
    color: var(--pd-dark);
    border: 1.5px solid var(--pd-border);
    border-radius: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .15s;
    text-decoration: none;
}
.bdw-cta-phone:hover {
    border-color: var(--pd-green);
    color: var(--pd-green);
    background: var(--pd-green-light);
}

/* ── Trust badges ───────────────────────────────────────────────── */
.bdw-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}
.bdw-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 10px;
    background: transparent;
    border: 1px solid var(--pd-border);
    border-radius: 0;
    text-align: center;
}
.bdw-trust-icon { color: var(--pd-green); }
.bdw-trust-icon svg { width: 26px; height: 26px; }
.bdw-trust-lbl { font-size: 11px; font-weight: 600; color: var(--pd-dark); line-height: 1.35; }

/* ── Tabs ───────────────────────────────────────────────────────── */
.bdw-tab-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.bdw-tab {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid var(--pd-border);
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--pd-mid);
    background: var(--pd-surface);
    transition: all .15s;
    user-select: none;
    white-space: nowrap;
}
.bdw-tab svg { opacity: .5; transition: opacity .15s; }
.bdw-tab--active {
    border-color: var(--pd-green);
    background: var(--pd-green);
    color: #fff;
}
.bdw-tab--active svg { opacity: 1; }
.bdw-tab:hover:not(.bdw-tab--active) { border-color: var(--pd-dark); color: var(--pd-dark); }
.bdw-tab:hover:not(.bdw-tab--active) svg { opacity: .8; }

.bdw-tab-pane { display: block; }
.bdw-tab-pane.hidden,
.bdw-tab-pane[hidden] { display: none; }

/* ── Specificaties grid ─────────────────────────────────────────── */
.bdw-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.bdw-spec-card {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 20px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.bdw-spec-icon {
    width: 40px;
    height: 40px;
    background: var(--pd-green-light);
    border-radius: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bdw-spec-name {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--pd-mid);
    margin-bottom: 5px;
}
.bdw-spec-value { font-size: 13px; color: var(--pd-dark); line-height: 1.55; }

/* ── Toepassingen grid ──────────────────────────────────────────── */
.bdw-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.bdw-app-card {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 20px 22px;
}
.bdw-app-card__icon {
    width: 38px;
    height: 38px;
    background: var(--pd-green-light);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--pd-green);
}
.bdw-app-card__icon svg { width: 20px; height: 20px; }
.bdw-app-card__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--pd-dark);
}
.bdw-app-card__text { font-size: 13px; color: var(--pd-mid); line-height: 1.6; }
.bdw-app-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--pd-green);
    background: var(--pd-green-light);
    padding: 3px 8px;
    border-radius: 0;
}

/* ── Maatgids tabel ─────────────────────────────────────────────── */
.bdw-table-wrap { overflow-x: auto; }
.bdw-maat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.bdw-maat-table th {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid var(--pd-border);
    color: var(--pd-mid);
}
.bdw-maat-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--pd-border);
    vertical-align: top;
    line-height: 1.5;
    color: var(--pd-dark);
}
.bdw-maat-table tr:last-child td { border-bottom: none; }
.bdw-maat-table tr:hover td { background: transparent; }
.bdw-maat-badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--pd-green);
}
.bdw-maat-hint {
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--pd-green-light);
    border-radius: 0;
    font-size: 12px;
    color: var(--pd-green-dark);
    line-height: 1.6;
}

/* ── Vrije inhoud tab ───────────────────────────────────────────── */
.bdw-free-content {
    font-size: 14px;
    color: var(--pd-dark);
    line-height: 1.7;
}
.bdw-free-content h2,
.bdw-free-content h3 { font-family: 'Barlow Condensed', sans-serif; margin-bottom: .5em; }
.bdw-free-content p  { margin-bottom: .75em; }

/* ── Downloads ──────────────────────────────────────────────────── */
.bdw-downloads-list { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.bdw-download-row {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color .15s;
    text-decoration: none;
}
.bdw-download-row:hover { border-color: var(--pd-green); }
.bdw-dl-name { font-size: 13px; font-weight: 500; color: var(--pd-dark); }
.bdw-dl-meta { font-size: 11px; color: var(--pd-mid); margin-top: 2px; }
.bdw-dl-link { font-size: 12px; color: var(--pd-green); font-weight: 500; flex-shrink: 0; margin-left: 16px; }

/* ── Gerelateerde producten ─────────────────────────────────────── */
.bdw-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--pd-dark);
}
.bdw-section-link { font-size: 12px; color: var(--pd-green); text-decoration: none; font-weight: 500; }
.bdw-section-link:hover { text-decoration: underline; }


/* ── Blog sectie ────────────────────────────────────────────────── */
.bdw-blog-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    align-items: start;
}
.bdw-blog-featured {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: border-color .15s;
}
.bdw-blog-featured:hover { border-color: var(--pd-green); }
.bdw-blog-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.bdw-blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bdw-blog-body { padding: 24px 26px; }
.bdw-blog-featured__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--pd-dark);
    line-height: 1.15;
    margin-bottom: 10px;
}
.bdw-blog-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.bdw-blog-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--pd-green);
    background: var(--pd-green-light);
    padding: 3px 8px;
    border-radius: 0;
}
.bdw-blog-date { font-size: 11px; color: var(--pd-mid); }
.bdw-blog-excerpt { font-size: 12px; color: var(--pd-mid); line-height: 1.6; margin-bottom: 14px; }
.bdw-blog-read    { font-size: 12px; color: var(--pd-green); font-weight: 500; }

.bdw-blog-stack { display: flex; flex-direction: column; gap: 14px; }
.bdw-blog-row {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    overflow: hidden;
    display: flex;
    text-decoration: none;
    transition: border-color .15s;
}
.bdw-blog-row:hover { border-color: var(--pd-green); }
.bdw-blog-row-thumb {
    width: 96px;
    flex-shrink: 0;
    overflow: hidden;
    align-self: stretch;
}
.bdw-blog-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bdw-blog-row-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.bdw-blog-row-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--pd-dark);
    line-height: 1.2;
    margin-bottom: 6px;
}
.bdw-blog-row-excerpt { font-size: 12px; color: var(--pd-mid); line-height: 1.55; }

/* ── FAQ sectie ─────────────────────────────────────────────────── */
.bdw-faq-list {
    margin-top: 24px;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    overflow: hidden;
    background: var(--pd-surface);
}
.bdw-faq-item { border-bottom: 1px solid var(--pd-border); }
.bdw-faq-item:last-child { border-bottom: none; }
.bdw-faq-q {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--pd-dark);
    background: none;
    border: none;
    text-align: left;
    transition: background .12s;
    gap: 16px;
}
.bdw-faq-q:hover { background: transparent; }
.bdw-faq-icon {
    width: 22px;
    height: 22px;
    border: 1px solid var(--pd-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
    color: var(--pd-mid);
    transition: all .2s;
}
.bdw-faq-item--open .bdw-faq-icon {
    background: var(--pd-green);
    border-color: var(--pd-green);
    color: #fff;
}
.bdw-faq-a {
    padding: 0 24px 20px;
    font-size: 13px;
    color: var(--pd-mid);
    line-height: 1.7;
}
.bdw-faq-a[hidden] { display: none; }

/* ── Contact CTA ────────────────────────────────────────────────── */
.bdw-contact-cta {
    margin-top: 56px;
    background: var(--pd-green-light);
    border: 1px solid rgba(15,146,94,.2);
    border-radius: 0;
    padding: 40px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.bdw-cta-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--pd-green);
    margin-bottom: 8px;
}
.bdw-cta-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--pd-dark);
    line-height: 1.1;
    margin-bottom: 8px;
}
.bdw-cta-body { font-size: 13px; color: var(--pd-mid); max-width: 480px; line-height: 1.6; }
.bdw-cta-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.bdw-cta-primary {
    background: var(--pd-green);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background .15s;
}
.bdw-cta-primary:hover { background: var(--pd-green-dark); }
.bdw-cta-secondary {
    background: transparent;
    color: var(--pd-dark);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 0;
    border: 1px solid rgba(26,22,18,.2);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: all .15s;
}
.bdw-cta-secondary:hover { border-color: var(--pd-dark); }

/* ── Toast ──────────────────────────────────────────────────────── */
.bdw-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--pd-dark);
    color: #fff;
    padding: 11px 18px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    z-index: 99999;
    white-space: nowrap;
}
.bdw-toast--show { opacity: 1; transform: translateY(0); }
.bdw-toast--error { background: #C0392B; }
.bdw-toast__icon {
    width: 18px;
    height: 18px;
    background: var(--pd-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bdw-img-col { border-right: none; border-bottom: 1px solid var(--pd-border); padding-bottom: 32px; margin-bottom: 32px; }
    .bdw-img-sticky-wrap { position: static; }
    .bdw-app-grid { grid-template-columns: repeat(2, 1fr); }
    .bdw-blog-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .bdw-product-title { font-size: 32px; }
    .bdw-specs-grid { grid-template-columns: 1fr; }
    .bdw-app-grid { grid-template-columns: 1fr; }
    .bdw-trust-badges { grid-template-columns: repeat(3, 1fr); }
    .bdw-contact-cta { flex-direction: column; padding: 28px 24px; }
    .bdw-cta-actions { width: 100%; }
}
@media (max-width: 480px) {
    .bdw-trust-badges { grid-template-columns: 1fr 1fr; }
    .bdw-tab { padding: 9px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
