/* Fulwari Store v5.3 — Button component source of truth
   Text-button geometry/typography lives ONLY here.
   Page CSS may control width/placement, but not label alignment.
*/
:root{
  --fv-action-h:50px;
  --fv-action-radius:11px;
  --fv-action-font-size:13.5px;
  --fv-action-pad-x:20px;
}

/* Real button/anchor elements: flex gives deterministic X/Y centering */
.fv-btn,
.fv-card-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce button[type="submit"],
.woocommerce .button,
.woocommerce .checkout-button,
.woocommerce button.single_add_to_cart_button,
.woocommerce #place_order,
.woocommerce .woocommerce-form-login__submit,
.woocommerce .woocommerce-form-register__submit,
.woocommerce .woocommerce-Button,
.wp-element-button,
button.wp-block-button__link,
.wc-block-components-button,
.fv-contact-submit{
  box-sizing:border-box!important;
  min-height:var(--fv-action-h)!important;
  height:var(--fv-action-h)!important;
  padding:0 var(--fv-action-pad-x)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  vertical-align:middle!important;
  line-height:1.2!important;
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
  font-size:var(--fv-action-font-size)!important;
  font-weight:700!important;
  white-space:nowrap!important;
  gap:7px!important;
  transform:none!important;
}

/* Nested Woo/Blocks labels must not carry optical offsets */
.fv-btn > *,
.fv-card-btn > *,
.woocommerce a.button > *,
.woocommerce button.button > *,
.woocommerce .button > *,
.wp-element-button > *,
.wc-block-components-button > *{
  position:static!important;
  top:auto!important;
  transform:none!important;
  line-height:1.2!important;
  margin-block:0!important;
}

/* Submit inputs are replaced controls and cannot be flex containers */
.woocommerce input.button,
.woocommerce input[type="submit"],
input[type="submit"].button{
  box-sizing:border-box!important;
  min-height:var(--fv-action-h)!important;
  height:var(--fv-action-h)!important;
  padding:0 var(--fv-action-pad-x)!important;
  text-align:center!important;
  vertical-align:middle!important;
  line-height:calc(var(--fv-action-h) - 2px)!important;
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
  font-size:var(--fv-action-font-size)!important;
  font-weight:700!important;
  white-space:nowrap!important;
}

/* Stable disabled state: no geometry change */
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce input.button:disabled,
.woocommerce input.button:disabled[disabled],
button:disabled,
input[type="submit"]:disabled{
  transform:none!important;
}

/* Product cards use the same text metrics but may be slightly shorter */
.fv-card-btn{
  --fv-action-h:46px;
}

/* No motion that changes baseline/alignment on hover */
.fv-btn:hover,
.fv-card-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button:hover,
.wp-element-button:hover,
.wc-block-components-button:hover{
  transform:none!important;
}

@media(max-width:767px){
  :root{--fv-action-h:50px;--fv-action-font-size:13px;--fv-action-pad-x:16px}
  .fv-card-btn{--fv-action-h:46px}
}
