/*
Theme Name:   Xinbaotang Theme
Description:  Child theme of Storefront untuk Xinbaotang Indonesia — desain premium terinspirasi konsep toko teh Shopify (Ooty theme): hero slider, kategori assortment, product cards dengan hover, features strip, newsletter.
Author:       Xinbaotang Indonesia
Template:     storefront
Version:      2.0.0
License:      GNU General Public License v3 or later
Text Domain:  xinbaotang-theme
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
    --xbt-green: #1f3d2b;
    --xbt-green-dark: #14291d;
    --xbt-gold: #c9a227;
    --xbt-gold-light: #e3c56b;
    --xbt-cream: #faf6ef;
    --xbt-cream-dark: #f0e8da;
    --xbt-ink: #2d2c2c;
    --xbt-muted: #6b6b6b;
    --xbt-red: #8a1c1c;
    --xbt-serif: 'Cormorant Garamond', Georgia, serif;
    --xbt-sans: 'Jost', 'Segoe UI', sans-serif;
    --xbt-radius: 12px;
    --xbt-shadow: 0 8px 30px rgba(31, 61, 43, .10);
}

/* =========================================================
   BASE
   ========================================================= */
body.xbt-theme {
    font-family: var(--xbt-sans);
    color: var(--xbt-ink);
    background: var(--xbt-cream);
    line-height: 1.7;
}
body.xbt-theme h1, body.xbt-theme h2, body.xbt-theme h3, body.xbt-theme h4 {
    font-family: var(--xbt-serif);
    color: var(--xbt-green-dark);
}
body.xbt-theme a { color: var(--xbt-green); }
body.xbt-theme a:hover { color: var(--xbt-gold); }

.xbt-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================================
   HEADER
   ========================================================= */
body.xbt-theme .site-header {
    background: var(--xbt-green-dark);
    border-bottom: 3px solid var(--xbt-gold);
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
body.xbt-theme .site-header .site-branding .site-title a {
    font-family: var(--xbt-serif);
    color: #fff;
    font-size: 1.9em;
    letter-spacing: 1px;
}
body.xbt-theme .site-header .site-description { color: var(--xbt-gold-light); font-size: .85em; }
body.xbt-theme .site-header .site-search input { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
body.xbt-theme .site-header .site-search input::placeholder { color: rgba(255,255,255,.6); }
body.xbt-theme .main-navigation ul.menu > li > a,
body.xbt-theme .secondary-navigation ul.menu > li > a { color: #fff; }
body.xbt-theme .main-navigation ul.menu > li > a:hover { color: var(--xbt-gold-light); }
body.xbt-theme .main-navigation ul.menu > li.current-menu-item > a { color: var(--xbt-gold-light); }

/* Cart count badge */
body.xbt-theme .site-header-cart .cart-contents .count {
    background: var(--xbt-gold);
    color: var(--xbt-green-dark);
    border-radius: 50%;
    font-weight: 600;
}

/* =========================================================
   HERO SLIDER
   ========================================================= */
.xbt-hero-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: var(--xbt-green-dark);
}
.xbt-hero-track { position: relative; height: 100%; }
.xbt-hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.xbt-hero-slide.active { opacity: 1; z-index: 2; }
.xbt-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,41,29,.55) 0%, rgba(20,41,29,.75) 100%);
}
.xbt-hero-content {
    position: relative; z-index: 3;
    max-width: 780px;
    padding: 0 24px;
    color: #fff;
}
.xbt-hero-title {
    font-family: var(--xbt-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: #fff;
    margin: 0 0 16px;
    text-shadow: 0 3px 20px rgba(0,0,0,.4);
}
.xbt-hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,.92);
    margin: 0 0 28px;
    text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.xbt-hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    font-size: 1.6rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s;
}
.xbt-hero-nav:hover { background: var(--xbt-gold); border-color: var(--xbt-gold); }
.xbt-hero-nav.prev { left: 24px; }
.xbt-hero-nav.next { right: 24px; }
.xbt-hero-dots {
    position: absolute; bottom: 22px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 10px; z-index: 5;
}
.xbt-hero-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer; transition: background .2s, transform .2s;
}
.xbt-hero-dots span.active { background: var(--xbt-gold); transform: scale(1.3); }

/* =========================================================
   BUTTONS
   ========================================================= */
