/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

:root { --wd-header-h: 72px; --wd-topbar-h: 0px; } /* adjust to your design */

/* Sticky header: prevent push-down when it becomes fixed */
.wd-header,
.header { min-height: var(--wd-header-h); }

body.sticky-header-on .main-page-wrapper {
  padding-top: calc(var(--wd-header-h) + var(--wd-topbar-h));
}

/* If you show a site-wide top bar/announcement */
#topbar, .wd-top-bar { min-height: var(--wd-topbar-h); }

/* WooCommerce notice area often pops in and shifts content */
.woocommerce-notices-wrapper { min-height: 48px; }


/* Give the cart icon area a fixed footprint */
.wd-header-cart .cart-widget-opener {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 48px; /* prevents width shrink/expand */
}

/* Lock the badge size/position so numbers don't reflow */
.wd-header-cart .wd-cart-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1;
  border-radius: 10px;
}

/* If a “Cart” label appears next to the icon, prevent wrap */
.wd-header-cart .cart-label {
  white-space: nowrap;
}

.awdr_discount_bar {
    margin-bottom: 5px;
    border-radius: 4px;
    width: fit-content;
    font-weight: bold;
    padding: 5px 15px 5px 15px!important;
}
