/**
* Theme Name:        avanam-healthmart
* Theme URI:         https://templatemela.com/
* Template:          avanam
* Author:            TemplateMela
* Author URI:        #
* Description:       This is a child theme of Avanam, generated by TemplateMela.
* Version:           1.0.0
* License:           GNU General Public License v3.0 (or later)
* License URI:       https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain:       avanam-healthmart
* Requires at least: 6.2
* Tested up to:      6.6
* Requires PHP:      7.4
* Tags: translation-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce

*/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ================= EON PRISM DARK FOOTER (synced with sections.css) ================= */
.site-footer-wrap{
  --f-text:#C3CCDB; --f-link:#A9BAD6; --f-head:#E6E9ED; --f-tag:#8FA3C4; --f-muted:#6E809E;
  --f-steel:#7E94BC; --f-line:rgba(126,148,188,.16); --f-line-2:rgba(126,148,188,.14);
  --f-mono:'IBM Plex Mono',ui-monospace,monospace;
  --f-sans:'IBM Plex Sans',system-ui,sans-serif;

  position:relative; overflow:hidden;
  background:
    radial-gradient(820px 400px at 84% 0%, rgba(126,148,188,.13), transparent 60%),
    linear-gradient(180deg,#0F1B2D 0%,#0A1320 100%)!important;
  color:var(--f-text);
  font-family:var(--f-sans)!important; font-style:normal!important;
  padding:clamp(3.5rem,2rem + 5vw,6rem) 0 3rem;
  border-top:1px solid rgba(126,148,188,.20);
  box-shadow:0 -26px 52px -38px rgba(10,19,32,.38);
}
.site-footer-wrap *{font-style:normal!important}

/* analytical grid texture (fades out downwards) */
.site-footer-wrap::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:
    linear-gradient(rgba(126,148,188,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(126,148,188,.05) 1px,transparent 1px);
  background-size:54px 54px;
  -webkit-mask-image:linear-gradient(180deg,#000,transparent 58%);
          mask-image:linear-gradient(180deg,#000,transparent 58%);
}
.site-footer-wrap .site-footer-row-container{position:relative; z-index:1}

/* kill theme backgrounds / borders / widget gaps */
.site-footer-wrap .site-footer-row-container,
.site-footer-wrap .site-footer-row-container-inner{background:transparent!important; border:0!important}
.site-footer-wrap .site-footer-section,
.site-footer-wrap .footer-widget-area{border:0!important}
.site-footer-wrap .widget{margin:0!important; padding:0!important}
.site-container{max-width:1280px!important; margin:0 auto; padding:0 var(--gutter);}

/* ---------- TOP: brand + 3 link columns ---------- */
.site-footer-wrap .site-top-footer-inner-wrap{
  display:grid!important; grid-template-columns:1.8fr repeat(3,1fr);
  gap:clamp(1.75rem,1rem + 3vw,3.5rem); align-items:start;
  padding:0 0 3rem; border-bottom:1px solid var(--f-line);
}
.site-footer-wrap .site-top-footer-inner-wrap > .site-footer-section{width:100%!important; max-width:100%!important}

/* brand column */
.site-footer-wrap .footer-widget1 .widget + .widget{margin-top:1.25rem!important}
.site-footer-wrap .footer-widget1 .widget_text p{
  font-size:.875rem; line-height:1.65; color:var(--f-tag); max-width:34ch; margin:0;
}
.site-footer-wrap .footer-widget1 .widget_text a{
  font-family:var(--f-mono); font-size:.875rem; letter-spacing:.02em; color:var(--f-link); text-decoration:none; transition:color .2s;
}
.site-footer-wrap .footer-widget1 .widget_text a:hover{color:#fff}

/* newsletter */
.site-footer-wrap .footer__opt{margin-top:1.5rem; max-width:340px}
.site-footer-wrap .footer__opt-label{display:block; font-family:var(--f-mono); font-size:.7rem; letter-spacing:.03em; color:var(--f-text); margin:0 0 .55rem}
.site-footer-wrap .footer__opt-row{display:flex; gap:.5rem}
.site-footer-wrap .footer__opt-row input{
  flex:1; min-width:0; padding:.72rem .85rem; height:auto; font-size:.85rem; font-family:var(--f-mono);
  color:#E6E9ED!important; background:rgba(126,148,188,.10)!important;
  border:1px solid rgba(169,186,214,.28)!important; border-radius:6px; box-shadow:none!important;
}
.site-footer-wrap .footer__opt-row input::placeholder{color:#77869F}
.site-footer-wrap .footer__opt-row input:focus{outline:2px solid #7E94BC; outline-offset:1px; border-color:#A9BAD6!important}
.site-footer-wrap .footer__opt-row button{
  flex:none; width:46px; padding:0; display:grid; place-items:center; cursor:pointer;
  background:#7E94BC!important; color:#0E1A2B!important; border:0; border-radius:6px;
  transition:background .2s, transform .2s;
}
.site-footer-wrap .footer__opt-row button:hover{background:#A9BAD6!important}
.site-footer-wrap .footer__opt-row button:active{transform:scale(.94)}
.site-footer-wrap .footer__opt-fine{margin:.55rem 0 0!important; font-size:.62rem!important; line-height:1.5; color:#6E809E!important}

/* column headings: SHOP / RESEARCH / SUPPORT / COMPOUND CLASSES */
.site-footer-wrap .widget-title{
  font-family:var(--f-mono)!important; font-size:.72rem!important; font-weight:500!important;
  letter-spacing:.18em; text-transform:uppercase; color:var(--f-head)!important;
  margin:0 0 1.5rem!important; line-height:1.2;
}

/* link lists (underline-reveal on hover) */
.site-footer-wrap .widget_nav_menu ul{list-style:none!important; margin:0!important; padding:0!important; display:grid; gap:.8rem}
.site-footer-wrap .widget_nav_menu li{margin:0!important; padding:0!important}
.site-footer-wrap .widget_nav_menu a{
  position:relative; font-size:.875rem; color:var(--f-link)!important; text-decoration:none!important; transition:color .2s;
}
.site-footer-wrap .widget_nav_menu a::after{
  content:""; position:absolute; left:0; bottom:-2px; width:100%; height:1px; background:#7E94BC;
  transform:scaleX(0); transform-origin:left; transition:transform .2s;
}
.site-footer-wrap .widget_nav_menu a:hover{color:#fff!important}
.site-footer-wrap .widget_nav_menu a:hover::after{transform:scaleX(1)}

/* ---------- MIDDLE: compound classes + disclaimer ---------- */
.site-footer-wrap .site-middle-footer-inner-wrap{padding:3rem 0 0}
.site-footer-wrap .footer-widget8 .widget_nav_menu ul{display:flex; flex-wrap:wrap; gap:.8rem 2rem}
.site-footer-wrap .footer-widget7{margin-top:3rem}
.site-footer-wrap .footer-widget7 p{font-size:.75rem; line-height:1.7; color:var(--f-muted); max-width:92ch; margin:0}
.site-footer-wrap .footer-widget7 strong{color:#A9BAD6; font-weight:600}

/* ---------- BOTTOM: copyright + policy links ---------- */
.site-footer-wrap .site-bottom-footer-inner-wrap{
  display:flex!important; flex-direction:row!important; flex-wrap:wrap; justify-content:space-between; align-items:center;
  gap:1rem 1.5rem; margin-top:1.5rem; padding:1.5rem 0 0; border-top:1px solid var(--f-line-2);
}
.site-footer-wrap .site-bottom-footer-inner-wrap > .site-footer-section{width:auto!important; max-width:none!important}
.site-footer-wrap .footer-widget9 p{font-size:.75rem; color:var(--f-muted); margin:0}
.site-footer-wrap .footer-widget6 .widget_nav_menu ul{display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.5rem 1.5rem}
.site-footer-wrap .footer-widget6 .widget_nav_menu a{font-size:.75rem; color:#8FA3C4!important}
.site-footer-wrap .footer-widget6 .widget_nav_menu a::after{display:none}
.site-footer-wrap .footer-widget6 .widget_nav_menu a:hover{color:#fff!important}

/* ---------- RESPONSIVE ---------- */
@media (max-width:860px){
  /* brand on its own row, 3 link groups in one row */
  .site-footer-wrap .site-top-footer-inner-wrap{grid-template-columns:repeat(3,1fr)}
  .site-footer-wrap .site-footer-top-section-1{grid-column:1 / -1}
}
@media (max-width:520px){
  .site-footer-wrap{padding:4rem 0 2.5rem}
  .site-footer-wrap .site-container{padding:0 18px}
  .site-footer-wrap .site-top-footer-inner-wrap{gap:2rem .75rem; padding-bottom:2rem}
  .site-footer-wrap .footer__opt{max-width:none}
  .site-footer-wrap .widget-title{font-size:.64rem!important; letter-spacing:.12em; margin-bottom:1rem!important}
  .site-footer-wrap .widget_nav_menu ul{gap:.7rem}
  .site-footer-wrap .widget_nav_menu a{font-size:.8rem}
  .site-footer-wrap .footer-widget8 .widget_nav_menu ul{gap:.7rem 1.2rem}
  .site-footer-wrap .footer-widget7{margin-top:2rem}
  .site-footer-wrap .footer-widget6 .widget_nav_menu ul{justify-content:flex-start; gap:.5rem 1.2rem}
}


/* ================= EON-STYLE HEADER ================= */
#main-header.site-header-wrap{
  --h-ink:#364152; --h-ink-strong:#1B2536; --h-accent:#2E5188; --h-badge:#3A5D7A;
  background:#fff!important;
  border-top:3px solid #0F1B2D;
  border-bottom:1px solid rgba(15,27,45,.08);
  box-shadow:0 10px 30px -22px rgba(15,27,45,.35);
  font-family:'IBM Plex Sans',system-ui,sans-serif;
}
#main-header .site-header-row-container-inner,
#main-header .site-main-header-wrap{background:transparent!important; border:0!important}


#main-header .site-header-main-section-left{flex:none}
#main-header .site-header-main-section-right{gap:20px}
#main-header .site-header-item{margin:0!important}

/* logo */
#main-header .site-branding a.brand{display:inline-flex; align-items:center}
#main-header .site-branding img.custom-logo{height:30px!important; width:auto!important; max-width:none!important}

/* ---------- NAV ---------- */
#main-header #primary-menu{gap:20px;}
#main-header #primary-menu > li{margin:0!important; padding:0!important}
#main-header #primary-menu > li > a{
  display:inline-flex; align-items:center; padding:8px 0!important;
  font-family:'IBM Plex Sans',system-ui,sans-serif; font-size:.875rem; font-weight:400; letter-spacing:0;
  color:var(--h-ink)!important; text-decoration:none; position:relative; white-space:nowrap;
  transition:color .2s;
}
#main-header #primary-menu > li > a::before{
  content:""; position:absolute; left:0; bottom:2px; width:100%; height:2px; border-radius:2px;
  background:var(--h-accent); transform:scaleX(0); transform-origin:left; transition:transform .25s;
}
#main-header #primary-menu > li > a:hover,
#main-header #primary-menu > li.current-menu-item > a{color:var(--h-accent)!important}
#main-header #primary-menu > li > a:hover::before,
#main-header #primary-menu > li.current-menu-item > a::before{transform:scaleX(1)}

/* "NEW" pill on Build a Box + Bulk Orders (menu item IDs) */
#main-header #menu-item-13760 > a::after,
#main-header #menu-item-13765 > a::after{
  content:"NEW"; margin-left:9px; padding:4px 9px; border-radius:999px;
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:10.5px; font-weight:600; letter-spacing:.08em; line-height:1;
  color:var(--h-accent); background:#E4ECF7;
}

/* ---------- ICONS ---------- */
#main-header .search-toggle-open,
#main-header .header-account-button,
#main-header .header-cart-button{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  background:transparent!important; border:0; box-shadow:none; padding:0; margin:0; line-height:1;
  color:var(--h-ink-strong)!important; cursor:pointer; transition:color .2s, transform .2s;
}
#main-header .search-toggle-open:hover,
#main-header .header-account-button:hover,
#main-header .header-cart-button:hover{color:var(--h-accent)!important}
#main-header .search-toggle-open svg,
#main-header .header-account-button svg,
#main-header .header-cart-button svg.base-svg-icon{width:18px!important; height:18px!important}

/* cart: hide "Total $0.00", show only a count badge */
#main-header .header-cart-content{display:none!important}
#main-header .header-cart-button .header-cart-total {
	position: absolute;
	top: 3px;
	right: -9px;
	min-width: 18px;
	height: 18px;
	padding: 0 6px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--h-badge);
	color: #fff;
	font-family: 'IBM Plex Sans',system-ui,sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 0 0 2px #fff;
}
/* cart empty = no badge */
#main-header .header-cart-button .header-cart-total.header-cart-is-empty-true{display:none!important}

/* ---------- smaller desktops ---------- */
@media (max-width:1360px){
  #main-header #primary-menu{gap:24px}
  #main-header #primary-menu > li > a{font-size:15.5px}
  #main-header .site-header-main-section-right{gap:20px}
}
@media (max-width:1180px){
  #main-header #primary-menu{gap:18px}
  #main-header #primary-menu > li > a{font-size:14.5px}
  #main-header #menu-item-13760 > a::after,
  #main-header #menu-item-13765 > a::after{margin-left:6px; padding:3px 7px; font-size:9.5px}
}