/*
Theme Name: Bangze Foods B2B v4 Final Candidate 6
Theme URI: https://bangzefoods.com
Author: OpenAI for Bangze Foods
Description: WooCommerce-based B2B RFQ theme for Bangze Foods. Includes multi-product inquiry list, product video gallery, B2B specifications, and direct RFQ workflow without retail checkout.
Version: 4.1-FC6.0
Text Domain: bangze-b2b-v4
*/
:root{
  --ink:#171717;--paper:#fffaf2;--white:#fff;--orange:#ff8a00;--orange2:#ff9a1f;
  --green:#25d366;--muted:#666;--line:#e8dfd3;--soft:#f6f0e8;--max:1180px;
  --radius:22px;--shadow:0 16px 42px rgba(0,0,0,.08)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.container{width:min(var(--max),calc(100% - 40px));margin:auto}.section{padding:76px 0}.section-sm{padding:48px 0}.eyebrow{font-size:.78rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:var(--orange);margin-bottom:10px}h1,h2,h3{line-height:1.04;margin:0 0 16px;letter-spacing:-.035em}h1{font-size:clamp(3rem,6vw,5.6rem)}h2{font-size:clamp(2.1rem,3.7vw,3.5rem)}h3{font-size:1.25rem}.lead{font-size:clamp(1.05rem,1.6vw,1.28rem);color:#444;max-width:820px}.muted{color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 22px;border-radius:999px;font-weight:800;border:1px solid transparent;transition:.2s ease;cursor:pointer;font:inherit}.btn:hover{transform:translateY(-2px)}.btn-dark{background:var(--ink);color:#fff}.btn-orange{background:var(--orange);color:#111}.btn-wa{background:var(--green);color:#fff}.text-link{font-weight:800;text-decoration:underline;text-underline-offset:3px}.mini-inquiry{border:0;background:transparent;font:inherit;font-weight:800;cursor:pointer;padding:0;color:var(--orange)}
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,250,242,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(0,0,0,.06)}.nav{height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand img{
    width:auto;
    max-width:none;
    max-height:none;
    height:auto;
    object-fit:contain;
}
.navlinks{display:flex;align-items:center;gap:26px;font-size:1.10rem;font-weight:750}.navlinks a:hover{color:var(--orange)}.nav-toggle{display:none;background:none;border:0;font-size:28px}.inquiry-nav{position:relative}.inquiry-count{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:var(--orange);color:#111;font-size:.72rem;font-weight:900;padding:0 6px}
.page-hero{padding:78px 0 54px;background:linear-gradient(180deg,#fffaf2,#fff7eb)}.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:50px;align-items:center}.hero-visual{border-radius:32px;overflow:hidden;background:#fff;box-shadow:var(--shadow);min-height:420px}.hero-visual img,.hero-visual video{width:100%;height:100%;object-fit:cover}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.trust-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:30px}.trust-item{background:#fff;border:1px solid var(--line);padding:18px;border-radius:16px}.trust-item b{display:block;font-size:1.12rem}.series-nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.series-nav a{padding:9px 14px;border:1px solid var(--line);background:#fff;border-radius:999px;font-weight:750;font-size:.9rem}.series-nav a:hover{background:var(--ink);color:#fff}.cards-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.04)}.card-body{padding:22px}.band{background:#171717;color:#fff}.band .lead{color:#d8d8d8}.quote-box{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:36px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:36px;align-items:start}.contact-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;position:sticky;top:110px}.site-footer{background:#111;color:#eee;padding:56px 0 28px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px}.footer-grid p,.footer-grid a{color:#c9c9c9}.footer-bottom{border-top:1px solid #2d2d2d;margin-top:34px;padding-top:20px;color:#999;font-size:.9rem}
.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:24px;
    margin-top:28px;
}

.product-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    transition:.2s;
    box-shadow:0 3px 12px rgba(0,0,0,.03);
    max-width:360px;
}

.product-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow);
}

.product-card .pic{
    display:block;
    height:240px;
    background:#fff;
    overflow:hidden;
}

.product-card .pic img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    padding:10px;
    box-sizing:border-box;
}

.product-card .meta{
    padding:20px 22px 22px !important;
    box-sizing:border-box;
}

.product-card small{
    color:var(--orange);
    font-weight:900;
    letter-spacing:.07em;
}

.product-card h3{
    font-size:1.08rem;
    margin:8px 0;
}

.product-card p{
    font-size:.92rem;
    color:#555;
    margin:0;
}

