/* IT Fresh v1 — brand tokens & global styles */
:root{
  --green:#5BBB4A;--green-dark:#3E8F32;--red:#E94E38;--ink:#182B18;--deep:#14351A;
  --light:#F4FAEF;--muted:#5D6B5C;--line:rgba(24,43,24,.12);--white:#fff;
  --radius:16px;--shadow:0 18px 40px rgba(24,43,24,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--light);color:var(--ink);font-family:Inter,Arial,sans-serif;line-height:1.7;font-size:16px;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5,h6{font-family:Poppins,Arial,sans-serif;line-height:1.12;color:var(--ink);margin:0 0 .5em}
img{max-width:100%;height:auto}
a{color:var(--green-dark);text-decoration:none}

/* Sticky Elementor header (Ultimate Addons header wrapper) */
.ehf-header,header#masthead{position:sticky;top:0;z-index:998;background:#fff}
.admin-bar .ehf-header,.admin-bar header#masthead{top:32px}

/* HFE nav toggle color safety */
.hfe-nav-menu__toggle{color:var(--ink)}
.hfe-nav-menu__toggle:hover{color:var(--green-dark)}

/* ---------- Fallback header (only when HFE plugin inactive) */
.itfresh-header{position:sticky;top:0;z-index:999;display:flex;align-items:center;gap:24px;justify-content:space-between;padding:12px clamp(14px,3.5vw,52px);background:rgba(255,255,255,.98);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);box-shadow:0 8px 26px rgba(24,43,24,.06)}
.admin-bar .itfresh-header{top:32px}
.itfresh-brand img{max-height:56px;width:auto;display:block}
.itfresh-nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0}
.itfresh-nav a{color:var(--ink);font-weight:700;font-size:15px}
.itfresh-nav a:hover{color:var(--green-dark)}
.itfresh-nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:1px solid var(--line);border-radius:10px;padding:10px;cursor:pointer}
.itfresh-nav-toggle span{display:block;width:22px;height:2.5px;background:var(--ink);border-radius:2px;transition:.2s}
.itfresh-nav-toggle.is-active span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.itfresh-nav-toggle.is-active span:nth-child(2){opacity:0}
.itfresh-nav-toggle.is-active span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

/* ---------- Buttons */
.itfresh-header-cta,.itfresh-button,.button,.woocommerce a.button,.woocommerce button.button,
.wp-block-button__link,.wpforms-submit{
  display:inline-flex!important;align-items:center;justify-content:center;min-height:46px;
  padding:12px 24px!important;border-radius:10px!important;background:var(--green)!important;
  color:#fff!important;font-weight:700!important;border:0!important;text-decoration:none!important;
  box-shadow:0 12px 26px rgba(91,187,74,.25);transition:transform .15s ease,box-shadow .15s ease}
.itfresh-button:hover,.button:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(91,187,74,.32)}
.itfresh-header-cta{background:var(--red)!important;box-shadow:0 12px 26px rgba(233,78,56,.25)}
.itfresh-button.red{background:var(--red)!important}
.itfresh-button.deep{background:var(--deep)!important}

/* ---------- Layout */
.itfresh-main{min-height:50vh}
.itfresh-section{max-width:1360px;margin:auto;padding:72px 20px}
.itfresh-woo-wrap{padding-top:56px}

/* ---------- WooCommerce grid & cards */
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:0!important}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important;background:#fff;border-radius:var(--radius);padding:14px!important;box-shadow:var(--shadow);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.woocommerce ul.products li.product:hover{transform:translateY(-4px);box-shadow:0 26px 54px rgba(24,43,24,.14)}
.woocommerce ul.products li.product img,.itfresh-loop-img,.itfresh-external-gallery img{width:100%!important;aspect-ratio:4/3;object-fit:cover;border-radius:12px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:Poppins,Arial,sans-serif;font-size:16px;color:var(--ink);padding-top:10px}
.woocommerce div.product .product_title{font-size:clamp(30px,4vw,48px)}
.woocommerce .woocommerce-breadcrumb{color:var(--muted);font-size:13px}
.woocommerce nav.woocommerce-pagination ul{border:0}
.woocommerce nav.woocommerce-pagination ul li{border:0;margin:0 3px}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border-radius:10px;padding:10px 16px;background:#fff;color:var(--ink);box-shadow:var(--shadow)}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--green);color:#fff}

/* Category tiles */
.woocommerce ul.products li.product-category{background:#fff;border-radius:var(--radius);padding:14px!important;box-shadow:var(--shadow);text-align:center}
.woocommerce ul.products li.product-category h2{font-size:16px;color:var(--ink);padding:10px 0 4px}
.woocommerce ul.products li.product-category mark{background:none;color:var(--muted);font-size:12px}

/* ---------- Spec table */
.itfresh-spec-table{width:100%;border-collapse:collapse;margin:22px 0;background:#fff;border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.itfresh-spec-table th,.itfresh-spec-table td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left;font-size:15px}
.itfresh-spec-table tr:last-child th,.itfresh-spec-table tr:last-child td{border-bottom:0}
.itfresh-spec-table th{color:var(--ink);width:160px;background:rgba(91,187,74,.10)}

/* ---------- WPForms */
.wpforms-container input[type=text],.wpforms-container input[type=email],
.wpforms-container input[type=tel],.wpforms-container textarea,.wpforms-container select{
  border:1px solid var(--line)!important;border-radius:10px!important;padding:12px 14px!important;background:#fff!important;font-family:Inter,Arial,sans-serif!important}
.wpforms-submit{background:var(--red)!important}

/* ---------- Fallback footer */
.itfresh-footer{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:46px clamp(18px,4vw,64px);background:var(--deep);color:#dcead9}
.itfresh-footer-logo{max-height:52px;width:auto;background:#fff;border-radius:10px;padding:8px 12px}
.itfresh-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:16px}
.itfresh-footer a{color:rgba(255,255,255,.85);font-weight:600}
.itfresh-footer-bar{background:#0E2913;color:rgba(255,255,255,.6);text-align:center;padding:16px;font-size:13px}

/* Footer logo readability on dark Elementor footer */
.elementor-section[data-settings] .itfresh-footer-logo{background:#fff}

/* ---------- Responsive */
@media(max-width:1024px){
  .woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .itfresh-header{flex-wrap:wrap}
  .itfresh-nav{display:none;width:100%}
  .itfresh-nav.is-open{display:block}
  .itfresh-nav ul{flex-direction:column;gap:10px;padding:10px 0}
  .itfresh-nav-toggle{display:flex;order:2}
  .itfresh-header-cta{display:none!important}
  .itfresh-footer{grid-template-columns:1fr}
  .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .itfresh-section{padding:52px 16px}
}
@media(max-width:560px){
  .woocommerce ul.products{grid-template-columns:1fr}
}
