/* SHB Theme Green - Luxury Medical Green + White. Single source of truth for theme/plugin colour overrides.
   Loaded last in <head> by ../shb-theme-green.php. !important is used only where the theme/plugins force it (marked [F]). */
:root{
--medical-white:#fff;--medical-background:#f3f8f5;--medical-surface:#f8fbf9;
--medical-primary:#176b4a;--medical-primary-hover:#123d2e;--medical-primary-active:#102f24;
--medical-secondary:#23845d;--medical-secondary-hover:#176b4a;
--medical-light:#e5f2e9;--medical-light-hover:#d6ebdd;--medical-deep:#123d2e;
--medical-heading:#123d2e;--medical-text:#344b40;--medical-muted:#718078;
--medical-border:#dce8e0;--medical-border-hover:#b9d5c3;--medical-focus:#23845d;
--medical-success:#176b4a;--medical-warning:#b7791f;--medical-danger:#b3261e;--medical-sale:#c45145;
--medical-placeholder:#929f96;
--medical-shadow-card:0 6px 22px rgba(18,61,46,.07);--medical-shadow-card-hover:0 14px 34px rgba(18,61,46,.13);
--medical-shadow-dropdown:0 10px 30px rgba(18,61,46,.10);--medical-shadow-btn:0 5px 14px rgba(23,107,74,.18);
/* theme (Medical Store) variables */
--primary-theme-color:#176b4a;--secondary-theme-color:#123d2e;
}
/* Elementor kit globals */
.elementor-kit-38{--e-global-color-primary:#123d2e;--e-global-color-secondary:#344b40;--e-global-color-text:#344b40;--e-global-color-accent:#23845d}
body{color:#344b40}
h1,h2,h3,h4,h5,h6{color:#123d2e}
a{color:#176b4a}a:hover{color:#123d2e}
::selection{background:#d6ebdd;color:#123d2e}
:focus-visible{outline-color:#23845d}
/* header / nav */
#main-menu a,#main-menu li a,#main-menu ul li a{color:#344b40}
#main-menu a:hover,#main-menu li.current-menu-item>a,#main-menu li.current_page_item>a,#main-menu li:hover>a{color:#176b4a}
#main-menu ul ul,#main-menu .sub-menu{background:#fff;border:1px solid #dce8e0;box-shadow:0 10px 30px rgba(18,61,46,.10)}
#main-menu .sub-menu a:hover{background:#e5f2e9;color:#176b4a}
.footer-copyright{background:#102f24}
.footer-copyright a,.footer-copyright p{color:#fff}
/* theme sliders/buttons forcing colours [F] */
#best-seller .ht-product .ht-product-inner:hover .ht-product-content{background-color:#176b4a!important}
#best-seller .ht-product .ht-product-inner:hover .ht-product-action ul li:nth-child(3) a{color:#176b4a!important}
.banner-section .bdt-prime-slider .bdt-slide-btn:hover,.banner-section-second .wpr-grid-item-below-content a.add_to_cart_button:hover{background-color:#123d2e!important}
.call-icon i{background-color:rgba(23,107,74,.12)}
.footer-copyright,.footer-copyright *{color:#fff}
.woocommerce div.product p.stock,.woocommerce p.stock.in-stock,.woocommerce .stock.in-stock{color:#176b4a}
.woocommerce p.stock.out-of-stock{color:#b3261e}
.woocommerce span.onsale{background:#c45145;color:#fff}
/* body copy must reach 4.5:1: slightly deeper muted for small text (documented deviation from #718078) */
.shb-sub,.shb-cat-c,.shb-hero p,.shb-why-i p,.shb-sec p{color:#5f6e65}
.woocommerce-message,.woocommerce-info{background:#f3f8f5;color:#344b40;border-color:#dce8e0;border-top-color:#23845d}
.woocommerce-message{background:#e5f2e9;color:#176b4a;border-color:#b9d5c3;border-top-color:#176b4a}
.woocommerce-message::before,.woocommerce-info::before{color:#176b4a}
.woocommerce-error{background:#fdecea;color:#b3261e;border-color:#f1b0aa;border-top-color:#b3261e}
.woocommerce-error::before{color:#b3261e}

/* FOOTER hover fix (2026-11-18): the global a:hover colour (#123d2e) equals the footer background, so footer links vanished on hover.
   Footer links stay light at every state; hover = slightly softer tint + underline. Contrast on #123d2e is >= 10:1. */
footer a,footer a:visited{color:#fff;text-decoration-color:transparent;transition:color .18s ease,text-decoration-color .18s ease}
footer a:hover,footer a:focus,footer a:focus-visible,footer a:active{color:#e5f2e9;text-decoration:underline;text-decoration-color:rgba(229,242,233,.75);text-underline-offset:3px;text-decoration-thickness:1px;opacity:1;visibility:visible}
footer a:focus-visible{outline:2px solid #9fd8b8;outline-offset:3px;border-radius:2px}
footer p:hover,footer li:hover,footer .footer-area:hover,footer .textwidget:hover,footer h4:hover,footer .wp-block-heading:hover{color:#fff;opacity:1;visibility:visible}
@media (prefers-reduced-motion:reduce){footer a{transition:none}}

/* ===== HEADER (2026-11-18): logo sizing everywhere + strictly centred header on mobile (<=767px, the theme's own mobile breakpoint). Desktop untouched. ===== */
#site-navigation img.custom-logo{height:auto;width:auto;max-width:100%;max-height:64px;object-fit:contain}
#site-navigation .logo-image .custom-logo-link{display:inline-block;line-height:0}
@media (max-width:767.98px){
  #site-navigation .top-row .row,#site-navigation .bottom-row .row{justify-content:center;text-align:center}
  /* every header column: full width, content centred on the middle axis */
  #site-navigation .top-row .row>[class*="col-"],#site-navigation .bottom-row .row>[class*="col-"]{flex:0 0 100%;max-width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
  #site-navigation .logo,#site-navigation .logo-image,#site-navigation .logo-content{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center!important}
  #site-navigation img.custom-logo{margin:0 auto;max-height:56px;max-width:min(220px,70vw)}
  #site-navigation .search-box{width:100%;max-width:520px;margin-left:auto;margin-right:auto}
  /* beat Bootstrap utilities (flex-sm-row, justify-content-between, text-sm-start, justify-content-sm-between) that push items left/right from 576px */
  #site-navigation .top-row .row>[class*="col-"].d-flex{flex-direction:column!important;align-items:center!important;justify-content:center!important}
  #site-navigation .currency-language,#site-navigation .top-button{width:100%;justify-content:center!important;align-items:center!important}
  #site-navigation .call-icon{width:auto!important;justify-content:center!important;margin-left:auto;margin-right:auto}
  #site-navigation .call-icon>[class*="col-"]{flex:0 0 auto;width:auto;max-width:none;text-align:center!important}
  #site-navigation .bottom-menu>div{width:100%;text-align:center!important}
  #site-navigation .menu-toggle{margin-left:auto!important;margin-right:auto!important}
  #site-navigation .bottom-button>div{width:100%;justify-content:center!important;gap:24px!important}
}

/* ===== FOOTER (2026-11-18): brand / copyright bar sits bottom-left at every screen size; credit stays right on desktop ===== */
.footer-copyright .container{text-align:left}
.footer-copyright .row>div:first-child,.footer-copyright .row>div:first-child p{text-align:left!important}
.footer-copyright .row>div:first-child p{padding-left:0;margin-left:0}
@media (min-width:768px){.footer-copyright .row>div:last-of-type{text-align:right!important}}
@media (max-width:767.98px){.footer-copyright .row>div{text-align:left!important}.footer-copyright .row>div:last-of-type{padding-bottom:12px}}

/* ===== START SHB AUTO-HIDE HEADER (2026-11-19) =====
   Scroll down = hide, scroll up = show, stop = keep. Desktop only (>=992px, the theme's own sticky breakpoint).
   Scoped to html.shb-auto-hide, a class the script (pharmacy-card.js, same marker) adds: with JS off the header is unchanged.
   To disable: delete this block and the matching block in pharmacy-card.js. */
@media screen and (min-width:992px){
  html.shb-auto-hide #site-navigation{position:sticky!important;top:var(--wp-admin--admin-bar--height,0px);z-index:9990;transform:translateY(0);transition:transform 280ms cubic-bezier(.22,1,.36,1),box-shadow 280ms ease;will-change:transform}
  html.shb-auto-hide #site-navigation.shb-stuck{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.08)}
  html.shb-auto-hide #site-navigation.shb-header-hidden{transform:translateY(calc(-100% - var(--wp-admin--admin-bar--height,0px) - 16px));pointer-events:none}
  html.shb-auto-hide #site-navigation .sticky-header.fixed-header{position:static!important;width:auto!important;margin:0!important;box-shadow:none;background:transparent;animation:none}
}
@media (prefers-reduced-motion:reduce){html.shb-auto-hide #site-navigation{transition:none}}
/* ===== END SHB AUTO-HIDE HEADER ===== */

/* Checkout location fields (2026-11-20): the only visible location fields are Division / District / Upazila (billing_bd_*).
   WooCommerce's native Town/City and State rows stay in the DOM (its logic needs them) but are never shown; the server fills them from the Upazila / District choice. */
form.woocommerce-checkout #billing_city_field,form.woocommerce-checkout #billing_state_field{display:none!important}
