
/* Stable 2.1.36 — visual polish only */

/* Predictable sizing without changing layout logic. */
html{box-sizing:border-box}
*,*::before,*::after{box-sizing:inherit}
img,svg,video{height:auto;max-width:100%}

/* Links/buttons: keyboard-visible and browser-consistent. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:2px solid #a78a52;
  outline-offset:2px;
}

/* Avoid accidental text/image overflow in cards and shop components. */
.woocommerce,
.woocommerce-page,
.bww-ux-shop,
.bww-shop-wrap{
  overflow-wrap:break-word;
}
.woocommerce ul.products li.product,
.bww-ux-product,
.bww-ux-category{
  min-width:0;
}

/* Product cards: consistent vertical rhythm, without overriding their design. */
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  line-height:1.3;
  margin-top:10px;
}
.woocommerce ul.products li.product .price{
  line-height:1.35;
  margin-top:6px;
  margin-bottom:8px;
}
.woocommerce ul.products li.product .button{
  margin-top:8px;
}

/* Sale badge stays above product imagery but below global header/popups. */
.woocommerce span.onsale{
  z-index:8!important;
}

/* Forms and WooCommerce controls remain finger-friendly. */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce select,
.woocommerce textarea{
  min-height:42px;
}

/* Cart/checkout tables cannot force the whole page wider on phones. */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce{
  max-width:100%;
}
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table{
  max-width:100%;
}

/* Product gallery stability. */
.single-product .woocommerce-product-gallery,
.single-product .summary{
  min-width:0;
}
.single-product .woocommerce-product-gallery img{
  display:block;
}

/* Consistent notices. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  margin-bottom:18px!important;
}

/* Prevent floating WooCommerce elements from becoming unclickable behind content. */
.single-product form.cart,
.woocommerce ul.products li.product .button,
.woocommerce-mini-cart__buttons{
  position:relative;
  z-index:2;
}

/* Mobile polish only; no structural header/footer rewrite. */
@media(max-width:900px){
  html,body{
    max-width:100%;
  }

  .site,
  #page,
  .site-content,
  #primary,
  .content-area,
  .site-main{
    min-width:0;
    max-width:100%;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title{
    line-height:1.25;
  }

  .woocommerce ul.products li.product .button,
  .single-product .single_add_to_cart_button{
    touch-action:manipulation;
  }

  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error{
    width:100%;
    max-width:100%;
  }
}

/* Respect user accessibility preference without changing normal animations. */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
