:root { 
    --lt-black: #212529; 
    --jakarta: 'Plus Jakarta Sans', sans-serif; 
} 

/* Buttons */ 
.btn-quick { 
    font-size: 0.7rem; 
    font-weight: 800; 
    padding: 12px; 
    border-radius: 10px; 
} 
.btn-cart-container { 
    position: relative; 
    width: 60%; 
} 
.cart-qty-controls { 
    display: none; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: #fff; 
    border: 1.5px solid var(--shop-accent); 
    border-radius: 10px; 
    align-items: center; 
    justify-content: space-between; 
    overflow: hidden; 
    z-index: 5; 
} 
.cart-qty-controls.active { 
    display: flex; 
    max-height: 50px ; 
} 
.qty-btn { 
    border: none; 
    background: none; 
    padding: 0 10px; 
    font-weight: bold; 
    font-size: 1.1rem; 
    color: var(--shop-accent); 
} 
.qty-num { 
    font-size: 0.85rem; 
    font-weight: 800; 
    color: #111827 ; 
} 
.btn-quick-cart { 
    border: 1.5px solid #e5e7eb; 
    background: #fff; 
    color: #111827; 
    width: 60%; 
} 
.btn-quick-buy { 
    background: var(--btn-bg) ; 
    color: var(--btn-text) ; 
    border: none; 
    width: 38%; 
} 

/* Pagination */ 
.page-link { 
    border: none; 
    color: #111827; 
    border-radius: 12px ; 
    padding: 12px 20px; 
    font-weight: 700; 
    background: #f3f4f6; 
    margin: 0 4px; 
} 
.page-item.active .page-link { 
    background: var(--shop-accent); 
    color: white; 
} 

.modal.show{z-index: 999999999999999999;}
/* Drawer & Modal (Always White Theme) */ 
.cart-drawer, .modal-content { 
    background: #fff ; 
} 
#checkoutModal .modal-dialog .modal-content { 
    padding: 20px ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-header .chk-details { 
    color: var(--lt-black) ; 
    font-family: var(--jakarta) ; 
    font-weight: 700 ; 
    text-decoration: none ; 
    font-size: 1.35rem ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm input, 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm textarea { 
    font-family: var(--jakarta) ; 
    font-size: 1rem ; 
    line-height: 1.5 ; 
    margin: 0 ; 
    padding: .375rem .75rem ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm textarea { 
    min-height: calc(1.5em + .75rem + 2px) ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm .pay-method-label { 
    font-weight: 700 ; 
    font-family: var(--jakarta) ; 
    color: var(--lt-black) ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm .payment-method-box { 
    background: #fdfdfd ; 
    border-color: #e5e7eb ; 
    font-size: .875em ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm .payment-method-box i::before { 
    color: #3d3f42 ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm #bankDetailsArea h6 { 
    color: var(--lt-black) ; 
    font-family: var(--jakarta) ; 
    font-weight: 700 ; 
    font-size: .875em ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm #bankDetailsArea p, 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm #bankDetailsArea .trans-id, 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm #bankDetailsArea .pay-ss { 
    color: var(--lt-black) ; 
    font-size: .875em ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm #bankDetailsArea #trans_id_input, 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm #bankDetailsArea #trans_ss_input { 
    font-size: .875em ; 
    color: var(--lt-black) ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm [type="submit"] { 
    background-color: var(--lt-black) ; 
    border-color: var(--lt-black) ; 
    font-family: var(--jakarta) ; 
    font-weight: 700 ; 
    padding-top: 1rem ; 
    padding-bottom: 1rem ; 
    font-size: 1em ; 
    color: #fff ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-body .order-sum-label { 
    color: var(--lt-black) ; 
    font-family: var(--jakarta) ; 
    font-size: 1em ; 
} 
#checkoutModal .modal-dialog .modal-content .modal-body .subtotal, 
#checkoutModal .modal-dialog .modal-content .modal-body .subtotal-num, 
#checkoutModal .modal-dialog .modal-content .modal-body .total-amount, 
#checkoutModal .modal-dialog .modal-content .modal-body .total-amount-num { 
    color: #000000 ; 
    font-family: var(--jakarta) ; 
} 
#checkoutModal { 
    z-index: 9999999999 ; 
    color: var(--lt-black) ; 
    font-family: var(--jakarta) ; 
} 
.cart-drawer h1, .cart-drawer h2, .cart-drawer h3, .cart-drawer h4, .cart-drawer h5, 
.cart-drawer p, .cart-drawer span, .cart-drawer .small, 
#checkoutModal h1, #checkoutModal h2, #checkoutModal h3, #checkoutModal h4, #checkoutModal h5, 
#checkoutModal p, #checkoutModal span, #checkoutModal .small { 
    color: #111827 ; 
} 
.cart-drawer { 
    position: fixed; 
    right: -400px; 
    top: 0; 
    width: 400px; 
    height: 100%; 
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1); 
    transition: 0.4s ease; 
    z-index: 2050; 
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
} 
.cart-drawer.active { 
    right: 0; 
} 
.cart-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.3); 
    display: none; 
    z-index: 2040; 
} 
.tag-btn { 
    border: 1px solid #e5e7eb; 
    padding: 6px 14px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 0.85rem; 
    font-weight: 600; 
    transition: 0.2s; 
} 
.tag-btn.active { 
    background: #111827; 
    color: #fff; 
    border-color: #111827; 
} 
.payment-method-box { 
    border: 1.5px solid #e5e7eb; 
    padding: 15px; 
    border-radius: 12px; 
    cursor: pointer; 
    transition: 0.2s; 
    position: relative; 
} 
.payment-method-box.selected { 
    border-color: var(--shop-accent); 
    background: #fdfdfd; 
} 
.payment-method-box.selected::after { 
    content: "\F26E"; 
    font-family: "bootstrap-icons"; 
    position: absolute; 
    right: 10px; 
    top: 10px; 
    color: var(--shop-accent); 
} 
.success-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.8); 
    z-index: 3000; 
    display: none; 
    justify-content: center; 
    align-items: center; 
} 

  .drawer-qty-ui { 
        display: flex; 
        align-items: center; 
        gap: 10px; 
        background: #f8f9fa; 
        border-radius: 8px; 
        padding: 2px 8px; 
        border: 1px solid #eee; 
    } 
    .drawer-qty-btn { 
        border: none; 
        background: none; 
        font-weight: bold; 
        font-size: 1rem; 
        cursor: pointer; 
        color: #111827; 
        padding: 0 5px; 
    } 
    .drawer-qty-num { 
        font-weight: 700; 
        font-size: 0.85rem; 
        min-width: 20px; 
        text-align: center; 
    } 
    /* Premium Product Carousel Enhancements */ 
    .premium-carousel-container { 
        position: relative; 
        background: #f9fafb; 
        border-radius: 16px 0 0 16px; 
        overflow: hidden; 
        height: 100%; 
        min-height: 400px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
    } 
    @media (max-width: 767.98px) { 
        .premium-carousel-container { 
            border-radius: 16px 16px 0 0; 
            min-height: 320px; 
        } 
    } 
    .carousel-indicators-thumb { 
        position: absolute; 
        bottom: 15px; 
        left: 50%; 
        transform: translateX(-50%); 
        background: rgba(255, 255, 255, 0.85); 
        backdrop-filter: blur(8px); 
        padding: 6px 12px; 
        border-radius: 30px; 
        display: flex; 
        gap: 6px; 
        z-index: 10; 
        margin: 0; 
        max-width: 90%; 
        overflow-x: auto; 
    } 
    .carousel-indicators-thumb button { 
        width: 8px; 
        height: 8px; 
        border-radius: 50%; 
        border: none; 
        background: #cbd5e1; 
        transition: all 0.2s ease; 
        padding: 0; 
    } 
    .carousel-indicators-thumb button.active { 
        background: #111827; 
        transform: scale(1.2); 
    } 
    /* Size Chart Box Trigger Elements */ 
    .size-chart-trigger-wrapper { 
        border-top: 1px solid #f3f4f6; 
        margin-top: 20px; 
        padding-top: 15px; 
    } 
    .btn-size-chart-link { 
        color: #4b5563; 
        font-size: 0.85rem; 
        font-weight: 600; 
        text-decoration: underline; 
        transition: color 0.2s; 
        cursor: pointer; 
        display: inline-flex; 
        align-items: center; 
        gap: 6px; 
    } 
    .btn-size-chart-link:hover { 
        color: #111827; 
    } 
    /* Dual Bank Target Visual Layouts */ 
    .bank-card-option { 
        background: #fff; 
        border: 2px solid #e5e7eb; 
        border-radius: 12px; 
        padding: 12px 16px; 
        cursor: pointer; 
        transition: all 0.2s ease; 
        position: relative; 
        height: 100%; 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
    } 
    .bank-card-option.active { 
        border-color: #111827; 
        background: #f9fafb; 
    } 
    .bank-card-option .badge-check { 
        display: none; 
        color: #111827; 
        position: absolute; 
        top: 12px; 
        right: 16px; 
        font-size: 1.1rem; 
    } 
    .bank-card-option.active .badge-check { 
        display: block; 
    }



