/* Bafleh public-site consolidation. Loaded after legacy bafleh-site.css. */
:root {
    --bafleh-gold: #a77b25;
    --bafleh-gold-soft: #f5ead1;
    --bafleh-ink: #171717;
    --bafleh-line: #e7e0d5;
    --bafleh-focus: #b8862d;
}

.bafleh-public-body {
    min-width: 320px;
    overflow-x: hidden;
}

.new-bafleh-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 1px 0 rgba(17, 17, 17, .08);
}

.new-bafleh-header-inner {
    min-height: 84px;
    width: min(100% - 48px, 1640px);
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 26px;
}

.new-bafleh-logo img {
    width: 190px;
    max-height: 58px;
}

.new-bafleh-nav {
    min-width: 0;
}

.new-bafleh-menu {
    justify-content: center;
    gap: clamp(8px, 1.5vw, 24px);
}

.new-bafleh-menu > li {
    position: relative;
    list-style: none;
}

.new-bafleh-menu > li > a,
.new-bafleh-menu > li > button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 5px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--bafleh-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.new-bafleh-menu > li > a:hover,
.new-bafleh-menu > li > button:hover,
.new-bafleh-menu > li.is-open > button {
    color: var(--bafleh-gold);
    border-bottom-color: var(--bafleh-gold);
}

.new-bafleh-menu > li > button svg {
    width: 16px;
    height: 16px;
    transition: transform .16s ease;
}

.new-bafleh-menu > li.is-open > button svg {
    transform: rotate(180deg);
}

.new-menu-dropdown-panel {
    display: none;
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    width: 235px;
    padding: 8px;
    transform: translateX(-50%);
    border: 1px solid var(--bafleh-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(17, 17, 17, .15);
    z-index: 550;
}

.new-menu-dropdown.is-open .new-menu-dropdown-panel {
    display: block;
}

.new-menu-dropdown-panel a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 9px;
    color: #2d2a26;
    font-size: 13px;
    font-weight: 650;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
}

.new-menu-dropdown-panel a:hover {
    color: #765314;
    background: var(--bafleh-gold-soft);
}

.new-bafleh-shop-link {
    margin-left: 0;
}

.new-bafleh-shop-link a {
    min-height: 42px !important;
    padding: 0 16px !important;
    border: 1px solid #1f1f1f !important;
    border-radius: 999px;
    color: #fff !important;
    background: #1f1f1f;
    font-size: 13px !important;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.new-bafleh-shop-link a:hover {
    border-color: var(--bafleh-gold) !important;
    background: var(--bafleh-gold);
}

.new-bafleh-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.new-header-icon-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e4ded4;
    border-radius: 50%;
    background: #fff;
    color: #292622;
    cursor: pointer;
    text-decoration: none;
}

.new-header-icon-button:hover {
    color: #765314;
    border-color: #d3b575;
    background: #fffaf0;
}

.new-header-icon-button svg {
    width: 20px;
    height: 20px;
}

.new-mobile-menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid #e4ded4;
    border-radius: 50%;
    background: #fff;
}

.header-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 540;
    padding: 17px 24px;
    background: rgba(255, 255, 255, .99);
    border-top: 1px solid #eee8df;
    border-bottom: 1px solid #ddd4c7;
    box-shadow: 0 16px 38px rgba(17, 17, 17, .10);
}

.search-panel-form {
    width: min(960px, 100%);
    margin: 0 auto;
}

.search-panel-form input {
    border-radius: 10px;
    font-size: 15px;
}

.search-panel-form button {
    border-radius: 10px;
    cursor: pointer;
}

.site-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.bafleh-system-links {
    min-height: 31px;
    padding: 6px max(24px, calc((100vw - 1640px) / 2));
    align-items: center;
}

.new-bafleh-header a:focus-visible,
.new-bafleh-header button:focus-visible,
.bafleh-public-body main a:focus-visible,
.bafleh-public-body main button:focus-visible,
.bafleh-public-body input:focus-visible,
.bafleh-public-body select:focus-visible,
.bafleh-public-body textarea:focus-visible {
    outline: 3px solid var(--bafleh-focus);
    outline-offset: 3px;
}

.image-fallback-active {
    object-fit: contain !important;
    padding: 12px;
    background: #faf7ef !important;
}

.live-product-card,
.product-card,
.product-detail-live-grid,
.enquiry-panel,
.filter-panel {
    min-width: 0;
}

.live-product-hover a,
.live-add-cart,
.new-home-cta,
.btn {
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .new-menu-dropdown:hover .new-menu-dropdown-panel {
        display: block;
    }
}

@media (max-width: 1220px) {
    .new-bafleh-header-inner {
        width: min(100% - 30px, 1640px);
        grid-template-columns: 190px minmax(0, 1fr) auto;
        gap: 15px;
    }

    .new-bafleh-logo img { width: 174px; }
    .new-bafleh-menu { gap: 7px; }
    .new-bafleh-menu > li > a,
    .new-bafleh-menu > li > button { font-size: 12px; }
}

