﻿/*
 * Bafleh Jewellery WordPress typography + geometry parity B3
 * Baseline: supplied bafleh.com Flatsome child-theme CSS.
 * Loaded after A2/mobile/live-parity CSS and intentionally overrides only
 * public visual metrics. No commerce, queue, CMS or product logic here.
 */
:root {
    --bafleh-font-ui: "Montserrat", Arial, Helvetica, sans-serif;
    --bafleh-font-editorial: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --bafleh-font-body: Arial, Helvetica, sans-serif;
    --bafleh-wp-grey: #f2f2f2;
    --bafleh-wp-footer: #f6f6f6;
}

/* Base typography: old site uses Arial for body copy, Montserrat for UI/nav,
   Cormorant Garamond for editorial headings. */
body.bafleh-public-body {
    font-family: var(--bafleh-font-body) !important;
    font-size: 16px;
    line-height: 1.6;
    color: #171717;
}
.bafleh-public-body button,
.bafleh-public-body input,
.bafleh-public-body select,
.bafleh-public-body textarea { font-family: var(--bafleh-font-body); }

/* Header/navigation - legacy child theme: Montserrat 12px/500, 10px link
   padding and 10px LI spacing. */
.bafleh-live-menu { gap: 0 !important; }
.bafleh-live-menu > li { margin: 0 10px !important; }
.bafleh-live-menu > li > a,
.bafleh-live-menu > li > button {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-family: var(--bafleh-font-ui) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}
.new-menu-dropdown-panel a,
.bafleh-header-search-top,
.bafleh-site-search-form button,
.bafleh-search-suggestions,
.bafleh-header-action-label,
.bafleh-live-localization-choice,
.bafleh-live-localization-choice select {
    font-family: var(--bafleh-font-ui) !important;
}
.bafleh-live-logo img { width: 150px !important; max-height: 62px !important; }

/* Homepage editorial typography - legacy section title = Cormorant 50px,
   description = Arial 16px/1.6-1.8. */