/* ========================================================================= */
/* 🛍️ PRODUCT CATALOG MODAL STYLE ARCHITECTURE (essentials.css)              */
/* ========================================================================= */

/* --- Layering / Z-Index Fixes (Brings nested modals to the front) --- */
#productCatalogModal {
    z-index: 1040 ;
}
/* Ensure the details and checkout modals are positioned directly over the catalog modal */
#productModal, 
#checkoutModal {
    z-index: 1060 ;
}
#legalPolicyModal {
    z-index: 1070 ;
}

/* ========================================================================= */
/* 📂 BEAUTIFUL MINIMALIST NESTED CATEGORY TREE STYLING                      */
/* ========================================================================= */

#catalogSidebar {
    background-color: #f8fafc;
}

/* Base style resets for ALL links and buttons in the sidebar tree */
.nested-category-tree button.btn-link {
    display: flex;
    align-items: center;
    width: 100%;
    border: none ;
    background: transparent ;
    color: #475569 ;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.875rem ;
    font-weight: 600 ;
    text-decoration: none ;
    box-shadow: none ;
    transition: all 0.2s ease-in-out;
    text-align: left;
}

/* Parent container row style */
.nested-parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

/* Row Hover states */
.nested-category-tree button.btn-link:hover,
.nested-parent-row:hover {
    background-color: #f1f5f9 ;
    color: #0f172a ;
}

/* Active Category indicator highlights */
.nested-category-tree button.btn-link.active-category {
    background-color: #ffffff ;
    color: #000000 ;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) ;
    font-weight: 700 ;
}

/* Maintain unified parent row background when target is active */
.nested-parent-row:has(.active-category) {
    background-color: #ffffff ;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) ;
}
.nested-parent-row:has(.active-category) button {
    box-shadow: none ; /* Keep background flat inside row container */
    background: transparent ;
    color: #111827 ;
}

/* Dedicated Arrow Toggle Button */
.btn-category-toggle {
    background: transparent ;
    border: none ;
    color: #94a3b8 ;
    padding: 0 14px 0 0 ;
    height: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    box-shadow: none ;
}
.btn-category-toggle:hover {
    color: #0f172a ;
}
.btn-category-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.btn-category-toggle i {
    transition: transform 0.2s ease;
}

/* Sub-category grouping sidebar line */
.nested-child-group {
    border-left: 1.5px solid #e2e8f0;
    margin-left: 20px;
    padding-left: 8px;
}

/* Sub-category button styling */
.nested-child-group button.btn-link {
    font-size: 0.875rem ;
    padding: 6px 12px ;
    border-radius: 6px;
    font-weight: 500 ;
}

/* Catalog Dynamic Product Grid & Custom Cards */
.catalog-product-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.catalog-product-card:hover {
    transform: translateY(-4px);
    border-color: #e2e8f0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}
.catalog-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Perfect 1:1 Aspect Ratio Box */
    background-color: #f8fafc; /* Clean background for padded images */
    overflow: hidden;
}

.catalog-product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents cropping, showing the whole photo */
    padding: 12px; /* Elegant internal padding so the image doesn't touch the borders */
    transition: transform 0.3s ease-in-out;
}

.catalog-product-card:hover .catalog-product-img {
    transform: scale(1.04); /* Subtle, premium zoom on hover */
}

/* Product Badges */
.catalog-badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Card Body Layout */
.catalog-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.catalog-brand-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.catalog-product-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}
.catalog-price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.catalog-current-price {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}
.catalog-old-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Modern Card Action Buttons Styling */
.btn-catalog-buy {
    background-color: #0f172a;
    color: #ffffff;
    transition: all 0.2s ease;
}
.btn-catalog-buy:hover {
    background-color: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
}
.btn-catalog-cart {
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
}
.btn-catalog-cart:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.btn-catalog-details {
    color: #64748b;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.btn-catalog-details:hover {
    color: #0f172a ;
}

/* Beautiful Custom Scrollbar for Filter Sidebar */
#catalogSidebar::-webkit-scrollbar {
    width: 4px;
}
#catalogSidebar::-webkit-scrollbar-track {
    background: transparent;
}
#catalogSidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
#catalogSidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Styling for the parallel Eye Icon Details Button */
.btn-catalog-details-icon {
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #475569;
    transition: all 0.2s ease;
}
.btn-catalog-details-icon:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.all-modal{
    max-width: 96%;

}

.prod-modal-grid{overflow-y: initial;}



/* ========================================================================= */
/* MOBILE RESPONSIVE              */
/* ========================================================================= */

