/* ============================================================
 * CBDFH Lab Tests Public Page — v3.0.3
 * Clean minimalist design inspired by cristibaltag.com/cv
 * ============================================================ */

.cbdfh-lab-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: inherit;
    color: #2a2a2a;
    line-height: 1.65;
}

.cbdfh-lab-page h1,
.cbdfh-lab-page h2,
.cbdfh-lab-page h3 {
    color: #1f3a2c;
    line-height: 1.25;
    margin: 0 0 8px;
    font-weight: 600;
}
.cbdfh-lab-page p { margin: 0 0 14px; }
.cbdfh-lab-page a { color: #2c8a5a; text-decoration: none; }
.cbdfh-lab-page a:hover { color: #1f3a2c; }

/* ==================== HEADER ==================== */
.cbdfh-lab-head {
    padding: 10px 0 24px;
    border-bottom: 1px solid #eaeee5;
    margin-bottom: 28px;
}
.cbdfh-lab-brand-line {
    font-size: 0.78em;
    color: #7a7a7a;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.cbdfh-lab-brand-line em {
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #999;
}
.cbdfh-lab-head h1 {
    font-size: 2em;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}
.cbdfh-lab-sub {
    color: #666;
    font-size: 1.02em;
    margin: 0;
}

/* ==================== INTRO TEXT ==================== */
.cbdfh-lab-text {
    margin-bottom: 32px;
    max-width: 820px;
    color: #444;
}
.cbdfh-lab-text p { margin: 0; }

/* ==================== TABLE ==================== */
.cbdfh-lab-table-wrap {
    margin-bottom: 36px;
}
.cbdfh-lab-table-wrap h2 {
    font-size: 1.15em;
    margin: 0 0 12px;
    color: #1f3a2c;
}
.cbdfh-lab-table-scroll { overflow-x: auto; }
.cbdfh-lab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94em;
    min-width: 480px;
}
.cbdfh-lab-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    color: #666;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #d9dfd0;
}
.cbdfh-lab-table thead th:not(:first-child) { text-align: center; width: 90px; }
.cbdfh-lab-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #eef2e6;
    color: #333;
}
.cbdfh-lab-table tbody td:not(:first-child) { text-align: center; color: #444; }
.cbdfh-lab-table tbody td:first-child { color: #1f3a2c; font-weight: 500; }
.cbdfh-lab-table tbody tr:last-child td { border-bottom: none; }
.cbdfh-lab-dim { color: #b8b8b8; }

/* ==================== GRID ==================== */
.cbdfh-lab-grid-wrap {
    margin-bottom: 40px;
}
.cbdfh-lab-grid-wrap h2 {
    font-size: 1.15em;
    margin: 0 0 14px;
    color: #1f3a2c;
}
.cbdfh-lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.cbdfh-lab-card {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e4e8dd;
    border-radius: 10px;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
    text-decoration: none;
}
.cbdfh-lab-card:hover {
    border-color: #2c8a5a;
    transform: translateY(-1px);
}
.cbdfh-lab-card-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef4ea;
    color: #2c8a5a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cbdfh-lab-card-body {
    flex: 1;
    min-width: 0;
}
.cbdfh-lab-card-title {
    font-size: 0.98em;
    font-weight: 600;
    color: #1f3a2c;
    margin: 0 0 4px;
    line-height: 1.35;
    overflow-wrap: break-word;
}
.cbdfh-lab-card-meta {
    color: #7a7a7a;
    font-size: 0.85em;
    margin-bottom: 8px;
    line-height: 1.4;
}
.cbdfh-lab-card-view {
    color: #2c8a5a;
    font-size: 0.88em;
    font-weight: 500;
}
.cbdfh-lab-card:hover .cbdfh-lab-card-view {
    color: #1f3a2c;
}

/* ==================== PRODUCT CARDS (media grouped) ==================== */
.cbdfh-lab-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.cbdfh-lab-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e4e8dd;
    border-radius: 10px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cbdfh-lab-product-card:hover {
    border-color: #2c8a5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(44, 138, 90, 0.12);
}

/* Thumbnail with background-image (no <img>, harder to save) */
.cbdfh-lab-product-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
    background: #f5f7f0 no-repeat center center;
    background-size: cover;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}
/* Fallback for older browsers without aspect-ratio */
@supports not (aspect-ratio: 4 / 3) {
    .cbdfh-lab-product-thumb { height: 180px; }
}
.cbdfh-lab-product-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8b09a;
}
.cbdfh-lab-product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f3a2c;
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 5px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1.15;
}
.cbdfh-lab-product-tag small {
    display: block;
    font-weight: 400;
    font-size: 0.85em;
    letter-spacing: 0.3px;
    text-transform: none;
    margin-top: 1px;
}

.cbdfh-lab-product-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cbdfh-lab-product-brand {
    color: #7a7a7a;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.cbdfh-lab-product-name {
    color: #1f3a2c;
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}
.cbdfh-lab-product-slogan {
    color: #999;
    font-size: 0.78em;
    font-style: italic;
    margin-bottom: 6px;
    line-height: 1.3;
}
.cbdfh-lab-product-meta {
    color: #7a7a7a;
    font-size: 0.83em;
    margin-bottom: 10px;
}
.cbdfh-lab-product-view {
    color: #2c8a5a;
    font-size: 0.88em;
    font-weight: 500;
    margin-top: auto;
}
.cbdfh-lab-product-card:hover .cbdfh-lab-product-view {
    color: #1f3a2c;
}

/* ==================== CONTACT ==================== */
.cbdfh-lab-contact {
    margin: 30px 0 0;
    padding-top: 20px;
    border-top: 1px solid #eaeee5;
    color: #666;
    font-size: 0.93em;
}
.cbdfh-lab-contact a { font-weight: 500; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
    .cbdfh-lab-page { padding: 24px 16px 40px; }
    .cbdfh-lab-head h1 { font-size: 1.6em; }
    .cbdfh-lab-grid { grid-template-columns: 1fr; }
    .cbdfh-lab-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 420px) {
    .cbdfh-lab-products { grid-template-columns: 1fr; }
}