.bafleh-wp-home-label,
.bafleh-wp-home-cta,
.bafleh-live-kicker { font-family: var(--bafleh-font-ui) !important; }
.bafleh-wp-home-title,
.bafleh-live-hero-copy h1,
.bafleh-live-hero-copy h2 {
    font-family: var(--bafleh-font-editorial) !important;
    font-size: clamp(42px, 4vw, 50px) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
}
.bafleh-wp-home-description,
.bafleh-live-hero-copy > p:last-child {
    font-family: var(--bafleh-font-body) !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

/* Shared headings/content pages. */
.section-title,
.section-title h1,
.section-title h2,
.live-content-hero h1,
.live-page-main h1,
.live-page-main h2,
.live-page-main h3,
.cms-copy h1,
.cms-copy h2,
.cms-copy h3,
.bafleh-live-newsletter h3,
.bfl-heading,
.bfl-subheading,
.bfl-hero-title {
    font-family: var(--bafleh-font-editorial) !important;
    font-weight: 400 !important;
}
.live-page-main,
.cms-copy,
.cms-copy p,
.live-wordpress-page-content,
.live-wordpress-page-content p {
    font-family: var(--bafleh-font-body) !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}
.live-page-main h2,
.cms-copy h2 { font-size: 42px !important; line-height: 1.3 !important; }
.live-page-main h3,
.cms-copy h3 { font-size: 26px !important; line-height: 1.35 !important; }

/* Shop archive. Exact legacy references:
   New Collection = Georgia/serif 42px/400;
   product names = 16px, 22px line height, weight 500;
   product inner = #f2f2f2 with 15px padding. */
.catalog-title-band { padding-top: 40px !important; }
.catalog-heading h1 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 42px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}
.catalog-title-divider { margin-top: 8px !important; }
.live-product-card {
    background: var(--bafleh-wp-grey) !important;
    padding: 15px !important;
    border: 0 !important;
}
.live-product-image-wrap { background: var(--bafleh-wp-grey) !important; }
.live-product-info { padding: 14px 0 0 !important; }
.live-product-info h3,
.live-product-card h3 {
    min-height: 44px !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    font-family: var(--bafleh-font-body) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    color: #000 !important;
}
.live-price-row { min-height: 24px !important; }
.live-price-row .price { font-size: 14px !important; font-weight: 500 !important; color: #222 !important; }
.live-price-row .old-price { font-size: 12px !important; }
.live-add-cart,
.catalog-sort-form select,
.live-filter-heading,
.filter-block h3,
.live-filter-option,
.filter-link-list a,
.live-clear-filters,
.live-filter-price-button,
.catalog-result-count,
.catalog-filter-chip {
    font-family: var(--bafleh-font-body) !important;
}
.catalog-result-count { font-size: 13px !important; }
.catalog-sort-form select { font-size: 13px !important; }
.live-filter-heading { font-size: 14px !important; }
.filter-block h3 { font-size: 13px !important; }
.live-filter-option,
.filter-link-list a { font-size: 13px !important; }
.live-add-cart { min-height: 36px !important; padding: 8px 15px !important; font-size: 11px !important; }

/* Product details: restore normal retail scale while keeping B2 functionality. */
.product-summary-live h1 {
    font-family: var(--bafleh-font-body) !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}
.live-detail-price { font-size: 24px !important; }
.product-short-description,
.live-delivery-message,
.live-stock-line { font-size: 14px !important; }
.live-product-meta-lines p { font-size: 13px !important; }
.live-product-tab-nav button { font-family: var(--bafleh-font-ui) !important; font-size: 12px !important; font-weight: 500 !important; }
.live-product-tab-panel { font-size: 15px !important; line-height: 1.8 !important; }
.live-product-attributes th,
.live-product-attributes td { font-size: 13px !important; }
.live-related-products-section h2 {
    font-family: var(--bafleh-font-editorial) !important;
    font-size: 30px !important;
    font-weight: 400 !important;
}

/* Forms/buttons - match thin-border WordPress controls. */
.bafleh-public-body .form-control,
.bafleh-public-body input[type="text"],
.bafleh-public-body input[type="email"],
.bafleh-public-body input[type="tel"],
.bafleh-public-body input[type="search"],
.bafleh-public-body input[type="number"],
.bafleh-public-body select,
.bafleh-public-body textarea {
    font-family: var(--bafleh-font-body) !important;
    font-size: 14px;
}
.btn.btn-gold,
.btn.btn-outline-dark,
.bafleh-live-newsletter-form button,
.live-product-add-button,
.catalog-mobile-filter-button {
    font-family: var(--bafleh-font-ui) !important;
    font-weight: 500 !important;
}

/* Footer - exact legacy child-theme scale: grey background, 13px headings/links,
   14px copyright area. */
.bafleh-live-footer-main {
    padding: 60px 0 40px !important;
    background: var(--bafleh-wp-footer) !important;
}
.bafleh-live-footer h5 {
    margin-bottom: 15px !important;
    font-family: var(--bafleh-font-body) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}
.bafleh-live-footer a,
.bafleh-live-footer p {
    margin-bottom: 2px !important;
    color: #000 !important;
    font-family: var(--bafleh-font-body) !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}
.bafleh-live-footer-bottom {
    font-family: var(--bafleh-font-body) !important;
    font-size: 14px !important;
}

/* Commerce/account screens should feel like the same customer website rather
   than a compressed admin surface. */
.live-commerce-page-title h1,
.commerce-page > div > h1,
.commerce-page .commerce-heading > h1,
.live-woo-auth-card h1,
.commerce-auth-card h1 {
    font-family: var(--bafleh-font-editorial) !important;
    font-size: 32px !important;
    font-weight: 400 !important;
}
.commerce-panel label,
.commerce-panel .form-control,
.commerce-auth-card .form-control,
.live-woo-auth-card label,
.live-woo-auth-card > p,
.cart-product strong,
.cart-product div,
.cart-total,
.checkout-item,
.checkout-summary > div {
    font-size: 13px !important;
}

/* Mobile values are taken from the old child-theme responsive rules where
   available, then kept at readable commerce sizes for touch use. */
@media (max-width: 980px) {
    .bafleh-live-menu > li { margin: 0 !important; }
    .bafleh-live-menu > li > a,
    .bafleh-live-menu > li > button {
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-family: var(--bafleh-font-ui) !important;
        font-size: 12px !important;
        font-weight: 500 !important;
    }
    .bafleh-live-logo img { max-height: 50px !important; }
    .bafleh-wp-home-title,
    .bafleh-live-hero-copy h1,
    .bafleh-live-hero-copy h2 { font-size: 40px !important; line-height: 1.2 !important; }
    .bafleh-wp-home-description,
    .bafleh-live-hero-copy > p:last-child { font-size: 14px !important; line-height: 1.65 !important; }
    .catalog-heading h1 { font-size: 30px !important; }
    .catalog-result-count { font-size: 12px !important; }
    .catalog-mobile-filter-button,
    .catalog-mobile-actions .catalog-sort-form select { font-family: var(--bafleh-font-ui) !important; font-size: 12px !important; }
    .live-product-card { padding: 10px !important; }
    .live-product-info { padding-top: 11px !important; }
    .live-product-info h3,
    .live-product-card h3 {
        min-height: 0 !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
        font-weight: 500 !important;
    }
    .live-price-row .price { font-size: 14px !important; }
    .live-add-cart { min-height: 38px !important; font-size: 10px !important; }
    .product-summary-live h1 { font-size: 25px !important; }
    .product-short-description,
    .live-delivery-message,
    .live-stock-line { font-size: 13px !important; }
    .live-page-main,
    .cms-copy,
    .cms-copy p,
    .live-wordpress-page-content,
    .live-wordpress-page-content p { font-size: 15px !important; }
    .live-page-main h2,
    .cms-copy h2 { font-size: 28px !important; }
    .bafleh-live-footer h5 { font-size: 13px !important; }
    .bafleh-live-footer a,
    .bafleh-live-footer p { font-size: 12px !important; }
    .bafleh-live-footer-bottom { font-size: 12px !important; }
}

@media (max-width: 560px) {
    .bafleh-wp-home-title,
    .bafleh-live-hero-copy h1,
    .bafleh-live-hero-copy h2 { font-size: 34px !important; }
    .catalog-heading h1 { font-size: 30px !important; }
    .live-product-info h3,
    .live-product-card h3 { font-size: 13px !important; }
    .live-price-row .price { font-size: 13px !important; }
    .bafleh-live-footer-main { padding: 42px 0 32px !important; }
}


/* ==============================================================
   B3.1 - Restore the legacy WordPress E-Shop header CTA.
   The centre menu intentionally excludes E-Shop; the live site shows
   it as a dedicated right-side CTA. Search remains a separate action.
   ============================================================== */
@media (min-width: 981px) {
    .bafleh-live-header-shell {
        grid-template-columns: 205px minmax(0, 1fr) auto !important;
        column-gap: 22px !important;
    }
    .bafleh-live-header-actions {
        gap: 3px !important;
        overflow: visible !important;
    }
    .bafleh-live-eshop {
        display: block !important;
        flex: 0 0 auto;
        margin: 0 11px 0 0;
        align-self: center;
    }
    .bafleh-live-eshop a {
        position: relative;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 7px;
        height: 46px;
        padding: 0 0 8px !important;
        color: #111 !important;
        font-family: var(--bafleh-font-ui) !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        text-transform: none !important;
        text-decoration: none !important;
        white-space: nowrap;
    }
    .bafleh-live-eshop a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 2px;
        height: 2px;
        background: #111;
    }
    .bafleh-live-eshop a:hover,
    .bafleh-live-eshop a:focus-visible {
        color: #111 !important;
    }
    .bafleh-live-eshop a:hover::after,
    .bafleh-live-eshop a:focus-visible::after {
        height: 3px;
    }
    .bafleh-live-eshop svg {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px;
    }
}