@media (max-width:768px){ 
    .buying-btns-wrapper{ flex-wrap:wrap; } 
    .btn-cart-container, .btn-quick-buy { width: 100%; } 
    .prod-modal-grid{overflow-y: auto;}
    .navbar-collapse{    position: absolute;
    top: 85px;
    background: rgb(255, 255, 255);
    right: 0px;
    padding: 10px 56px;
    width: 100%;}
}
/* Breezal shared product-section controls. Themes may override these classes. */
.breezal-product-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end;margin:0 0 20px}
.breezal-product-filter,.breezal-product-sort{min-width:180px;max-width:100%;padding:9px 12px;border:1px solid #dfe3e8;border-radius:9px;background:#fff;color:#1f2937;font:inherit}
.breezal-product-pagination{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:24px}
.breezal-product-page-btn{border:1px solid #dfe3e8;background:#fff;color:#111827;border-radius:9px;padding:8px 12px;font:inherit;cursor:pointer}
.breezal-product-page-btn.active{background:#111827;color:#fff;border-color:#111827}
@media(max-width:767px){.breezal-product-tools{justify-content:stretch}.breezal-product-filter,.breezal-product-sort{width:100%;min-width:0}}

/* v4: merchant text must wrap inside its current design box by default.
   Individual text widgets can override white-space/overflow-wrap in Styles. */
[data-editable="text"] { overflow-wrap: anywhere; word-break: normal; white-space: normal; min-width: 0; }

/* BREEZAL_ONEPASS_20261102: closed cart drawer cannot extend document width; retain slide-in UX.
   ID specificity intentionally overrides per-theme legacy .cart-drawer {right:-400px}. */
#cartDrawer.cart-drawer {
  right:0; width:min(400px,100vw); max-width:100vw; box-sizing:border-box;
  transform:translateX(110%); visibility:hidden; pointer-events:none;
  transition: transform .4s ease, visibility 0s linear .4s;
}
#cartDrawer.cart-drawer.active {
  right:0; transform:translateX(0); visibility:visible; pointer-events:auto;
  transition:transform .4s ease, visibility 0s linear 0s;
}
@media(max-width:400px){#cartDrawer.cart-drawer {padding:clamp(14px,5vw,24px);}}

/* ===== BREEZAL R66 BUTTON FIX START ===== */
/* =====================================================================
   BREEZAL R66 - storefront CTA button fix. Shared by every theme.
   Lives in stores/themes/common/essentials.css, which all 98 theme
   header.php files already link.

   THE BUG
     Product-card CTAs ("ADD TO CART", "BUY NOW") wrapped onto 2-3 lines
     on every realistic card width. Two independent causes:
       1. .btn-cart-container was width:60% and .btn-quick-cart inside it
          was ALSO width:60%, giving the label 36% of the card.
       2. No theme set white-space on a CTA, and several add
          letter-spacing, which widens the label further.

   THE RULE
     A CTA label never wraps. When a card is genuinely too narrow for
     two buttons side by side, the buttons STACK at full width instead
     of being squeezed - which reads as deliberate, not broken.

   SCOPE
     Targeted at the two container hooks the themes already share:
     .btn-cart-container (112 themes) and [data-breezal-product-card]
     (99 themes). Only <button> elements are matched inside the card,
     so product titles and description links still wrap normally.
   ===================================================================== */

/* --- 1. No CTA label ever wraps ------------------------------------ */
.btn-cart-container button,
.btn-cart-container a,
[data-breezal-product-card] button,
.buying-btns-wrapper button,
.theme-product-actions button,
.theme-product-actions a,
.btn-quick,
.theme-add-btn,
.theme-buy-btn,
.btn-vivid-kinetic,
.btn-vivid-instant {
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;   /* last resort; should never be reached */
    line-height: 1.15;
}

/* --- 2. The cart column fills its card by default --------------------
   essentials.css set .btn-cart-container to width:60%. In themes where
   that div sits directly in the product card (the theme-add-btn family,
   ~25 themes) it squeezed the whole action row to 60% of the card, which
   is the same root cause as the nested-percentage bug below. */
.btn-cart-container { width: 100%; }

/* --- 3. Flex action rows (the btn-quick family) --------------------- */
.buying-btns-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}
.buying-btns-wrapper .btn-cart-container {
    position: relative;
    flex: 1 1 118px;
    width: auto;          /* was 60% */
    min-width: 0;
}
.buying-btns-wrapper .btn-quick-cart {
    width: 100%;          /* was a second 60%, nested inside the first */
    flex: none;
}
.buying-btns-wrapper .btn-quick-buy {
    flex: 1 1 84px;
    width: auto;          /* was 38% */
}
.btn-quick {
    padding-left: 10px;
    padding-right: 10px;
}

/* --- 4. Grid action rows (the theme-add-btn family) ----------------- */
/* Collapses from two columns to one automatically, instead of forcing
   two columns into a card too narrow to hold them. */
.theme-product-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 6px;
}
.theme-product-actions > * { min-width: 0; }

/* --- 5. Quantity stepper keeps its rounding ------------------------- */
.btn-cart-container .cart-qty-controls { border-radius: 10px; }
/* ===== BREEZAL R66 BUTTON FIX END ===== */

/* ===== BREEZAL BTPCS FIX START ===== */
/* DEF-003  A product card's action buttons sit in a narrow column, and
   the label was allowed to wrap, so "ADD TO BAG" broke across two lines
   inside a 104px button. Measured on 101 themes: 3,061 wrapped labels
   across 2,142 page loads at seven viewports.
   The container is widened to the full column (it was 60% nested inside
   another 60%) and labels are pinned to one line.
   Deliberately NO overflow:hidden/text-overflow:ellipsis here. Measured:
   adding them took clipped labels from 378 to 5,129 across the sweep and
   truncated real calls to action - "BUY" needing 49px in a 45px box
   became an ellipsis. A label a few pixels too wide simply eats into its
   own padding, which is invisible; a truncated CTA is not. No colour,
   font or spacing is changed. */
