/*
Theme Name:   Hevital Storefront
Theme URI:    https://hevital.com/
Description:  Custom GeneratePress child theme for Hevital - a wellness and supplements storefront. Replaces GP Premium / GenerateBlocks Pro with native templates: custom header, hero homepage, WooCommerce shop and product pages, schema.org SEO and performance tuning. No page builder required.
Author:       Hevital
Author URI:   https://hevital.com/
Template:     generatepress
Version:      1.5.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  hevital
Tags:         e-commerce, custom-menu, full-width-template, accessibility-ready
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root{
	--hvt-ink:#0c2118;
	--hvt-ink-2:#081711;
	--hvt-green:#12845f;
	--hvt-green-dark:#0b6a4b;
	--hvt-green-text:#0a6045;
	--hvt-lime:#82df72;
	--hvt-mint:#e9f7ed;
	--hvt-soft:#f5f8f5;
	--hvt-line:#dce9e0;
	--hvt-muted:#5b6c63;
	--hvt-text:#43564d;
	--hvt-white:#fff;
	--hvt-radius:18px;
	--hvt-radius-lg:26px;
	--hvt-radius-pill:999px;
	--hvt-shadow:0 18px 45px rgba(21,63,45,.10);
	--hvt-shadow-lg:0 26px 60px rgba(32,85,61,.14);
	--hvt-container:1180px;
	--hvt-gutter:20px;
	--hvt-font:"Inter","Inter Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
	--hvt-header-h:76px;
	--hvt-ease:cubic-bezier(.22,.61,.36,1);
}

/* =========================================================
   1.b Metric-compatible fallback font
   Keeps the layout identical while Inter is still loading, so the
   font swap does not push the page around (CLS).
   ========================================================= */
@font-face{
	font-family:"Inter Fallback";
	src:local("Arial");
	size-adjust:107%;
	ascent-override:90%;
	descent-override:22.43%;
	line-gap-override:0%;
}

/* =========================================================
   2. Base
   ========================================================= */
html{-webkit-text-size-adjust:100%}
body{
	font-family:var(--hvt-font);
	font-size:16px;
	line-height:1.68;
	color:var(--hvt-text);
	background:var(--hvt-white);
	overflow-x:hidden;
}
body.hvt-no-scroll{overflow:hidden}

h1,h2,h3,h4,h5,h6{
	font-family:var(--hvt-font);
	color:var(--hvt-ink);
	text-transform:none;
	line-height:1.12;
	letter-spacing:-.035em;
	margin:0 0 .6em;
}
h1{font-size:clamp(34px,5vw,54px);font-weight:900;letter-spacing:-.05em}
h2{font-size:clamp(28px,3.6vw,42px);font-weight:850;letter-spacing:-.045em}
h3{font-size:clamp(20px,2.2vw,26px);font-weight:800}
h4{font-size:18px;font-weight:800}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}
a{color:var(--hvt-green-text);text-decoration:none;transition:color .2s var(--hvt-ease)}
a:hover,a:focus{color:var(--hvt-green-dark)}
img{max-width:100%;height:auto}
:focus-visible{outline:2px solid var(--hvt-green);outline-offset:3px;border-radius:4px}
::selection{background:var(--hvt-mint);color:var(--hvt-ink)}