@media (max-width: 1180px) and (min-width: 981px) {
    .bafleh-live-header-shell {
        grid-template-columns: 145px minmax(0, 1fr) auto !important;
        column-gap: 10px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    .bafleh-live-eshop { margin-right: 3px; }
    .bafleh-live-eshop a {
        gap: 4px;
        font-size: 12px !important;
    }
    .bafleh-live-eshop svg {
        width: 19px !important;
        height: 19px !important;
        flex-basis: 19px;
    }
    .bafleh-header-action { width: 32px !important; }
}

/* Mobile keeps Shop as the first quick-link in the drawer, avoiding
   duplicate E-Shop text in the compact header. */
@media (max-width: 980px) {
    .bafleh-live-eshop { display: none !important; }
}

/* ==============================================================
   B3.2 - Homepage geometry parity from the actual bafleh.com child theme
   and the approved 2026-08-31 desktop reference screenshot.

   Legacy source rules being mirrored:
   .section-content { margin-right:auto; margin-left:20px; padding:5rem 2rem; }
   body.home .section-content { align-items:flex-start; max-width:650px; }
   body.home .section-title/section-desc { text-align:left; }
   ============================================================== */

@media (min-width: 981px) {
    /* The WordPress homepage has one clean 100px header row. Localization and
       commerce utility icons are not shown on the editorial homepage. */
    body.bafleh-page-home .bafleh-live-utility {
        display: none !important;
    }

    body.bafleh-page-home .bafleh-live-header,
    body.bafleh-page-home .bafleh-live-header-shell {
        height: 100px !important;
        min-height: 100px !important;
    }

    body.bafleh-page-home .bafleh-live-header-shell {
        grid-template-columns: 220px minmax(0, 1fr) 135px !important;
        column-gap: 20px !important;
        padding: 0 44px !important;
    }

    body.bafleh-page-home .bafleh-live-logo img {
        width: 150px !important;
        max-height: 62px !important;
    }

    body.bafleh-page-home .bafleh-live-header-actions {
        justify-self: end !important;
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    /* The legacy home header exposes E-Shop as the right-side CTA. Search,
       wishlist, account and cart controls remain available on commerce pages. */
    body.bafleh-page-home .bafleh-live-header-actions > .bafleh-header-action {
        display: none !important;
    }

    body.bafleh-page-home .bafleh-live-eshop {
        display: block !important;
        margin: 0 !important;
    }

    body.bafleh-page-home .bafleh-live-eshop a {
        height: 48px !important;
        padding-bottom: 8px !important;
        color: #676767 !important;
        font-size: 14px !important;
    }

    /* WordPress editorial panel is top-left, not centered/bottom-centered. */
    body.bafleh-page-home .bafleh-wp-home-section {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        background-position: center top;
    }

    body.bafleh-page-home .bafleh-wp-home-content {
        width: min(650px, calc(100% - 40px)) !important;
        max-width: 650px !important;
        margin: 0 auto 0 20px !important;
        padding: 5rem 2rem !important;
        box-sizing: border-box !important;
        align-items: flex-start !important;
        text-align: left !important;
        background: rgba(0, 0, 0, var(--wp-home-overlay, .30)) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.bafleh-page-home .bafleh-wp-home-label {
        justify-content: flex-start !important;
        width: 100% !important;
        margin-bottom: 16px !important;
        text-align: left !important;
    }

    body.bafleh-page-home .bafleh-wp-home-title {
        width: 100% !important;
        margin: 0 0 .7rem !important;
        font-size: 50px !important;
        line-height: 1.3 !important;
        text-align: left !important;
    }

    body.bafleh-page-home .bafleh-wp-home-description {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }

    body.bafleh-page-home .bafleh-wp-home-cta {
        justify-content: flex-start !important;
        margin-top: 24px !important;
        text-align: left !important;
    }
}

/* Match the legacy mobile rule: normal document scrolling, readable serif
   headings and left-aligned editorial copy. Keep the modern mobile drawer and
   localization controls because they are useful on the compact header. */
@media (max-width: 980px) {
    body.bafleh-page-home .bafleh-wp-home-section {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        background-position: center top !important;
    }

    body.bafleh-page-home .bafleh-wp-home-content {
        width: calc(100% - 28px) !important;
        max-width: 650px !important;
        margin: 0 14px !important;
        padding: 2rem 1rem 3rem !important;
        box-sizing: border-box !important;
        align-items: flex-start !important;
        text-align: left !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.bafleh-page-home .bafleh-wp-home-label,
    body.bafleh-page-home .bafleh-wp-home-title,
    body.bafleh-page-home .bafleh-wp-home-description,
    body.bafleh-page-home .bafleh-wp-home-cta {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    body.bafleh-page-home .bafleh-wp-home-title {
        width: 100% !important;
        margin-bottom: .7rem !important;
        font-size: 40px !important;
        line-height: 1.2 !important;
    }

    body.bafleh-page-home .bafleh-wp-home-description {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 480px) {
    body.bafleh-page-home .bafleh-wp-home-content {
        width: calc(100% - 20px) !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        padding: 28px 16px 36px !important;
    }

    body.bafleh-page-home .bafleh-wp-home-title {
        font-size: 32px !important;
        line-height: 1.18 !important;
    }

    body.bafleh-page-home .bafleh-wp-home-description {
        font-size: 13px !important;
    }
}
