/* Simple Modern final overrides */
.htw-site-header__announcement{
  padding:7px 20px!important;font-size:11px!important;line-height:1.2!important;
  font-weight:500!important;letter-spacing:.01em!important;
}
@media(max-width:767px){
  .htw-site-header__announcement{padding:6px 12px!important;font-size:10px!important}
}

/* Show the account icon next to the Account label on desktop. */
.htw-site-header__account-icon{display:inline-flex!important;align-items:center;justify-content:center}
.htw-site-header__account{gap:6px}
.htw-site-header__account-icon svg{width:18px;height:18px;display:block}
#sm-bestsellers{padding:64px 40px 72px;background:#fff}
#sm-bestsellers h2{text-align:center;font-size:clamp(28px,3.6vw,46px);font-weight:800;line-height:1.1;margin:0 0 36px;color:#111}
#sm-bestsellers .sm-bestsellers-grid.row{
  display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;
  max-width:1240px;margin:0 auto!important;
}
#sm-bestsellers .sm-bestsellers-grid.products.row>.product-small.col{
  flex:0 0 25%!important;max-width:25%!important;width:25%!important;
}
/* Sale badge: small red rounded rectangle, white text, top-left of every product card. */
.woocommerce .product-small .wgm-native-card__badge-area,
.home .product-small .wgm-native-card__badge-area{top:12px!important;left:12px!important}
.woocommerce .product-small .onsale,
.home .product-small .onsale,
.woocommerce .product-small .badge-inner.on-sale{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;min-height:0!important;max-width:none!important;
  padding:7px 9px!important;margin:0!important;
  background:#B22417!important;color:#fff!important;
  border:0!important;border-radius:4px!important;box-shadow:none!important;
  font:700 13px/1 Arial,sans-serif!important;letter-spacing:0!important;
  text-transform:none!important;
}
/* Product detail gallery badge (outside the product-small card wrapper). */
.single-product .product-images .badge-container .onsale{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;min-height:0!important;max-width:none!important;
  padding:7px 9px!important;margin:0!important;
  background:#B22417!important;color:#fff!important;
  border:0!important;border-radius:4px!important;box-shadow:none!important;
  font:700 13px/1 Arial,sans-serif!important;letter-spacing:0!important;
  text-transform:none!important;
}

.woocommerce .product-small .wgm-native-card__media,
.home .product-small .wgm-native-card__media{background:#F3F3F1!important}
.woocommerce .product-small .wgm-native-card__box{background:#F3F3F1!important}

/* Keep the media box full width inside the flex card (Flatsome's auto margin collapses it). */
.home .product-small .wgm-native-card__media,
#sm-bestsellers .wgm-native-card__media{
  align-self:stretch!important;width:100%!important;
  margin-left:0!important;margin-right:0!important;flex:0 0 auto!important;
}

/* Centre product titles on every product card (home, shop, categories). */
body .product-small .wgm-native-card__info .title-wrapper,
body .product-small .wgm-native-card__info .name,
body .product-small .wgm-native-card__info .name a{text-align:center!important}
body .product-small .wgm-native-card__info .title-wrapper{display:flex!important;justify-content:center!important;align-items:flex-start!important}
body .product-small .wgm-native-card__info{text-align:center!important;align-items:center!important}
body .product-small .wgm-native-card__info .price-wrapper{display:flex!important;justify-content:center!important}
.home .product-small .badge-inner.on-sale{background:#e60023!important;color:#fff!important}
@media(max-width:767px){
  #sm-bestsellers{padding:44px 16px 56px}
  #sm-bestsellers h2{margin-bottom:26px}
  #sm-bestsellers .sm-bestsellers-grid.row{overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  #sm-bestsellers .sm-bestsellers-grid.products.row::-webkit-scrollbar{display:none}
  #sm-bestsellers .sm-bestsellers-grid.products.row>.product-small.col{
    flex:0 0 46%!important;max-width:46%!important;width:46%!important;scroll-snap-align:start;
  }
}
