/* HGS brand layer on top of Shoptimizer. */
:root{
	--hgs-green:#528945; --hgs-deep:#20462C; --hgs-deep-900:#17331f; --hgs-orange:#D68209;
	--hgs-cream:#FBF8F1; --hgs-sand:#F3ECDD; --hgs-line:#E7DFCF; --hgs-ink:#1F2A22; --hgs-muted:#5f6b62;
	--hgs-r:16px; --hgs-max:1240px;
	--hgs-serif:"Fraunces",Georgia,serif; --hgs-sans:"Figtree",system-ui,-apple-system,sans-serif;
}
body.hgs{background:var(--hgs-cream);color:var(--hgs-ink);font-family:var(--hgs-sans);-webkit-font-smoothing:antialiased}
body.hgs h1,body.hgs h2,body.hgs h3,body.hgs .entry-title,body.hgs .woocommerce-products-header__title{font-family:var(--hgs-serif);font-weight:500;color:var(--hgs-deep);letter-spacing:-.01em}
.hgs-no-scroll{overflow:hidden}
.hgs-wrap{max-width:var(--hgs-max);margin:0 auto;padding:0 24px}
body.hgs :focus-visible{outline:3px solid var(--hgs-orange);outline-offset:2px}

/* Top bar */
.hgs-topbar{background:var(--hgs-deep);color:#e9f1e6;font-size:13.5px;line-height:1.4}
.hgs-topbar .hgs-wrap{display:flex;justify-content:center;gap:28px;padding-top:9px;padding-bottom:9px;flex-wrap:wrap}
.hgs-topbar b{color:#fff;font-weight:600}

/* Header */
.hgs-header{position:sticky;top:0;z-index:50;background:rgba(251,248,241,.95);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--hgs-line)}
.admin-bar .hgs-header{top:32px}
.hgs-hbar{display:flex;align-items:center;gap:28px;height:76px}
.hgs-logo{display:block;line-height:0}
.hgs-logo svg{height:46px;width:auto}
.hgs-search{flex:1;max-width:460px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--hgs-line);border-radius:999px;padding:0 18px;height:46px;color:var(--hgs-muted);margin:0}
.hgs-search input[type=search]{border:0!important;outline:0;flex:1;font:inherit;background:transparent!important;min-width:0;box-shadow:none!important;padding:0!important;height:auto;color:var(--hgs-ink)}
.hgs-hicons{margin-left:auto;display:flex;gap:6px;align-items:center}
.hgs-icon-btn{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:0;background:transparent;color:var(--hgs-deep);padding:0;cursor:pointer}
.hgs-icon-btn:hover{background:var(--hgs-sand);color:var(--hgs-deep)}
.hgs-cart .shoptimizer-cart{display:block;margin:0}
.hgs-cart .cart-contents{display:flex;align-items:center;gap:8px;color:var(--hgs-deep)!important;font-weight:600;font-size:14px;text-decoration:none;padding:6px 8px;border-radius:999px;position:relative}
.hgs-cart .cart-contents:hover{background:var(--hgs-sand)}
.hgs-cart .cart-contents .amount{order:2;white-space:nowrap}
.hgs-cart .cart-contents svg{order:1;width:22px;height:22px;color:var(--hgs-deep)}
.hgs-cart .cart-contents .count{position:static;order:1;background:var(--hgs-orange)!important;color:#fff!important;border:0!important;font-size:11px;font-weight:700;min-width:18px;height:18px;line-height:18px;border-radius:9px;padding:0 4px;text-align:center}
.hgs-menu-btn,.hgs-msearch{display:none!important}
.hgs-cats{border-top:1px solid var(--hgs-line)}
.hgs-cats__list{display:flex;gap:14px;justify-content:space-between;list-style:none;margin:0 auto!important;padding:0 24px;max-width:var(--hgs-max);height:48px;align-items:center;overflow-x:auto;scrollbar-width:none;font-size:13px;font-weight:500}
.hgs-cats__list::-webkit-scrollbar{display:none}
.hgs-cats__list li{white-space:nowrap;margin:0}
.hgs-cats__list a{color:var(--hgs-ink);text-decoration:none}
.hgs-cats__list a:hover,.hgs-cats__list .current-menu-item>a,.hgs-cats__list .current-product_cat-ancestor>a{color:var(--hgs-green)}
.hgs-cats__list .hgs-promo>a,.hgs-cats__list li:first-child>a[href*="promo"]{color:var(--hgs-orange);font-weight:600}

/* Mobile drawer */
.hgs-drawer-overlay{position:fixed;inset:0;background:rgba(23,51,31,.45);z-index:998;opacity:0;transition:opacity .2s ease}
.hgs-drawer-overlay.is-open{opacity:1}
.hgs-drawer{position:fixed;top:0;bottom:0;left:0;width:min(86vw,340px);background:var(--hgs-cream);z-index:999;padding:16px 20px 28px;overflow-y:auto;transform:translateX(-100%);transition:transform .22s ease;box-shadow:0 0 40px rgba(0,0,0,.2)}
.hgs-drawer.is-open{transform:none}
.hgs-drawer__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.hgs-drawer__logo svg{height:36px;width:auto}
.hgs-drawer__list,.hgs-drawer__extra{list-style:none;margin:0;padding:0}
.hgs-drawer__list li a,.hgs-drawer__extra li a{display:block;padding:13px 4px;border-bottom:1px solid var(--hgs-line);color:var(--hgs-ink);font-weight:500;text-decoration:none}
.hgs-drawer__list li:first-child a{color:var(--hgs-orange);font-weight:600}
.hgs-drawer__extra{margin-top:20px}
.hgs-drawer__extra li a{border:0;padding:9px 4px;color:var(--hgs-deep)}

/* Footer */
.hgs-footer{background:var(--hgs-deep-900);color:#c9d8c6;margin-top:88px;font-size:14.5px}
.hgs-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;padding-top:64px;padding-bottom:40px}
.hgs-footer p{margin:0;max-width:300px;color:#c9d8c6}
.hgs-footer__title{color:#fff!important;font:600 13px var(--hgs-sans)!important;letter-spacing:.12em;text-transform:uppercase;margin:0 0 16px}
.hgs-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.hgs-footer a{color:#c9d8c6;text-decoration:none}
.hgs-footer a:hover{color:#fff}
.hgs-footer__logo{display:block;line-height:0;filter:brightness(0) invert(1);margin-bottom:16px}
.hgs-footer__logo svg{height:52px;width:auto}
.hgs-pay{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.hgs-pay span{border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:5px 10px;font-size:12.5px;color:#fff}
.hgs-footer__copy{border-top:1px solid rgba(255,255,255,.1);padding:18px 24px;text-align:center;font-size:13px;color:#93a894}

@media (max-width:1024px){
	.hgs-footer__grid{grid-template-columns:1fr 1fr}
}
@media (max-width:782px){
	.admin-bar .hgs-header{top:0}
}
@media (max-width:720px){
	.hgs-wrap{padding:0 16px}
	.hgs-topbar .hgs-wrap>span:nth-child(n+2){display:none}
	.hgs-hbar{height:64px;gap:10px}
	.hgs-logo svg{height:38px}
	.hgs-hbar .hgs-search,.hgs-cart .cart-contents .amount{display:none}
	.hgs-menu-btn{display:grid!important}
	.hgs-msearch{display:flex!important;margin:0 16px 12px;max-width:none}
	.hgs-cats__list{padding:0 16px;justify-content:flex-start;gap:20px;font-size:14px}
	.hgs-footer__grid{grid-template-columns:1fr;gap:28px}
}
@media (prefers-reduced-motion:reduce){.hgs-drawer,.hgs-drawer-overlay{transition:none}}
.hgs-cart .cart-contents .amount,.hgs-cart .cart-contents .amount *{color:var(--hgs-deep)!important}

/* Product cards */
.hgs-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.hgs-card{background:#fff;border:1px solid var(--hgs-line);border-radius:var(--hgs-r);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s ease,transform .2s ease}
.hgs-card:hover{box-shadow:0 14px 30px -18px rgba(32,70,44,.35);transform:translateY(-2px)}
.hgs-card__ph{position:relative;aspect-ratio:1;background:#f6f2ea;display:block}
.hgs-card__ph img{width:100%;height:100%!important;object-fit:cover}
.hgs-card__ph.is-empty{display:grid;place-items:center;color:#b6ab95}
.hgs-tags{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.hgs-tag{font-size:11.5px;font-weight:600;border-radius:999px;padding:4px 10px;background:#fff;color:var(--hgs-deep);box-shadow:0 1px 2px rgba(0,0,0,.06);line-height:1.3}
.hgs-tag.is-promo{background:var(--hgs-orange);color:#fff}
.hgs-tag.is-out{background:var(--hgs-ink);color:#fff}
.hgs-card__body{padding:14px 16px 16px;display:flex;flex-direction:column;flex:1}
.hgs-card__cat{font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--hgs-muted);line-height:1.3}
.hgs-card__title{font:600 15.5px/1.35 var(--hgs-sans)!important;margin:6px 0 4px!important}
.hgs-card__title a{color:var(--hgs-ink)}
.hgs-low{font-size:12.5px;color:var(--hgs-orange);font-weight:600}
.hgs-card__foot{margin-top:auto;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.hgs-price{font:600 18px var(--hgs-serif);color:var(--hgs-deep)}
.hgs-price del{display:block;font:400 13px var(--hgs-sans);color:var(--hgs-muted);opacity:1}
.hgs-price ins{text-decoration:none;background:none}
.hgs-add{width:42px;height:42px;border-radius:50%;background:var(--hgs-deep);color:#fff!important;display:grid!important;place-items:center;flex:none;padding:0!important}
.hgs-add:hover{background:var(--hgs-green)}
.hgs-add.loading{opacity:.6}
.hgs-add.added{background:var(--hgs-green)}
.hgs-card .added_to_cart{display:none!important}
.hgs-notify,.hgs-options{border:1.5px solid var(--hgs-deep);color:var(--hgs-deep)!important;border-radius:999px;font-size:13px;font-weight:600;padding:8px 12px;display:flex;gap:6px;align-items:center;flex:none;line-height:1}

@media (max-width:720px){
	.hgs-card__body{padding:12px}
	.hgs-card__title{font-size:14px!important}
	.hgs-price{font-size:15px}
	.hgs-card__foot{gap:6px}
	.hgs-add{width:38px;height:38px}
	.hgs-notify{padding:8px 10px}
	.hgs-notify span{display:none}
}

/* Variable product price range: keep on two short lines */
.hgs-price .woocommerce-Price-amount+.woocommerce-Price-amount,.hgs-price{word-break:normal}
.hgs-card .hgs-price:has(.woocommerce-Price-amount ~ .woocommerce-Price-amount){font-size:15px;line-height:1.25}

/* WooCommerce notices in brand colours */
body.hgs .woocommerce-message,body.hgs .woocommerce-info{background:var(--hgs-sand)!important;color:var(--hgs-deep)!important;border:1px solid var(--hgs-line)!important;border-radius:12px}
body.hgs .woocommerce-message a,body.hgs .woocommerce-info a{color:var(--hgs-deep)!important;font-weight:600}
body.hgs .woocommerce-error{border-radius:12px}

/* Shoptimizer draws a larger white box behind products on hover; our cards have their own style. */
body.hgs ul.products li.product::before{display:none!important}
body.hgs ul.products li.product:hover .woocommerce-image__wrapper{transform:none!important}