.xbt-btn {
    display: inline-block;
    background: var(--xbt-gold);
    color: var(--xbt-green-dark) !important;
    font-family: var(--xbt-sans);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: .9rem;
    padding: 14px 36px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(201,162,39,.35);
}
.xbt-btn:hover { background: var(--xbt-gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,162,39,.45); }
.xbt-btn-outline {
    background: transparent;
    color: var(--xbt-green) !important;
    border: 2px solid var(--xbt-green);
    box-shadow: none;
}
.xbt-btn-outline:hover { background: var(--xbt-green); color: #fff !important; }

/* =========================================================
   SECTIONS
   ========================================================= */
.xbt-section { padding: 70px 20px; }
.xbt-section-title {
    font-size: 2.6rem;
    text-align: center;
    margin: 0 0 8px;
    color: var(--xbt-green-dark);
}
.xbt-section-sub {
    text-align: center;
    color: var(--xbt-muted);
    font-size: 1.05rem;
    margin: 0 auto 40px;
    max-width: 520px;
}

/* =========================================================
   CATEGORY ASSORTMENT
   ========================================================= */
.xbt-cats { background: var(--xbt-cream); }
.xbt-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.xbt-cat-card {
    position: relative;
    display: block;
    border-radius: var(--xbt-radius);
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: var(--xbt-shadow);
    transition: transform .3s, box-shadow .3s;
    background: #fff;
}
.xbt-cat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(31,61,43,.18); }
.xbt-cat-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform .5s;
}
.xbt-cat-card:hover .xbt-cat-img { transform: scale(1.06); }
.xbt-cat-info { padding: 18px 20px; text-align: center; }
.xbt-cat-info h3 { font-size: 1.4rem; margin: 0 0 4px; color: var(--xbt-green-dark); }
.xbt-cat-count { color: var(--xbt-gold); font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================================
   FEATURED PRODUCTS GRID
   ========================================================= */
.xbt-featured { background: #fff; }
.xbt-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 26px;
}
.xbt-product-card {
    background: var(--xbt-cream);
    border-radius: var(--xbt-radius);
    overflow: hidden;
    box-shadow: var(--xbt-shadow);
    transition: transform .3s, box-shadow .3s;
    position: relative;
}
.xbt-product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(31,61,43,.18); }
.xbt-card-img { display: block; position: relative; overflow: hidden; aspect-ratio: 1/1; }
.xbt-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.xbt-product-card:hover .xbt-card-img img { transform: scale(1.08); }
.xbt-card-actions {
    position: absolute; top: 14px; right: 14px;
    display: flex; flex-direction: column; gap: 8px;
    opacity: 0; transform: translateX(8px);
    transition: opacity .25s, transform .25s;
    z-index: 4;
}
.xbt-product-card:hover .xbt-card-actions { opacity: 1; transform: translateX(0); }
.xbt-action {
    width: 38px; height: 38px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    color: var(--xbt-green) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
    text-decoration: none !important;
    transition: background .2s, color .2s;
}
.xbt-action:hover { background: var(--xbt-green); color: #fff !important; }
.xbt-card-info { padding: 18px; text-align: center; }
.xbt-card-title { font-size: 1.25rem; margin: 0 0 6px; }
.xbt-card-title a { color: var(--xbt-green-dark); text-decoration: none; }
.xbt-card-title a:hover { color: var(--xbt-gold); }
.xbt-card-price { font-weight: 600; color: var(--xbt-green); margin-bottom: 12px; }
.xbt-card-price .amount { font-size: 1.2rem; color: var(--xbt-red); }
.xbt-card-cart {
    display: inline-block;
    background: var(--xbt-green) !important;
    color: #fff !important;
    border-radius: 40px !important;
    padding: 10px 26px !important;
    font-size: .85rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background .2s !important;
}
.xbt-card-cart:hover { background: var(--xbt-gold) !important; }
.xbt-view-all { text-align: center; margin-top: 44px; }

/* =========================================================
   FEATURES STRIP
   ========================================================= */
.xbt-features {
    background: var(--xbt-green-dark);
    padding: 40px 20px;
    color: #fff;
}
.xbt-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.xbt-feature {
    display: flex; align-items: center; gap: 14px;
}
.xbt-feature-icon {
    font-size: 1.8rem;
    width: 56px; height: 56px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,162,39,.18);
    border: 1px solid rgba(201,162,39,.4);
    border-radius: 50%;
    color: var(--xbt-gold-light);
}
.xbt-feature h4 { color: #fff; margin: 0 0 2px; font-size: 1.05rem; font-family: var(--xbt-sans); font-weight: 600; }
.xbt-feature p { color: rgba(255,255,255,.7); margin: 0; font-size: .85rem; }

/* =========================================================
   ABOUT TEASER
   ========================================================= */
.xbt-about { background: var(--xbt-cream-dark); padding: 70px 20px; }
.xbt-about-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: center;
}
.xbt-about-text .xbt-section-title { text-align: left; }
.xbt-about-text p { color: var(--xbt-muted); }
.xbt-about-badge { text-align: center; }
.xbt-badge-inner {
    width: 220px; height: 220px;
    margin: 0 auto;
    border: 2px solid var(--xbt-gold);
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--xbt-green-dark);
}
.xbt-badge-inner strong { font-family: var(--xbt-serif); font-size: 3.4rem; color: var(--xbt-green-dark); line-height: 1; }
.xbt-badge-inner span { font-size: .9rem; text-transform: uppercase; letter-spacing: 2px; color: var(--xbt-gold); }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.xbt-newsletter {
    background: var(--xbt-green);
    color: #fff;
    text-align: center;
    padding: 70px 20px;
}
.xbt-newsletter h2 { color: #fff; font-size: 2.4rem; margin: 0 0 10px; }
.xbt-newsletter p { color: rgba(255,255,255,.8); margin: 0 auto 30px; max-width: 460px; }
.xbt-newsletter-form { display: flex; max-width: 520px; margin: 0 auto; gap: 10px; }
.xbt-newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 1rem;
}
.xbt-newsletter-form input::placeholder { color: rgba(255,255,255,.65); }
.xbt-newsletter-form input:focus { outline: none; border-color: var(--xbt-gold); }

/* =========================================================
   SHOP / ARCHIVE
   ========================================================= */
body.xbt-theme.woocommerce ul.products li.product {
    background: #fff;
    border-radius: var(--xbt-radius);
    overflow: hidden;
    box-shadow: var(--xbt-shadow);
    padding: 0;
    transition: transform .3s, box-shadow .3s;
}
body.xbt-theme.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(31,61,43,.16); }
body.xbt-theme.woocommerce ul.products li.product img { border-radius: 0; margin: 0; }
body.xbt-theme.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--xbt-serif);
    font-size: 1.15rem;
    color: var(--xbt-green-dark);
    padding: 14px 16px 0;
}
body.xbt-theme.woocommerce ul.products li.product .price { padding: 0 16px; color: var(--xbt-red); }
body.xbt-theme.woocommerce ul.products li.product .price .amount { font-size: 1.15rem; font-weight: 600; }
body.xbt-theme.woocommerce ul.products li.product .button {
    margin: 12px 16px 18px;
    background: var(--xbt-green);
    color: #fff;
    border-radius: 40px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.xbt-theme.woocommerce ul.products li.product .button:hover { background: var(--xbt-gold); color: var(--xbt-green-dark); }
body.xbt-theme.woocommerce .woocommerce-breadcrumb { color: var(--xbt-muted); }
body.xbt-theme.woocommerce .woocommerce-breadcrumb a { color: var(--xbt-green); }
body.xbt-theme.woocommerce .woocommerce-result-count, body.xbt-theme.woocommerce .woocommerce-ordering { color: var(--xbt-muted); }

/* =========================================================
   SINGLE PRODUCT
   ========================================================= */
body.xbt-theme.single-product div.product {
    background: #fff;
    border-radius: var(--xbt-radius);
    padding: 30px;
    box-shadow: var(--xbt-shadow);
}
body.xbt-theme.single-product h1.product_title {
    font-size: 2.4rem;
    color: var(--xbt-green-dark);
}
body.xbt-theme.single-product .price .amount { color: var(--xbt-red); font-size: 1.8rem; font-weight: 600; }
body.xbt-theme.single-product .single_add_to_cart_button {
    background: var(--xbt-green);
    border-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 36px;
}
body.xbt-theme.single-product .single_add_to_cart_button:hover { background: var(--xbt-gold); color: var(--xbt-green-dark); }
body.xbt-theme.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--xbt-green); border-color: var(--xbt-gold); }
body.xbt-theme.single-product .woocommerce-product-gallery { border-radius: var(--xbt-radius); overflow: hidden; }

/* =========================================================
   CART / CHECKOUT
   ========================================================= */
