/* ============================================================================
   BAFLEH SHOP PARITY B4 - 2026-09-02
   Reference: current bafleh.com /shop + Flatsome child-theme custom CSS.
   Scope: catalogue/archive pages only. Backend/checkout/product detail are not
   restyled here.
   ============================================================================ */

.bafleh-wp-shop-title {
    padding: 40px 0 18px !important;
    border: 0 !important;
    background: #fff !important;
}
.bafleh-wp-shop-title .container,
.bafleh-wp-shop > .container {
    width: min(100% - 40px, 1350px) !important;
    max-width: 1350px !important;
}
.bafleh-wp-shop-title .catalog-heading {
    display: block !important;
    max-width: none !important;
    margin: 0 auto !important;
    text-align: center !important;
}
.bafleh-wp-shop-title .catalog-heading h1 {
    margin: 0 0 6px !important;
    color: #1a1a1a !important;
    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;
    text-transform: none !important;
}
.bafleh-wp-shop-title .catalog-title-divider {
    position: relative;
    display: block !important;
    width: 178px !important;
    height: 13px !important;
    margin: 5px auto 0 !important;
    background: transparent !important;
}
.bafleh-wp-shop-title .catalog-title-divider::before,
.bafleh-wp-shop-title .catalog-title-divider::after {
    content: "";
    position: absolute;
    top: 6px;
    width: 76px;
    height: 1px;
    background: #b7a889;
}
.bafleh-wp-shop-title .catalog-title-divider::before { left: 0; }
.bafleh-wp-shop-title .catalog-title-divider::after { right: 0; }
.bafleh-wp-shop-title .catalog-title-divider {
    box-shadow: inset 0 0 0 transparent;
}
.bafleh-wp-shop-title .catalog-title-divider + p {
    max-width: 750px !important;
    margin: 10px auto 0 !important;
    text-align: center !important;
}
.bafleh-wp-shop-title .catalog-title-divider:empty {
    /* Small centre mark matching the understated WordPress divider. */
    background-image: radial-gradient(circle at center, #b7a889 0 2px, transparent 2.5px) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.bafleh-wp-shop {
    padding: 12px 0 70px !important;
    background: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
}
.bafleh-wp-shop .catalog-intro {
    max-width: 750px !important;
    margin: 0 auto 30px !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: center !important;
    font-size: 18px !important;
    line-height: 1.65 !important;
}
.bafleh-wp-shop .catalog-layout {
    display: grid !important;
    grid-template-columns: 238px minmax(0,1fr) !important;
    gap: 34px !important;
    align-items: start !important;
}
.bafleh-wp-shop .catalog-sidebar {
    position: relative !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
.bafleh-wp-shop .catalog-sidebar .live-filter-form {
    position: sticky !important;
    top: 12px !important;
    padding: 0 24px 0 0 !important;
    border: 0 !important;
    border-right: 1px solid #ececec !important;
    background: #fff !important;
}
.bafleh-wp-shop .live-filter-heading {
    margin: 0 0 17px !important;
    padding: 0 0 9px !important;
    border-bottom: 2px solid #111 !important;
    color: #111 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}
.bafleh-wp-shop .filter-block {
    margin: 0 0 16px !important;
    padding: 0 0 16px !important;
    border-bottom: 1px solid #ececec !important;
}
.bafleh-wp-shop .filter-title-row {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 9px !important;
}
.bafleh-wp-shop .filter-title-row h3,
.bafleh-wp-shop .filter-block > h3 {
    margin: 0 !important;
    color: #000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.bafleh-wp-shop .filter-title-row > a {
    color: #777 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
.bafleh-wp-shop .filter-title-row > a:hover { color: #000 !important; }
.bafleh-wp-shop .filter-option-list,
.bafleh-wp-shop .filter-category-list {
    max-height: 170px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 5px 0 0 !important;
    scrollbar-width: thin;
}
.bafleh-wp-shop .live-filter-option {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    color: #333 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.42 !important;
    cursor: pointer !important;
}
.bafleh-wp-shop .live-filter-option input[type="checkbox"],
.bafleh-wp-shop .live-filter-option input[type="radio"] {
    flex: 0 0 auto !important;
    width: 14px !important;
    height: 14px !important;
    margin: 2px 0 0 !important;
    accent-color: #111 !important;
}
.bafleh-wp-shop .live-filter-option span { min-width: 0; }
.bafleh-wp-shop .filter-category-link {
    position: relative;
    display: block !important;
    padding: 4px 0 4px 22px !important;
    color: #333 !important;
    font-size: 13px !important;
    line-height: 1.42 !important;
    text-decoration: none !important;
}
.bafleh-wp-shop .filter-category-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 13px;
    height: 13px;
    border: 1px solid #888;
    background: #fff;
}
.bafleh-wp-shop .filter-category-link.active::before { background: #111; box-shadow: inset 0 0 0 3px #fff; }
.bafleh-wp-shop .filter-category-link.active { color: #000 !important; font-weight: 500 !important; }

.bafleh-wp-shop .price-filter-row {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 6px !important;
}
.bafleh-wp-shop .price-filter-row input {
    min-width: 0 !important;
    width: 100% !important;
    height: 36px !important;
    padding: 0 8px !important;
    border: 1px solid #d6d6d6 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 12px !important;
    box-shadow: none !important;
}
.bafleh-wp-shop .price-filter-action {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 7px !important;
    margin-top: 8px !important;
    color: #666 !important;
    font-size: 11px !important;
}
.bafleh-wp-shop .live-filter-price-button {
    min-height: 30px !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}
.bafleh-wp-shop .live-clear-all-filters {
    display: inline-block !important;
    margin-top: 1px !important;
    padding: 8px 11px !important;
    border: 1px solid #777 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: .03em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.bafleh-wp-shop .catalog-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 38px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
}
.bafleh-wp-shop .catalog-result-count {
    color: #666 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}
.bafleh-wp-shop .catalog-sort-form select {
    min-width: 215px !important;
    height: 36px !important;
    padding: 0 30px 0 10px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    color: #444 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    box-shadow: none !important;
}
.bafleh-wp-shop .catalog-filter-active-row {
    width: calc(100% - 272px) !important;
    margin: 0 0 14px auto !important;
    gap: 6px !important;
}
.bafleh-wp-shop .catalog-filter-chip {
    min-height: 26px !important;
    padding: 5px 9px !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #555 !important;
    font-size: 11px !important;
}

.bafleh-wp-shop .live-product-grid {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 28px 20px !important;
}
.bafleh-wp-shop .live-product-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 15px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f2f2f2 !important;
    box-shadow: none !important;
}
.bafleh-wp-shop .live-product-image-wrap,
.bafleh-wp-shop .live-product-image {
    background: #f2f2f2 !important;
}
.bafleh-wp-shop .live-product-image-primary,
.bafleh-wp-shop .live-product-image-secondary {
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
}
.bafleh-wp-shop .live-product-info {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    padding: 1.4em 0 0 !important;
    text-align: left !important;
}
.bafleh-wp-shop .live-product-info h3,
.bafleh-wp-shop .live-product-card h3 {
    min-height: 44px !important;
    margin: 0 0 8px !important;
    color: #000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    text-align: left !important;
}
.bafleh-wp-shop .live-product-info h3 a { color: #000 !important; text-decoration: none !important; }
.bafleh-wp-shop .live-price-row {
    justify-content: flex-start !important;
    min-height: 26px !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    line-height: 1.45 !important;
}
.bafleh-wp-shop .live-price-row .price {
    color: #222 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
.bafleh-wp-shop .live-price-row .old-price { font-size: 12px !important; }
.bafleh-wp-shop .live-card-cart-form { margin-top: 9px !important; }
.bafleh-wp-shop .live-add-cart {
    min-height: 34px !important;
    border-radius: 10px !important;
    background: #000 !important;
    font-size: 10px !important;
}
.bafleh-wp-shop .live-card-tool { box-shadow: none !important; }

.bafleh-wp-shop .live-pager {
    gap: 5px !important;
    margin-top: 38px !important;
    margin-bottom: 20px !important;
}
.bafleh-wp-shop .live-pager a {
    min-width: 32px !important;
    height: 32px !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #555 !important;
    font-size: 12px !important;
}
.bafleh-wp-shop .live-pager a.active,
.bafleh-wp-shop .live-pager a:hover {
    border-color: #000 !important;
    background: #000 !important;
    color: #fff !important;
}

/* Tablet + mobile: preserve the B2 drawer mechanics but use WordPress sizing. */
@media (max-width: 980px) {
    .bafleh-wp-shop-title { padding: 30px 0 15px !important; }
    .bafleh-wp-shop-title .container,
    .bafleh-wp-shop > .container { width: min(100% - 28px,1350px) !important; }
    .bafleh-wp-shop-title .catalog-heading h1 { font-size: 30px !important; }
    .bafleh-wp-shop-title .catalog-title-divider { width: 150px !important; }
    .bafleh-wp-shop-title .catalog-title-divider::before,
    .bafleh-wp-shop-title .catalog-title-divider::after { width: 62px !important; }
    .bafleh-wp-shop { padding-top: 5px !important; }
    .bafleh-wp-shop .catalog-layout { display: block !important; }
    .bafleh-wp-shop .catalog-filter-active-row { width: 100% !important; margin: 0 0 13px !important; }
    .bafleh-wp-shop .catalog-sidebar .live-filter-form {
        position: static !important;
        padding: 0 !important;
        border: 0 !important;
    }
    .bafleh-wp-shop .catalog-sidebar.is-open {
        width: min(88vw,380px) !important;
        padding: 0 !important;
        background: #fff !important;
    }
    .bafleh-wp-shop .catalog-filter-drawer-head { padding: 18px 19px !important; }
    .bafleh-wp-shop .catalog-filter-scroll { padding: 0 19px 90px !important; }
    .bafleh-wp-shop .catalog-filter-mobile-footer { padding: 12px 19px !important; }
    .bafleh-wp-shop .filter-block { padding: 16px 0 !important; margin: 0 !important; }
    .bafleh-wp-shop .filter-title-row h3 { font-size: 13px !important; }
    .bafleh-wp-shop .filter-title-row > a { font-size: 12px !important; }
    .bafleh-wp-shop .live-filter-option { min-height: 38px !important; align-items: center !important; font-size: 14px !important; }
    .bafleh-wp-shop .live-filter-option input[type="checkbox"],
    .bafleh-wp-shop .live-filter-option input[type="radio"] { width: 17px !important; height: 17px !important; margin-top: 0 !important; }
    .bafleh-wp-shop .filter-option-list,
    .bafleh-wp-shop .filter-category-list { max-height: 245px !important; }
    .bafleh-wp-shop .price-filter-row input { height: 44px !important; font-size: 16px !important; }
    .bafleh-wp-shop .live-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 22px 12px !important; }
    .bafleh-wp-shop .live-product-card { padding: 10px !important; }
    .bafleh-wp-shop .live-product-info { padding-top: 11px !important; }
    .bafleh-wp-shop .live-product-info h3,
    .bafleh-wp-shop .live-product-card h3 { min-height: 0 !important; font-size: 14px !important; line-height: 1.45 !important; }
    .bafleh-wp-shop .live-price-row .price { font-size: 14px !important; }
    .bafleh-wp-shop .catalog-toolbar { margin-bottom: 12px !important; }
}

@media (max-width: 560px) {
    .bafleh-wp-shop-title .catalog-heading h1 { font-size: 30px !important; }
    .bafleh-wp-shop .live-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 20px 9px !important; }
    .bafleh-wp-shop .live-product-card { padding: 8px !important; }
    .bafleh-wp-shop .live-product-info h3,
    .bafleh-wp-shop .live-product-card h3 { font-size: 13px !important; line-height: 1.4 !important; }
    .bafleh-wp-shop .live-price-row { align-items: flex-start !important; }
    .bafleh-wp-shop .live-price-row .price { font-size: 13px !important; }
    .bafleh-wp-shop .live-add-cart { min-width: 0 !important; width: 100% !important; min-height: 36px !important; font-size: 9px !important; }
}

@media (max-width: 360px) {
    .bafleh-wp-shop .live-product-grid { grid-template-columns: 1fr !important; }
    .bafleh-wp-shop .live-product-info h3,
    .bafleh-wp-shop .live-product-card h3 { font-size: 14px !important; }
}
