/* =========================================================
   Hevital - WooCommerce (shop, product, cart, checkout, account)
   ========================================================= */

.hvt-shop{padding:46px 0 84px}
.hvt-woo-page{padding:44px 0 84px}
.hvt-product-single{padding:30px 0 80px}
.hvt-crumbs-wrap{margin-bottom:22px}

/* --- Category chips ----------------------------------------------------- */
.hvt-chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
.hvt-chip{
	display:inline-flex;
	align-items:center;
	gap:7px;
	min-height:40px;
	padding:0 16px;
	border:1px solid var(--hvt-line);
	border-radius:var(--hvt-radius-pill);
	background:var(--hvt-white);
	color:var(--hvt-ink);
	font-size:13px;
	font-weight:800;
	transition:.2s var(--hvt-ease);
}
.hvt-chip span{
	display:inline-grid;
	place-items:center;
	min-width:20px;
	height:20px;
	padding:0 5px;
	border-radius:var(--hvt-radius-pill);
	background:var(--hvt-mint);
	color:var(--hvt-green-text);
	font-size:11px;
	font-weight:900;
}
.hvt-chip:hover{border-color:var(--hvt-green);color:var(--hvt-green-text);transform:translateY(-2px)}
.hvt-chip.is-active{background:var(--hvt-ink);border-color:var(--hvt-ink);color:var(--hvt-white)}
.hvt-chip.is-active span{background:rgba(255,255,255,.16);color:var(--hvt-white)}

/* --- Shop reassurance row ---------------------------------------------- */
.hvt-shop-assure{
	display:flex;
	flex-wrap:wrap;
	gap:10px 26px;
	margin:24px 0 0;
	padding:0;
	list-style:none;
}
.hvt-shop-assure li{
	display:flex;
	align-items:center;
	gap:8px;
	color:var(--hvt-text);
	font-size:12.5px;
	font-weight:750;
}
.hvt-shop-assure svg{color:var(--hvt-green-text);flex:0 0 auto}

/* --- Archive toolbar ---------------------------------------------------- */
.hvt-shop-toolbar{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:16px;
	flex-wrap:wrap;
	margin-bottom:30px;
	padding-bottom:18px;
	border-bottom:1px solid var(--hvt-line);
}
.woocommerce .woocommerce-result-count{margin:0;color:var(--hvt-muted);font-size:13px;font-weight:700}
.woocommerce .woocommerce-ordering{margin:0}
.woocommerce .woocommerce-ordering select{min-width:230px;padding:11px 14px;font-size:14px;font-weight:700}

/* --- Product grid ------------------------------------------------------- */
.woocommerce ul.products,
.woocommerce-page ul.products{
	display:grid;
	grid-template-columns:repeat(3,1fr);
	gap:22px;
	margin:0;
	padding:0;
	list-style:none;
}
.woocommerce ul.products:before,
.woocommerce ul.products:after{display:none}
.woocommerce ul.products li.product{
	float:none;
	width:auto !important;
	margin:0 !important;
	padding:13px 13px 20px;
	clear:none;
}
.woocommerce ul.products li.product .hvt-product-title{font-size:20px}
.woocommerce .products .star-rating{display:none}

/* --- Pagination --------------------------------------------------------- */
.woocommerce nav.woocommerce-pagination{margin:44px 0 0}
.woocommerce nav.woocommerce-pagination ul{display:inline-flex;gap:8px;border:0;padding:0}
.woocommerce nav.woocommerce-pagination ul li{border:0;margin:0;overflow:visible}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
	display:grid;
	place-items:center;
	min-width:44px;
	height:44px;
	padding:0 12px;
	border:1px solid var(--hvt-line);
	border-radius:var(--hvt-radius-pill);
	background:var(--hvt-white);
	color:var(--hvt-ink);
	font-size:14px;
	font-weight:800;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover{background:var(--hvt-ink);border-color:var(--hvt-ink);color:var(--hvt-white)}

