/* ========================================
   REKVIA WOOCOMMERCE CSS (Bricks-only)
   Version 3.1.0 - Bricks optimized
   Updated: February 2026
   Loaded on: WooCommerce pages only
   Dependencies: rekvia-base.css
   ======================================== */

/* ========================================
   STOCK STATUS CUSTOM STYLING
   ======================================== */

.lagerstatus {
    font-size: 16px;
    color: var(--rekvia-text);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 12px 0;
    padding: 10px 15px;
    background-color: var(--rekvia-bg-alt);
    border-radius: 6px;
    border-left: 4px solid transparent;
    font-weight: 500;
    line-height: 1.4;
    min-height: 40px;
    box-sizing: border-box;
}

.lagerstatus-container {
    width: 100%;
    margin-top: 15px;
    clear: both;
}

.bestillingsvare-custom {
    color: #1e40af;
    border-left-color: var(--rekvia-on-order);
    background-color: #eff6ff;
}
.bestillingsvare-custom::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}

.in-stock-custom {
    color: #166534;
    border-left-color: var(--rekvia-in-stock);
    background-color: #f0fdf4;
}
.in-stock-custom::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--rekvia-in-stock);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}

/* BUG FIX: Missing opening brace — was ".out-of-stock-custom \n .out-of-stock-custom::before" */
.out-of-stock-custom {
    color: #991b1b;
    border-left-color: var(--rekvia-out-of-stock);
    background-color: #fef2f2;
}
.out-of-stock-custom::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--rekvia-out-of-stock);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}

/* BUG FIX: Missing opening brace — was ".onbackorder-custom \n .onbackorder-custom::before" */
.onbackorder-custom {
    color: #9a3412;
    border-left-color: var(--rekvia-warning);
    background-color: #fff7ed;
}
.onbackorder-custom::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: #ea580c;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}

.utgatt-vare-custom {
    color: var(--rekvia-text-light);
    border-left-color: #9ca3af;
    background-color: #f3f4f6;
    text-decoration: line-through;
}
.utgatt-vare-custom::before {
    content: "×";
    width: 12px;
    height: 12px;
    background-color: #9ca3af;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

.unknown-status-custom {
    color: #6b21a8;
    border-left-color: #a855f7;
    background-color: #faf5ff;
}
.unknown-status-custom::before {
    content: "?";
    width: 12px;
    height: 12px;
    background-color: #a855f7;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

.single_variation_wrap .lagerstatus-container {
    margin-top: 10px;
}

.variations .lagerstatus {
    margin: 8px 0;
    font-size: 14px;
}

.utgatt-vare-melding {
    color: var(--rekvia-text-light);
    font-style: italic;
    margin: 15px 0;
    padding: 10px;
    background-color: #f3f4f6;
    border-radius: 4px;
    text-align: center;
}

/* ========================================
   PRODUCT PAGE CUSTOMIZATIONS
   ======================================== */

/* REMOVED: .product-description h2 { font-size: 14px; } — Bricks Theme Style controls headings */

.woocommerce-product-attributes-item__label,
.product_meta .posted_in,
.product_meta .tagged_as,
.product_meta .sku_wrapper,
.woocommerce-product-attributes th {
    font-weight: bold;
}

.product_meta a:hover {
    color: var(--rekvia-accent-hover);
    text-decoration: underline;
}

/* ========================================
   SHOP/ARCHIVE PAGE CUSTOMIZATIONS
   ======================================== */

/* REMOVED: li.product min-height: 100px — handled by CSS Grid in Bricks archive template */

/* ========================================
   PRODUCT DOCUMENTS SECTION
   ======================================== */

.product-documents {
    margin: 30px 0;
}

.product-documents-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--rekvia-text);
}

.product-documents-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-document-link {
    color: var(--rekvia-accent);
    text-decoration: underline;
    font-size: 14px;
    display: block;
    transition: color 0.2s ease;
}

.product-document-link:hover {
    color: var(--rekvia-accent-hover);
}

/* ========================================
   PRODUCT CERTIFICATIONS SECTION
   ======================================== */

.merkeordninger-wrapper {
    margin: 20px 0;
}

.merkeordninger-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--rekvia-text-heading);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--rekvia-accent);
    padding-bottom: 8px;
    display: inline-block;
}

.product-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.certification-badge {
    width: 80px;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.certification-badge:hover {
    transform: scale(1.1);
}

/* Cross-browser safe fallback for empty certifications */
.merkeordninger-wrapper[data-has-certifications="false"] {
    display: none;
}

/* ========================================
   TECH SPECS TABLE
   ======================================== */

.tech-specs-main-wrapper {
    margin: 30px 0;
    background: #b2b6be !important;
    border: 3px solid #9ca3af;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tech-specs-heading {
    margin: 0;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e !important;
    background-color: #b2b6be !important;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.b2b-tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
}

.tech-spec-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

.tech-spec-row:hover {
    background-color: #e5e7eb;
}

.tech-spec-row:last-child {
    border-bottom: none;
}

.tech-spec-label {
    padding: 14px 20px;
    font-weight: 600;
    width: 50%;
    color: #000000 !important;
    background-color: #d0d3d7 !important;
    text-align: left;
    vertical-align: middle;
}

.tech-spec-value {
    padding: 14px 20px;
    color: #333333 !important;
    background-color: #ffffff !important;
    vertical-align: middle;
    text-align: left;
}

@media (max-width: 768px) {
    .tech-spec-label,
    .tech-spec-value {
        display: block;
        width: 100%;
        padding: 12px 15px;
    }
    .tech-spec-label {
        border-bottom: none;
        padding-bottom: 5px;
        background-color: transparent !important;
        font-size: 13px;
    }
    .tech-spec-value {
        padding-top: 0;
        padding-bottom: 15px;
        border-bottom: 1px solid #e5e7eb;
        font-size: 14px;
    }
}

/* ========================================
   BUY BOX / VAREDATA
   ======================================== */

.varedata-buy-box {
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid var(--rekvia-border);
    border-radius: 4px;
    margin-bottom: 20px;
}

.varedata-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.varedata-item {
    margin-bottom: 8px;
    font-size: 14px;
    border-bottom: 1px dotted #ddd;
    padding-bottom: 4px;
}

.varedata-label {
    color: var(--rekvia-text);
    font-weight: 600;
}

.varedata-value {
    color: var(--rekvia-text-light);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 767px) {
    .lagerstatus {
        font-size: 14px;
        padding: 8px 12px;
        margin: 10px 0;
        min-height: 36px;
    }
    .lagerstatus::before {
        width: 10px;
        height: 10px;
        margin-right: 8px;
    }
}


/* ========================================
   END OF REKVIA WOOCOMMERCE CSS (Bricks-only)
   ======================================== */