.card-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:14px;
}
/* WooCommerce product page */
.woocommerce main,.woocommerce-page main{width:100%}.woocommerce .woocommerce-notices-wrapper{display:none}.single-product .woocommerce{width:min(1240px,calc(100% - 48px));margin:0 auto}.single-product div.product{padding:54px 0 72px;margin:0!important}.single-product div.product::after{content:"";display:block;clear:both}.single-product div.product div.images{width:49%!important;float:left!important;margin:0!important;padding-right:34px}.single-product div.product div.summary{width:49%!important;float:right!important;margin:0!important;padding:6px 0 0 34px}.single-product .product_title{font-size:clamp(2.9rem,5vw,4.6rem);margin:0 0 18px!important}.single-product .woocommerce-product-details__short-description{font-size:1rem;color:#3f3f3f;line-height:1.72;margin-bottom:22px}.woocommerce-product-gallery__wrapper{background:#fff;border-radius:20px;overflow:hidden}.single-product .woocommerce-product-gallery__image img{width:100%!important;height:auto!important;max-height:570px;object-fit:contain}.woocommerce div.product div.images .flex-control-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px!important}.woocommerce div.product div.images .flex-control-thumbs li{width:auto!important;float:none!important;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;position:relative}.woocommerce div.product div.images .flex-control-thumbs img{height:82px;object-fit:cover;width:100%;opacity:.72}.woocommerce div.product div.images .flex-control-thumbs img.flex-active{opacity:1}.product-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.product-fact{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 14px}.product-fact span{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#777;font-weight:800}.product-fact strong{display:block;margin-top:3px}.bangze-rfq-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.bangze-wa-row{display:flex;gap:18px;flex-wrap:wrap;margin-top:15px;font-size:.9rem}.product_meta{margin-top:18px;color:#777;font-size:.84rem}.woocommerce-tabs{clear:both;padding-top:54px!important;margin-top:0!important}.woocommerce-tabs ul.tabs{padding:0!important;border:0!important}.woocommerce-tabs ul.tabs:before{display:none!important}.woocommerce-tabs ul.tabs li{border:1px solid var(--line)!important;background:#fff!important;border-radius:10px 10px 0 0!important;margin-right:6px!important}.woocommerce-tabs .panel{background:#fff;border:1px solid var(--line);padding:28px!important;border-radius:0 16px 16px 16px}.spec-table-wrap{overflow:auto}.bangze-spec-table{width:100%;border-collapse:collapse}.bangze-spec-table th,.bangze-spec-table td{padding:13px 15px;border-bottom:1px solid var(--line);text-align:left}.bangze-spec-table th{width:30%;font-weight:800;background:#faf7f2}.bangze-video-slide{position:relative;width:100%;background:#111}.bangze-video-slide video,.bangze-video-slide iframe{width:100%;height:auto;min-height:420px;max-height:570px;display:block;object-fit:contain;background:#000}.woocommerce-product-gallery .flex-control-thumbs li.bangze-video-thumb::after{content:"▶";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;background:rgba(0,0,0,.72);color:#fff;display:flex;align-items:center;justify-content:center;padding-left:2px;pointer-events:none;box-shadow:0 2px 8px rgba(0,0,0,.25)}
/* RFQ */
.rfq-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:34px;align-items:start}.rfq-panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px}.rfq-list{display:grid;gap:12px;margin-top:18px}.rfq-item{display:grid;grid-template-columns:76px 1fr auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.rfq-item img{width:76px;height:76px;object-fit:contain;background:#fafafa;border-radius:10px}.rfq-item h4{margin:0;font-size:1rem}.rfq-remove{border:0;background:none;font:inherit;font-weight:800;color:#a33;cursor:pointer}.rfq-empty{padding:26px;border:1px dashed #cfc3b4;border-radius:14px;color:#666;text-align:center}.rfq-note{margin-top:14px;font-size:.9rem;color:#666}.rfq-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rfq-field{display:flex;flex-direction:column;gap:6px}.rfq-field.full{grid-column:1/-1}.rfq-field label{font-size:.86rem;font-weight:800}.rfq-field input,.rfq-field select,.rfq-field textarea{width:100%;border:1px solid #d9d0c4;border-radius:12px;background:#fff;padding:12px 14px;font:inherit;color:#171717;outline:none}.rfq-field input,.rfq-field select{min-height:48px}.rfq-field textarea{min-height:130px;resize:vertical}.rfq-field input:focus,.rfq-field select:focus,.rfq-field textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,138,0,.1)}.rfq-alert{padding:14px 16px;border-radius:12px;margin-bottom:18px}.rfq-alert.success{background:#e8f7ee;color:#135e32}.rfq-alert.error{background:#fff0ee;color:#8c2f25}.cif-port{display:none}.cif-port.visible{display:flex}.rfq-submit{width:100%;margin-top:4px}.rfq-security{font-size:.78rem;color:#777;margin-top:10px}
@media(max-width:980px){.product-grid{grid-template-columns:repeat(2,1fr)}.hero-grid,.split,.rfq-layout{grid-template-columns:1fr}.cards-3{grid-template-columns:1fr}.trust-row{grid-template-columns:repeat(2,1fr)}.navlinks{position:fixed;left:20px;right:20px;top:90px;background:#fff;padding:22px;border-radius:18px;box-shadow:var(--shadow);display:none;flex-direction:column;align-items:flex-start}.navlinks.open{display:flex}.nav-toggle{display:block}.contact-card{position:static}.footer-grid{grid-template-columns:1fr 1fr}.single-product div.product div.images,.single-product div.product div.summary{width:100%!important;float:none!important;padding:0!important}.single-product div.product div.summary{margin-top:30px!important}.woocommerce-tabs{padding-top:40px!important}}
@media(max-width:640px){.container{width:min(var(--max),calc(100% - 28px))}.section{padding:54px 0}.page-hero{padding:54px 0 38px}.product-grid{grid-template-columns:1fr 1fr;gap:12px}.product-card .bangze-card-meta{padding:12px}.product-card p{display:none}.card-actions{align-items:flex-start;flex-direction:column}.trust-row{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr}.quote-box{align-items:flex-start;flex-direction:column}.single-product .woocommerce{width:calc(100% - 28px)}.single-product .product_title{font-size:2.6rem}.woocommerce div.product div.images .flex-control-thumbs{grid-template-columns:repeat(4,1fr)}.woocommerce div.product div.images .flex-control-thumbs img{height:64px}.product-facts{grid-template-columns:1fr 1fr}.bangze-rfq-actions{flex-direction:column}.bangze-rfq-actions .btn{width:100%}.rfq-form-grid{grid-template-columns:1fr}.rfq-field.full{grid-column:auto}.rfq-item{grid-template-columns:62px 1fr}.rfq-item img{width:62px;height:62px}.rfq-remove{grid-column:2;justify-self:start}.bangze-video-slide video,.bangze-video-slide iframe{min-height:280px}}
/* Desktop product card actions */
@media (min-width:981px){

    .product-card .card-actions{
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:12px !important;
        flex-wrap:nowrap !important;
        margin-top:18px !important;
    }

    .product-card .card-actions a,
    .product-card .card-actions button{
        white-space:nowrap !important;
        flex-shrink:0 !important;
    }
}
/* Compact Products page series spacing */
.product-series{
    padding:42px 0 !important;
}

.product-series .series-head{
    margin-bottom:20px;
}

.product-series .series-head h2{
    margin-bottom:10px;
}

.product-series .series-head .lead{
    margin-bottom:0;
}

.product-series .product-grid{
    margin-top:22px;
}
/* Sticky product series navigation */
.products-series-nav{
    position:sticky;
    top:82px;
    z-index:900;
    background:rgba(255,250,242,.96);
    backdrop-filter:blur(10px);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}

.products-series-nav .series-nav{
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    padding:12px 0;
    margin:0;
    scrollbar-width:none;
}

.products-series-nav .series-nav::-webkit-scrollbar{
    display:none;
}

.products-series-nav .series-nav a{
    flex:0 0 auto;
    white-space:nowrap;
}

/* Prevent anchor targets being hidden under sticky nav */
.product-series{
    scroll-margin-top:150px;
}
/* =========================================================
   Products Page — Compact Catalog Cards
   ========================================================= */

.products-page .product-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    margin-top:18px;
}

.products-page .product-card{
    max-width:none;
    display:flex;
    flex-direction:column;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
}

.products-page .product-card-head{
    padding:14px 14px 8px !important;
}

.products-page .product-card-head small{
    display:block;
    margin-bottom:5px;
    font-size:.72rem;
    line-height:1.2;
    font-weight:900;
    letter-spacing:.08em;
    color:var(--orange);
}

.products-page .product-card-head h3{
    margin:0;
    font-size:1rem;
    line-height:1.25;
}

.products-page .product-card .pic{
    height:185px;
    padding:0 10px;
    box-sizing:border-box;
}

.products-page .product-card .pic img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:8px;
    box-sizing:border-box;
}

.products-page .product-card-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:10px 14px 14px;
    margin-top:auto;
}

.products-page .product-card-actions a,
.products-page .product-card-actions button{
    white-space:nowrap;
    font-size:.82rem;
    line-height:1.2;
}

.products-page .product-series{
    padding:30px 0 !important;
}

.products-page .series-head{
    margin-bottom:12px;
}

.products-page .series-head h2{
    margin:0 0 6px;
    font-size:clamp(1.8rem,2.5vw,2.5rem);
}

.products-page .series-head .lead{
    margin:0;
    font-size:.95rem;
    line-height:1.5;
}

@media (min-width:1280px){
    .products-page .product-grid{
        grid-template-columns:repeat(5,minmax(0,1fr));
    }
}

@media (max-width:980px){
    .products-page .product-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}
/* =========================================================
   Products Page — Final Compact Catalog Grid
   ========================================================= */

.products-page .product-catalog-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:16px;
    align-items:stretch;
}

