/* Base layout, spacing, misc hides */
h1,
.woocommerce-result-count,
.woocommerce-ordering,
.single-product .product,
.woocommerce-page .entry-header { margin:20px 20px 0; }

:root {
  --btx-admin-offset: 0px;
  --btx-announcement-height: 0px;
  --btx-header-height: 0px;
  --btx-header-top-offset: 0px;
  --btx-slider-announcement-offset: 0px;
}

body.admin-bar { --btx-admin-offset: 32px; }
@media (max-width:782px){
  body.admin-bar { --btx-admin-offset: 46px; }
}

main {
  margin: calc(var(--btx-header-height, 0px) + 20px) 20px 20px;
  position: relative;
  z-index: 0;
}

/* Secondary pages can render Woo content without a <main>; offset the first block below the fixed header */
body:not(.home) .btx-site-header + :not(main) {
  margin-top: calc(var(--btx-header-height, 0px) + 20px);
}

/* Only front page runs content under the transparent header when enabled */
body.btx-transparent-header-enabled.home main {
  margin: calc(0px - var(--btx-header-height, 0px)) 20px 20px;
}

@media (max-width:768px){
  main { margin: calc(var(--btx-header-height, 0px) + 10px) 10px 10px; }
  body:not(.home) .btx-site-header + :not(main) {
    margin-top: calc(var(--btx-header-height, 0px) + 10px);
  }
  body.btx-transparent-header-enabled.home main { margin: calc(0px - var(--btx-header-height, 0px)) 10px 10px; }
  h1,
  .woocommerce-result-count,
  .woocommerce-ordering,
  .single-product .product,
  .woocommerce-page .entry-header { margin:10px 10px 0; }
}

/* Ordering select cosmetic */
.woocommerce .woocommerce-ordering select{
  appearance:none;
  background:#f3f3f3;
  padding:8px 30px 8px 12px;
  border-radius:5px; border:1px solid #ccc; font-size:16px;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='15,50 70,100 125,50' stroke='%23666' stroke-width='20' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center; background-size:12px;
  margin-top:10px;
}

/* Hides & scroll fixes */
header .woocommerce-breadcrumb, .product_meta, #secondary { display:none !important; }
html, body { overflow-x:hidden; }
body { margin:0; }
#primary { margin:0 10px 10px; }
