/*
 Theme Name:   BiometryPeptides
 Theme URI:    https://biometrypeptides.com
 Description:  BiometryPeptides child theme for Astra
 Author:       BiometryPeptides
 Template:     astra
 Version:      3.2.0
*/

:root {
    --bp-royal: #1a3a6b;
    --bp-royal-dark: #122b52;
    --bp-royal-light: #2454a0;
    --bp-font: 'Montserrat', sans-serif;
}

body, h1, h2, h3, h4, h5, h6, p, a, button, input, select {
    font-family: var(--bp-font) !important;
}

/* === LOGO === */
#masthead .site-title,
#masthead .site-description,
#masthead .ast-site-title-wrap {
    display: none !important;
}

.site-header .custom-logo {
    height: 72px;
    width: auto;
    max-width: 340px;
    filter: brightness(0) invert(1);
}

/* === INFO BAR === */
.bp-info-bar {
    background: #eaf4ff;
    padding: 7px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--bp-royal);
    border-bottom: 1px solid rgba(47,86,128,0.15);
}

/* === HEADER === */
.site-header, #masthead, .ast-primary-header-bar, .main-header-bar {
    background: linear-gradient(135deg, #11355d 0%, #1c4b81 50%, #1b5482 100%) !important;
    border-bottom: none !important;
}
.site-header .site-title a, .site-header .ast-site-identity a {
    color: #fff !important;
}
.main-header-menu .menu-link, .ast-primary-menu > li > a {
    color: #93c5fd !important;
    font-weight: 600 !important;
}
.main-header-menu .menu-link:hover, .ast-primary-menu > li > a:hover {
    color: #fff !important;
}

/* ===================================================
   HERO BANNER — volledig breed, bovenaan de pagina
   =================================================== */

/* Geen horizontale scroll door de breakout */
body.woocommerce-shop {
    overflow-x: hidden;
}

.bp-hero-banner {
    position: relative;
    /* Breakout: centreert op viewport ongeacht containerbreedte */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    min-height: 480px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0;
}

.bp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(17,53,93,0.92) 0%,
        rgba(17,53,93,0.72) 40%,
        rgba(17,53,93,0.15) 70%,
        transparent 100%
    );
    z-index: 1;
}

.bp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    padding: 60px 0 60px 6%;
}

.bp-hero-content h1 {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.1 !important;
    margin: 0 0 14px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.bp-hero-subtitle {
    font-size: 1rem !important;
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    margin: 0 0 28px !important;
}

.bp-hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #1b6dff 0%, #2454a0 100%) !important;
    color: #fff !important;
    padding: 14px 36px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    border-radius: 3px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(27,109,255,0.35);
}

.bp-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27,109,255,0.5);
}

@media (max-width: 768px) {
    .bp-hero-banner { min-height: 300px; }
    .bp-hero-content { padding: 40px 20px; max-width: 100%; }
    .bp-hero-content h1 { font-size: 1.8rem !important; }
    .bp-hero-overlay { background: rgba(17,53,93,0.82); }
}

/* ===================================================
   PRODUCTEN — 4 PER RIJ, GELIJKE HOOGTE, GEEN PAGING
   =================================================== */

/* Verberg sorteer-balk en paginering */
.woocommerce-shop .woocommerce-result-count,
.woocommerce-shop .woocommerce-ordering,
.woocommerce-shop .woocommerce-pagination,
.woocommerce-shop nav.woocommerce-pagination {
    display: none !important;
}

/* Grid: 4 kolommen */
ul.products,
.woocommerce-shop ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 40px !important;
    align-items: stretch !important;
}

@media (max-width: 1024px) {
    ul.products, .woocommerce-shop ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    ul.products, .woocommerce-shop ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}
@media (max-width: 480px) {
    ul.products, .woocommerce-shop ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* Productkaart — Astra-klasse override */
ul.products li.product,
ul.products li.product.ast-grid-common-col,
ul.products li.product.ast-full-width {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s, border-color 0.2s !important;
}

ul.products li.product:hover {
    border-color: var(--bp-royal-light) !important;
    box-shadow: 0 4px 18px rgba(26,58,107,0.13) !important;
}

/* Afbeelding: vaste hoogte */
ul.products li.product img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Card body */
ul.products li.product .astra-shop-summary-wrap {
    padding: 12px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* Categorielabel */
ul.products li.product .ast-woo-product-category {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: var(--bp-royal-light) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 0 4px !important;
}

/* Producttitel */
ul.products li.product h2,
ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #1a2433 !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
    flex: 1 !important;
}

/* Prijs */
ul.products li.product .price {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--bp-royal) !important;
    margin: 0 0 10px !important;
    display: block !important;
}

ul.products li.product .price del {
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    color: #999 !important;
    margin-right: 4px;
}

ul.products li.product .price ins {
    text-decoration: none !important;
}

/* Knop */
ul.products li.product .button,
ul.products li.product a.button,
ul.products li.product a.add_to_cart_button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: var(--bp-royal) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 14px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    margin-top: auto !important;
}

ul.products li.product .button:hover,
ul.products li.product a.add_to_cart_button:hover {
    background: var(--bp-royal-light) !important;
}

/* Astra on-card hover-knop verbergen */
ul.products li.product .ast-on-card-button {
    display: none !important;
}

/* Sale badge */
ul.products li.product .onsale,
ul.products li.product .sale-price-off {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    background: #e53935 !important;
    color: #fff !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 2px !important;
    text-transform: uppercase !important;
    z-index: 5 !important;
    margin: 0 !important;
}

/* ===================================================
   CATEGORIE SECTIES OP SHOP-PAGINA
   =================================================== */

.bp-shop-categories {
    margin: 20px 0 40px;
}

.bp-cat-block {
    margin-bottom: 50px;
}

.bp-cat-title {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--bp-royal) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 18px !important;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--bp-royal);
}

.bp-cat-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.bp-cat-title a:hover {
    color: var(--bp-royal-light) !important;
}

/* ===================================================
   CATEGORIE BANNER (categoriepagina's)
   =================================================== */

.bp-category-banner {
    background: linear-gradient(135deg, #11355d, #1c4b81);
    padding: 40px 0;
    margin-bottom: 30px;
}

.bp-category-banner h1 {
    color: #fff !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

/* ===================================================
   RESEARCH NOTICE
   =================================================== */

.bp-research-notice {
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    border-radius: 3px;
    padding: 10px 16px;
    font-size: 0.8rem;
    color: #78350f;
    margin: 0 0 20px;
}

/* ===================================================
   FOOTER
   =================================================== */

.bp-footer-credits {
    background: #0f2a4a;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 14px 0;
    font-size: 0.78rem;
}