.products-page .catalog-product{
    min-width:0;
}

.products-page .product-card{
    height:100%;
    display:flex;
    flex-direction:column;
    max-width:none;
    border-radius:14px;
}

.products-page .product-card-head{
    padding:12px 12px 6px !important;
}

.products-page .product-card-head small{
    font-size:.68rem;
    line-height:1.2;
    margin-bottom:4px;
}

.products-page .product-card-head h3{
    font-size:.92rem;
    line-height:1.25;
    margin:0;
}

.products-page .product-card .pic{
    height:155px;
    padding:0 8px;
}

.products-page .product-card .pic img{
    padding:6px;
}

.products-page .product-card-actions{
    padding:8px 12px 12px;
    gap:6px;
}

.products-page .product-card-actions a,
.products-page .product-card-actions button{
    font-size:.76rem;
    white-space:nowrap;
}

.products-page .product-catalog-section{
    padding:32px 0 48px !important;
}

@media (max-width:1200px){
    .products-page .product-catalog-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}

@media (max-width:900px){
    .products-page .product-catalog-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media (max-width:640px){
    .products-page .product-catalog-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:12px;
    }

    .products-page .product-card .pic{
        height:135px;
    }

    .products-page .product-card-head h3{
        font-size:.88rem;
    }

    .products-page .product-card-actions{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }
}
/* =========================================================
   Products Page — Filter Buttons
   ========================================================= */

.products-page .product-filter-nav{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:12px 0;
    margin:0;
    scrollbar-width:none;
}

.products-page .product-filter-nav::-webkit-scrollbar{
    display:none;
}

.products-page .product-filter{
    appearance:none;
    -webkit-appearance:none;
    flex:0 0 auto;

    padding:9px 14px;

    border:1px solid var(--line);
    border-radius:999px;

    background:#fff;
    color:#171717;

    font:inherit;
    font-size:.88rem;
    line-height:1;
    font-weight:750;

    white-space:nowrap;
    cursor:pointer;

    transition:.18s ease;
}

.products-page .product-filter:hover{
    border-color:#171717;
}

.products-page .product-filter.active{
    background:#171717;
    border-color:#171717;
    color:#fff;
}
/* =========================================================
   Products Page — 4 Columns + Equal Height Cards
   ========================================================= */

.products-page .product-catalog-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:18px;
}

.products-page .product-card{
    height:100%;
    display:flex;
    flex-direction:column;
}

.products-page .product-card-head{
    min-height:62px;
}

.products-page .product-card-head h3{
    line-height:1.25;
}

.products-page .product-card .pic{
    height:175px;
}

.products-page .product-card-actions{
    margin-top:auto;
}
@media (max-width:980px){
    .products-page .product-catalog-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:14px;
    }
}

@media (max-width:640px){

    .products-page .product-catalog-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:10px;
    }

    .products-page .product-card{
        border-radius:14px;
    }

    .products-page .product-card-head{
        min-height:72px;
        padding:10px 10px 4px !important;
    }

    .products-page .product-card-head small{
        font-size:.58rem;
        line-height:1.15;
        margin-bottom:4px;
    }

    .products-page .product-card-head h3{
        font-size:.78rem;
        line-height:1.18;
        margin:0;

        display:-webkit-box;
        -webkit-line-clamp:3;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }

    .products-page .product-card .pic{
        height:108px;
        padding:0 5px;
    }

    .products-page .product-card .pic img{
        padding:4px;
    }

    .products-page .product-card-actions{
        margin-top:auto;
        padding:7px 10px 10px;
        gap:5px;
        flex-direction:column;
        align-items:flex-start;
    }

    .products-page .product-card-actions a,
    .products-page .product-card-actions button{
        font-size:.66rem;
        line-height:1.15;
        white-space:nowrap;
    }

    .products-page .product-filter-nav{
        gap:6px;
        padding:9px 0;
    }

    .products-page .product-filter{
        padding:8px 12px;
        font-size:.78rem;
    }
}
/* Product page WhatsApp secondary buttons */
/* ========================================
   Product Page - WhatsApp Buttons
   ======================================== */

.single-product .bangze-wa-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.single-product .bangze-wa-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    padding:10px 15px;

    background:#25D366;
    border:1px solid #25D366;
    border-radius:999px;

    color:#fff !important;
    font-size:.84rem;
    font-weight:700;
    line-height:1;
    text-decoration:none !important;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

/* Small WhatsApp-style icon */
.single-product .bangze-wa-link::before{
    content:"☎";
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:18px;
    height:18px;

    border:1.5px solid #fff;
    border-radius:50%;

    color:#fff;
    font-size:11px;
    font-weight:700;
    line-height:1;
}

.single-product .bangze-wa-link:hover{
    background:#1ebe5d;
    border-color:#1ebe5d;
    color:#fff !important;
    transform:translateY(-1px);
}

/* Mobile */
@media (max-width:640px){

    .single-product .bangze-wa-row{
        gap:7px;
        margin-top:9px;
    }

    .single-product .bangze-wa-link{
        padding:9px 12px;
        font-size:.78rem;
    }

    .single-product .bangze-wa-link::before{
        width:17px;
        height:17px;
        font-size:10px;
    }
}
@media (max-width:640px){
    .single-product .bangze-wa-row{
        gap:7px;
    }

    .single-product .bangze-wa-link{
        padding:8px 12px;
        font-size:.78rem;
    }
}
/* Header logo positioning */
.site-header .brand{
    display:flex;
    align-items:center;
    position:relative;
}

.site-header .brand .custom-logo-link{
    display:block;
    line-height:0;
}

.site-header .brand .custom-logo{
    display:block;
    width:var(--bangze-logo-width, 180px) !important;
    max-width:none !important;
    height:auto !important;
    transform:translate(
        var(--bangze-logo-x, 0px),
        var(--bangze-logo-y, 0px)
    );
}

@media (max-width:768px){
    .site-header .brand .custom-logo{
        width:var(--bangze-mobile-logo-width, 120px) !important;
    }
}
/* Footer logo */
.site-footer .footer-logo {
    margin-bottom: 14px;
}

.site-footer .footer-logo .custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-footer .footer-logo .custom-logo {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
}
/* Why Bangze cards - fix text color */
.band .card {
    color: var(--ink);
}

.band .card h3 {
    color: var(--ink);
}

.band .card p {
    color: var(--muted);
}
.page-hero .hero-grid{
    align-items:start;
}

.page-hero h1{
    font-size:clamp(2.8rem,4.4vw,4.6rem);
    line-height:1.02;
}
/* Homepage Featured Products */
.home-featured-products .lead{
    max-width:760px;
}

.home-image-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-top:28px;
}

.home-image-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 4px 18px rgba(0,0,0,.04);
}