.hvt-container{width:min(var(--hvt-container),calc(100% - (var(--hvt-gutter) * 2)));margin-inline:auto}
.hvt-kicker{display:block;color:var(--hvt-green-text);font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.hvt-muted{color:var(--hvt-muted)}
.hvt-center{text-align:center;max-width:760px;margin:0 auto 44px}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal !important}
.screen-reader-text:focus{background:#fff;clip:auto !important;clip-path:none;color:var(--hvt-ink);display:block;font-size:14px;font-weight:800;height:auto;left:12px;line-height:normal;padding:14px 22px;text-decoration:none;top:12px;width:auto;z-index:100000;border-radius:10px;box-shadow:var(--hvt-shadow)}

/* GeneratePress wrappers - the child theme controls its own widths.
   GeneratePress sets .site-content{display:flex} for its sidebar layouts,
   which would turn our full-width sections into side-by-side columns. */
.site-content{padding:0}
.hvt-flush .site-content{display:block}
.hvt-flush .content-area{width:100%;float:none}
.hvt-flush .site-content,
.hvt-flush .content-area,
.hvt-flush .site-main,
.hvt-flush .woocommerce-content,
.hvt-flush .inside-article,
.hvt-flush .entry-content{padding:0;margin:0;max-width:none;border:0;box-shadow:none;background:transparent}
.hvt-flush .site.grid-container{max-width:none;padding:0}
.hvt-flush .separate-containers .inside-article{background:transparent}

/* =========================================================
   3. Buttons
   ========================================================= */
.hvt-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wp-block-button__link{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	min-height:52px;
	padding:0 26px;
	border:0;
	border-radius:var(--hvt-radius-pill);
	background:var(--hvt-ink);
	color:var(--hvt-white);
	font-family:var(--hvt-font);
	font-size:14px;
	font-weight:850;
	letter-spacing:.01em;
	line-height:1;
	text-align:center;
	cursor:pointer;
	transition:background .22s var(--hvt-ease),transform .22s var(--hvt-ease),box-shadow .22s var(--hvt-ease);
}
.hvt-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover{
	background:var(--hvt-green);
	color:var(--hvt-white);
	transform:translateY(-2px);
	box-shadow:0 14px 32px rgba(18,132,95,.24);
}
.hvt-btn-dark{background:var(--hvt-ink);color:var(--hvt-white);box-shadow:0 12px 30px rgba(12,33,24,.17)}
.hvt-btn-green{background:var(--hvt-green);color:var(--hvt-white)}
.hvt-btn-green:hover{background:var(--hvt-green-dark)}
.hvt-btn-light{background:var(--hvt-white);color:var(--hvt-ink);border:1px solid #bed3c5}
.hvt-btn-light:hover{background:var(--hvt-white);color:var(--hvt-ink);border-color:var(--hvt-green);transform:translateY(-2px);box-shadow:var(--hvt-shadow)}
.hvt-btn-block{width:100%}
.hvt-btn-sm{min-height:44px;padding:0 20px;font-size:13px}

/* =========================================================
   4. Forms
   ========================================================= */
input[type=text],input[type=email],input[type=url],input[type=password],input[type=search],
input[type=number],input[type=tel],input[type=date],select,textarea{
	width:100%;
	padding:13px 16px;
	border:1px solid var(--hvt-line);
	border-radius:14px;
	background:var(--hvt-white);
	color:var(--hvt-ink);
	font-family:var(--hvt-font);
	font-size:15px;
	transition:border-color .2s var(--hvt-ease),box-shadow .2s var(--hvt-ease);
}
input:focus,select:focus,textarea:focus{border-color:var(--hvt-green);box-shadow:0 0 0 3px rgba(18,132,95,.12);outline:0}
label{font-size:13px;font-weight:750;color:var(--hvt-ink)}

/* =========================================================
   5. Announcement bar
   ========================================================= */
.hvt-announce{
	background:var(--hvt-ink);
	color:var(--hvt-white);
	text-align:center;
	padding:9px 18px;
	font-size:12px;
	font-weight:800;
	letter-spacing:.045em;
	text-transform:uppercase;
}
.hvt-announce .hvt-dot{color:var(--hvt-lime)}
.hvt-announce-sep{opacity:.4;margin:0 10px}

/* =========================================================
   6. Header + navigation
   ========================================================= */
.hvt-header{
	position:sticky;
	top:0;
	z-index:120;
	background:rgba(255,255,255,.94);
	backdrop-filter:saturate(180%) blur(12px);
	-webkit-backdrop-filter:saturate(180%) blur(12px);
	border-bottom:1px solid var(--hvt-line);
	transition:box-shadow .25s var(--hvt-ease);
}
.hvt-header.is-stuck{box-shadow:0 10px 30px rgba(12,33,24,.08)}
.hvt-header-inner{
	display:flex;
	align-items:center;
	gap:18px;
	min-height:var(--hvt-header-h);
}
.hvt-brand{display:flex;align-items:center;gap:10px;flex:0 0 auto;color:var(--hvt-ink)}
.hvt-brand:hover{color:var(--hvt-green-text)}
.hvt-brand img{display:block;max-height:42px;width:auto}
.hvt-brand-text{font-size:22px;font-weight:900;letter-spacing:-.04em;line-height:1}
.hvt-brand-tag{display:block;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--hvt-green-text);margin-top:3px}

.hvt-header-inner{flex-wrap:nowrap}
.hvt-nav{margin-inline:auto;min-width:0}
.hvt-nav ul{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0}
.hvt-nav li{position:relative}
.hvt-nav a{
	display:flex;
	align-items:center;
	min-height:42px;
	padding:0 14px;
	border-radius:var(--hvt-radius-pill);
	color:var(--hvt-ink);
	font-size:14px;
	font-weight:750;
	white-space:nowrap;
	transition:background .2s var(--hvt-ease),color .2s var(--hvt-ease);
}
.hvt-nav a:hover,.hvt-nav .current-menu-item > a,.hvt-nav .current_page_item > a,.hvt-nav .current-menu-ancestor > a{background:var(--hvt-mint);color:var(--hvt-green-text)}
.hvt-nav .sub-menu{
	position:absolute;
	top:100%;
	left:0;
	min-width:220px;
	display:block;
	padding:8px;
	background:var(--hvt-white);
	border:1px solid var(--hvt-line);
	border-radius:var(--hvt-radius);
	box-shadow:var(--hvt-shadow);
	opacity:0;
	visibility:hidden;
	transform:translateY(6px);
	transition:.2s var(--hvt-ease);
}
.hvt-nav li:hover > .sub-menu,.hvt-nav li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:none}
.hvt-nav .sub-menu a{border-radius:12px;font-size:13.5px}