.btn-cart-container { width: 100%; }
.buying-btns-wrapper { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.buying-btns-wrapper .btn-cart-container { flex: 1 1 118px; width: auto; min-width: 0; }
.buying-btns-wrapper .btn-quick-cart { width: 100%; flex: none; }
.buying-btns-wrapper .btn-quick-buy { flex: 1 1 84px; width: auto; }
.theme-product-actions { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; }
.btn-cart-container button,
[data-breezal-product-card] button,
.theme-product-actions button,
.buying-btns-wrapper button,
.buying-btns-wrapper .btn,
.btn-quick, .theme-add-btn, .theme-buy-btn,
.catalog-product-card .btn,
/* the two shared builders' own purchase controls */
.btn-add-to-bag, .btn-buy-now, .btn-catalog-buy,
.btn-catalog-cart, .btn-add-cart {
  white-space: nowrap;
  min-width: 0;
  line-height: 1.15;
}

/* DEF-003b  Pinning the label to one line is only half the job. A
   full-width button inside a product card is often ~137px wide, but the
   theme's horizontal padding was tuned for an auto-width button: on
   expert/aurelia at 390px, BUY NOW had 32px of padding each side, leaving
   a 71px content box for a 73.7px label - so nowrap alone turned the
   wrapped label into "BUY N...", which is worse than the defect.
   On a narrow button it is the padding that should give way, not the
   label. The percentage resolves against the button's container, so a
   narrow card gets a small inset while a wide button keeps the cap.
   Scoped to purchase controls only; no other button is touched. */
.btn-cart-container .btn,
.buying-btns-wrapper .btn,
.theme-product-actions .btn,
[data-breezal-product-card] .btn,
.catalog-product-card .btn,
.btn-add-to-bag, .btn-buy-now, .btn-catalog-buy,
.btn-quick, .theme-add-btn, .theme-buy-btn {
  padding-left:  min(1.25rem, 7%);
  padding-right: min(1.25rem, 7%);
}

/* DEF-007  Four themes declared outline-width and outline-color on
   :focus-visible but left outline-style at none, so a keyboard user got
   no focus ring at all. Confirmed by tabbing 30 controls per theme.
   This supplies the missing style only; a theme that sets its own
   outline-style, box-shadow ring or border still wins, because this
   rule carries no !important. */
:is(a, button, [role="button"], input, select, textarea):focus-visible {
  outline-style: solid;
  outline-width: max(2px, 0.125em);
  outline-offset: 2px;
}
/* ===== BREEZAL BTPCS FIX END ===== */

/* ===== BREEZAL BTPCS FIX-009 START ===== */
/* DEF-017  Six business themes (circuit, current, kinetic, relay, vector,
   velocity) scroll horizontally by up to 25px on load. Root cause is their
   scroll-reveal:
       .x-reveal                   { transform: translateX(-25px) }
       .x-reveal:nth-of-type(even) { transform: translateX(25px)  }
       .x-reveal.is-visible        { transform: none }
   An IntersectionObserver adds is-visible as each section scrolls in, so
   every below-the-fold EVEN section sits 25px to the RIGHT of the viewport
   until revealed, and the document really does scroll - verified with
   window.scrollTo(500,0), which moved the page 20px on circuit and 9px on
   kinetic, while a clean theme did not move at all.
   body already carries overflow-x:hidden, which is not enough: the viewport
   takes its scrolling behaviour from the root element, not from body.
   'clip' is used rather than 'hidden' deliberately - clip does not create a
   scroll container, so position:sticky headers keep working. The reveal
   animation itself is untouched, so each theme keeps its design. */
/* Superseded by BTPCS FIX-026 - see below. Left here as a marker so a
   re-read of this file shows that the root is deliberately NOT clipped. */
/* html { overflow-x: clip; } */

/* DEF-008  The largest single contrast cluster was not a theme's own colour
   choice: it was Bootstrap's stock --bs-secondary-color, rgba(33,37,41,.75),
   a light-theme assumption, landing on dark theme surfaces - measured on
   rgb(5,5,5), rgb(12,12,14), rgb(18,55,70), rgb(21,61,40) and rgb(74,45,36),
   i.e. dark grey text on near-black, around 1.3:1.
   Deriving it from the element's own colour instead makes .text-body-secondary
   and .text-muted track whatever text colour the theme actually set: a light
   theme keeps the same muted dark grey it has now, a dark theme gets muted
   LIGHT text. No palette is hardcoded and no theme identity is overridden.
   Wrapped in @supports so a browser without color-mix keeps the stock value. */
@supports (color: color-mix(in srgb, currentColor 75%, transparent)) {
  body {
    --bs-secondary-color: color-mix(in srgb, currentColor 75%, transparent);
    --bs-tertiary-color:  color-mix(in srgb, currentColor 50%, transparent);
  }
}
/* ===== BREEZAL BTPCS FIX-009 END ===== */

/* ===== BREEZAL BTPCS FIX-010 START ===== */
/* WCAG 2.2 SC 2.5.8 Target Size (Minimum) sets a 24x24 CSS px floor for
   pointer targets. Two families of control sit under it:
     - the header cart trigger, measured at 23.1 x 23.1 on eight themes
       (it is sized by its icon glyph and carries no padding) and at
       32 x 22 on the modern-cart variant;
     - the footer legal controls (Terms / Privacy / Returns), measured at
       20.4 px tall. SC 2.5.8's inline exception does not cover them: they
       are stacked block controls in a list, not links inside a sentence.
   This is written as a floor, not a resize. min-width / min-height only
   enlarge a box that is already under the limit, so every control that
   already clears 24px is left exactly as the theme drew it. */
[role="button"],
button[onclick*="toggleCart"], a[onclick*="toggleCart"],
button[onclick*="openLegalPolicyModal"], a[onclick*="openLegalPolicyModal"],
.theme-cart-button, .modern-cart {
  min-width: 24px;
  min-height: 24px;
}

/* The cart trigger is an icon in a glyph-sized box. Centring its content
   keeps the icon optically where it was while the box grows to the floor,
   so the only visible change is up to 1px of extra hit area. The badge is
   position:absolute and therefore out of flow, so it does not move. */
button[onclick*="toggleCart"], a[onclick*="toggleCart"],
[role="button"][onclick*="toggleCart"],
.theme-cart-button, .modern-cart,
button[onclick*="openLegalPolicyModal"], a[onclick*="openLegalPolicyModal"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* ===== BREEZAL BTPCS FIX-010 END ===== */

/* ===== BREEZAL BTPCS FIX-012 START ===== */
/* DEF-025  With the authored typography restored by FIX-013, the labels are
   the right size but a few themes still give the buttons too little room.
   Their own rule is .theme-product-actions{display:grid;grid-template-columns:1fr 1fr}
   with a 1-column fallback only below 700px, so at 768px - where the product
   grid is still four across - each action button gets a 64px track while
   'ADD TO CART' needs 89px of ink. Measured worst case: expert/valence at
   tablet_portrait, box 64px, ink 89px, 30.45px of the label outside the
   button's own border box.
   Two fixed tracks cannot adapt, so the row becomes a wrapping flex line
   whose items are sized by their content: both buttons sit side by side
   whenever they fit, and stack full width when they do not. Nothing is
   shrunk below its label and no font is changed.
   The selectors carry a second class so they outrank the theme's own
   .theme-product-actions, which loads after this file; .in-cart's
   display:none is (0,3,0) and still wins, so the quantity stepper swap
   keeps working. */
.btn-cart-container .theme-product-actions,
[data-breezal-product-card] .theme-product-actions,
.theme-product-card .theme-product-actions,
.catalog-product-card .theme-product-actions,
.btn-cart-container .buying-btns-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.btn-cart-container .theme-product-actions > *,
[data-breezal-product-card] .theme-product-actions > *,
.theme-product-card .theme-product-actions > *,
.catalog-product-card .theme-product-actions > *,
.btn-cart-container .buying-btns-wrapper > * {
  flex: 1 1 auto;
  min-width: auto;          /* undoes the min-width:0 set above, which would
                               let a button shrink under its own label */
  max-width: 100%;
}
/* ===== BREEZAL BTPCS FIX-012 END ===== */

/* ===== BREEZAL BTPCS FIX-014 START ===== */
/* DEF-018b  The remaining controls under the 24x24 floor after FIX-010 are
   all navigation toggles: <button class="<slug>-menu" aria-label="Toggle menu">
   wrapping a single icon, measured at 32x22 on luxury, nove, zest, meridian
   and pavilion and 28x18 on drift, and Bootstrap's own .navbar-toggler at
   23.1x23.1 on aurelia. They already carry accessible names; only the hit
   area is short. Same floor treatment as FIX-010. */
button[aria-label*="menu" i],
button[aria-label*="navigation" i],
a[aria-label*="menu" i],
.navbar-toggler {
  min-width: 24px;
  min-height: 24px;
  /* BTPCS FIX-054: no display here. FIX-014 set display:inline-flex, which beat
     each theme's own display:none on its desktop menu toggle and showed a
     hamburger that did nothing beside the full menu (DEF-068). */
}
/* ===== BREEZAL BTPCS FIX-014 END ===== */

/* ===== BREEZAL BTPCS FIX-016 START ===== */
/* DEF-026  After FIX-010 through FIX-014 the whole 2,142-load sweep leaves
   three controls out of tolerance, all on their own theme's own component
   and all at 320px, the narrowest required viewport:

     expert/terra    .btn-terra-outline  box 94px, label ink 93px, padding
                     14px 6.58px, so the content box is 80.8px and 6.83px of
                     the label lands outside the button. At 360px the same
                     button is 114px and measures clean, so this is a 320px
                     case only.
     starter/gridline .btn-quick-buy     box 119px, ink 107px, but shop-px-4
                     puts 24px of padding on each side, leaving a 71px
                     content box and 13.27px outside.
     starter/gallery  .tag-btn           the 'All' filter chip measures
                     18.8 x 33 with padding 4px 0, under the 24px floor.

   Each is named explicitly rather than swept up by a broad rule: trimming
   padding across every theme's action buttons at phone widths would change
   96 themes that measure clean in order to correct two. */
@media (max-width: 360px) {
  .btn.btn-terra-outline {
    padding-left: 1px;
    padding-right: 1px;
    letter-spacing: 0.5px;   /* the theme sets 1px; halving it at 320px only */
  }
  .btn-quick.btn-quick-buy {
    padding-left: 2px;
    padding-right: 2px;
  }
}
.tag-btn {
  min-width: 24px;
  min-height: 24px;
}
/* ===== BREEZAL BTPCS FIX-016 END ===== */

/* ===== BREEZAL BTPCS FIX-017 START ===== */
/* FIX-009 made the inherited Bootstrap secondary colour theme-aware, which
   cleared 469 of the 686 contrast failures. What remained was not inherited:
   it is each theme's own palette, so it is corrected element by element
   rather than by a blanket rule.

   Every failing node in the sweep was re-measured with its own foreground,
   its real painted background and its font size and weight, which decides
   whether the threshold is 4.5:1 or 3:1. For each one the generator took the
   smallest change that reaches the threshold with 0.1 of margin:
     - move the foreground's HSL lightness, keeping hue and saturation, in
       whichever direction needs the smaller move; or
     - where no foreground value can get there without inverting the design -
       near-black text on a mid-tone accent bar, white text on a mid-tone card -
       lay the thinnest white or black veil over that element's own parent, so
       the hue is kept and the change stays inside the bar or the card.
   The measured before and after ratio is on every line, and the full table is
   in reports/contrast_fix_plan.json. */
body.current-body div.current-testimonial-slider > div > article.current-testimonial { background-image: linear-gradient(rgba(0,0,0,0.32), rgba(0,0,0,0.32)); }   /* 2.262 -> 4.622 */
body.facet-body div.facet-testimonial-slider > div > article.facet-testimonial > strong { color: #722dff; }   /* 4.225 -> 4.718 */
body.haven-body div.haven-testimonial-slider > div > article.haven-testimonial > strong { color: #886453; }   /* 3.797 -> 4.72 */
body.hearth-body div.hearth-testimonial-slider > div > article.hearth-testimonial > strong { color: #955d3a; }   /* 3.532 -> 4.751 */
body.kinetic-body div.kinetic-testimonial-slider > div > article.kinetic-testimonial { background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.18)); }   /* 3.289 -> 4.69 */
body.module-body div.module-testimonial-slider > div > article.module-testimonial > strong { color: #184cff; }   /* 4.248 -> 4.743 */
body.atelierx-body div.theme-testimonial-slider > div.theme-testimonial-track > article.theme-testimonial > strong { color: #5d554f; }   /* 3.549 -> 4.68 */
body.atelierx-body footer.theme-footer.footer-center > div.footer-bottom { color: #6d645d; }   /* 4.497 -> 4.699 */
body.contour-body div.theme-announcement { background-image: linear-gradient(rgba(255,255,255,0.04), rgba(255,255,255,0.04)); }   /* 4.29 -> 4.615 */
body.iridescent-body div.theme-announcement { background-image: linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)); }   /* 4.295 -> 4.657 */
body.manifesto-body div.theme-announcement { background-image: linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)); }   /* 4.294 -> 4.622 */
body.opaline-body div.theme-announcement { background-image: linear-gradient(rgba(255,255,255,0.04), rgba(255,255,255,0.04)); }   /* 4.301 -> 4.626 */
body.stratum-body div.theme-announcement { background-image: linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)); }   /* 4.293 -> 4.63 */
body.terra-body div.container > div.d-flex.align-items-center.gap-2 > button.cart-trigger-btn { background-image: linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.28)); }   /* 2.565 -> 4.65 */
body.terra-body div.terra-review-slider > div > article.terra-review > cite.text-muted.d-block { color: #75635a; }   /* 3.519 -> 4.696 */
body.terra-body section.col-lg-9 > div.d-flex.flex-column.flex-md-row > div.d-flex.align-items-center.gap-2 > span.small.text-muted.text-nowrap { color: #7b675f; }   /* 3.815 -> 4.758 */
body.valence-body div.theme-announcement { background-image: linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)); }   /* 4.279 -> 4.659 */
body.meridian-body main > section.meridian-testimonials > div.meridian-testimonial-label > span.meridian-kicker { color: #79684f; }   /* 4.095 -> 4.611 */
body.nove-body main > section.nove-testimonials > div.nove-testimonial-label > span.nove-kicker { color: #5e71ff; }   /* 3.081 -> 4.823 */
body.zest-body section.zest-section.zest-catalog > div.zest-section-heading > div > span.zest-kicker { color: #e80041; }   /* 3.217 -> 4.659 */
body.zest-body main > section.zest-testimonials > div.zest-testimonial-label > span.zest-kicker { color: #cf003a; }   /* 2.721 -> 4.783 */
body.zest-body main > section.zest-contact > div.zest-contact-copy > span.zest-kicker { color: #e80041; }   /* 3.217 -> 4.659 */
/* ===== BREEZAL BTPCS FIX-017 END ===== */

/* ===== BREEZAL BTPCS FIX-019 START ===== */
/* A second pass over the same measurement. Three rules from FIX-017 did not
   take effect and the re-scan found out why, so the remedy is unchanged and
   only the way it is applied is corrected:
     - Bootstrap's .text-muted is a utility and carries !important, so a more
       specific selector alone could not win; these declarations now match it.
     - professional/zest puts no <slug>-body class on <body> at all, so a
       body.zest-body prefix matched nothing. Where the selector already
       carries the theme's own namespaced class an unprefixed form is emitted
       beside the prefixed one.
     - expert/terra's cart badge owns its background, so veiling its parent
       changed nothing behind the text; the veil now lands on the badge.
   Measured before and after ratio on every line; table in
   reports/contrast_fix_plan.json. */
body.terra-body div.container > div.d-flex.align-items-center.gap-2 > button.cart-trigger-btn > span.cart-badge-count { background-image: linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.28)) !important; }   /* 2.565 -> 4.65 */
body.terra-body div.terra-review-slider > div > article.terra-review > cite.text-muted.d-block,
div.terra-review-slider > div > article.terra-review > cite.text-muted.d-block { color: #75635a !important; }   /* 3.519 -> 4.696 */
body.terra-body section.col-lg-9 > div.d-flex.flex-column.flex-md-row > div.d-flex.align-items-center.gap-2 > span.small.text-muted.text-nowrap { color: #7b675f !important; }   /* 3.815 -> 4.758 */
body.meridian-body main > section.meridian-testimonials > div.meridian-testimonial-label > span.meridian-kicker,
main > section.meridian-testimonials > div.meridian-testimonial-label > span.meridian-kicker { color: #79684f !important; }   /* 4.095 -> 4.611 */
body.nove-body main > section.nove-testimonials > div.nove-testimonial-label > span.nove-kicker,
main > section.nove-testimonials > div.nove-testimonial-label > span.nove-kicker { color: #5e71ff !important; }   /* 3.081 -> 4.823 */
body.zest-body section.zest-section.zest-catalog > div.zest-section-heading > div > span.zest-kicker,
section.zest-section.zest-catalog > div.zest-section-heading > div > span.zest-kicker { color: #e80041 !important; }   /* 3.217 -> 4.659 */
body.zest-body main > section.zest-testimonials > div.zest-testimonial-label > span.zest-kicker,
main > section.zest-testimonials > div.zest-testimonial-label > span.zest-kicker { color: #cf003a !important; }   /* 2.721 -> 4.783 */
body.zest-body main > section.zest-contact > div.zest-contact-copy > span.zest-kicker,
main > section.zest-contact > div.zest-contact-copy > span.zest-kicker { color: #e80041 !important; }   /* 3.217 -> 4.659 */
/* ===== BREEZAL BTPCS FIX-019 END ===== */

/* ===== BREEZAL BTPCS FIX-018 START ===== */
/* DEF-027  Five expert themes (cascade, chromaform, continuum, lumenfold,
   nexus) build their mobile navigation as

       .theme-overlay-menu        { position:fixed; inset:0; z-index:100;
                                    transform:translateY(-110%) }
       .theme-overlay-menu.is-open{ transform:none }

   The closed state only moves the panel. It keeps visibility:visible and
   pointer-events:auto at z-index 100, so it still takes hit tests over the
   header. Measured on expert/lumenfold at 390px: the panel sat at
   translateY(-92.4px), the 'Edit' nav link's box covered the cart trigger,
   and document.elementFromPoint over the shared area returned the nav link.
   A shopper tapping the cart gets a navigation link instead.
   Its links are also in the tab order while the menu is closed.

   The remedy uses the theme's own state class, so the slide animation is
   untouched: visibility flips only after the close transition finishes, and
   immediately on open. */
.theme-overlay-menu:not(.is-open) {
  pointer-events: none;
  visibility: hidden;
  transition: transform .65s cubic-bezier(.77, 0, .18, 1), visibility 0s .65s;
}
.theme-overlay-menu.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: transform .65s cubic-bezier(.77, 0, .18, 1), visibility 0s 0s;
}
/* ===== BREEZAL BTPCS FIX-018 END ===== */

/* ===== BREEZAL BTPCS FIX-020 START ===== */
/* DEF-028  professional/index is the one theme in the catalogue whose
   navigation is a fixed full-height sidebar: aside.index-nav, 220px wide,
   z-index 1000, position:fixed above 900px and position:sticky full width
   below it. The theme offsets its OWN regions for it -
       .index-main, .index-footer, .index-metrics, .index-featured,
       .index-catalog, ... { margin-left: 220px }
   with a matching @media(max-width:900px){ margin-left: 0 } - but the
   shared Products and Product Detail builder emits its own container,
   .breezal-global-page, straight into .index-body, where none of those
   selectors reach it. Measured at 1440: the shared container starts at
   x=0 with margin-left 0, so the first 220px of the catalogue sits under
   the navigation; 159px of the category filter row was covered at 1440,
   169px at 1024, and document.elementFromPoint over it returned the
   sidebar's 'Story' link instead of the filter. The theme's own homepage
   is correct (.index-main measured at x=220), so this is the shared
   builder and the theme failing to meet, not a styling slip.
   All 102 registered themes were scanned for a fixed edge panel wide
   enough to cover the shared container; this is the only one.
   The offset and the breakpoint are the theme's own values.
   The width has to come down with the offset: the shared container is a
   full-viewport-width block, so shifting it alone would have pushed 220px
   of it past the right edge - measured as exactly that before width:auto
   was added here. */
@media (min-width: 901px) {
  body.index-body .breezal-global-page {
    margin-left: 220px;
    width: auto;
    max-width: none;
  }
}
/* ===== BREEZAL BTPCS FIX-020 END ===== */

/* ===== BREEZAL BTPCS FIX-022 START ===== */
/* The placeholder that holds the catalogue's height open until the client
   renderer replaces it. Only the text block needs a measurement: the image
   box takes its height from .catalog-img-wrapper's own aspect-ratio, so it
   stays correct at every breakpoint. 187px is the measured height of the
   real card's title, price and action rows, identical across all tiers.
   It is invisible on purpose - this reserves space, it does not draw a
   loading state that would itself flash. */
#catalogProductGrid .btpcs-grid-skeleton {
  visibility: hidden;
}
#catalogProductGrid .btpcs-grid-skeleton .btpcs-grid-skeleton-text {
  block-size: 187px;
}
/* ===== BREEZAL BTPCS FIX-022 END ===== */

/* ===== BREEZAL BTPCS FIX-025 START ===== */
/* DEF-032  See the installer for the measurement. The row wraps instead of
   squeezing its buttons, exactly as FIX-012 does for the shared row. */
.catalog-product-card .d-flex.gap-2 {
  flex-wrap: wrap;
}
.catalog-product-card .d-flex.gap-2 > .btn {
  flex: 1 1 auto;
  min-width: auto;   /* overrides the min-width:0 above, which is what
                        lets a button shrink under its own label */
  max-width: 100%;
}
/* ===== BREEZAL BTPCS FIX-025 END ===== */

/* ===== BREEZAL BTPCS FIX-026 START ===== */
/* DEF-033  The clip moves from the root to the content region. The six
   themes below are the ones measured as actually scrolling; main is the
   element whose removal takes the overflow to zero on each of them, and
   none of them puts a sticky element inside main, so clipping here cannot
   cost a sticky header. Scoped by theme rather than applied to every main,
   so the 96 themes that measure clean are not touched at all. */
body.circuit-body main,
body.current-body main,
body.kinetic-body main,
body.relay-body main,
body.vector-body main,
body.velocity-body main {
  overflow-x: clip;
}
/* ===== BREEZAL BTPCS FIX-026 END ===== */

/* ===== BREEZAL BTPCS FIX-032 START ===== */
/* DEF-039  Sold-out state. The badge sits on the product image so it reads on
   every theme without changing any card's layout; the notice is announced to
   assistive technology through its role="status". */
.btpcs-sold-out-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  background: #1d1d1f; color: #fff;
  font: 600 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .02em; padding: 6px 8px; border-radius: 4px; pointer-events: none;
}
.btpcs-is-sold-out, .btpcs-is-sold-out:disabled { cursor: not-allowed; opacity: .55; }
.btpcs-sold-out-notice {
  position: fixed; left: 50%; bottom: 24px; z-index: 2000; transform: translate(-50%, 16px);
  max-width: calc(100vw - 32px); box-sizing: border-box;
  background: #1d1d1f; color: #fff; padding: 12px 18px; border-radius: 8px;
  font: 500 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.btpcs-sold-out-notice.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .btpcs-sold-out-notice { transition: none; } }
/* ===== BREEZAL BTPCS FIX-032 END ===== */

/* ===== BREEZAL BTPCS FIX-039 START ===== */
/* DEF-046  Visual consistency, measured on all 15 starter themes at 390px and
   1440px and confirmed by looking at every page:
   1. ADD and BUY were different sizes on every theme (classic 181 vs 147px; on
      the five expert-style themes the ADD label sat in a 150px button beside a
      250px BUY). Both now share the row equally and are the same height; where
      the row is too narrow for two, each takes the full width.
   2. Product and editorial photos were centred, so tall photos lost the top of
      the frame - heads were cut off. They are anchored to the top instead.
   3. Ribbon's NEW/SHOP/PLAY rail and gallery's vertical "001" were decorative,
      attached to nothing, and each reserved a grid column; both are removed and
      their columns given back to the hero.
   4. Every editable text block allowed a break ANYWHERE, so display headings
      split mid-word on phones ("SHOPPIN / G", "produc / t"). Breaks now fall
      between words; the fit step in theme_scripts.php shrinks a heading only as
      far as its longest word needs. */
body :has(> .btn-cart-container) {
  display: flex !important; flex-wrap: wrap !important; gap: 8px !important; align-items: stretch !important;
}
body :has(> .btn-cart-container) > :is(.btn-cart-container, .btn-quick-buy, .theme-buy-btn, .btn-buy-now),
body .catalog-product-card .d-flex.gap-2 > .btn {
  flex: 1 1 112px !important; width: auto !important; min-width: 0 !important; max-width: 100% !important; margin: 0 !important;
}
body .btn-cart-container { position: relative; display: flex !important; }
body .btn-cart-container > :is(.btn-quick-cart, .theme-add-btn, .btn-add-cart),
body :has(> .btn-cart-container) > :is(.btn-quick-buy, .theme-buy-btn, .btn-buy-now),
body .catalog-product-card .d-flex.gap-2 > .btn {
  width: 100% !important; min-height: 40px !important; height: auto !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  box-sizing: border-box !important; white-space: nowrap;
}
body main img, body .catalog-img-wrapper img, body [data-breezal-product-card] img { object-position: center top !important; }
body .ribbon-rail, body .gallery-number { display: none !important; }
body .ribbon-hero { grid-template-columns: minmax(0, 1fr) 160px !important; }
body .gallery-hero { grid-template-columns: minmax(0, 1fr) !important; }
@media (max-width: 767px) {
  body .ribbon-hero, body .gallery-hero { grid-template-columns: minmax(0, 1fr) !important; }
}
body :is(h1, h2, h3, .display-1, .display-2, .display-3, .display-4)[data-editable="text"],
body :is(h1, h2) { overflow-wrap: break-word !important; word-break: normal !important; hyphens: manual; }
/* 5. "Bag0" / "Cart0": the count sat inline after the label. It is now a small
      raised badge on the corner of the control, as on classic. */
body :is(a, button):has(> .cart-badge-count, > #cart-count) { position: relative; }
body .cart-badge-count, body :is(a, button) > #cart-count {
  position: absolute !important; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; box-sizing: border-box; display: inline-flex !important; align-items: center; justify-content: center;
  font: 700 10.5px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important; letter-spacing: 0;
  background: #111; color: #fff; box-shadow: 0 0 0 1.5px #fff; pointer-events: none;
}
/* 6. "Powered by Breezal" becomes the classic logo lockup on every footer. */
.btpcs-powered-logo { height: 14px; width: auto; object-fit: contain; vertical-align: middle; margin-left: 4px; display: inline-block; }
/* 7. Decorative section counters ("02", "03") sit in flex rows that let them
      shrink, so on phones the digits stacked one above the other. */
body [data-content-key^="decor_counter"] { flex-shrink: 0 !important; white-space: nowrap !important; }
body :has(> [data-content-key^="decor_counter"]) > :not([data-content-key^="decor_counter"]) { min-width: 0 !important; }
/* ===== BREEZAL BTPCS FIX-039 END ===== */

/* ===== BREEZAL BTPCS FIX-045 START ===== */
/* DEF-052  Cart panel and checkout window are now styled from the editor. Their
   text used to be pinned to #111827 element by element, so a text colour chosen
   for the panel could never reach it. The panel now owns that colour (same
   default) and its text inherits it; muted text, buttons and the merchant's own
   per-label colours keep their styling. */
body .cart-drawer, body #checkoutModal .modal-content { color: #111827; }
body .cart-drawer :is(h1, h2, h3, h4, h5, h6, p, span, .small, label, strong),
body #checkoutModal .modal-content :is(h1, h2, h3, h4, h5, h6, p, span, .small, label, strong),
body #checkoutModal .modal-dialog .modal-content .modal-header .chk-details { color: inherit; }
body .cart-drawer .btn :is(span, .small), body #checkoutModal .modal-content .btn :is(span, .small) { color: inherit; }
/* ===== BREEZAL BTPCS FIX-045 END ===== */

/* ===== BREEZAL BTPCS FIX-046 START ===== */
/* DEF-054  Found by the merchant test of FIX-045: labels in the checkout window
   carry Bootstrap .text-dark / .text-body, which pin a dark colour with
   !important, so the window's chosen text colour skipped them. Inside these two
   panels those classes now follow the panel colour (default #111827, the colour
   the rest of the panel text already used). .text-muted stays muted. */
body .cart-drawer :is(.text-dark, .text-body, .text-black),
body #checkoutModal .modal-content :is(.text-dark, .text-body, .text-black) { color: inherit !important; }
/* ===== BREEZAL BTPCS FIX-046 END ===== */

/* ===== BREEZAL BTPCS FIX-047 START ===== */
/* DEF-055  Checkout labels pinned to a near-black colour by long ID selectors
   (payment method, bank details, order summary, subtotal and total) ignored the
   checkout window's text colour. Same default (they inherit #111827 from the
   window); the merchant's colour now reaches them. Inputs and icons unchanged. */
body #checkoutModal .modal-dialog .modal-content .modal-body #checkoutForm :is(.pay-method-label, #bankDetailsArea h6, #bankDetailsArea p, #bankDetailsArea .trans-id, #bankDetailsArea .pay-ss),
body #checkoutModal .modal-dialog .modal-content .modal-body :is(.order-sum-label, .subtotal, .subtotal-num, .total-amount, .total-amount-num) { color: inherit; }
/* ===== BREEZAL BTPCS FIX-047 END ===== */

/* ===== BREEZAL BTPCS FIX-048 START ===== */
/* DEF-056  Professional round, measured on all 18 themes at 390px and 1440px.
   1. ADD and BUY: professional names its BUY button per theme (modern-buy-btn,
      vault-buy ...), so FIX-039 never reached it (modern 98px vs 45px, index
      249px vs 61px). Any control beside the cart container now shares the row
      equally and has the same height. */
body :has(> .btn-cart-container) > :is(button, a):not(.qty-btn) {
  flex: 1 1 112px !important; width: auto !important; min-width: 0 !important; max-width: 100% !important; margin: 0 !important;
  min-height: 40px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  box-sizing: border-box !important; white-space: nowrap;
}
body .btn-cart-container > :is(button, a):not(.qty-btn) {
  width: 100% !important; min-height: 40px !important; display: inline-flex !important; align-items: center !important;
  justify-content: center !important; box-sizing: border-box !important; white-space: nowrap;
}
/* 2. Editable text could break between ANY two letters (overflow-wrap:anywhere),
      which also let flex rows squeeze labels to one letter wide: monograph's
      menu read "SHO P / PROFI LE", folio "Journ al". Text now breaks between
      words; a single word longer than its box is shrunk by the fit step in
      theme_scripts.php instead of being cut. */
/*    The shared rule also gave every editable text min-width:0, which let flex rows
      squeeze a word narrower than itself. Editable text now keeps at least its
      longest word. Written with :where() (no specificity) so a style the merchant
      sets in the editor still wins. */
:where(body [data-editable="text"], body [data-editable="text"] *) { overflow-wrap: break-word !important; word-break: normal !important; }
:where(body [data-editable="text"]) { min-width: auto !important; }
:where(body :is(header, nav, [class*="nav-links"]) a) { white-space: nowrap; }
@media (max-width: 767px) {
  body [class*="nav-links"] { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; max-width: 100%; }
  body [class*="nav-links"]::-webkit-scrollbar { display: none; }
  /* 3. Four grid layouts were wider than the phone (axis hero +55px, vault
        about +115px, folio +64px, halo +24px) because grid and flex children
        refused to shrink below their content. They now fit the screen. */
  body main :is(div, section, article, figure, aside, picture) { min-width: 0; }
  body main img { max-width: 100%; }
}
/* 4. modern placed the ADD/BUY row beside the product name in a 98px column, so
      the two buttons stacked one above the other. The row now always spans the
      full card width under the product text, like every other theme. */
body [class*="product-copy"]:has(> * > .btn-cart-container) { flex-wrap: wrap; }
body [class*="product-copy"] > :has(> .btn-cart-container) { flex: 1 1 100% !important; width: 100% !important; max-width: 100% !important; }
/* 5. Footer bottom rows (copyright, signature, "Powered by") were single rows that
      squeezed each part on phones; they wrap, and the logo lockup stays whole. */
body footer [class*="footer-bottom"] { flex-wrap: wrap; gap: 8px 18px; }
body footer :is(.btpcs-powered, span:has(> img[src*="txt-logo"])) { white-space: nowrap; flex-shrink: 0; }
/* ===== BREEZAL BTPCS FIX-048 END ===== */

/* ===== BREEZAL BTPCS FIX-050 START ===== */
/* DEF-059  Business round, measured on all 35 themes at 390px and 1440px.
   1. Section heading rows (title beside an intro paragraph) squeezed the title
      into ~90px on phones, splitting "Featured / Selection", "TRANSMISSION".
      On phones the title and intro stack, each at full width. */
@media (max-width: 767px) {
  body main [class*="section-head"] { flex-wrap: wrap; }
  body main [class*="section-head"] > * { flex: 1 1 100%; max-width: 100%; }
}
/* 2. Six themes revealed sections by sliding them in sideways (translateX
      +/-25px); until revealed, right-sliding sections stuck out of the phone
      screen (5px sideways scroll). They now rise into place instead, and do not
      move at all for visitors who ask the system for reduced motion. */
body :is(.kinetic-reveal, .vector-reveal, .relay-reveal, .velocity-reveal, .current-reveal, .circuit-reveal):not(.is-visible) { transform: translateY(24px); }
/* 3. Five themes (module, monolith, gridcraft, facet, scaffold) hid every section,
      header included, by clipping it to zero width (clip-path: inset(0 100% 0 0)).
      A zero-width element never counts as on screen, so the reveal never fired:
      the store opened to a blank page under the announcement bar. They now rise
      into place like the other themes. */
body :is(.module-reveal, .monolith-reveal, .gridcraft-reveal, .facet-reveal, .scaffold-reveal) { clip-path: none !important; transition: opacity .55s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
body :is(.module-reveal, .monolith-reveal, .gridcraft-reveal, .facet-reveal, .scaffold-reveal):not(.is-visible) { transform: translateY(18px); }
body :is(.module-reveal, .monolith-reveal, .gridcraft-reveal, .facet-reveal, .scaffold-reveal).is-visible { transform: none; }
/* 4. Those five themes and assembly laid their mobile header out as a two-column grid with
      three items (logo, bag, menu), so the menu button fell onto a second row.
      Logo, bag and menu now share one row. */
@media (max-width: 1050px) {
  body :is(.module-header, .monolith-header, .gridcraft-header, .facet-header, .scaffold-header, .assembly-header) { grid-template-columns: minmax(0, 1fr) auto auto !important; align-items: center; column-gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  body :is(.kinetic-reveal, .vector-reveal, .relay-reveal, .velocity-reveal, .current-reveal, .circuit-reveal, .module-reveal, .monolith-reveal, .gridcraft-reveal, .facet-reveal, .scaffold-reveal) { transform: none !important; opacity: 1 !important; transition: none !important; }
}
/* ===== BREEZAL BTPCS FIX-050 END ===== */

/* ===== BREEZAL BTPCS FIX-051 START ===== */
/* DEF-061  Expert round, measured on all 31 themes at 390px and 1440px.
   1. vanguard, aurelia, essence and terra wrap their ADD / BUY column inside the
      cart container, which FIX-039 makes a flex row, so the column shrank to its
      text (84px buttons in a 171px card, ADD 34-44px tall, BUY 30-34px). The
      column now spans the card and both buttons share one width and height. */
body .btn-cart-container > .row-actions { flex: 1 1 100% !important; width: 100% !important; max-width: 100% !important; }
body .row-actions > .btn { width: 100% !important; min-height: 40px !important; margin: 0 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; white-space: nowrap; }
/* 2. The logo lockup added beside a copyright line keeps a little air. */
body footer .btpcs-powered { margin-inline-start: .75em; vertical-align: middle; }
/* 3. The 27 structured expert themes put ADD TO CART and BUY NOW side by side,
      each as wide as its own words (185px vs 159px). They now share the row
      equally; the older themes' stacked pair share one height (44px). */
body .row-actions:has(> .theme-add-btn) { display: flex !important; gap: 8px; }
body .row-actions:has(> .theme-add-btn) > :is(.theme-add-btn, .theme-buy-btn, .cart-qty-controls) { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; }
body .row-actions > .btn { min-height: 44px !important; }
/* 4. valence, volta, contour and iridescent ("split head") laid the phone header
      out as two columns for three items, so Menu took a full-width second row.
      Logo, bag and menu now share one row. */
@media (max-width: 1050px) {
  body .theme-split-head { grid-template-columns: minmax(0, 1fr) auto auto !important; align-items: center; column-gap: 10px; }
  body .theme-split-head > .theme-menu-toggle { width: auto !important; grid-column: auto !important; }
}
/* 5. The "premium" sections (lookbook, manifesto ...) kept two columns on phones,
      leaving the copy 121px wide ("atmosphere." split). One column on phones. */
@media (max-width: 767px) {
  body .theme-premium { grid-template-columns: minmax(0, 1fr) !important; }
}
/* ===== BREEZAL BTPCS FIX-051 END ===== */

/* ===== BREEZAL BTPCS FIX-056 START ===== */
/* DEF-070  noctis, quasar, parallaxis, atelierx and aeroform keep their logo,
   cart button and menu button in a side navigation. Each theme already turns
   it into a sticky top bar up to 1100px, but a later overflow patch hid it
   completely under 768px (display:none, in theme.css and inline in the
   header), so a phone visitor had no logo, no menu and no way to reach the
   cart or checkout. The designed top bar is shown again at those widths and
   contained so it cannot overflow; the links stay in the theme's own menu. */
@media (max-width: 767px) {
  body.theme-nav-side header.theme-side-nav {
    display: flex !important; position: sticky !important; top: 0; inset: auto;
    width: auto; max-width: 100%; min-width: 0; box-sizing: border-box; margin: 0;
    flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; z-index: 85;
  }
  body.theme-nav-side header.theme-side-nav .theme-nav-links { display: none !important; }
  body.theme-nav-side header.theme-side-nav .theme-logo-link { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  body.theme-nav-side header.theme-side-nav .theme-nav-actions { display: flex; flex-direction: row; align-items: center; gap: 10px; flex: 0 0 auto; }
  body.theme-nav-side header.theme-side-nav .theme-menu-toggle { display: block; }
}
/* ===== BREEZAL BTPCS FIX-056 END ===== */
/* ===== BREEZAL BTPCS FIX-058 START ===== */
/* DEF-072  The equal-button rule made every card's text block a wrapping
   flex row, so on wide cards (all 29 Expert themes on desktop) Add to cart and
   Buy now slid up beside the product name and price and the labels wrapped.
   When the block also holds a heading or price, the buttons take a full row
   of their own, under the name and price. Blocks that hold only buttons
   (a two-button row) are untouched. */
body :has(> .btn-cart-container):has(> :is(h1, h2, h3, h4, h5, h6, p, [class*="price"])) > .btn-cart-container {
  flex: 1 1 100% !important; width: 100% !important; max-width: 100% !important;
}
/* DEF-073  The same rule gave the square cart icon on All Products cards a
   112px base width, so Buy now + cart + the eye (view details) icon no longer
   fit on laptop-width cards (1024-1366px) and the eye wrapped to a new line.
   Icon buttons keep their 38px square and the row never wraps. */
body .catalog-product-card .d-flex.gap-2:has(> .btn-catalog-details-icon) { flex-wrap: nowrap !important; }
body .catalog-product-card .d-flex.gap-2 > .btn.btn-catalog-cart,
body .catalog-product-card .d-flex.gap-2 > .btn-catalog-details-icon {
  flex: 0 0 38px !important; width: 38px !important; min-width: 38px !important; padding: 0 !important;
}
body .catalog-product-card .d-flex.gap-2 > .btn.btn-catalog-buy { flex: 1 1 auto !important; min-width: 0 !important; }
/* ===== BREEZAL BTPCS FIX-058 END ===== */