.home-image-card a{
    display:block;
    color:inherit;
    text-decoration:none;
}

.home-image-card-media{
    aspect-ratio:1 / 1;
    overflow:hidden;
    background:#fff;
}

.home-image-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.home-image-card h3{
    margin:0;
    padding:16px 18px 18px;
    font-size:1.05rem;
    line-height:1.25;
}

@media (max-width:900px){
    .home-image-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:560px){
    .home-image-grid{
        grid-template-columns:1fr;
    }
}
/* Homepage Certificates */
.home-certificates .lead{
    max-width:760px;
}

.certificate-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-top:28px;
}

.certificate-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 4px 18px rgba(0,0,0,.04);
}

.certificate-card-media{
    aspect-ratio:4 / 3;
    overflow:hidden;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:14px;
}

.certificate-card-media img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.certificate-card h3{
    margin:0;
    padding:14px 18px 18px;
    font-size:1rem;
    line-height:1.25;
}

@media (max-width:900px){
    .certificate-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:560px){
    .certificate-grid{
        grid-template-columns:1fr;
    }
}
/* Pull Featured Products closer to Product Portfolio */
.home-featured-products{
    padding-top:0;
    margin-top:-48px;
}
/* Homepage RFQ CTA button */
.quote-box .btn-orange{
    min-width:190px;
    white-space:nowrap;
    padding-left:26px;
    padding-right:26px;
    justify-content:center;
}
/* Footer Social Icons */
.footer-social{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:18px;
}

.footer-social a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.footer-social img{
    width:32px;
    height:32px;
    object-fit:contain;
    display:block;
}

.footer-social a:hover img{
    opacity:.8;
    transform:scale(1.08);
}

.footer-social img{
    transition:opacity .2s ease, transform .2s ease;
}
.footer-language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-language-switcher > ul > li {
    position: relative;
    display: inline-block;
}

.footer-language-switcher .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    bottom: 100%;
    min-width: 150px;
    margin: 0 0 8px;
    padding: 8px 0;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    z-index: 9999;
}

.footer-language-switcher > ul > li:hover > .sub-menu,
.footer-language-switcher > ul > li:focus-within > .sub-menu {
    display: block;
}

.footer-language-switcher .sub-menu li {
    display: block;
}

.footer-language-switcher .sub-menu a {
    display: block;
    padding: 8px 14px;
    color: #111;
    white-space: nowrap;
}

.footer-language-switcher .sub-menu a:hover {
    background: #f3f3f3;
}

.footer-language-switcher > ul > li > a {
    color: #fff;
    text-decoration: none;
}
.footer-language-switcher > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    padding: 10px 14px;
    color: #fff;
    background: #1b1b1b;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;
    text-decoration: none;
    line-height: 1.2;
}

.footer-language-switcher > ul > li > a::after {
    content: "▾";
    margin-left: auto;
    font-size: 12px;
}

.footer-language-switcher > ul > li:hover > a,
.footer-language-switcher > ul > li:focus-within > a {
    border-color: rgba(255,255,255,.55);
    background: #242424;
}
/* =========================================================
   Bangze Foods B2B V4 — maintainable design + multilingual
   ========================================================= */