@media (max-width: 900px) {
    .new-bafleh-header-inner {
        min-height: 74px;
        grid-template-columns: 1fr auto;
        width: min(100% - 24px, 1640px);
    }

    .new-bafleh-logo img {
        width: 166px;
    }

    .new-bafleh-tools {
        grid-column: 2;
        grid-row: 1;
    }

    .new-mobile-menu-button {
        display: block;
    }

    .new-bafleh-nav {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        padding: 8px 0 14px;
        border-top: 1px solid #eee8df;
    }

    .new-bafleh-nav.is-open {
        display: block;
    }

    .new-bafleh-menu,
    .new-bafleh-menu.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .new-bafleh-menu > li > a,
    .new-bafleh-menu > li > button {
        width: 100%;
        min-height: 46px;
        justify-content: space-between;
        padding: 10px 12px;
        border: 0;
        border-radius: 9px;
        font-size: 13px;
        text-align: left;
    }

    .new-bafleh-menu > li > a:hover,
    .new-bafleh-menu > li > button:hover,
    .new-bafleh-menu > li.is-open > button {
        background: #f8f3e9;
    }

    .new-menu-dropdown-panel {
        position: static;
        width: auto;
        margin: 2px 0 7px 14px;
        transform: none;
        box-shadow: none;
        border-radius: 10px;
        background: #fcfaf6;
    }

    .new-bafleh-shop-link a {
        justify-content: center !important;
        margin-top: 5px;
    }

    .header-search-panel {
        padding: 14px 12px;
    }

    .bafleh-system-links {
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;
    }

    .new-home-panel {
        min-height: calc(100svh - 105px);
    }
}

@media (max-width: 560px) {
    .new-header-icon-button[href] {
        display: none;
    }

    .new-bafleh-logo img {
        width: 150px;
    }

    .new-home-panel-content {
        width: calc(100% - 22px);
        padding: 24px 20px;
    }

    .search-panel-form {
        grid-template-columns: 1fr 1fr;
    }

    .search-panel-form input {
        grid-column: 1 / -1;
    }
}

/* 2026-08-26 commerce */
.commerce-page{background:#f8f7f4;min-height:60vh}.commerce-auth-card,.commerce-form-card,.commerce-panel,.commerce-success{background:#fff;border:1px solid #e9e4dc;border-radius:16px;padding:24px;box-shadow:0 8px 28px rgba(0,0,0,.04)}.commerce-auth-card,.commerce-form-card{max-width:760px;margin:auto}.commerce-success{max-width:760px;text-align:center;margin:auto}.success-icon{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:#1f7a4d;color:#fff;font-size:36px;margin:0 auto 18px}.commerce-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.commerce-account-grid,.cart-grid,.checkout-grid,.order-detail-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:22px}.cart-grid,.checkout-grid,.order-detail-grid{grid-template-columns:minmax(0,2fr) minmax(300px,1fr)}.cart-line,.order-item{display:grid;grid-template-columns:90px minmax(0,1fr) auto auto;gap:16px;align-items:center;background:#fff;border:1px solid #ebe6df;border-radius:14px;padding:14px;margin-bottom:12px}.cart-line img,.order-item img{width:90px;height:90px;object-fit:cover;border-radius:10px}.cart-qty-form{display:flex;align-items:center;gap:8px}.cart-qty-form input{width:75px}.cart-summary>div,.checkout-summary>div,.commerce-panel>div:not(.row):not(.order-item):not(.request-row):not(.status-timeline){display:flex;justify-content:space-between;gap:12px;padding:6px 0}.checkout-summary .grand,.commerce-panel .grand{font-size:1.15rem;border-top:1px solid #ddd;margin-top:10px;padding-top:14px}.commerce-option{display:flex;align-items:flex-start;gap:10px;border:1px solid #e3ded6;padding:14px;border-radius:12px;margin-bottom:10px;cursor:pointer}.commerce-option span{display:flex;flex-direction:column;flex:1}.commerce-option small{color:#666}.status-pill{display:inline-block;padding:6px 10px;border-radius:99px;background:#f0ece5;font-weight:600;font-size:.82rem}.status-timeline>div{position:relative;padding:0 0 18px 24px;border-left:2px solid #d8c6a1}.status-timeline>div:before{content:'';position:absolute;left:-6px;top:3px;width:10px;height:10px;border-radius:50%;background:#b28b46}.status-timeline span,.status-timeline small{display:block;color:#666}.address-row,.request-row{border-top:1px solid #eee;padding:12px 0}.commerce-tools{display:flex;gap:8px;align-items:center}.commerce-selector-form{display:flex;gap:6px;align-items:center}.commerce-selector-form select{border:1px solid #ddd;background:#fff;border-radius:7px;padding:5px 7px;font-size:.8rem}.rtl-site{direction:rtl;text-align:right}.rtl-site .new-bafleh-header-inner,.rtl-site .commerce-heading,.rtl-site .commerce-option{direction:rtl}@media(max-width:800px){.commerce-account-grid,.cart-grid,.checkout-grid,.order-detail-grid{grid-template-columns:1fr}.cart-line,.order-item{grid-template-columns:70px 1fr}.cart-line img,.order-item img{width:70px;height:70px}.cart-total,.cart-line form{grid-column:2}.commerce-tools{flex-wrap:wrap;justify-content:flex-end}}
.cart-count-badge{position:absolute;transform:translate(11px,-10px);min-width:18px;height:18px;border-radius:9px;background:#b28b46;color:#fff;font-size:11px;line-height:18px;text-align:center}.new-header-icon-button{position:relative}
