/*
Theme Name: TechLabShopper
Template: astra
Version: 1.3.0
Description: Custom editorial Astra child theme for TechLabShopper.
Text Domain: techlabshopper-child
*/
:root{--tls-navy:#101d31;--tls-blue:#1266dc;--tls-ink:#14243b;--tls-muted:#54647b;--tls-surface:#f3f7fb;--tls-line:#dce5f0}
body{color:var(--tls-ink);background:#fff}a{color:var(--tls-blue)}
.tls-container{max-width:1160px;margin:0 auto;padding:0 24px}
.tls-hero{background:linear-gradient(125deg,#101c31,#18375e);color:white;padding:86px 0 80px}
.tls-hero .tls-container{display:grid;grid-template-columns:1.15fr .85fr;gap:45px;align-items:center}
.tls-kicker,.tls-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-weight:750;font-size:12px;color:#69b9ff}
.tls-hero h1{font-size:clamp(36px,5vw,66px);font-weight:800;line-height:1.08;letter-spacing:-.04em;color:#fff;margin:13px 0 20px}
.tls-hero p{color:#d4e3f3;font-size:18px;line-height:1.7;margin-bottom:25px}
.tls-button{display:inline-block;padding:13px 21px;border-radius:8px;background:var(--tls-blue);color:#fff!important;font-size:14px;font-weight:750;text-decoration:none!important}
.tls-button:hover{background:#064dac}.tls-button-small{padding:10px 13px;font-size:12px}
.tls-hero-art{border:1px solid #41638d;border-radius:20px;padding:34px;background:linear-gradient(145deg,#21466f,#10243c);min-height:285px;display:flex;flex-direction:column;justify-content:center;gap:20px;box-shadow:0 25px 55px #06142666}
.tls-hero-art strong{font-size:44px;color:white;letter-spacing:-.04em}.tls-hero-art span{color:#aad0f4}.tls-art-dots{display:flex;gap:10px}.tls-art-dots i{display:block;height:12px;width:12px;border-radius:50%;background:#57bfff}
.tls-section{padding:72px 0}.tls-section-alt{background:var(--tls-surface)}
.tls-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}
.tls-section h2{font-size:clamp(25px,3vw,36px);line-height:1.18;margin:0;color:var(--tls-navy)}
.tls-section-heading p{color:var(--tls-muted);margin:9px 0 0}.tls-product-grid,.tls-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.tls-product-card,.tls-post-card{border:1px solid var(--tls-line);background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 8px 25px #122c480a}
.tls-product-image,.tls-post-image{display:block;aspect-ratio:16/10;background:#e7f0fa;overflow:hidden}
.tls-product-image img,.tls-post-image img{width:100%;height:100%;object-fit:cover}
.tls-placeholder{width:100%;height:100%;display:flex;justify-content:center;align-items:center;color:#4d739e;font-size:30px;font-weight:900;letter-spacing:.16em}
.tls-card-content{padding:22px}.tls-card-content h3{font-size:21px;line-height:1.32;margin:8px 0 10px}.tls-card-content h3 a{color:var(--tls-navy);text-decoration:none}
.tls-card-content p{color:var(--tls-muted);font-size:14px;line-height:1.65}.tls-card-content .tls-eyebrow{color:var(--tls-blue);margin:0}
.tls-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:17px}.tls-text-link{font-size:13px;font-weight:700}
.tls-category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.tls-category-grid a{background:white;border:1px solid var(--tls-line);border-radius:12px;padding:24px 16px;font-weight:750;color:var(--tls-navy);text-decoration:none;text-align:center}.tls-category-grid a:hover{border-color:var(--tls-blue)}
.tls-disclosure{background:#eff6ff;border-left:3px solid var(--tls-blue);padding:14px 18px;font-size:13px;color:#405676;margin:0 0 25px}
.tls-empty{color:var(--tls-muted)}
.tls-article{max-width:850px;margin:55px auto;padding:0 24px}.tls-article h1{line-height:1.15}.tls-article .tls-product-image{border-radius:12px;margin:25px 0}
.tls-bullets{margin:12px 0 25px;padding-left:20px}.tls-bullets li{margin-bottom:6px}
@media(max-width:900px){.tls-product-grid,.tls-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tls-category-grid{grid-template-columns:repeat(2,1fr)}.tls-hero .tls-container{grid-template-columns:1fr}.tls-hero-art{min-height:180px}}
@media(max-width:600px){.tls-container{padding:0 18px}.tls-hero{padding:55px 0}.tls-hero h1{font-size:39px}.tls-hero p{font-size:16px}.tls-section{padding:45px 0}.tls-product-grid,.tls-post-grid{grid-template-columns:1fr}.tls-section-heading{display:block}.tls-hero-art{display:none}}

/* TechLabShopper desktop refinement — mobile and tablet styles untouched. */
@media (min-width: 1100px) {
  /* Keep the hero prominent but bring featured products above the fold sooner. */
  .tls-hero { padding: 46px 0 44px; }
  .tls-hero .tls-container { grid-template-columns: 1.17fr .83fr; gap: 38px; }
  .tls-hero h1 { font-size: clamp(39px, 3.2vw, 46px); line-height: 1.1; margin: 12px 0 14px; }
  .tls-hero p { font-size: 16px; line-height: 1.55; margin-bottom: 20px; max-width: 530px; }
  .tls-hero .tls-button { padding: 11px 18px; }
  .tls-hero-art { min-height: 205px; padding: 23px 27px; gap: 13px; border-radius: 16px; box-shadow: 0 15px 32px #06142640; }
  .tls-hero-art strong { font-size: 32px; line-height: 1.18; }
  .tls-art-dots i { height: 9px; width: 9px; }
  .tls-art-dots { gap: 8px; }
  .tls-section { padding: 48px 0; }
  .tls-section h2 { font-size: clamp(26px, 2.3vw, 32px); }
  .tls-section-heading { margin-bottom: 20px; }
  /* Astra header is outside the child homepage template. Desktop-only sizing. */
  .site-header .custom-logo-link img { max-height: 53px; width: auto; }
  .ast-primary-header-bar .site-primary-header-wrap { min-height: 68px; }
  .main-header-menu > .menu-item > .menu-link { padding-top: 12px; padding-bottom: 12px; }
}

/* Version 1.3.0: Compact desktop-only Astra header.
   JS groups the existing desktop header bars; mobile markup is unchanged. */
@media (min-width: 1100px) {
  .tls-desktop-merged-row {
    display: grid;
    grid-template-columns: minmax(165px, 235px) minmax(0, 1fr);
    align-items: center;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e9edf4;
  }
  .tls-desktop-merged-row > .ast-primary-header-bar,
  .tls-desktop-merged-row > .ast-below-header-bar {
    min-width: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .tls-desktop-merged-row .site-primary-header-wrap,
  .tls-desktop-merged-row .ast-below-header-bar .ast-builder-grid-row {
    min-height: 70px;
  }
  .tls-desktop-merged-row .site-primary-header-wrap,
  .tls-desktop-merged-row .ast-below-header-bar .ast-builder-grid-row,
  .tls-desktop-merged-row .ast-below-header-bar .ast-builder-grid-row-container {
    max-width: none;
  }
  .tls-desktop-merged-row .ast-primary-header-bar .ast-builder-grid-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .tls-desktop-merged-row .ast-below-header-bar .ast-builder-grid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .tls-desktop-merged-row .ast-below-header-bar .site-header-section {
    min-width: 0;
  }
  .tls-desktop-merged-row .site-branding { margin: 0; }
  .tls-desktop-merged-row .custom-logo-link img { max-height: 45px; width: auto; }
  .tls-desktop-merged-row .main-header-menu .menu-link { padding-top: 10px; padding-bottom: 10px; }
  .tls-desktop-merged-row .ast-below-header-bar .ast-container { max-width: none; }
  .tls-desktop-merged-row .ast-below-header-bar .main-header-bar-navigation { width: auto; }
}

/* Product affiliate disclosure: compact, near the first affiliate link. */
.tls-article .tls-affiliate-note{background:none;border:0;padding:0;margin:12px 0 4px;font-size:12px;line-height:1.5;color:#61738b;font-style:italic}

/* TechLabShopper category archive styling */
body.category .ast-archive-description {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 18px 0 !important;
    padding: 6px 0 12px !important;
}

body.category .ast-archive-description .ast-archive-title,
body.category .ast-archive-description h1,
body.category .page-title {
    font-size: clamp(30px, 4.2vw, 42px) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    color: #10223d !important;
    margin: 0 0 8px 0 !important;
    max-width: none !important;
}

body.category .ast-archive-description p {
    max-width: none !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    body.category .ast-archive-description {
        margin: 0 0 14px 0 !important;
        padding: 4px 0 10px !important;
    }

    body.category .ast-archive-description h1,
    body.category .page-title {
        font-size: 30px !important;
        font-weight: 600 !important;
    }
}