.hero-accent{color:var(--orange)}
.hero h1,.page-hero h1{font-size:clamp(3rem,6vw,var(--v4-h1,72px));line-height:1.06;letter-spacing:-.035em;margin-bottom:var(--v4-heading-space,22px)}
.section h2,.quote-box h2{font-size:clamp(2.15rem,4vw,var(--v4-h2,46px));line-height:1.12;letter-spacing:-.025em;margin-bottom:var(--v4-heading-space,22px)}
.section h3{line-height:1.25;margin-bottom:14px}.lead{line-height:1.78}.section{padding-top:76px;padding-bottom:76px}
.bangze-editor-content{font-size:1.02rem;line-height:1.78}.bangze-editor-content>*+*{margin-top:24px}.bangze-editor-content .wp-block-columns{gap:32px}.bangze-editor-content .wp-block-image img,.bangze-editor-content .wp-block-gallery img{border-radius:18px}.bangze-editor-content .wp-block-cover{border-radius:22px;overflow:hidden}.editor-fallback-card{padding:34px;border:1px dashed var(--line);border-radius:20px;background:#fff}
[dir="rtl"] .bangze-spec-table th,[dir="rtl"] .bangze-spec-table td{text-align:right}[dir="rtl"] .navlinks,[dir="rtl"] .rfq-field,[dir="rtl"] .product-fact{text-align:right}[dir="rtl"] .hero-accent{display:inline}
@media(max-width:640px){.hero h1,.page-hero h1{font-size:clamp(2.65rem,12vw,3.5rem)}.section h2,.quote-box h2{font-size:clamp(2rem,9vw,2.7rem)}.section{padding-top:58px;padding-bottom:58px}}

/* =========================================================
   V4.1 / RC4 — complete inner-page architecture
   ========================================================= */
.about-intro-grid,.oem-brief-grid{align-items:center}
.about-value-list{display:grid;gap:14px}
.about-value-item{display:grid;gap:5px;padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 18px rgba(0,0,0,.035)}
.about-value-item b{font-size:1.08rem}.about-value-item span{color:var(--muted);line-height:1.65}
.about-gallery-placeholder{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:36px;align-items:end;padding:34px;border:1px dashed var(--line);border-radius:24px;background:linear-gradient(135deg,#fff,#fff8ee)}
.about-gallery-placeholder p{margin:0;color:var(--muted);line-height:1.75}
.process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}
.process-step{padding:25px;border:1px solid #333;border-radius:20px;background:#1e1e1e}
.process-step>span{display:inline-flex;width:42px;height:42px;border-radius:999px;align-items:center;justify-content:center;background:var(--orange);color:#111;font-weight:850;margin-bottom:20px}
.process-step h3{color:#fff}.process-step p{color:#d3d3d3;line-height:1.7;margin-bottom:0}
.brief-list{display:grid;gap:12px}.brief-list>div{position:relative;padding:17px 18px 17px 48px;background:#fff;border:1px solid var(--line);border-radius:16px;font-weight:700}.brief-list>div:before{content:'✓';position:absolute;left:18px;top:16px;color:var(--orange);font-weight:900}
.oem-flexible-content:empty,.customization-page .bangze-editor-content:empty{display:none}
@media(max-width:980px){.process-grid{grid-template-columns:repeat(2,1fr)}.about-gallery-placeholder{grid-template-columns:1fr}}
@media(max-width:640px){.process-grid{grid-template-columns:1fr}.process-step{padding:22px}.about-gallery-placeholder{padding:26px}.brief-list>div{padding-left:44px}}

/* =========================================================
   V4.1 / RC4 — front-end completeness and trust fixes
   ========================================================= */
.hero-visual-fallback{min-height:420px;height:100%;display:grid;place-items:center;padding:46px;text-align:left;background:radial-gradient(circle at 80% 20%,rgba(255,138,0,.28),transparent 34%),linear-gradient(145deg,#fff,#f2e7d7)}
.hero-visual-fallback>div{max-width:520px}.hero-visual-fallback h2{font-size:clamp(2rem,3.7vw,3.4rem);margin-bottom:0}
.home-featured-fallback{margin-top:26px;padding:28px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--muted)}
.compliance-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:28px}.compliance-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 4px 18px rgba(0,0,0,.035)}.compliance-card>span{display:inline-flex;min-height:34px;align-items:center;padding:0 11px;border-radius:999px;background:#fff2df;color:#8d4b00;font-size:.73rem;font-weight:900;letter-spacing:.08em}.compliance-card h3{margin-top:18px;margin-bottom:8px}.compliance-card p{margin:0;color:var(--muted);line-height:1.65}
.about-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:32px}.about-stats>div{display:grid;gap:4px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:#fff}.about-stats strong{font-size:1.5rem;line-height:1.1}.about-stats span{font-size:.86rem;color:var(--muted)}
.series-empty{margin-top:28px;padding:32px;border:1px dashed var(--line);border-radius:20px;background:#fff}.series-empty h3{margin-bottom:8px}.series-empty p{max-width:700px;color:var(--muted)}
.catalog-product[hidden]{display:none!important}
@media(max-width:1100px){.compliance-grid,.about-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.compliance-grid,.about-stats{grid-template-columns:1fr 1fr;gap:10px}.compliance-card{padding:18px}.about-stats>div{padding:15px}.about-stats strong{font-size:1.25rem}.hero-visual-fallback{min-height:320px;padding:30px}.navlinks{max-height:calc(100vh - 110px);overflow:auto}}
.bangze-hp{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.product-card-specs{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px 0}.product-card-specs span{display:inline-flex;align-items:center;min-height:26px;padding:4px 8px;border-radius:999px;background:#f7f1e8;color:#5f554a;font-size:.7rem;font-weight:750;line-height:1.15}
.products-page .product-card-specs{padding:7px 12px 0}.products-page .product-card-specs span{font-size:.66rem}
@media(max-width:640px){.products-page .product-card-specs{padding:6px 10px 0;gap:4px}.products-page .product-card-specs span{font-size:.58rem;padding:3px 6px}}
.contact-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.contact-actions .btn{font-size:.86rem;padding:11px 16px}

/* RC8 build verification marker: visually hidden, machine-readable in rendered HTML. */
.bangze-build-marker{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}


/* =========================================================
   Release polish
   ========================================================= */
.site-header .container.nav{width:min(1380px,calc(100% - 32px))}
.nav{min-height:86px;height:auto;gap:22px}
.site-header .brand{flex:0 0 auto;min-width:170px}
.site-header .brand img,.site-header .brand .custom-logo{max-width:190px !important;width:auto !important;max-height:62px !important;object-fit:contain}
.navlinks{flex:1 1 auto;justify-content:flex-end;gap:18px;font-size:.96rem;line-height:1.15}
.navlinks>a{white-space:nowrap;flex:0 0 auto}
.navlinks>.btn{padding:12px 18px;min-height:46px}
.inquiry-nav{display:inline-flex;align-items:center;gap:6px}
.page-hero{padding-top:72px;padding-bottom:62px}
.page-hero .hero-grid{grid-template-columns:minmax(0,1.06fr) minmax(390px,.94fr);gap:56px;align-items:center}
.page-hero h1{max-width:760px}.page-hero .lead{max-width:720px}
.hero-visual{position:relative;min-height:450px;display:flex;align-items:center;justify-content:center;background:#fff}
.hero-visual>img{width:100%;height:100%;min-height:450px;object-fit:contain;padding:20px}
.hero-product-badge{position:absolute;left:20px;bottom:20px;max-width:calc(100% - 40px);padding:11px 14px;border:1px solid rgba(0,0,0,.08);border-radius:14px;background:rgba(255,250,242,.94);backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.hero-product-badge span{display:block;margin-bottom:2px;color:var(--orange);font-size:.66rem;font-weight:900;letter-spacing:.1em}.hero-product-badge strong{display:block;font-size:.92rem;line-height:1.25}
.trust-row{gap:10px;margin-top:30px}.trust-item{min-height:106px;padding:16px;box-shadow:0 4px 16px rgba(0,0,0,.025)}.trust-item b{font-size:1.04rem;line-height:1.15}.trust-item span{display:block;margin-top:6px;color:#5c554e;font-size:.78rem;line-height:1.4}
.home-image-card-media img{object-fit:contain;padding:12px}.home-image-card{transition:transform .18s ease,box-shadow .18s ease}.home-image-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
@media(max-width:1180px) and (min-width:981px){.site-header .container.nav{width:calc(100% - 24px)}.site-header .brand{min-width:145px}.site-header .brand img,.site-header .brand .custom-logo{max-width:160px !important;max-height:54px !important}.navlinks{gap:12px;font-size:.88rem}.navlinks>.btn{padding:10px 14px}}
@media(max-width:980px){.site-header .container.nav{width:min(var(--max),calc(100% - 32px))}.site-header .brand img,.site-header .brand .custom-logo{max-width:150px !important;max-height:54px !important}.navlinks{justify-content:flex-start;gap:18px;font-size:1rem}.navlinks>a{white-space:normal}.page-hero .hero-grid{grid-template-columns:1fr;gap:34px}.hero-visual,.hero-visual>img{min-height:360px}}
@media(max-width:640px){.site-header .container.nav{width:calc(100% - 24px)}.page-hero{padding-top:48px;padding-bottom:44px}.trust-row{grid-template-columns:1fr 1fr}.trust-item{min-height:100px;padding:14px}.hero-visual,.hero-visual>img{min-height:300px}.hero-visual>img{padding:12px 12px 42px}.hero-product-badge{left:12px;bottom:12px;max-width:calc(100% - 24px);padding:9px 11px}}

/* =========================================================
   Homepage polish from live review
   ========================================================= */
.home-page .container{width:min(1240px,calc(100% - 40px))}
.home-page .page-hero{padding-top:66px;padding-bottom:58px}
.home-page .page-hero .hero-grid{grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);gap:48px;align-items:center}
.home-page .page-hero h1{
    max-width:650px;
    font-size:clamp(3.25rem,4.15vw,4.05rem);
    line-height:1.01;
    letter-spacing:-.045em;
    text-wrap:balance;
}
.home-page .page-hero .lead{max-width:680px;font-size:1.13rem;line-height:1.65}
.home-page .hero-actions{margin-top:24px}
.home-page .trust-row{margin-top:26px;gap:10px}
.home-page .trust-item{min-height:96px;padding:15px 14px;border-radius:15px}
.home-page .trust-item b{font-size:1.02rem}
.home-page .trust-item span{font-size:.75rem;line-height:1.32;margin-top:5px}
.home-page .hero-visual{min-height:440px;border-radius:28px}
.home-page .hero-visual>img{min-height:440px;padding:18px 18px 46px}
.home-page .hero-product-badge{left:18px;bottom:18px}
.home-page .home-image-card h3{font-size:1rem}
.home-page .section:first-of-type + .section{padding-top:64px}

@media(max-width:1180px) and (min-width:981px){
    .home-page .page-hero .hero-grid{grid-template-columns:minmax(0,1fr) minmax(380px,.92fr);gap:36px}
    .home-page .page-hero h1{font-size:clamp(3rem,4.6vw,3.7rem)}
}
@media(max-width:980px){
    .home-page .container{width:min(var(--max),calc(100% - 32px))}
    .home-page .page-hero .hero-grid{grid-template-columns:1fr;gap:32px}
    .home-page .page-hero h1{max-width:760px;font-size:clamp(3rem,8vw,4.2rem)}
    .home-page .hero-visual,.home-page .hero-visual>img{min-height:360px}
}
@media(max-width:640px){
    .home-page .container{width:calc(100% - 28px)}
    .home-page .page-hero{padding-top:44px;padding-bottom:42px}
    .home-page .page-hero h1{font-size:clamp(2.55rem,12vw,3.35rem);line-height:1.02}
    .home-page .page-hero .lead{font-size:1rem;line-height:1.6}
    .home-page .trust-row{grid-template-columns:1fr 1fr}
    .home-page .trust-item{min-height:92px}
    .home-page .hero-visual,.home-page .hero-visual>img{min-height:300px}
}


/* =========================================================
   RC8 — inquiry summary, FAQ and inner-page B2B polish
   ========================================================= */
.rfq-copy-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.rfq-copy-status{font-size:.84rem;color:#5f554a;font-weight:700}
.rfq-copy-fallback{width:100%;min-height:220px;margin-top:12px;border:1px solid var(--line);border-radius:12px;padding:14px;font:500 .86rem/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;background:#fff}
.rfq-item{grid-template-columns:76px minmax(0,1fr) auto}
.rfq-item-info{min-width:0}.rfq-product-meta{margin-top:4px;color:#766d63;font-size:.78rem;line-height:1.45}
.rfq-cartons{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:.78rem;font-weight:800;color:#4e473f}
.rfq-cartons input{width:110px;min-height:36px;border:1px solid #d9d0c4;border-radius:9px;padding:7px 9px;font:inherit;background:#fff}
.rfq-cartons input:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,138,0,.1)}
.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.faq-grid details{background:#fff;border:1px solid var(--line);border-radius:18px;padding:0 20px;box-shadow:0 4px 18px rgba(0,0,0,.025)}
.faq-grid summary{cursor:pointer;list-style:none;padding:20px 32px 20px 0;font-weight:850;position:relative;line-height:1.35}
.faq-grid summary::-webkit-details-marker{display:none}.faq-grid summary:after{content:'+';position:absolute;right:0;top:17px;font-size:1.35rem;color:var(--orange)}.faq-grid details[open] summary:after{content:'–'}
.faq-grid details>div{padding:0 0 20px;color:#5e574f;line-height:1.7}.faq-grid details>div p{margin:0}
.bangze-flex-page .page-hero{border-bottom:1px solid rgba(0,0,0,.035)}
.bangze-flex-page .cards-3 .card{height:100%}.bangze-flex-page .cards-3 .card-body{height:100%;display:flex;flex-direction:column}.bangze-flex-page .cards-3 .card-body p{color:#5c554e;line-height:1.7;margin-bottom:0}
.single-product .summary:before{content:'B2B · OEM / ODM · PRIVATE LABEL';display:block;margin-bottom:12px;color:var(--orange);font-size:.72rem;font-weight:900;letter-spacing:.12em}
.single-product .bangze-wa-row{padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:760px){.faq-grid{grid-template-columns:1fr}.rfq-item{grid-template-columns:62px minmax(0,1fr)}.rfq-item img{width:62px;height:62px}.rfq-item .rfq-remove{grid-column:2}.rfq-cartons{align-items:flex-start;flex-direction:column;gap:5px}.rfq-cartons input{width:100%}}

/* =========================================================
 * Home hero carousel + image-led About Us
 * ========================================================= */
.hero-carousel{position:relative;width:100%;min-height:440px;height:100%;overflow:hidden;border-radius:inherit;background:#fff}
.hero-carousel-track{position:relative;min-height:440px;height:100%}
.hero-slide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .65s ease,visibility .65s ease;z-index:0;background:#fff}
.hero-slide.is-active{opacity:1;visibility:visible;z-index:1}
.hero-slide>img{width:100%;height:100%;min-height:440px;object-fit:contain;padding:18px 18px 46px}
.hero-slide .hero-product-badge{z-index:2}
.hero-carousel-dots{position:absolute;right:18px;bottom:18px;z-index:5;display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:999px;background:rgba(255,255,255,.86);backdrop-filter:blur(8px);box-shadow:0 6px 18px rgba(0,0,0,.08)}
.hero-carousel-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:#c9c1b6;cursor:pointer;transition:transform .2s ease,background .2s ease}
.hero-carousel-dot.is-active{background:var(--orange);transform:scale(1.35)}
.hero-carousel-dot:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

.about-section-head{max-width:820px;margin-bottom:30px}
.about-story-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:48px;align-items:center}
.about-story-grid.has-media{align-items:stretch}
.about-story-copy{align-self:center}
.about-media-frame{margin:0;border-radius:26px;overflow:hidden;background:#fff;box-shadow:var(--shadow);border:1px solid rgba(0,0,0,.045)}
.about-media-frame img{width:100%;height:100%;object-fit:cover}
.about-story-media{min-height:460px}
.about-story-media img{min-height:460px}
.about-wide-media{width:100%;aspect-ratio:16/7;min-height:360px}
.about-wide-media img{object-position:center}
.about-base-section{background:#fff7eb}
.about-factory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.about-factory-card{margin:0;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 8px 26px rgba(0,0,0,.05)}
.about-factory-image{aspect-ratio:4/3;overflow:hidden;background:var(--soft)}
.about-factory-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.about-factory-card:hover img{transform:scale(1.025)}
.about-factory-card figcaption{padding:16px 18px;font-weight:850;font-size:1rem}
.about-export-section{background:#fff7eb}
.about-export-gallery{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:18px;min-height:560px}
.about-export-gallery.no-feature{grid-template-columns:1fr;min-height:auto}
.about-export-main,.about-export-small figure{margin:0;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 8px 26px rgba(0,0,0,.05)}
.about-export-main{min-height:560px}
.about-export-main img,.about-export-small img{width:100%;height:100%;object-fit:cover}
.about-export-small{display:grid;grid-template-rows:repeat(3,1fr);gap:18px}
.about-export-gallery.no-feature .about-export-small{grid-template-columns:repeat(3,1fr);grid-template-rows:none}
.about-export-gallery.no-feature .about-export-small figure{aspect-ratio:4/3}
.about-cert-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.about-cert-card{margin:0;padding:14px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 24px rgba(0,0,0,.045)}
.about-cert-image{aspect-ratio:4/5;display:grid;place-items:center;overflow:hidden;background:#faf8f4;border-radius:12px}
.about-cert-image img{width:100%;height:100%;object-fit:contain}
.about-cert-card figcaption{padding:12px 4px 2px;font-weight:800;text-align:center}
.about-proof-section{margin-top:0}

@media(max-width:980px){
  .hero-carousel,.hero-carousel-track,.hero-slide>img{min-height:360px}
  .about-story-grid{grid-template-columns:1fr;gap:30px}
  .about-story-media,.about-story-media img{min-height:380px}
  .about-factory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about-export-gallery{grid-template-columns:1fr;min-height:auto}
  .about-export-main{min-height:420px}
  .about-export-small{grid-template-columns:repeat(3,1fr);grid-template-rows:none}
  .about-export-small figure{aspect-ratio:4/3}
  .about-cert-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .hero-carousel,.hero-carousel-track,.hero-slide>img{min-height:300px}
  .hero-slide>img{padding:12px 12px 42px}
  .hero-carousel-dots{right:12px;bottom:12px}
  .about-story-media,.about-story-media img{min-height:300px}
  .about-wide-media{aspect-ratio:4/3;min-height:260px}
  .about-factory-grid{grid-template-columns:1fr 1fr;gap:12px}
  .about-factory-card figcaption{padding:12px 13px;font-size:.9rem}
  .about-export-main{min-height:300px}
  .about-export-small{grid-template-columns:1fr 1fr;gap:12px}
  .about-cert-grid{grid-template-columns:1fr 1fr;gap:12px}
  .about-cert-card{padding:10px}
}

@media(max-width:420px){
  .about-cert-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none}.about-factory-image img{transition:none}}

/* =========================================================
 * Final Candidate — staging-approved baseline
 * 1) user-managed Featured Product images override catalog cards
 * 2) Home hero images render edge-to-edge at their natural aspect ratio
 * ========================================================= */
.home-page .container{width:min(1360px,calc(100% - 40px))}
.home-page .page-hero .hero-grid{
    grid-template-columns:minmax(0,.94fr) minmax(520px,1.06fr);
    gap:54px;
    align-items:center;
}
.home-page .hero-visual{
    min-height:0;
    height:auto;
    border-radius:26px;
    overflow:hidden;
    background:transparent;
    box-shadow:var(--shadow);
}
.home-page .hero-carousel,
.home-page .hero-carousel-track{
    width:100%;
    height:auto;
    min-height:0;
    overflow:hidden;
    border-radius:inherit;
    background:transparent;
}
.home-page .hero-slide{
    position:relative;
    inset:auto;
    display:none;
    width:100%;
    height:auto;
    min-height:0;
    align-items:stretch;
    justify-content:stretch;
    opacity:1;
    visibility:visible;
    transition:none;
    background:transparent;
}
.home-page .hero-slide.is-active{display:block;z-index:1}
.home-page .hero-slide>img,
.home-page .hero-visual>img{
    display:block;
    width:100%;
    max-width:none;
    height:auto;
    min-height:0;
    max-height:none;
    padding:0;
    margin:0;
    object-fit:fill;
    border:0;
}
.home-page .hero-carousel-dots{
    right:14px;
    bottom:14px;
}
/* Manually uploaded Featured Product artwork should be shown exactly as supplied,
   while preserving the established card footprint. */
.home-image-card-manual .home-image-card-media img{
    width:100%;
    height:100%;
    padding:0;
    object-fit:contain;
}

@media(max-width:1180px) and (min-width:981px){
    .home-page .container{width:calc(100% - 30px)}
    .home-page .page-hero .hero-grid{grid-template-columns:minmax(0,.96fr) minmax(460px,1.04fr);gap:38px}
}
@media(max-width:980px){
    .home-page .container{width:min(var(--max),calc(100% - 32px))}
    .home-page .page-hero .hero-grid{grid-template-columns:1fr;gap:32px}
    .home-page .hero-visual,
    .home-page .hero-carousel,
    .home-page .hero-carousel-track,
    .home-page .hero-slide>img,
    .home-page .hero-visual>img{min-height:0;height:auto}
}
@media(max-width:640px){
    .home-page .container{width:calc(100% - 28px)}
    .home-page .hero-carousel-dots{right:10px;bottom:10px}
}


/* Final Candidate: Certifications grid = 3 columns desktop, 2 tablet/phone, 1 on narrow phones. */

/* FC5 retained Arabic RFQ Android compatibility mode.
   Android Chromium/WebView can miscalculate the layout viewport when a complex form
   combines document-level RTL with sticky/fixed UI. The head bootstrap normalizes
   only Android + Arabic RFQ to an LTR structural viewport; Arabic copy remains
   right-aligned while the form stays a simple block layout on mobile. */
.rfq-page-ar{max-width:100%;overflow-x:hidden}
.rfq-page-ar .rfq-panel,
.rfq-page-ar .rfq-list,
.rfq-page-ar .rfq-item,
.rfq-page-ar .rfq-item-info,
.rfq-page-ar .rfq-form-grid,
.rfq-page-ar .rfq-field{min-width:0;max-width:100%}
.rfq-page-ar .eyebrow,
.rfq-page-ar h1,
.rfq-page-ar h2,
.rfq-page-ar .lead,
.rfq-page-ar .rfq-note,
.rfq-page-ar .rfq-empty,
.rfq-page-ar .rfq-security,
.rfq-page-ar label,
.rfq-page-ar small,
.rfq-page-ar .rfq-copy-status{text-align:right}
.rfq-page-ar .rfq-field input,
.rfq-page-ar .rfq-field select,
.rfq-page-ar .rfq-field textarea,
.rfq-page-ar .rfq-copy-fallback{box-sizing:border-box;min-width:0;max-width:100%;width:100%;text-align:right}
.rfq-page-ar input[type="email"],
.rfq-page-ar input[type="tel"],
.rfq-page-ar input[name="destination_port"]{direction:ltr;text-align:left}
@media(max-width:980px){
  .rfq-page-ar .container{width:calc(100% - 24px)!important;max-width:100%;margin-left:auto;margin-right:auto}
  .rfq-page-ar .rfq-layout,
  .rfq-page-ar .rfq-form-grid{display:block!important;width:100%!important;max-width:100%!important}
  .rfq-page-ar .rfq-panel{display:block!important;width:100%!important;max-width:100%!important;margin:0 0 18px!important;overflow:visible!important}
  .rfq-page-ar .rfq-field{display:flex!important;width:100%!important;max-width:100%!important;margin-bottom:14px}
  .rfq-page-ar .rfq-field.full{grid-column:auto!important}
  .rfq-page-ar .rfq-copy-tools{display:block!important;width:100%}
  .rfq-page-ar .rfq-copy-tools .btn{width:100%;max-width:100%}
  html.bangze-ar-rfq-android,
  html.bangze-ar-rfq-android body{direction:ltr!important;max-width:100%!important;overflow-x:hidden!important}
  html.bangze-ar-rfq-android .site-header{position:relative!important;top:auto!important;backdrop-filter:none!important}
  html.bangze-ar-rfq-android .rfq-page-ar{direction:ltr!important;text-align:left!important}
  html.bangze-ar-rfq-android .navlinks{direction:ltr!important}
  html.bangze-ar-rfq-android .navlinks.open{position:absolute!important;left:12px!important;right:12px!important;top:76px!important}
}
@media(max-width:640px){
  .rfq-page-ar .page-hero{padding-top:44px;padding-bottom:34px}
  .rfq-page-ar .rfq-panel{padding:18px!important;border-radius:16px}
  .rfq-page-ar .rfq-item{grid-template-columns:54px minmax(0,1fr)!important;gap:10px!important;padding:10px}
  .rfq-page-ar .rfq-item img{width:54px!important;height:54px!important}
  .rfq-page-ar .rfq-item .rfq-remove{grid-column:2!important;justify-self:start}
  .rfq-page-ar .rfq-cartons{display:block!important}
  .rfq-page-ar .rfq-cartons input{margin-top:6px;width:100%!important}
}

/* =========================================================
   FC5 baseline — Operational navigation/category polish
   ========================================================= */

/* CMS-managed ordinary primary menu. Inquiry List + RFQ remain theme-owned CTAs. */
.bangze-primary-menu{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  margin:0;
  padding:0;
  list-style:none;
  flex:0 1 auto;
}
.bangze-primary-menu>li{position:relative;margin:0;padding:0;list-style:none}
.bangze-primary-menu a{display:inline-flex;align-items:center;white-space:nowrap}
.bangze-primary-menu .sub-menu{
  position:absolute;
  top:calc(100% + 14px);
  left:0;
  z-index:1100;
  min-width:210px;
  margin:0;
  padding:10px;
  list-style:none;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:var(--shadow);
  display:none;
}
.bangze-primary-menu li:hover>.sub-menu,
.bangze-primary-menu li:focus-within>.sub-menu{display:block}
.bangze-primary-menu .sub-menu li{margin:0;list-style:none}
.bangze-primary-menu .sub-menu a{display:flex;width:100%;padding:9px 10px;border-radius:9px;white-space:normal}
.bangze-primary-menu .sub-menu a:hover{background:var(--soft)}

/* Product series must always remain visible: wrap instead of horizontal clipping. */
.products-series-nav .series-nav,
.products-page .product-filter-nav{
  display:flex;
  align-items:center;
  align-content:center;
  flex-wrap:wrap !important;
  overflow:visible !important;
  gap:8px;
  padding:12px 0;
  margin:0;
}
.products-page .product-filter{flex:0 0 auto;max-width:100%}
.products-series-nav{height:auto}
.home-page .series-nav{display:flex;flex-wrap:wrap;overflow:visible;gap:8px}

@media(max-width:1180px) and (min-width:981px){
  .bangze-primary-menu{gap:12px}
}
@media(max-width:980px){
  .navlinks{align-items:stretch}
  .bangze-primary-menu{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:4px;
  }
  .bangze-primary-menu a{display:flex;width:100%;padding:8px 0;white-space:normal}
  .bangze-primary-menu .sub-menu{
    position:static;
    display:block;
    min-width:0;
    margin:0 0 4px 14px;
    padding:0 0 0 12px;
    border:0;
    border-left:1px solid var(--line);
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .bangze-primary-menu .sub-menu a{padding:7px 0}
  .products-series-nav{top:0;position:relative;z-index:5}
  .products-page .product-filter-nav{gap:7px;padding:10px 0}
  .products-page .product-filter{font-size:.82rem;padding:8px 12px}
}
@media(max-width:640px){
  .products-page .product-filter-nav{gap:6px}
  .products-page .product-filter{font-size:.76rem;padding:8px 10px}
  .home-page .series-nav{gap:6px}
  .home-page .series-nav a{font-size:.8rem;padding:8px 10px}
}

/* FC5 preserves FC4 Android Arabic RFQ structural compatibility with the new menu markup. */
html.bangze-ar-rfq-android .bangze-primary-menu,
html.bangze-ar-rfq-android .bangze-primary-menu .sub-menu{direction:ltr!important}

/* =========================================================
   Final Candidate 6 — Mobile catalog navigation + About polish
   ========================================================= */

/* Single-product series chips visually match the Products filter bar. */
.product-detail-series-links{
    display:flex;
    align-items:center;
    align-content:center;
    flex-wrap:wrap;
    gap:8px;
    padding:12px 0;
    margin:0;
}
.product-detail-filter{
    flex:0 0 auto;
    max-width:100%;
    padding:9px 14px;
    border:1px solid var(--line);
    border-radius:999px;
    background:#fff;
    color:#171717;
    font-size:.88rem;
    line-height:1;
    font-weight:750;
    white-space:nowrap;
}
.product-detail-filter:hover,
.product-detail-filter.active{
    background:#171717;
    border-color:#171717;
    color:#fff;
}

@media(max-width:980px){
    /* FC6 restores the desktop sticky behavior on tablets/phones. Keep it as a
       single swipeable row so the bar does not consume a large part of the screen. */
    .products-series-nav{
        position:sticky !important;
        top:82px !important;
        z-index:900;
        height:auto;
        background:rgba(255,250,242,.97);
        backdrop-filter:blur(10px);
        -webkit-backdrop-filter:blur(10px);
    }
    .products-series-nav .series-nav,
    .products-page .product-filter-nav,
    .product-detail-series-links{
        flex-wrap:nowrap !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        -webkit-overflow-scrolling:touch;
        overscroll-behavior-x:contain;
        scrollbar-width:none;
        gap:7px;
        padding:9px 0;
    }
    .products-series-nav .series-nav::-webkit-scrollbar,
    .products-page .product-filter-nav::-webkit-scrollbar,
    .product-detail-series-links::-webkit-scrollbar{display:none}
    .products-page .product-filter,
    .product-detail-filter{
        flex:0 0 auto;
        scroll-snap-align:center;
        font-size:.82rem;
        padding:8px 12px;
    }
    .product-detail-series-nav .container{width:min(var(--max),calc(100% - 24px))}
}

@media(max-width:640px){
    .products-series-nav .series-nav,
    .products-page .product-filter-nav,
    .product-detail-series-links{gap:6px;padding:8px 0}
    .products-page .product-filter,
    .product-detail-filter{font-size:.76rem;padding:8px 10px}

    /* About / Company Story: normalize media geometry instead of relying on a
       fixed minimum height that can feel visually unbalanced on narrow screens. */
    .about-story-media{min-height:0;aspect-ratio:4/3}
    .about-story-media img{min-height:0;height:100%;object-fit:cover}

    /* Export & Exhibitions: one feature image + three equal thumbnails in a
       single row. FC5 used two columns for three thumbnails, leaving an orphan
       card on the second row and making the mobile layout visibly asymmetric. */
    .about-export-gallery{gap:12px}
    .about-export-main{min-height:0;aspect-ratio:4/3}
    .about-export-main img{height:100%;object-fit:cover}
    .about-export-small{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        grid-template-rows:none !important;
        gap:8px;
    }
    .about-export-small figure,
    .about-export-gallery.no-feature .about-export-small figure{aspect-ratio:1/1}
    .about-export-small img{width:100%;height:100%;object-fit:cover}
}