body.xbt-theme.woocommerce-cart .woocommerce,
body.xbt-theme.woocommerce-checkout .woocommerce { background: #fff; padding: 24px; border-radius: var(--xbt-radius); box-shadow: var(--xbt-shadow); }
body.xbt-theme.woocommerce .button[name="update_cart"],
body.xbt-theme.woocommerce .checkout-button,
body.xbt-theme.woocommerce #place_order {
    background: var(--xbt-green);
    border-radius: 40px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.xbt-theme.woocommerce .checkout-button:hover,
body.xbt-theme.woocommerce #place_order:hover { background: var(--xbt-gold); color: var(--xbt-green-dark); }
body.xbt-theme.woocommerce form .form-row input, body.xbt-theme.woocommerce form .form-row select, body.xbt-theme.woocommerce form .form-row textarea {
    border-radius: 8px;
    border-color: #ddd;
    padding: 12px 14px;
}
body.xbt-theme.woocommerce form .form-row input:focus { border-color: var(--xbt-gold); box-shadow: 0 0 0 2px rgba(201,162,39,.2); }

/* =========================================================
   FOOTER
   ========================================================= */
body.xbt-theme .site-footer {
    background: var(--xbt-green-dark);
    color: rgba(255,255,255,.75);
    padding: 60px 20px 30px;
    border-top: 3px solid var(--xbt-gold);
}
body.xbt-theme .site-footer .xbt-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px; margin: 0 auto;
}
body.xbt-theme .site-footer .xbt-footer-widget h4 {
    color: var(--xbt-gold-light);
    font-family: var(--xbt-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 14px;
}
body.xbt-theme .site-footer .xbt-footer-widget ul { list-style: none; margin: 0; padding: 0; }
body.xbt-theme .site-footer .xbt-footer-widget ul li { margin-bottom: 8px; }
body.xbt-theme .site-footer .xbt-footer-widget a { color: rgba(255,255,255,.75); text-decoration: none; }
body.xbt-theme .site-footer .xbt-footer-widget a:hover { color: var(--xbt-gold-light); }
body.xbt-theme .site-footer .site-info { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .xbt-hero-slider { height: 420px; }
    .xbt-about-grid { grid-template-columns: 1fr; }
    .xbt-newsletter-form { flex-direction: column; }
    .xbt-hero-nav { display: none; }
    .xbt-section { padding: 50px 16px; }
}

/* =========================================================
   FIX: HEADER LAYOUT (logo, nav, cart sejajar)
   ========================================================= */
body.xbt-theme .site-header .col-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 20px;
    max-width: 1280px;
    margin: 0 auto;
}
body.xbt-theme .site-header .site-branding {
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
}
body.xbt-theme .site-header .site-branding .site-title a {
    white-space: nowrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
body.xbt-theme .site-header .main-navigation {
    flex: 1 1 auto;
    margin: 0;
}
body.xbt-theme .site-header .main-navigation ul.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a {
    padding: 10px 12px;
    display: inline-block;
}
body.xbt-theme .site-header .header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
body.xbt-theme .header-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 8px 12px;
    text-decoration: none;
    position: relative;
}
body.xbt-theme .header-cart .header-cart-icon { font-size: 1.3em; }
body.xbt-theme .header-cart .header-cart-count {
    background: var(--xbt-gold);
    color: var(--xbt-green-dark);
    border-radius: 50%;
    font-weight: 600;
    font-size: .78em;
    min-width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Hamburger toggle (hidden on desktop) */
body.xbt-theme .xbt-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px 8px;
}

/* =========================================================
   FIX: HILANGKAN SIDEBAR pada halaman toko/checkout/akun
   (fallback CSS; logika utama via PHP storefront_sidebar)
   ========================================================= */
body.xbt-theme.woocommerce-page .content-area,
body.xbt-theme.woocommerce-page .site-main {
    width: 100%;
    float: none;
}
body.xbt-theme.woocommerce-page #secondary,
body.xbt-theme.no-sidebar #secondary { display: none; }

/* =========================================================
   FIX: RESPONSIVE MOBILE
   ========================================================= */
@media (max-width: 900px) {
    body.xbt-theme .site-header .col-full {
        flex-wrap: wrap;
    }
    body.xbt-theme .xbt-menu-toggle { display: block; order: 2; }
    body.xbt-theme .site-header .site-branding { order: 1; }
    body.xbt-theme .site-header .header-actions { order: 2; margin-left: auto; }
    body.xbt-theme .site-header .main-navigation {
        display: none;
        flex-basis: 100%;
        order: 3;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,.12);
        margin-top: 10px;
    }
    body.xbt-theme .site-header .main-navigation.open { display: block; }
    body.xbt-theme .site-header .main-navigation ul.menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    body.xbt-theme .site-header .main-navigation ul.menu > li { width: 100%; }
    body.xbt-theme .site-header .main-navigation ul.menu > li > a {
        display: block;
        padding: 12px 6px;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    /* Cegah horizontal overflow pada /shop/ */
    body.xbt-theme .site-content,
    body.xbt-theme .site-content .col-full { overflow-x: hidden; }
    body.xbt-theme .woocommerce .woocommerce-ordering,
    body.xbt-theme .woocommerce .woocommerce-result-count {
        float: none !important;
        width: 100% !important;
        margin: 6px 0 !important;
    }
}
/* =========================================================
   FIX 3: PASTIKAN KONTEN FULL-WIDTH walau class right-sidebar
   tersisa dari Storefront (about/contact/shop/product/dll)
   ========================================================= */
body.xbt-theme.no-sidebar #primary,
body.xbt-theme.no-sidebar .content-area,
body.xbt-theme.no-sidebar .site-main {
    width: 100%;
    float: none;
    margin-right: 0;
}
body.xbt-theme.no-sidebar #secondary {
    display: none !important;
}
body.xbt-theme.woocommerce-page #primary,
body.xbt-theme.woocommerce-page .content-area {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}
/* =========================================================
   REVISI LAYOUT: logo & header di TENGAH, menu di bawah,
   dan konten WIDE (bukan full-width)
   ========================================================= */

/* --- Header: kolom terpusat, logo tengah, nav di bawah --- */
body.xbt-theme .site-header .col-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 20px 12px;
    position: relative;
}
body.xbt-theme .site-header .site-branding {
    order: 0;
    flex: none;
    text-align: center;
    width: auto;
}
body.xbt-theme .site-header .site-branding .site-title a {
    font-size: 2em;
    white-space: nowrap;
}
body.xbt-theme .site-header .site-description {
    text-align: center;
    margin: 2px 0 0;
}
body.xbt-theme .site-header .main-navigation {
    order: 1;
    flex: none;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.14);
    padding-top: 10px;
    margin-top: 6px;
}
body.xbt-theme .site-header .main-navigation ul.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a {
    padding: 8px 4px;
    display: inline-block;
    font-weight: 500;
}
/* Keranjang: pojok kanan atas, sejajar logo */
body.xbt-theme .site-header .header-actions {
    order: 2;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
/* Sembunyikan tombol hamburger di desktop */
body.xbt-theme .xbt-menu-toggle {
    display: none;
}

/* --- Konten WIDE (bukan full-width) --- */
body.xbt-theme.no-sidebar #primary,
body.xbt-theme.no-sidebar .content-area,
body.xbt-theme.no-sidebar .site-main,
body.xbt-theme.woocommerce-page #primary,
body.xbt-theme.woocommerce-page .content-area {
    width: 100%;
    float: none;
    margin-right: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}
body.xbt-theme.no-sidebar #secondary {
    display: none !important;
}