/* --- Notices ------------------------------------------------------------ */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:12px;
	margin:0 0 26px;
	padding:16px 20px;
	border:1px solid var(--hvt-line);
	border-top:3px solid var(--hvt-green);
	border-radius:var(--hvt-radius);
	background:var(--hvt-soft);
	color:var(--hvt-ink);
	font-size:14px;
	font-weight:650;
	list-style:none;
}
.woocommerce-error{border-top-color:#c8443a;background:#fdf3f2}
.woocommerce-message:before,.woocommerce-info:before,.woocommerce-error:before{display:none}
.woocommerce-message .button,.woocommerce-info .button{margin-left:auto;min-height:42px;font-size:13px}

/* --- Single product ----------------------------------------------------- */
.woocommerce div.product{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}

/* WooCommerce floats the gallery/summary at 48% using an #content selector
   (GeneratePress gives .site-content id="content"), so an ID beats any class
   here - !important is the only reliable neutraliser. */
.woocommerce div.product div.images.woocommerce-product-gallery,
.woocommerce-page div.product div.images.woocommerce-product-gallery{
	width:100% !important;
	float:none !important;
	margin:0 !important;
	opacity:1 !important;
	/* No position:sticky here on purpose: a sticky grid item is constrained to
	   the grid container (not its row) in Chrome, so the gallery would float
	   over the description below it. */
	position:static;
}
.woocommerce div.product div.summary.entry-summary,
.woocommerce-page div.product div.summary.entry-summary{
	width:100% !important;
	float:none !important;
	margin:0 !important;
	clear:none;
	padding-top:4px;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper{margin:0}
.woocommerce div.product div.images .woocommerce-product-gallery__image{
	border-radius:var(--hvt-radius-lg);
	overflow:hidden;
	background:linear-gradient(160deg,#f4f9f5,#eef6f0);
}
.woocommerce div.product div.images img{
	width:100%;
	border-radius:var(--hvt-radius-lg);
	border:1px solid var(--hvt-line);
	background:var(--hvt-white);
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger{
	top:16px;
	right:16px;
	width:44px;
	height:44px;
	border-radius:50%;
	background:var(--hvt-white);
	box-shadow:var(--hvt-shadow);
	display:grid;
	place-items:center;
	font-size:18px;
	z-index:6;
}
.woocommerce div.product div.images .flex-control-thumbs{
	display:grid;
	grid-template-columns:repeat(4,1fr);
	gap:10px;
	margin:12px 0 0;
	padding:0;
}
.woocommerce div.product div.images .flex-control-thumbs li{width:100%;float:none;margin:0;list-style:none}
.woocommerce div.product div.images .flex-control-thumbs li img{
	width:100%;
	height:auto;
	aspect-ratio:1;
	object-fit:cover;
	border-radius:14px;
	opacity:.68;
	cursor:pointer;
	transition:opacity .2s var(--hvt-ease),border-color .2s var(--hvt-ease);
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover{opacity:1;border-color:var(--hvt-green)}
.woocommerce span.onsale{
	position:absolute;
	top:16px;
	left:16px;
	z-index:5;
	min-height:0;
	min-width:0;
	padding:8px 14px;
	border-radius:var(--hvt-radius-pill);
	background:var(--hvt-ink);
	color:var(--hvt-white);
	font-size:11px;
	font-weight:900;
	letter-spacing:.08em;
	text-transform:uppercase;
	line-height:1;
}
.woocommerce div.product .summary{width:auto;float:none;margin:0}
.woocommerce div.product .product_title{font-size:clamp(28px,3.4vw,42px);margin:0 0 14px}
.woocommerce div.product p.price,
.woocommerce div.product span.price{display:block;margin:0 0 6px;color:var(--hvt-ink);font-size:30px;font-weight:900;letter-spacing:-.03em}
.woocommerce div.product p.price del{color:var(--hvt-muted);font-size:20px;font-weight:700;margin-right:8px}
.woocommerce div.product p.price ins{text-decoration:none;color:var(--hvt-green-text)}
.woocommerce div.product .woocommerce-product-details__short-description{margin:16px 0 22px;color:var(--hvt-text);line-height:1.72}
.woocommerce div.product .woocommerce-product-rating{margin-bottom:14px}
.woocommerce .star-rating span:before{color:var(--hvt-green-text)}

.hvt-buybox{
	padding:22px;
	border:1px solid var(--hvt-line);
	border-radius:var(--hvt-radius-lg);
	background:var(--hvt-soft);
	margin-bottom:20px;
}
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:12px;margin:0}
.woocommerce div.product form.cart .quantity{display:flex}
.woocommerce div.product form.cart .quantity input.qty{
	width:88px;
	height:52px;
	padding:0 10px;
	text-align:center;
	border-radius:var(--hvt-radius-pill);
	font-weight:800;
}
.woocommerce div.product form.cart .button{flex:1;min-width:200px}
.woocommerce div.product form.cart .variations{width:100%;margin-bottom:4px}
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th{padding:6px 0;border:0}
.woocommerce div.product form.cart .variations select{min-width:200px}
.woocommerce div.product .stock{margin:0 0 12px;color:var(--hvt-green-text);font-weight:800;font-size:13px}
.woocommerce div.product .out-of-stock{color:#c8443a}

.hvt-reassurance{display:grid;gap:11px;margin:22px 0 18px;padding:0;list-style:none}
.hvt-reassurance li{display:flex;align-items:center;gap:11px;color:var(--hvt-text);font-size:13.5px;font-weight:650}
.hvt-reassurance svg{flex:0 0 auto;color:var(--hvt-green-text)}
.hvt-product-policies{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 18px;font-size:13px;font-weight:750}
.hvt-product-policies a{color:var(--hvt-green-text);text-decoration:underline;text-underline-offset:3px}
.hvt-product-policies a:hover{color:var(--hvt-green-dark)}
.hvt-product-policies span{color:var(--hvt-line)}
.hvt-product-meta{display:flex;flex-wrap:wrap;gap:18px;padding:16px 0;border-top:1px solid var(--hvt-line);font-size:13px;color:var(--hvt-muted)}
.hvt-product-meta b{color:var(--hvt-ink);font-weight:800}
.hvt-product-meta a{color:var(--hvt-green-text)}

/* --- Landing page blocks ------------------------------------------------ */
.hvt-pdp-benefits{
	grid-column:1/-1;
	display:grid;
	grid-template-columns:repeat(4,1fr);
	gap:14px;
	margin-top:56px;
	padding:26px;
	border:1px solid var(--hvt-line);
	border-radius:var(--hvt-radius-lg);
	background:var(--hvt-soft);
}
.hvt-pdp-benefit{display:flex;flex-direction:column;gap:6px;padding:0 8px}
.hvt-pdp-benefit-icon{
	display:grid;
	place-items:center;
	width:42px;
	height:42px;
	border-radius:13px;
	background:var(--hvt-white);
	color:var(--hvt-green-text);
	border:1px solid var(--hvt-line);
	margin-bottom:4px;
}
.hvt-pdp-benefit b{color:var(--hvt-ink);font-size:14px;font-weight:850}
.hvt-pdp-benefit span{color:var(--hvt-muted);font-size:12.5px;line-height:1.55}

.hvt-pdp-cta{
	grid-column:1/-1;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:24px;
	margin-top:62px;
	padding:40px 44px;
	border:1px solid #cae9d2;
	border-radius:28px;
	background:linear-gradient(120deg,#dff7e4,#f9fcfa);
}
.hvt-pdp-cta h2{font-size:clamp(24px,2.6vw,32px);margin:0 0 8px}
.hvt-pdp-cta p{margin:0;color:#5a6c62;max-width:520px}
.hvt-pdp-cta-actions{display:flex;gap:10px;flex-wrap:wrap}

/* --- Accordions + related ---------------------------------------------- */
.hvt-accordions,
.woocommerce div.product .related,
.woocommerce div.product .upsells{grid-column:1/-1;margin-top:62px}
.hvt-accordions-title{font-size:clamp(24px,2.6vw,32px);margin-bottom:20px}
.hvt-acc{border-top:1px solid var(--hvt-line);padding:18px 0}
.hvt-acc:last-of-type{border-bottom:1px solid var(--hvt-line)}
.hvt-acc > summary{
	position:relative;
	cursor:pointer;
	list-style:none;
	padding-right:34px;
	color:var(--hvt-ink);
	font-size:16px;
	font-weight:800;
}
.hvt-acc > summary::-webkit-details-marker{display:none}
.hvt-acc > summary:after{
	content:"+";
	position:absolute;
	right:0;
	top:50%;
	transform:translateY(-50%);
	display:grid;
	place-items:center;
	width:26px;
	height:26px;
	border-radius:50%;
	background:var(--hvt-mint);
	color:var(--hvt-green-text);
	font-weight:900;
	line-height:1;
}
.hvt-acc[open] > summary:after{content:"\2013"}
.hvt-acc-body{padding:14px 0 6px;max-width:820px;color:var(--hvt-text);line-height:1.75}
.hvt-acc-body h2:first-child{display:none}
.hvt-acc-body table.shop_attributes{width:100%;border-collapse:collapse}
.hvt-acc-body table.shop_attributes th,
.hvt-acc-body table.shop_attributes td{padding:12px 14px;border:1px solid var(--hvt-line);text-align:left;font-size:14px}
.hvt-acc-body table.shop_attributes th{background:var(--hvt-soft);width:34%;font-weight:800;color:var(--hvt-ink)}
.hvt-acc-body ul,.hvt-acc-body ol{padding-left:20px}

.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2{font-size:clamp(24px,2.6vw,32px);margin-bottom:26px}

/* --- Reviews ------------------------------------------------------------ */
.woocommerce #reviews #comments ol.commentlist{padding:0;margin:0 0 24px}
.woocommerce #reviews #comments ol.commentlist li{margin-bottom:16px}
.woocommerce #reviews #comments ol.commentlist li .comment-text{
	border:1px solid var(--hvt-line);
	border-radius:var(--hvt-radius);
	padding:20px;
	margin-left:64px;
}
.woocommerce #reviews #comments ol.commentlist li img.avatar{width:48px;border:0;border-radius:50%;padding:0;background:none}
.woocommerce #review_form #respond textarea{min-height:130px}
.woocommerce #reviews .comment-reply-title{font-weight:800;color:var(--hvt-ink)}

/* --- Sticky add to cart (mobile) --------------------------------------- */
.hvt-sticky-atc{
	position:fixed;
	left:0;
	right:0;
	bottom:0;
	z-index:130;
	display:none;
	padding:10px 0;
	background:rgba(255,255,255,.96);
	backdrop-filter:blur(10px);
	border-top:1px solid var(--hvt-line);
	box-shadow:0 -10px 30px rgba(12,33,24,.08);
	transform:translateY(110%);
	transition:transform .3s var(--hvt-ease);
}
.hvt-sticky-atc.is-visible{transform:none}
.hvt-sticky-inner{display:flex;align-items:center;justify-content:space-between;gap:14px}
.hvt-sticky-info{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.hvt-sticky-info strong{color:var(--hvt-ink);font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hvt-sticky-info span{color:var(--hvt-green-text);font-size:14px;font-weight:900}
.hvt-sticky-info del{display:none}

/* --- Cart --------------------------------------------------------------- */
.woocommerce table.shop_table{
	border:1px solid var(--hvt-line);
	border-radius:var(--hvt-radius-lg);
	border-collapse:separate;
	border-spacing:0;
	overflow:hidden;
}
.woocommerce table.shop_table th{background:var(--hvt-soft);color:var(--hvt-ink);font-weight:800;font-size:13px;padding:16px}
.woocommerce table.shop_table td{padding:16px;border-top:1px solid var(--hvt-line)}
.woocommerce table.shop_table img{width:64px;border-radius:12px}
.woocommerce-cart table.cart td.actions .coupon{display:flex;gap:10px;flex-wrap:wrap}
.woocommerce-cart table.cart td.actions .coupon input{max-width:220px}
.woocommerce .cart-collaterals .cart_totals{width:100%;float:none}
.woocommerce .cart-collaterals{display:grid;grid-template-columns:1fr;gap:20px;margin-top:30px}
.woocommerce .cart_totals h2{font-size:22px}
.woocommerce .wc-proceed-to-checkout{padding:0;margin-top:14px}
.woocommerce #coupon_code{width:auto}

/* --- Checkout ----------------------------------------------------------- */
.woocommerce .checkout.woocommerce-checkout{display:grid;grid-template-columns:1.15fr .85fr;gap:44px;align-items:start}
.woocommerce .checkout #customer_details{grid-column:1}
.woocommerce .checkout #order_review_heading,
.woocommerce .checkout #order_review{grid-column:2}
.woocommerce .checkout #order_review{
	padding:24px;
	border:1px solid var(--hvt-line);
	border-radius:var(--hvt-radius-lg);
	background:var(--hvt-soft);
}
.woocommerce form .form-row{padding:0;margin-bottom:16px}
.woocommerce form .form-row label{display:block;margin-bottom:6px}
.woocommerce .select2-container .select2-selection--single{height:50px;border-radius:14px;border-color:var(--hvt-line)}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px;padding-left:14px}
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow{height:48px}
.woocommerce #payment{background:transparent;border-radius:0}
.woocommerce #payment ul.payment_methods{border:0;padding:0 0 12px}
.woocommerce #payment div.form-row{padding:0}
.woocommerce-checkout #payment div.payment_box{background:var(--hvt-white);border:1px solid var(--hvt-line);border-radius:14px}
.woocommerce-checkout #payment div.payment_box:before{display:none}
.woocommerce #place_order{width:100%}

/* --- Account ------------------------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-navigation{width:26%;float:left}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.woocommerce-account .woocommerce-MyAccount-navigation a{
	display:block;
	padding:12px 16px;
	border-radius:14px;
	color:var(--hvt-ink);
	font-weight:750;
	font-size:14px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover{background:var(--hvt-mint);color:var(--hvt-green-text)}
.woocommerce-account .woocommerce-MyAccount-content{width:70%;float:right}
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register{
	border:1px solid var(--hvt-line);
	border-radius:var(--hvt-radius-lg);
	padding:26px;
}

/* --- Shop footer note --------------------------------------------------- */
.hvt-shop-note{margin-top:46px}

/* --- Responsive --------------------------------------------------------- */
@media (max-width:1000px){
	.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,1fr)}
	.woocommerce div.product{grid-template-columns:1fr;gap:30px}
	.woocommerce div.product div.images.woocommerce-product-gallery{position:static}
	.hvt-pdp-benefits{grid-template-columns:repeat(2,1fr);margin-top:38px}
	.hvt-pdp-cta{margin-top:46px;padding:32px 28px}
	.woocommerce .checkout.woocommerce-checkout{grid-template-columns:1fr;gap:28px}
	.woocommerce .checkout #order_review_heading,
	.woocommerce .checkout #order_review,
	.woocommerce .checkout #customer_details{grid-column:1}
	.woocommerce .checkout #order_review{position:static}
	.hvt-sticky-atc{display:block}
}
@media (max-width:760px){
	.hvt-shop{padding:34px 0 70px}
	.hvt-product-single{padding:22px 0 90px}
	.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:1fr}
	.hvt-shop-toolbar{flex-direction:column;align-items:stretch}
	.woocommerce .woocommerce-ordering select{width:100%}
	.hvt-pdp-benefits{grid-template-columns:1fr;padding:20px;gap:18px}
	.hvt-pdp-benefit{flex-direction:row;align-items:flex-start;gap:12px;flex-wrap:wrap;padding:0}
	.hvt-pdp-benefit-icon{flex:0 0 auto;margin:0}
	.hvt-pdp-benefit b{flex:1 1 auto;align-self:center}
	.hvt-pdp-benefit span{flex:1 1 100%;padding-left:54px;margin-top:-4px}
	.hvt-pdp-cta{flex-direction:column;align-items:flex-start;padding:28px 22px}
	.hvt-pdp-cta-actions,.hvt-pdp-cta .hvt-btn{width:100%}
	.woocommerce div.product .woocommerce-product-details__short-description{font-size:15px}
	.woocommerce div.product form.cart{flex-direction:column}
	.woocommerce div.product form.cart .quantity input.qty{width:100%}
	.woocommerce div.product form.cart .button{width:100%;flex:none}
	.woocommerce table.shop_table thead{display:none}
	.woocommerce table.shop_table tr{display:block;border-bottom:1px solid var(--hvt-line)}
	.woocommerce table.shop_table td{display:flex;justify-content:space-between;gap:14px;border:0;padding:10px 14px}
	.woocommerce table.shop_table td:before{content:attr(data-title);font-weight:800;color:var(--hvt-ink)}
	.woocommerce table.shop_table td.product-remove:before,
	.woocommerce table.shop_table td.actions:before{display:none}
	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content{width:100%;float:none}
	.woocommerce-account .woocommerce-MyAccount-content{margin-top:24px}
}