.hvt-header-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.hvt-icon-btn{
	position:relative;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:44px;
	height:44px;
	padding:0;
	border:0;
	border-radius:50%;
	background:transparent;
	color:var(--hvt-ink);
	cursor:pointer;
	transition:background .2s var(--hvt-ease),color .2s var(--hvt-ease);
}
.hvt-icon-btn:hover{background:var(--hvt-mint);color:var(--hvt-green-text)}
.hvt-icon-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hvt-cart-count{
	position:absolute;
	top:3px;
	right:1px;
	min-width:18px;
	height:18px;
	padding:0 5px;
	display:grid;
	place-items:center;
	border-radius:var(--hvt-radius-pill);
	background:var(--hvt-green);
	color:var(--hvt-white);
	font-size:10px;
	font-weight:900;
	line-height:1;
}
.hvt-cart-count.is-empty{display:none}
.hvt-header .hvt-btn{min-height:44px;padding:0 20px;font-size:13px}
.hvt-menu-toggle{display:none}

.hvt-search-panel{display:none;border-top:1px solid var(--hvt-line)}
.hvt-search-panel.is-open{display:block}
.hvt-search-panel form{display:flex;gap:10px;padding:16px 0}
.hvt-search-panel input[type=search]{flex:1}

.hvt-drawer{
	position:fixed;
	top:0;
	right:0;
	bottom:0;
	width:min(360px,86vw);
	z-index:200;
	background:var(--hvt-white);
	padding:22px;
	overflow-y:auto;
	transform:translateX(100%);
	transition:transform .3s var(--hvt-ease);
	box-shadow:-18px 0 50px rgba(12,33,24,.16);
}
.hvt-drawer.is-open{transform:none}
.hvt-drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.hvt-drawer-close{width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--hvt-soft);color:var(--hvt-ink);font-size:22px;line-height:1;cursor:pointer}
.hvt-drawer ul{list-style:none;margin:0;padding:0}
.hvt-drawer li{border-bottom:1px solid var(--hvt-line)}
.hvt-drawer a{display:block;padding:14px 4px;color:var(--hvt-ink);font-size:16px;font-weight:750}
.hvt-drawer .sub-menu a{padding-left:18px;font-size:14px;font-weight:600;color:var(--hvt-muted)}
.hvt-drawer-cta{margin-top:22px;display:grid;gap:10px}
.hvt-overlay{
	position:fixed;
	inset:0;
	z-index:150;
	background:rgba(8,23,17,.42);
	opacity:0;
	visibility:hidden;
	transition:.28s var(--hvt-ease);
}
.hvt-overlay.is-open{opacity:1;visibility:visible}

@media (max-width:1150px){
	.hvt-header .hvt-header-shop{display:none}
	.hvt-nav a{padding:0 11px}
}
@media (max-width:960px){
	.hvt-nav{display:none}
	.hvt-menu-toggle{display:inline-flex}
	.hvt-account-link{display:none}
	.hvt-brand-tag{display:none}
	.hvt-header-inner{min-height:66px}
	.hvt-brand img{max-height:36px}
}

/* =========================================================
   7. Footer
   ========================================================= */