/* --- Responsive: hamburger tetap untuk HP --- */
@media (max-width: 900px) {
    body.xbt-theme .site-header .col-full {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }
    body.xbt-theme .site-header .site-branding { order: 1; }
    body.xbt-theme .site-header .header-actions { order: 2; position: static; transform: none; }
    body.xbt-theme .xbt-menu-toggle { display: block; order: 3; }
    body.xbt-theme .site-header .main-navigation {
        display: none;
        order: 4;
        flex-basis: 100%;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,.14);
    }
    body.xbt-theme .site-header .main-navigation.open { display: block; }
    body.xbt-theme .site-header .main-navigation ul.menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    body.xbt-theme .site-header .main-navigation ul.menu > li > a {
        display: block;
        padding: 12px 6px;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    body.xbt-theme .site-content,
    body.xbt-theme .site-content .col-full { overflow-x: hidden; }
    body.xbt-theme .woocommerce .woocommerce-ordering,
    body.xbt-theme .woocommerce .woocommerce-result-count {
        float: none !important;
        width: 100% !important;
        margin: 6px 0 !important;
    }
}
/* =========================================================
   REDESIGN SINGLE PRODUCT + HEADER/FOOTER WIDE
   ========================================================= */

/* --- Konten utama WIDE secara global (bukan full, tapi lebar) --- */
body.xbt-theme .site-content .col-full {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* --- HEADER WIDE --- */
body.xbt-theme .site-header .col-full {
    max-width: 100%;
    width: 100%;
    padding-left: 6%;
    padding-right: 6%;
}

/* --- FOOTER WIDE --- */
body.xbt-theme .xbt-footer-grid {
    max-width: 100%;
    width: 100%;
    padding-left: 6%;
    padding-right: 6%;
    box-sizing: border-box;
}
body.xbt-theme .site-info {
    max-width: 100%;
    padding-left: 6%;
    padding-right: 6%;
    box-sizing: border-box;
}

/* =========================================================
   SINGLE PRODUCT LAYOUT
   ========================================================= */
body.xbt-theme .xbt-single-product {
    max-width: 1360px;
    margin: 24px auto;
    padding: 0 24px;
}
body.xbt-theme .xbt-sp-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 44px;
    align-items: start;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--xbt-shadow);
}
/* Galeri */
body.xbt-theme .xbt-sp-gallery .woocommerce-product-gallery {
    position: sticky;
    top: 20px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(31,61,43,.12);
    background: #faf6ef;
}
body.xbt-theme .xbt-sp-gallery .woocommerce-product-gallery img { border-radius: 8px; }
/* Ringkasan */
body.xbt-theme .xbt-sp-summary .product_title {
    font-size: 2.1em;
    line-height: 1.2;
    color: var(--xbt-green-dark);
    margin: 0 0 12px;
}
body.xbt-theme .xbt-sp-summary .price {
    color: var(--xbt-gold);
    font-size: 1.9em;
    font-weight: 700;
    margin: 8px 0 16px;
    font-family: var(--xbt-serif);
}
body.xbt-theme .xbt-sp-summary .price .woocommerce-Price-amount { color: var(--xbt-green-dark); }
body.xbt-theme .xbt-sp-summary .woocommerce-product-details__short-description {
    color: var(--xbt-muted);
    line-height: 1.75;
    margin: 0 0 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(31,61,43,.1);
}
body.xbt-theme .xbt-sp-summary .cart { margin: 0 0 18px; }
body.xbt-theme .xbt-sp-summary .single_add_to_cart_button {
    background: var(--xbt-green);
    color: #fff;
    border-radius: 10px;
    padding: 14px 34px;
    font-size: 1.05em;
    font-weight: 600;
}
body.xbt-theme .xbt-sp-summary .single_add_to_cart_button:hover { background: var(--xbt-green-dark); }
body.xbt-theme .xbt-sp-summary .quantity input { border-radius: 8px; border: 1px solid #d5d5d5; }
body.xbt-theme .xbt-sp-summary .product_meta {
    font-size: .92em;
    color: var(--xbt-muted);
    border-top: 1px solid rgba(31,61,43,.1);
    padding-top: 14px;
}
body.xbt-theme .xbt-sp-summary .product_meta a { color: var(--xbt-green); font-weight: 500; }

/* Panel kepercayaan */
body.xbt-theme .xbt-sp-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px 0;
}
body.xbt-theme .xbt-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(31,61,43,.1);
    border-radius: 12px;
    padding: 18px;
}
body.xbt-theme .xbt-trust-item > span { font-size: 1.8em; }
body.xbt-theme .xbt-trust-item strong { color: var(--xbt-green-dark); display: block; }
body.xbt-theme .xbt-trust-item p { margin: 2px 0 0; color: var(--xbt-muted); font-size: .85em; }

/* Deskripsi */
body.xbt-theme .xbt-sp-description {
    background: #fff;
    border-radius: 14px;
    padding: 26px 30px;
    box-shadow: var(--xbt-shadow);
}
body.xbt-theme .xbt-sp-section-title {
    color: var(--xbt-green-dark);
    font-size: 1.6em;
    margin: 0 0 14px;
}
body.xbt-theme .xbt-sp-desc-content { line-height: 1.8; color: var(--xbt-ink); }
body.xbt-theme .xbt-sp-desc-content img { border-radius: 10px; margin: 12px 0; }

