
/* Reset Storefront/WooCommerce */
html, body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.site-main {
    flex: 1 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 30px !important;
    clear: both !important;
    float: none !important;
    margin: 0 !important;
}

.site-header,
#masthead,
.storefront-header,
.site-branding,
.storefront-primary-navigation,
.storefront-product-search,
.storefront-header-cart,
.site-footer,
.storefront-footer,
.colophon,
.woocommerce-breadcrumb,
.storefront-handheld-footer-bar,
.woocommerce-sidebar,
.widget-area {
    display: none !important;
}

.storefront-page .content-area,
.woocommerce .content-area,
.woocommerce-page .content-area,
.site-content,
.products,
ul.products,
.product,
.storefront-full-width-content .content-area,
.storefront-content,
.woocommerce-products-header {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 30px !important;
    box-sizing: border-box !important;
    clear: both !important;
    display: block !important;
}

/* BSB Header Styles */
.bsb-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #fff !important;
    padding: 15px 30px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    font-family: 'Segoe UI', sans-serif !important;
    margin: 0 0 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    z-index: 1000 !important;
    position: sticky !important;
    top: 0 !important;
    float: none !important;
    clear: both !important;
}

.bsb-header-left .bsb-logo {
    font-size: 1.4em !important;
    font-weight: bold !important;
    text-decoration: none !important;
    color: #333 !important;
}

.bsb-header-center,
.bsb-header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
}

.bsb-header-center {
    flex-grow: 1 !important;
    justify-content: center !important;
}

.bsb-header-right {
    justify-content: flex-end !important;
}

.bsb-nav-link {
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    transition: color 0.3s !important;
}

.bsb-nav-link:hover {
    color: #0066cc !important;
}

/* BSB Footer Styles */
.bsb-footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f8f8f8 !important;
    padding: 20px 30px !important;
    font-family: 'Segoe UI', sans-serif !important;
    border-top: 1px solid #ddd !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    position: relative !important;
    clear: both !important;
    margin-top: 20px !important;
    flex-shrink: 0 !important;
    float: none !important;
}

.bsb-policies ul {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bsb-policies a {
    text-decoration: none !important;
    color: #333 !important;
    font-size: 14px !important;
}

.bsb-policies a:hover {
    color: #0066cc !important;
}

.bsb-contact-info {
    font-size: 14px !important;
    color: #333 !important;
    text-align: center !important;
    flex-grow: 1 !important;
}

.bsb-partners {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
}

.bsb-partner-img {
    max-height: 40px !important;
    width: auto !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bsb-header {
        flex-direction: column !important;
        text-align: center !important;
        padding: 10px !important;
    }
    .bsb-header-left,
    .bsb-header-center,
    .bsb-header-right {
        margin: 10px 0 !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .bsb-header-center,
    .bsb-header-right {
        justify-content: center !important;
    }
    .bsb-nav-link {
        font-size: 14px !important;
    }

    .bsb-footer {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    .bsb-policies ul {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .bsb-partners {
        justify-content: center !important;
    }

    .storefront-page .content-area,
    .woocommerce .content-area,
    .woocommerce-page .content-area,
    .site-content {
        padding: 0 15px !important;
    }
}

/* ✅ Enforce 4 products per row on desktop */
@media screen and (min-width: 769px) {
    .woocommerce ul.products,
    ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 20px !important;
    }

    .woocommerce ul.products li.product,
    ul.products li.product {
        width: 23% !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
        float: none !important;
        clear: none !important;
    }

    .woocommerce ul.products li.product:nth-child(4n) {
        margin-right: 0 !important;
    }
}
/* ✅ Fix "New Products" layout on homepage */
@media screen and (min-width: 769px) {
  .new-products ul.products,
  .woocommerce ul.products,
  ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 20px !important;
  }

  .new-products ul.products li.product,
  .woocommerce ul.products li.product,
  ul.products li.product {
    width: 23% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }

  .new-products ul.products li.product:nth-child(4n),
  .woocommerce ul.products li.product:nth-child(4n),
  ul.products li.product:nth-child(4n) {
    margin-right: 0 !important;
  }
}