/* GeneratePress footer wrapper: neutralised, the child theme paints its own */
.site-footer{background:transparent;padding:0;border:0}
.site-footer .footer-widgets,.site-footer .site-info{display:none}
.hvt-footer{background:var(--hvt-ink);color:#c6d6cd;padding:70px 0 0;font-size:14px}
.hvt-footer a{color:#c6d6cd}
.hvt-footer a:hover{color:var(--hvt-lime)}
.hvt-footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:40px;padding-bottom:46px}
.hvt-footer h3{color:var(--hvt-white);font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;margin:0 0 18px}
.hvt-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.hvt-footer-brand .hvt-brand-text{color:var(--hvt-white);font-size:26px}
.hvt-footer-brand p{margin:16px 0 0;max-width:330px;line-height:1.7;color:#a8bcb2}
.hvt-footer-contact{display:grid;gap:12px;margin:20px 0 0;padding:0;list-style:none}
.hvt-footer-contact li{display:flex;align-items:flex-start;gap:10px}
.hvt-footer-contact svg{flex:0 0 auto;margin-top:3px;color:var(--hvt-lime)}
.hvt-footer-contact a{color:#e4efe9;font-weight:750}
.hvt-footer-contact a:hover{color:var(--hvt-lime)}
.hvt-footer-contact small{display:block;color:#93a99f;font-size:11.5px;margin-top:2px}
.hvt-footer-newsletter{margin-top:20px;display:flex;gap:8px;max-width:350px}
.hvt-footer-newsletter input[type=email]{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.16);color:var(--hvt-white)}
.hvt-footer-newsletter input::placeholder{color:#8fa79c}
.hvt-footer-bottom{
	display:flex;
	flex-wrap:wrap;
	gap:16px;
	align-items:center;
	justify-content:space-between;
	padding:22px 0;
	border-top:1px solid rgba(255,255,255,.12);
	font-size:12px;
	color:#93a99f;
}
.hvt-footer-legal{display:flex;flex-wrap:wrap;gap:18px;list-style:none;margin:0;padding:0}
.hvt-pay{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hvt-pay span{
	padding:5px 10px;
	border:1px solid rgba(255,255,255,.16);
	border-radius:8px;
	font-size:10px;
	font-weight:800;
	letter-spacing:.06em;
	text-transform:uppercase;
	color:#b7c9c0;
}
.hvt-footer-disclaimer{
	padding:18px 0 26px;
	border-top:1px solid rgba(255,255,255,.12);
	font-size:11px;
	line-height:1.7;
	color:#8ba095;
}
@media (max-width:900px){.hvt-footer-grid{grid-template-columns:1fr 1fr;gap:32px}}
@media (max-width:560px){
	.hvt-footer{padding-top:52px}
	.hvt-footer-grid{grid-template-columns:1fr}
	.hvt-footer-bottom{flex-direction:column;align-items:flex-start}
}

/* =========================================================
   8. Page hero + breadcrumbs
   ========================================================= */
.hvt-page-hero{
	position:relative;
	padding:54px 0 42px;
	background:radial-gradient(circle at 85% 10%,rgba(130,223,114,.24),transparent 34%),linear-gradient(135deg,#fbfdfb 0%,#e9f7ed 100%);
	border-bottom:1px solid var(--hvt-line);
	overflow:hidden;
}
.hvt-page-hero h1{margin:10px 0 12px;font-size:clamp(32px,4.4vw,50px)}
.hvt-page-hero p{max-width:640px;color:var(--hvt-text);margin:0}
.hvt-crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;font-weight:750;color:var(--hvt-muted);margin-bottom:6px}
.hvt-crumbs a{color:var(--hvt-muted)}
.hvt-crumbs a:hover{color:var(--hvt-green-text)}
.hvt-crumbs .sep{opacity:.5}

/* =========================================================
   9. Static content pages
   ========================================================= */
.hvt-content{padding:60px 0 80px}
.hvt-prose{max-width:800px}
.hvt-prose h2{margin-top:1.8em}
.hvt-prose h3{margin-top:1.5em}
.hvt-prose ul,.hvt-prose ol{padding-left:20px;margin:0 0 1.2em}
.hvt-prose li{margin-bottom:.5em}
.hvt-prose blockquote{margin:1.6em 0;padding:20px 24px;border-left:3px solid var(--hvt-green);background:var(--hvt-soft);border-radius:0 14px 14px 0}
.hvt-prose table{width:100%;border-collapse:collapse;margin:1.5em 0}
.hvt-prose th,.hvt-prose td{border:1px solid var(--hvt-line);padding:12px 14px;text-align:left}
.hvt-prose th{background:var(--hvt-soft);font-weight:800;color:var(--hvt-ink)}
.hvt-prose img{border-radius:var(--hvt-radius)}
.hvt-prose > *:first-child{margin-top:0}
.hvt-page-links{margin-top:26px;font-weight:800}
.hvt-404-search{display:flex;gap:10px;max-width:520px;margin-top:8px}
.hvt-404-search input[type=search]{flex:1}
.hvt-content .hvt-btn{margin:0 8px 8px 0}

/* Pages that ship their own <style> block (legacy hand-built layouts).
   The theme must not repaint their typography: headings inherit the colour
   set by the page's own sections, so white text on a dark band stays white. */
.hvt-custom-page{width:100%}
.hvt-custom-page h1,
.hvt-custom-page h2,
.hvt-custom-page h3,
.hvt-custom-page h4,
.hvt-custom-page h5,
.hvt-custom-page h6{
	color:inherit;
	font-family:inherit;
	text-transform:inherit;
}
.hvt-custom-page p,
.hvt-custom-page li,
.hvt-custom-page span,
.hvt-custom-page b,
.hvt-custom-page strong{color:inherit}

/* Comments / posts */
.hvt-post-meta{font-size:13px;color:var(--hvt-muted);margin-bottom:18px}
.hvt-archive-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.hvt-archive-card{border:1px solid var(--hvt-line);border-radius:var(--hvt-radius-lg);overflow:hidden;background:#fff;transition:.25s var(--hvt-ease)}
.hvt-archive-card:hover{transform:translateY(-5px);box-shadow:var(--hvt-shadow-lg)}
.hvt-archive-card img{width:100%;aspect-ratio:16/10;object-fit:cover}
.hvt-archive-card-body{padding:22px}
.hvt-archive-card h2{font-size:21px;margin:0 0 10px}

/* =========================================================
   10. Product cards (homepage, shop, related products)
   ========================================================= */
.hvt-products{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.hvt-product{
	position:relative;
	display:flex;
	flex-direction:column;
	padding:13px 13px 20px;
	border:1px solid var(--hvt-line);
	border-radius:var(--hvt-radius-lg);
	background:var(--hvt-white);
	overflow:hidden;
	transition:transform .25s var(--hvt-ease),box-shadow .25s var(--hvt-ease),border-color .25s var(--hvt-ease);
	list-style:none;
}
.hvt-product:hover{transform:translateY(-6px);box-shadow:var(--hvt-shadow-lg);border-color:#9bd4ac}
.hvt-product-link{display:flex;flex-direction:column;flex:1;color:var(--hvt-ink)}
.hvt-product-link:hover{color:var(--hvt-ink)}
.hvt-product-media{
	position:relative;
	display:block;
	aspect-ratio:1;
	border-radius:19px;
	overflow:hidden;
	background:#f3f7f4;
}
.hvt-product-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s var(--hvt-ease)}
.hvt-product:hover .hvt-product-media img{transform:scale(1.03)}
.hvt-badge{
	position:absolute;
	left:12px;
	top:12px;
	padding:7px 10px;
	border-radius:var(--hvt-radius-pill);
	background:var(--hvt-ink);
	color:var(--hvt-white);
	font-size:10px;
	font-weight:900;
	letter-spacing:.08em;
	text-transform:uppercase;
	line-height:1;
}
.hvt-product-body{display:flex;flex-direction:column;flex:1;padding:18px 8px 0}
.hvt-product-cat{display:block;color:var(--hvt-green-text);font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.hvt-product-title{display:block;margin:8px 0 9px;color:var(--hvt-ink);font-size:21px;font-weight:800;line-height:1.18;letter-spacing:-.03em}
.hvt-product-desc{display:block;color:var(--hvt-muted);font-size:13px;line-height:1.58;min-height:42px}
.hvt-product-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:16px}
.hvt-price{color:var(--hvt-ink);font-size:19px;font-weight:900}
.hvt-price del{color:var(--hvt-muted);font-weight:700;font-size:15px;margin-right:6px;opacity:.75}
.hvt-price ins{text-decoration:none;color:var(--hvt-green-text)}
.hvt-view{
	display:inline-grid;
	place-items:center;
	width:42px;
	height:42px;
	border-radius:50%;
	background:var(--hvt-mint);
	color:var(--hvt-green-text);
	font-size:19px;
	font-weight:900;
	flex:0 0 auto;
}
.hvt-product-actions{padding:14px 8px 0}
.hvt-product-actions .added_to_cart{display:none}

@media (max-width:1000px){
	.hvt-products{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
	.hvt-products{grid-template-columns:1fr}
	.hvt-product-desc{min-height:0}
}

/* =========================================================
   11. Reduced motion
   ========================================================= */
@media (prefers-reduced-motion:reduce){
	*,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
}