/* Meta detail */
body.xbt-theme .xbt-sp-meta {
    background: #fff;
    border-radius: 14px;
    padding: 22px 30px;
    margin-top: 18px;
    box-shadow: var(--xbt-shadow);
}
body.xbt-theme .xbt-sp-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
body.xbt-theme .xbt-meta-cell { display: flex; flex-direction: column; gap: 4px; }
body.xbt-theme .xbt-meta-label { font-size: .8em; text-transform: uppercase; letter-spacing: .5px; color: var(--xbt-muted); }
body.xbt-theme .xbt-meta-value { font-weight: 600; color: var(--xbt-green-dark); }
body.xbt-theme .xbt-instock { color: #2e7d32; }

/* Tabs (reviews) */
body.xbt-theme .xbt-sp-description + .woocommerce-tabs,
body.xbt-theme .woocommerce-tabs {
    background: #fff;
    border-radius: 14px;
    padding: 22px 30px;
    margin-top: 18px;
    box-shadow: var(--xbt-shadow);
}
body.xbt-theme .woocommerce-tabs .tabs { display: flex; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; border-bottom: 2px solid rgba(31,61,43,.1); }
body.xbt-theme .woocommerce-tabs .tabs li a { padding: 10px 18px; display: inline-block; color: var(--xbt-muted); text-decoration: none; }
body.xbt-theme .woocommerce-tabs .tabs li.active a { color: var(--xbt-green); border-bottom: 3px solid var(--xbt-gold); }

/* Related */
body.xbt-theme .xbt-sp-related {
    margin-top: 34px;
}
body.xbt-theme .xbt-sp-related > h2,
body.xbt-theme .related.products > h2 {
    color: var(--xbt-green-dark);
    font-size: 1.7em;
    text-align: center;
    margin-bottom: 22px;
}
body.xbt-theme .related.products ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* =========================================================
   RESPONSIVE SINGLE PRODUCT
   ========================================================= */
@media (max-width: 1024px) {
    body.xbt-theme .xbt-sp-grid { grid-template-columns: 1fr; gap: 26px; }
    body.xbt-theme .xbt-sp-gallery .woocommerce-product-gallery { position: static; }
    body.xbt-theme .xbt-sp-meta-grid { grid-template-columns: repeat(2, 1fr); }
    body.xbt-theme .xbt-sp-trust { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body.xbt-theme .xbt-sp-grid { padding: 16px; }
    body.xbt-theme .xbt-sp-summary .product_title { font-size: 1.6em; }
    body.xbt-theme .xbt-sp-meta-grid { grid-template-columns: 1fr; }
    body.xbt-theme .related.products ul.products { grid-template-columns: 1fr 1fr; }
}
/* =========================================================
   HOMEPAGE AIDA + SEJARAH SECTION
   ========================================================= */
/* History / Sejarah section */
body.xbt-theme .xbt-history {
    background: linear-gradient(180deg, #faf6ef 0%, #f0e8da 100%);
    padding: 70px 0;
}
body.xbt-theme .xbt-history-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}
body.xbt-theme .xbt-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .82em;
    font-weight: 600;
    color: var(--xbt-gold);
    margin-bottom: 12px;
}
body.xbt-theme .xbt-history-title {
    font-size: 2.2em;
    color: var(--xbt-green-dark);
    line-height: 1.2;
    margin: 0 0 18px;
}
body.xbt-theme .xbt-history-intro {
    color: var(--xbt-muted);
    font-size: 1.08em;
    line-height: 1.8;
    margin: 0 0 28px;
}
body.xbt-theme .xbt-history-intro strong { color: var(--xbt-green-dark); }

/* Milestones */
body.xbt-theme .xbt-history-milestones {
    border-left: 3px solid var(--xbt-gold);
    padding-left: 24px;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
body.xbt-theme .xbt-milestone { position: relative; }
body.xbt-theme .xbt-milestone::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--xbt-gold);
    border: 2px solid #fff;
}
body.xbt-theme .xbt-milestone-year {
    display: block;
    font-family: var(--xbt-serif);
    font-size: 1.35em;
    font-weight: 700;
    color: var(--xbt-green-dark);
}
body.xbt-theme .xbt-milestone p { margin: 4px 0 0; color: var(--xbt-muted); }

/* Quote */
body.xbt-theme .xbt-history-quote {
    margin: 0 0 30px;
    padding: 20px 24px;
    background: #fff;
    border-left: 4px solid var(--xbt-gold);
    border-radius: 0 10px 10px 0;
    font-family: var(--xbt-serif);
    font-size: 1.1em;
    font-style: italic;
    color: var(--xbt-green-dark);
}
body.xbt-theme .xbt-history-quote cite { display: block; margin-top: 8px; font-size: .85em; color: var(--xbt-muted); font-style: normal; }

/* Visual card */
body.xbt-theme .xbt-history-visual {}
body.xbt-theme .xbt-history-card {
    background: var(--xbt-green-dark);
    color: #fff;
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 18px 40px rgba(20,41,29,.25);
    position: relative;
}
body.xbt-theme .xbt-card-badge {
    display: inline-block;
    background: var(--xbt-gold);
    color: var(--xbt-green-dark);
    font-weight: 700;
    font-size: .8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    padding: 6px 16px;
    margin-bottom: 18px;
}
body.xbt-theme .xbt-history-card h3 { color: #fff; font-size: 1.5em; margin: 0 0 18px; }
body.xbt-theme .xbt-history-card ul { list-style: none; margin: 0; padding: 0; }
body.xbt-theme .xbt-history-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
    line-height: 1.5;
}
body.xbt-theme .xbt-history-card li:last-child { border-bottom: none; }
body.xbt-theme .xbt-history-card li strong { color: var(--xbt-gold-light); }

/* CTA button (reuse) */
body.xbt-theme .xbt-btn {
    display: inline-block;
    background: var(--xbt-green);
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
body.xbt-theme .xbt-btn:hover { background: var(--xbt-green-dark); transform: translateY(-2px); }

@media (max-width: 900px) {
    body.xbt-theme .xbt-history-grid { grid-template-columns: 1fr; gap: 30px; }
    body.xbt-theme .xbt-history-title { font-size: 1.7em; }
}
/* =========================================================
   REDESIGN MENGIKUTI TEMA ASLI xinbaotang.com
   Palet hangat terracotta/cokelat + krem, logo atas, nav cokelat
   ========================================================= */
:root {
    --xbt-brown: #6d5551;
    --xbt-brown-dark: #3d342e;
    --xbt-brown-ink: #674c48;
    --xbt-terracotta: #d77258;
    --xbt-goldt: #d4975c;
    --xbt-cream: #fcf9f3;
    --xbt-red-accent: #ff0036;
    --xbt-grey: #a0a0a0;
    /* replace previous green tokens */
    --xbt-green: #6d5551;
    --xbt-green-dark: #3d342e;
    --xbt-gold: #d4975c;
    --xbt-gold-light: #e8c98a;
}

/* --- Body background cream --- */
body.xbt-theme {
    background: var(--xbt-cream);
    color: #3d342e;
}

/* =========================================================
   HEADER: logo + banner atas, nav cokelat
   ========================================================= */
body.xbt-theme .site-header {
    background: var(--xbt-cream);
    border-bottom: none;
    box-shadow: none;
}
body.xbt-theme .site-header .col-full {
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-width: 100%;
}
/* Top banner strip (gambar asli) */
body.xbt-theme .site-header .xbt-top-strip {
    width: 100%;
    height: 122px;
    background: url('assets/xbt-top.webp') top center repeat-x;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.xbt-theme .xbt-top-inner { display: flex; align-items: center; justify-content: center; }
body.xbt-theme .xbt-top-logo { display: inline-block; }
body.xbt-theme .xbt-top-logo img.xbt-logo-img {
    max-height: 79px;
    width: auto;
    display: block;
}
body.xbt-theme .xbt-top-strip + .site-branding { display: none; }
/* Logo */
body.xbt-theme .site-header .site-branding {
    text-align: center;
    padding: 14px 0 10px;
    width: 100%;
}
body.xbt-theme .site-header .site-branding .custom-logo-link img,
body.xbt-theme .site-header .site-branding img.custom-logo {
    max-height: 79px;
    width: auto;
    margin: 0 auto;
}
body.xbt-theme .site-header .site-branding .site-title a {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--xbt-brown-ink);
    font-size: 2em;
    letter-spacing: 1px;
    white-space: nowrap;
}
body.xbt-theme .site-header .site-description {
    color: var(--xbt-grey);
    font-size: .9em;
}

/* Navbar bawah */
body.xbt-theme .site-header .main-navigation {
    width: 100%;
    border-top: 1px solid #e8e3da;
    background: var(--xbt-cream);
    padding: 6px 0;
}
body.xbt-theme .site-header .main-navigation ul.menu {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a {
    color: var(--xbt-brown-ink);
    font-weight: 500;
    font-size: 1.02em;
    padding: 12px 18px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a:hover,
body.xbt-theme .site-header .main-navigation ul.menu > li.current-menu-item > a {
    color: var(--xbt-terracotta);
}
body.xbt-theme .site-header .main-navigation ul.menu > li.current-menu-item > a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 6px;
    width: 24px;
    height: 3px;
    background: var(--xbt-terracotta);
    border-radius: 2px;
}

/* Keranjang */
body.xbt-theme .site-header .header-actions {
    position: static;
    transform: none;
    order: 2;
    margin-top: 4px;
}
body.xbt-theme .site-header .header-cart {
    background: var(--xbt-brown-ink);
    color: #fff;
}
body.xbt-theme .site-header .header-cart:hover { background: var(--xbt-brown-dark); }

/* =========================================================
   HERO / BANNER
   ========================================================= */
body.xbt-theme .xbt-hero-slider {
    border-bottom: 4px solid var(--xbt-terracotta);
}

/* =========================================================
   BUTTONS / CTA
   ========================================================= */
body.xbt-theme .xbt-btn {
    background: var(--xbt-brown-ink);
    color: #fff;
}
body.xbt-theme .xbt-btn:hover { background: var(--xbt-brown-dark); }
body.xbt-theme .single_add_to_cart_button {
    background: var(--xbt-brown-ink) !important;
}
body.xbt-theme .single_add_to_cart_button:hover { background: var(--xbt-brown-dark) !important; }

/* =========================================================
   SEJARAH SECTION
   ========================================================= */
body.xbt-theme .xbt-history {
    background: linear-gradient(180deg, #fcf9f3 0%, #f5ece0 100%);
}
body.xbt-theme .xbt-history-title { color: var(--xbt-brown-ink); }
body.xbt-theme .xbt-history-card {
    background: var(--xbt-brown-ink);
}
body.xbt-theme .xbt-card-badge,
body.xbt-theme .xbt-milestone-year { color: var(--xbt-terracotta); }
body.xbt-theme .xbt-milestone::before { background: var(--xbt-terracotta); }
body.xbt-theme .xbt-eyebrow { color: var(--xbt-terracotta); }
body.xbt-theme .xbt-history-quote { border-left-color: var(--xbt-terracotta); color: var(--xbt-brown-ink); }

/* =========================================================
   SINGLE PRODUCT
   ========================================================= */
body.xbt-theme .xbt-sp-summary .product_title { color: var(--xbt-brown-ink); }
body.xbt-theme .xbt-sp-summary .price .woocommerce-Price-amount { color: var(--xbt-terracotta); }
body.xbt-theme .xbt-meta-value { color: var(--xbt-brown-ink); }
body.xbt-theme .xbt-sp-section-title { color: var(--xbt-brown-ink); }

/* =========================================================
   FOOTER
   ========================================================= */
body.xbt-theme .site-footer {
    background: var(--xbt-brown-dark);
    color: #e8dfd2;
}
body.xbt-theme .site-footer a { color: var(--xbt-goldt); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    body.xbt-theme .site-header .xbt-top-strip { height: 70px; }
    body.xbt-theme .site-header .main-navigation ul.menu { flex-direction: column; align-items: stretch; }
    body.xbt-theme .site-header .main-navigation ul.menu > li > a { text-align: center; }
}
/* =========================================================
   FIX HEADER: single logo (top strip), hamburger mobile menu
   ========================================================= */

/* Header: hanya top strip logo + nav, tidak ada branding text */
body.xbt-theme .site-header .site-branding { display: none !important; }
body.xbt-theme .site-header .col-full {
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-width: 100%;
    gap: 0;
    position: relative;
}
body.xbt-theme .site-header .xbt-top-strip {
    width: 100%;
    height: 122px;
    background: url('assets/xbt-top.webp') top center repeat-x;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.xbt-theme .xbt-top-logo img.xbt-logo-img { max-height: 79px; width: auto; display: block; }

/* Navbar: row di desktop */
body.xbt-theme .site-header .main-navigation {
    width: 100%;
    order: 2;
    border-top: 1px solid #e8e3da;
    background: var(--xbt-cream);
    padding: 6px 0;
}
body.xbt-theme .site-header .main-navigation ul.menu {
    display: flex !important;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a {
    color: var(--xbt-brown-ink);
    font-weight: 500;
    font-size: 1.02em;
    padding: 12px 18px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a:hover,
body.xbt-theme .site-header .main-navigation ul.menu > li.current-menu-item > a { color: var(--xbt-terracotta); }

/* Keranjang: pojok kanan atas */
body.xbt-theme .site-header .header-actions {
    order: 3;
    position: absolute;
    right: 20px;
    top: 14px;
}

/* Hamburger: hidden di desktop */
body.xbt-theme .xbt-menu-toggle { display: none; }

/* =========================================================
   MOBILE: hamburger + menu dropdown
   ========================================================= */
@media (max-width: 900px) {
    body.xbt-theme .site-header .col-full { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    body.xbt-theme .site-header .xbt-top-strip { order: 1; height: 70px; flex-basis: calc(100% - 90px); justify-content: flex-start; padding-left: 14px; }
    body.xbt-theme .xbt-top-logo img.xbt-logo-img { max-height: 55px; }
    body.xbt-theme .site-header .header-actions { order: 2; position: static; }
    /* Hamburger tampil */
    body.xbt-theme .xbt-menu-toggle { display: block; order: 3; background: none; border: none; color: var(--xbt-brown-ink); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 8px; }
    /* Menu collapse */
    body.xbt-theme .site-header .main-navigation {
        display: none;
        order: 4;
        flex-basis: 100%;
        width: 100%;
        border-top: 1px solid #e8e3da;
    }
    body.xbt-theme .site-header .main-navigation.open { display: block; }
    body.xbt-theme .site-header .main-navigation ul.menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    body.xbt-theme .site-header .main-navigation ul.menu > li > a {
        display: block;
        text-align: left;
        padding: 12px 16px;
        border-bottom: 1px solid #eee8dd;
    }
    /* cegah horizontal scroll */
    body.xbt-theme .site-content, body.xbt-theme .site-content .col-full { overflow-x: hidden; }
}
/* =========================================================
   HEADER: satu logo (banner asli), tanpa overlay logo ganda
   ========================================================= */
body.xbt-theme .site-header .site-branding { display: none !important; }
body.xbt-theme .site-header .col-full {
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-width: 100%;
    gap: 0;
    position: relative;
}

/* Top banner: banner asli berisi logo, satu-satunya logo */
body.xbt-theme .site-header .xbt-top-strip {
    width: 100%;
    height: 122px;
    background: url('assets/xbt-top.webp') top center repeat-x;
    background-size: cover;
    background-position: center;
    display: block;
    position: relative;
}
body.xbt-theme .site-header .xbt-top-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
/* Nama situs overlay (aksesibilitas + fallback) */
body.xbt-theme .xbt-top-banner-title {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Navbar bawah */
body.xbt-theme .site-header .main-navigation {
    width: 100%;
    border-top: 1px solid #e8e3da;
    background: var(--xbt-cream);
    padding: 6px 0;
}
body.xbt-theme .site-header .main-navigation ul.menu {
    display: flex !important;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a {
    color: var(--xbt-brown-ink);
    font-weight: 500;
    font-size: 1.02em;
    padding: 12px 18px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a:hover,
body.xbt-theme .site-header .main-navigation ul.menu > li.current-menu-item > a { color: var(--xbt-terracotta); }

/* Keranjang: pojok kanan atas */
body.xbt-theme .site-header .header-actions {
    position: absolute;
    right: 20px;
    top: 14px;
}
body.xbt-theme .site-header .header-cart {
    background: var(--xbt-brown-ink);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body.xbt-theme .site-header .header-cart:hover { background: var(--xbt-brown-dark); }
body.xbt-theme .header-cart .header-cart-icon { font-size: 1.2em; }
body.xbt-theme .header-cart .header-cart-count {
    background: var(--xbt-terracotta);
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: .78em;
    min-width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Hamburger: hidden di desktop */
body.xbt-theme .xbt-menu-toggle { display: none; }

/* =========================================================
   MOBILE: hamburger + menu dropdown
   ========================================================= */
@media (max-width: 900px) {
    body.xbt-theme .site-header .col-full { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    body.xbt-theme .site-header .xbt-top-strip { order: 1; height: 70px; flex-basis: calc(100% - 80px); }
    body.xbt-theme .site-header .header-actions { order: 2; position: static; }
    body.xbt-theme .xbt-menu-toggle { display: block; order: 3; background: none; border: none; color: var(--xbt-brown-ink); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 8px; }
    body.xbt-theme .site-header .main-navigation {
        display: none;
        order: 4;
        flex-basis: 100%;
        width: 100%;
        border-top: 1px solid #e8e3da;
    }
    body.xbt-theme .site-header .main-navigation.open { display: block; }
    body.xbt-theme .site-header .main-navigation ul.menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    body.xbt-theme .site-header .main-navigation ul.menu > li > a {
        display: block;
        text-align: left;
        padding: 12px 16px;
        border-bottom: 1px solid #eee8dd;
    }
    body.xbt-theme .site-content, body.xbt-theme .site-content .col-full { overflow-x: hidden; }
}
/* =========================================================
   HEADER: TOPBAR (menu di atas) + banner di bawah
   ========================================================= */
body.xbt-theme .site-header .site-branding { display: none !important; }

/* Topbar: menu + logo kecil + keranjang, di atas */
body.xbt-theme .site-header .xbt-topbar {
    background: var(--xbt-brown-dark);
    width: 100%;
}
body.xbt-theme .site-header .xbt-topbar-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
body.xbt-theme .xbt-topbar-logo { flex: 0 0 auto; }
body.xbt-theme .xbt-topbar-logo img.xbt-topbar-logo-img {
    height: 46px;
    width: auto;
    display: block;
    background: #fff;
    border-radius: 6px;
    padding: 3px 6px;
}
body.xbt-theme .site-header .main-navigation {
    flex: 1 1 auto;
    margin: 0;
}
body.xbt-theme .site-header .main-navigation ul.menu {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a {
    color: #fff;
    font-weight: 500;
    font-size: .98em;
    padding: 10px 16px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a:hover,
body.xbt-theme .site-header .main-navigation ul.menu > li.current-menu-item > a { color: var(--xbt-gold-light); }

body.xbt-theme .site-header .header-actions { flex: 0 0 auto; }
body.xbt-theme .site-header .header-cart {
    background: var(--xbt-gold);
    color: var(--xbt-brown-dark);
    border-radius: 8px;
    padding: 8px 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
body.xbt-theme .header-cart .header-cart-icon { font-size: 1.2em; }
body.xbt-theme .header-cart .header-cart-count {
    background: var(--xbt-brown-dark);
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: .78em;
    min-width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Banner di bawah topbar */
body.xbt-theme .site-header .xbt-top-strip {
    width: 100%;
    height: 122px;
    background: url('assets/xbt-top.webp') top center repeat-x;
    background-size: cover;
    background-position: center;
    display: block;
    position: relative;
}
body.xbt-theme .site-header .xbt-top-banner-link { display: block; width: 100%; height: 100%; text-decoration: none; }
body.xbt-theme .xbt-top-banner-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hamburger: hidden di desktop */
body.xbt-theme .xbt-menu-toggle { display: none; }

/* =========================================================
   MOBILE: hamburger + menu dropdown (di topbar)
   ========================================================= */
@media (max-width: 900px) {
    body.xbt-theme .site-header .xbt-topbar-inner { flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
    body.xbt-theme .xbt-topbar-logo { order: 1; }
    body.xbt-theme .site-header .header-actions { order: 2; margin-left: auto; }
    body.xbt-theme .xbt-menu-toggle { display: block; order: 3; background: none; border: none; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 6px; }
    body.xbt-theme .site-header .main-navigation {
        display: none;
        order: 4;
        flex-basis: 100%;
        width: 100%;
    }
    body.xbt-theme .site-header .main-navigation.open { display: block; }
    body.xbt-theme .site-header .main-navigation ul.menu { flex-direction: column; align-items: stretch; gap: 0; }
    body.xbt-theme .site-header .main-navigation ul.menu > li > a {
        display: block;
        text-align: left;
        padding: 12px 6px;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    body.xbt-theme .site-header .xbt-top-strip { height: 70px; }
    body.xbt-theme .site-content, body.xbt-theme .site-content .col-full { overflow-x: hidden; }
}
/* =========================================================
   SINGLE PRODUCT — TABS (Deskripsi AIDA / FAQ / Detail)
   ========================================================= */
body.xbt-theme .xbt-breadcrumb {
    font-size: .9em;
    color: var(--xbt-muted);
    margin: 10px 0 18px;
}
body.xbt-theme .xbt-breadcrumb a { color: var(--xbt-brown-ink); text-decoration: none; }
body.xbt-theme .xbt-breadcrumb a:hover { color: var(--xbt-terracotta); }
body.xbt-theme .xbt-breadcrumb .sep { margin: 0 6px; color: var(--xbt-grey); }
body.xbt-theme .xbt-breadcrumb .current { color: var(--xbt-brown-ink); font-weight: 600; }

/* Tabs */
body.xbt-theme .xbt-sp-tabs {
    background: #fff;
    border-radius: 14px;
    padding: 0;
    margin-top: 26px;
    box-shadow: var(--xbt-shadow);
    overflow: hidden;
}
body.xbt-theme .xbt-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee8dd;
    background: var(--xbt-cream);
}
body.xbt-theme .xbt-tab-btn {
    background: none;
    border: none;
    padding: 16px 26px;
    font-size: 1.02em;
    font-weight: 600;
    color: var(--xbt-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
}
body.xbt-theme .xbt-tab-btn.active { color: var(--xbt-brown-ink); border-bottom-color: var(--xbt-terracotta); }
body.xbt-theme .xbt-tab-panel { display: none; padding: 26px 30px; }
body.xbt-theme .xbt-tab-panel.active { display: block; }

/* AIDA structure */
body.xbt-theme .xbt-desc-aida { max-width: 100%; }
body.xbt-theme .xbt-aida-h {
    color: var(--xbt-brown-ink);
    font-size: 1.2em;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.xbt-theme .xbt-aida-h::before {
    content: '';
    width: 6px; height: 22px;
    background: var(--xbt-terracotta);
    border-radius: 3px;
}
body.xbt-theme .xbt-aida-benefit,
body.xbt-theme .xbt-aida-why,
body.xbt-theme .xbt-aida-value,
body.xbt-theme .xbt-aida-action {
    padding: 16px 20px;
    margin-bottom: 16px;
    background: var(--xbt-cream);
    border-radius: 12px;
    border-left: 3px solid var(--xbt-gold);
}
body.xbt-theme .xbt-aida-value ul { margin: 8px 0 0 0; padding-left: 20px; }
body.xbt-theme .xbt-aida-value li { margin-bottom: 6px; color: var(--xbt-ink); }
body.xbt-theme .xbt-aida-action { border-left-color: var(--xbt-terracotta); }

/* Deskripsi penuh (banner marketing) */
body.xbt-theme .xbt-desc-full { margin-top: 26px; }
body.xbt-theme .xbt-desc-full img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }

/* FAQ */
body.xbt-theme .xbt-faq-item {
    padding: 18px 20px;
    border-bottom: 1px solid #eee8dd;
}
body.xbt-theme .xbt-faq-item:last-child { border-bottom: none; }
body.xbt-theme .xbt-faq-item h4 { color: var(--xbt-brown-ink); font-size: 1.08em; margin: 0 0 8px; }
body.xbt-theme .xbt-faq-item p { color: var(--xbt-ink); margin: 0; line-height: 1.7; }

/* Detail table */
body.xbt-theme .xbt-detail-table { max-width: 620px; }
body.xbt-theme .xbt-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee8dd;
}
body.xbt-theme .xbt-detail-row:last-child { border-bottom: none; }
body.xbt-theme .xbt-detail-row span { color: var(--xbt-muted); }
body.xbt-theme .xbt-detail-row b { color: var(--xbt-brown-ink); }
body.xbt-theme .xbt-instock { color: #2e7d32 !important; }

/* Single product grid */
body.xbt-theme .xbt-sp-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 44px;
    align-items: start;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--xbt-shadow);
}
body.xbt-theme .xbt-sp-gallery .woocommerce-product-gallery {
    position: sticky; top: 20px;
    border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(31,61,43,.12);
    background: #faf6ef;
}
body.xbt-theme .xbt-sp-summary .product_title { font-size: 2em; color: var(--xbt-brown-ink); line-height: 1.2; margin: 0 0 12px; }
body.xbt-theme .xbt-sp-summary .price { color: var(--xbt-terracotta); font-size: 1.8em; font-weight: 700; margin: 8px 0 16px; }
body.xbt-theme .xbt-sp-summary .single_add_to_cart_button { background: var(--xbt-brown-ink); border-radius: 10px; padding: 14px 34px; font-weight: 600; }
body.xbt-theme .xbt-sp-summary .single_add_to_cart_button:hover { background: var(--xbt-brown-dark); }
body.xbt-theme .xbt-sp-trust { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 22px; border-top: 1px solid #eee8dd; padding-top: 18px; }
body.xbt-theme .xbt-trust-item { display: flex; align-items: center; gap: 10px; }
body.xbt-theme .xbt-trust-item > span { font-size: 1.6em; }
body.xbt-theme .xbt-trust-item strong { color: var(--xbt-brown-ink); display: block; font-size: .92em; }
body.xbt-theme .xbt-trust-item p { margin: 2px 0 0; color: var(--xbt-muted); font-size: .8em; }

@media (max-width: 900px) {
    body.xbt-theme .xbt-sp-grid { grid-template-columns: 1fr; gap: 24px; }
    body.xbt-theme .xbt-sp-trust { grid-template-columns: 1fr; }
    body.xbt-theme .xbt-tab-nav { flex-wrap: wrap; }
    body.xbt-theme .xbt-tab-btn { padding: 12px 14px; font-size: .95em; }
    body.xbt-theme .xbt-tab-panel { padding: 18px; }
}
/* =========================================================
   FIX KONTRAS HEADER — pastikan menu terbaca jelas
   Topbar gelap + teks putih, banner di bawah
   ========================================================= */
body.xbt-theme .site-header {
    background: var(--xbt-brown-dark) !important;
}
body.xbt-theme .site-header .xbt-topbar {
    background: var(--xbt-brown-dark) !important;
}
body.xbt-theme .site-header .xbt-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a {
    color: #ffffff !important;
}
body.xbt-theme .site-header .main-navigation ul.menu > li > a:hover,
body.xbt-theme .site-header .main-navigation ul.menu > li.current-menu-item > a {
    color: var(--xbt-gold-light) !important;
}

/* Banner strip: pastikan tampil dengan warna dasar, teks fallback terlihat */
body.xbt-theme .site-header .xbt-top-strip {
    height: 110px;
    background: var(--xbt-brown-ink);
    background-image: url('assets/xbt-top.webp');
    background-size: cover;
    background-position: center;
}
body.xbt-theme .xbt-top-banner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
body.xbt-theme .xbt-top-banner-title {
    position: static;
    clip: auto;
    width: auto;
    height: auto;
    overflow: visible;
    color: #ffffff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2em;
    letter-spacing: 2px;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

/* Mobile */
@media (max-width: 900px) {
    body.xbt-theme .site-header .xbt-top-strip { height: 64px; }
    body.xbt-theme .xbt-top-banner-title { font-size: 1.4em; }
}
