/*
Theme Name: NH Velox
Theme URI: https://nazmulhub.com
Author: Nazmulhub
Author URI: https://nazmulhub.com
Description: NH Velox is an ultra-fast WooCommerce theme by Nazmulhub.com. Instant navigation without page reloads, AJAX cart drawer, live search, sticky add-to-cart and a complete Facebook Pixel + Conversions API setup that keeps working on every no-reload page change.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nh-velox
Tags: e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

/* ------------------------------------------------------------------ base */
:root {
	--nhv-accent: #ff5a1f;
	--nhv-accent-soft: color-mix(in srgb, var(--nhv-accent) 12%, #fff);
	--nhv-ink: #0f172a;
	--nhv-text: #1f2937;
	--nhv-muted: #64748b;
	--nhv-line: #e5e7eb;
	--nhv-soft: #f6f7f9;
	--nhv-bg: #fff;
	--nhv-r: 12px;
	--nhv-h: 64px;
	--nhv-shadow: 0 10px 30px rgba(15, 23, 42, .12);
	--nhv-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans Bengali", "Hind Siliguri", "Kalpurush", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
	margin: 0; background: var(--nhv-bg); color: var(--nhv-text);
	font: 16px/1.6 var(--nhv-font); -webkit-font-smoothing: antialiased;
	font-variant-numeric: lining-nums tabular-nums; /* always easy-to-read digits on prices */
	padding-bottom: 64px; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--nhv-accent); }
h1, h2, h3, h4 { color: var(--nhv-ink); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.nhv-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 1000; border-radius: 8px; }
.nhv-skip:focus { left: 8px; }
.nhv-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.nhv-i { display: block; }
.nhv-main { min-height: 50vh; outline: 0; }
.nhv-content { padding-top: 28px; padding-bottom: 40px; }
.nhv-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .6em; }
.nhv-prose { max-width: 820px; }
.nhv-prose img { border-radius: 10px; }
.nhv-landing__main { min-height: 100vh; }
body.nhv-landing { padding-bottom: 0; }

/* buttons */
.nhv-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, button.single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--nhv-accent); color: #fff !important; border: 0; border-radius: 10px;
	padding: 12px 20px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer;
	transition: transform .12s, filter .12s, background .12s; position: relative;
}
.nhv-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, button.single_add_to_cart_button:hover { filter: brightness(1.06); color: #fff; }
.nhv-btn:active, button.single_add_to_cart_button:active { transform: scale(.98); }
.nhv-btn--ghost { background: #fff; color: var(--nhv-ink) !important; border: 1.5px solid var(--nhv-line); }
.nhv-btn--ghost:hover { border-color: var(--nhv-ink); color: var(--nhv-ink) !important; filter: none; }
.nhv-btn--dark { background: var(--nhv-ink); }
.nhv-btn--block { display: flex; width: 100%; }
.nhv-btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.nhv-btn[disabled], .nhv-btn.is-loading { opacity: .7; pointer-events: none; }
.nhv-btn.is-loading::after, button.single_add_to_cart_button.is-loading::after {
	content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: nhvspin .6s linear infinite;
}
.nhv-btn--ghost.is-loading::after { border-color: #ccc; border-top-color: var(--nhv-ink); }
.nhv-btn.is-added { background: #16a34a; }
button.single_add_to_cart_button.disabled, button.single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
@keyframes nhvspin { to { transform: rotate(360deg); } }

.nhv-iconbtn { background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--nhv-ink); display: inline-flex; position: relative; }
.nhv-iconbtn:hover { background: var(--nhv-soft); color: var(--nhv-ink); }
.nhv-count {
	position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--nhv-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.nhv-count[hidden] { display: none; }

/* top loading bar for instant navigation */
#nhv-bar { position: fixed; z-index: 1001; top: 0; left: 0; height: 3px; width: 100%; background: var(--nhv-accent); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; pointer-events: none; }
#nhv-bar.is-on { opacity: 1; animation: nhvbar 8s cubic-bezier(.1, .8, .2, 1) forwards; }
#nhv-bar.is-done { animation: none; transform: scaleX(1); transition: transform .15s, opacity .25s .1s; opacity: 0; }
@keyframes nhvbar { to { transform: scaleX(.92); } }
::view-transition-group(root) { animation-duration: .14s; }

/* ---------------------------------------------------------------- header */
.nhv-topbar { background: var(--nhv-ink); color: #fff; font-size: 13px; text-align: center; padding: 7px 0; }
.nhv-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--nhv-line); transition: box-shadow .2s; }
.nhv-header.is-stuck { box-shadow: 0 4px 18px rgba(15, 23, 42, .08); }
.nhv-header__row { display: flex; align-items: center; gap: 10px; min-height: var(--nhv-h); }
.nhv-logo { font-weight: 800; font-size: 1.35rem; flex: 1; }
.nhv-logo img { max-height: 44px; width: auto; }
.nhv-logo__text { color: var(--nhv-ink); letter-spacing: -.02em; }
.nhv-actions { display: flex; align-items: center; gap: 2px; }
.nhv-account { display: none; }
.nhv-nav { display: none; border-top: 1px solid var(--nhv-line); }
.nhv-menu { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; margin: 0; padding: 0; }
.nhv-menu > li { position: relative; }
.nhv-menu a { display: block; padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--nhv-ink); border-radius: 8px; }
.nhv-menu a:hover, .nhv-menu .is-current > a, .nhv-menu .current-menu-item > a { color: var(--nhv-accent); }
.nhv-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--nhv-line); border-radius: var(--nhv-r); box-shadow: var(--nhv-shadow); padding: 8px; list-style: none; z-index: 10; }
.nhv-menu li:hover > .sub-menu, .nhv-menu li:focus-within > .sub-menu { display: block; }
.nhv-menu .sub-menu a { padding: 9px 12px; font-weight: 500; }

/* search */
.nhv-search { position: relative; display: flex; align-items: center; background: var(--nhv-soft); border: 1.5px solid transparent; border-radius: 12px; }
.nhv-search:focus-within { background: #fff; border-color: var(--nhv-accent); }
.nhv-search input[type="search"] { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 14px; outline: 0; -webkit-appearance: none; }
.nhv-search button[type="submit"] { background: none; border: 0; padding: 10px 14px; color: var(--nhv-muted); }
.nhv-search--header { display: none; flex: 0 1 460px; }
.nhv-search__results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--nhv-line); border-radius: var(--nhv-r); box-shadow: var(--nhv-shadow); overflow: hidden; z-index: 80; }
.nhv-search__results[hidden] { display: none; }
.nhv-sr { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; }
.nhv-sr:hover { background: var(--nhv-soft); color: inherit; }
.nhv-sr img, .nhv-sr i { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--nhv-soft); }
.nhv-sr__t { font-weight: 600; font-size: 14px; line-height: 1.3; }
.nhv-sr__p { font-size: 13px; font-weight: 700; color: var(--nhv-accent); white-space: nowrap; }
.nhv-sr__p del { color: var(--nhv-muted); font-weight: 400; }
.nhv-sr__p ins { text-decoration: none; }
.nhv-sr__all { display: block; text-align: center; padding: 11px; font-weight: 700; font-size: 14px; background: var(--nhv-soft); }
.nhv-sr__none { padding: 16px; color: var(--nhv-muted); text-align: center; }

/* ---------------------------------------------------------------- panels */
.nhv-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 90; }
.nhv-open .nhv-overlay { opacity: 1; visibility: visible; }
.nhv-open { overflow: hidden; }
.nhv-panel { position: fixed; z-index: 100; background: #fff; display: flex; flex-direction: column; transition: transform .26s cubic-bezier(.2, .8, .2, 1); visibility: hidden; }
.nhv-panel--right { top: 0; bottom: 0; right: 0; width: min(420px, 100vw); transform: translateX(105%); }
.nhv-panel--left { top: 0; bottom: 0; left: 0; width: min(340px, 88vw); transform: translateX(-105%); }
.nhv-panel--top { top: 0; left: 0; right: 0; padding: 14px 16px; transform: translateY(-105%); flex-direction: row; gap: 8px; align-items: flex-start; }
.nhv-panel--top .nhv-search { flex: 1; }
.nhv-open-cart #nhv-cart-panel, .nhv-open-menu #nhv-menu-panel, .nhv-open-search #nhv-search-panel { transform: none; visibility: visible; box-shadow: var(--nhv-shadow); }
.nhv-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--nhv-line); }
.nhv-panel__body { overflow-y: auto; padding: 8px 8px 24px; flex: 1; }
.nhv-panel__col { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.nhv-mmenu { list-style: none; }
.nhv-mmenu a { display: block; padding: 13px 12px; font-weight: 600; border-radius: 8px; }
.nhv-mmenu .sub-menu { list-style: none; padding-left: 14px; }
.nhv-mmenu .sub-menu a { font-weight: 500; color: var(--nhv-muted); }

/* cart drawer */
.nhv-ship { padding: 12px 16px; background: var(--nhv-accent-soft); font-size: 13.5px; font-weight: 600; }
.nhv-ship__bar { height: 6px; background: rgba(0, 0, 0, .08); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.nhv-ship__bar i { display: block; height: 100%; background: var(--nhv-accent); border-radius: 3px; transition: width .3s; }
.nhv-lines { list-style: none; overflow-y: auto; flex: 1; padding: 4px 16px; }
.nhv-line { display: grid; grid-template-columns: 68px 1fr 28px; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--nhv-line); transition: opacity .15s; }
.nhv-line.is-busy { opacity: .45; pointer-events: none; }
.nhv-line__img img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; background: var(--nhv-soft); }
.nhv-line__name { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.nhv-line dl.variation { margin: 3px 0 0; font-size: 12.5px; color: var(--nhv-muted); display: flex; flex-wrap: wrap; gap: 0 8px; }
.nhv-line dl.variation dt, .nhv-line dl.variation dd, .nhv-line dl.variation p { margin: 0; display: inline; }
.nhv-line__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.nhv-line__price { font-weight: 800; }
.nhv-line__rm { background: none; border: 0; color: var(--nhv-muted); padding: 2px; align-self: start; }
.nhv-line__rm:hover { color: #dc2626; }
.nhv-qty--sm { display: inline-flex; align-items: center; border: 1.5px solid var(--nhv-line); border-radius: 9px; }
.nhv-qty--sm button { background: none; border: 0; width: 30px; height: 30px; display: grid; place-items: center; }
.nhv-qty--sm span { min-width: 24px; text-align: center; font-weight: 700; font-size: 14px; }
.nhv-cartfoot { padding: 14px 16px 18px; border-top: 1px solid var(--nhv-line); display: grid; gap: 8px; background: #fff; }
.nhv-cartfoot__sum { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 4px; }
.nhv-empty { display: grid; place-items: center; gap: 6px; text-align: center; padding: 56px 24px; color: var(--nhv-muted); }

/* ---------------------------------------------------------------- footer */
.nhv-footer { background: var(--nhv-ink); color: #cbd5e1; margin-top: 56px; }
.nhv-footer a:hover { color: #fff; }
.nhv-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.nhv-footer__grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
.nhv-footer__brand { color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 8px; }
.nhv-flist { list-style: none; display: grid; gap: 8px; }
.nhv-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; padding: 14px 0; }
.nhv-footer__bar .nhv-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.nhv-wa { position: fixed; right: 14px; bottom: 82px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--nhv-shadow); }
.nhv-wa:hover { color: #fff; }

/* mobile bottom bar */
.nhv-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--nhv-line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.nhv-bottomnav a, .nhv-bottomnav button { background: none; border: 0; display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11px; font-weight: 600; color: var(--nhv-muted); position: relative; }
.nhv-bottomnav .nhv-count { top: 2px; right: calc(50% - 22px); }

/* sticky add to cart */
.nhv-sticky { position: fixed; left: 0; right: 0; bottom: 56px; z-index: 65; background: #fff; border-top: 1px solid var(--nhv-line); padding: 8px 14px; display: flex; align-items: center; gap: 12px; transform: translateY(160%); transition: transform .25s; box-shadow: 0 -6px 20px rgba(15, 23, 42, .08); }
.nhv-sticky[hidden] { display: none; }
.nhv-sticky.is-on { transform: none; }
.nhv-sticky img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.nhv-sticky__info { flex: 1; min-width: 0; }
.nhv-sticky__title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nhv-sticky__price { font-size: 14px; font-weight: 800; color: var(--nhv-accent); }
.nhv-sticky__price del { color: var(--nhv-muted); font-weight: 400; font-size: 12px; }
.nhv-sticky__price ins { text-decoration: none; }
.nhv-sticky__price .price { font-size: inherit; }

/* toast + lightbox */
.nhv-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--nhv-ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 120; max-width: 90vw; }
.nhv-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.nhv-toast.is-error { background: #b91c1c; }
.nhv-lb { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 130; display: grid; place-items: center; cursor: zoom-out; }
.nhv-lb img { max-width: 96vw; max-height: 92vh; object-fit: contain; }
.nhv-lb button { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; }

/* ------------------------------------------------------------------ home */
.nhv-hero { background: linear-gradient(135deg, var(--nhv-ink), color-mix(in srgb, var(--nhv-ink) 70%, var(--nhv-accent))); color: #fff; padding: 56px 0; }
.nhv-hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.02em; }
.nhv-hero p { color: #cbd5e1; font-size: 1.1rem; max-width: 560px; }
.nhv-section { padding-top: 36px; }
.nhv-section__title { font-size: 1.4rem; }
.nhv-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.nhv-cat { display: grid; gap: 8px; justify-items: center; text-align: center; font-weight: 700; font-size: 14px; }
.nhv-cat__img { width: 100%; aspect-ratio: 1; border-radius: var(--nhv-r); overflow: hidden; background: var(--nhv-soft); display: block; }
.nhv-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nhv-cat:hover .nhv-cat__img img { transform: scale(1.05); }

/* ---------------------------------------------------------- product grid */
.nhv-wc { padding-top: 20px; padding-bottom: 24px; }
.nhv-breadcrumb { font-size: 13px; color: var(--nhv-muted); margin-bottom: 14px; }
.nhv-breadcrumb__sep { margin: 0 6px; opacity: .6; }
.woocommerce-products-header__title, .nhv-wc .page-title { font-size: clamp(1.4rem, 3vw, 2rem); }
.woocommerce-result-count { float: left; margin: 0 0 16px; color: var(--nhv-muted); font-size: 14px; line-height: 40px; }
.woocommerce-ordering { float: right; margin: 0 0 16px; }
.woocommerce-ordering select, .nhv-wc select, .nhv-wc input[type="text"], .nhv-wc input[type="email"], .nhv-wc input[type="tel"], .nhv-wc input[type="number"], .nhv-wc textarea {
	border: 1.5px solid var(--nhv-line); border-radius: 10px; padding: 10px 12px; background: #fff; max-width: 100%;
}
.nhv-wc select:focus, .nhv-wc input:focus, .nhv-wc textarea:focus { border-color: var(--nhv-accent); outline: 0; }
ul.products { list-style: none; clear: both; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 24px; padding: 0; }
ul.products::before, ul.products::after { display: none; }
.nhv-card { background: #fff; border: 1px solid var(--nhv-line); border-radius: var(--nhv-r); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s; margin: 0 !important; width: auto !important; float: none !important; }
.nhv-card:hover { box-shadow: var(--nhv-shadow); transform: translateY(-2px); }
.nhv-card__media { display: block; position: relative; aspect-ratio: 1; background: var(--nhv-soft); overflow: hidden; }
.nhv-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nhv-card__body { padding: 10px 12px 4px; flex: 1; }
.nhv-card__title { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.nhv-card__price { font-weight: 800; color: var(--nhv-ink); font-size: 15px; }
.price del, .nhv-card__price del { color: var(--nhv-muted); font-weight: 400; font-size: .85em; margin-right: 4px; }
.price ins, .nhv-card__price ins { text-decoration: none; color: var(--nhv-accent); }
.nhv-card__actions { padding: 8px 12px 12px; }
.nhv-card__actions .nhv-btn { padding: 10px 12px; font-size: 14px; }
.nhv-badge { position: absolute; top: 10px; left: 10px; background: var(--nhv-accent); color: #fff; border-radius: 8px; padding: 3px 9px; font-size: 12px; font-weight: 800; z-index: 2; }
.nhv-badge--out { background: #475569; }
.woocommerce-pagination, .navigation.pagination { text-align: center; margin: 24px 0; }
.woocommerce-pagination ul { display: inline-flex; gap: 6px; list-style: none; padding: 0; border: 0 !important; }
.woocommerce-pagination li { border: 0 !important; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1.5px solid var(--nhv-line); border-radius: 10px; font-weight: 600; }
.page-numbers.current { background: var(--nhv-ink); color: #fff; border-color: var(--nhv-ink); }

/* ------------------------------------------------------- single product */
.single-product div.product { display: grid; gap: 22px; }
.single-product div.product > .onsale { display: none; }
.nhv-gallery { position: relative; min-width: 0; }
.nhv-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--nhv-r); background: var(--nhv-soft); -webkit-overflow-scrolling: touch; }
.nhv-gallery__track::-webkit-scrollbar { display: none; }
.nhv-gallery__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; margin: 0; }
.nhv-gallery__slide a { display: block; height: 100%; cursor: zoom-in; }
.nhv-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nhv-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: none; }
.nhv-gallery__thumbs button { flex: 0 0 62px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--nhv-soft); opacity: .7; }
.nhv-gallery__thumbs button.is-on { border-color: var(--nhv-accent); opacity: 1; }
.nhv-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-product .nhv-badge { top: 12px; left: 12px; font-size: 13px; }
.summary .product_title { font-size: clamp(1.4rem, 3.4vw, 2rem); letter-spacing: -.01em; }
.summary .price { font-size: 1.5rem; font-weight: 800; color: var(--nhv-ink); display: block; margin: 6px 0 12px; }
.summary .woocommerce-product-details__short-description { color: var(--nhv-muted); margin-bottom: 14px; }
.woocommerce-product-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nhv-muted); }
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1em; overflow: hidden; font-size: 14px; line-height: 1; letter-spacing: .1em; }
.star-rating::before { content: "★★★★★"; color: #d1d5db; position: absolute; left: 0; top: 0; }
.star-rating span { position: absolute; left: 0; top: 0; overflow: hidden; padding-top: 1.5em; height: 0; }
.star-rating span::before { content: "★★★★★"; color: #f59e0b; position: absolute; left: 0; top: 0; }
.stock { font-weight: 700; font-size: 14px; }
.in-stock { color: #16a34a; }
.out-of-stock { color: #dc2626; }
form.cart { margin: 14px 0; }
form.cart:not(.variations_form) , .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.variations_form .variations { width: 100%; border: 0; margin: 0 0 12px; border-collapse: collapse; }
.variations_form .variations tr { display: block; margin-bottom: 12px; }
.variations_form .variations th, .variations_form .variations td { display: block; padding: 0; text-align: left; }
.variations_form .variations label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 6px; }
.variations_form select { width: 100%; padding: 12px; border: 1.5px solid var(--nhv-line); border-radius: 10px; background: #fff; }
.reset_variations { font-size: 13px; color: var(--nhv-muted); margin-top: 6px; display: inline-block; }
.woocommerce-variation-price .price { font-size: 1.3rem; }
.woocommerce-variation-description p { color: var(--nhv-muted); font-size: 14px; }
.single_variation_wrap { width: 100%; }
.quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--nhv-line); border-radius: 10px; overflow: hidden; background: #fff; }
.quantity .qty { width: 52px; border: 0 !important; border-radius: 0 !important; text-align: center; padding: 10px 0 !important; font-weight: 700; -moz-appearance: textfield; background: none !important; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nhv-qty__btn { background: none; border: 0; width: 40px; align-self: stretch; display: grid; place-items: center; color: var(--nhv-ink); }
.nhv-qty__btn:hover { background: var(--nhv-soft); }
.single_add_to_cart_button { flex: 1; min-width: 140px; }
.nhv-buynow { flex: 1 1 100%; }
@media (min-width: 480px) { .nhv-buynow { flex: 1; } }
.nhv-notes { list-style: none; margin: 14px 0; display: grid; gap: 8px; font-size: 14px; }
.nhv-notes li { display: flex; gap: 8px; align-items: center; }
.nhv-notes svg { color: #16a34a; flex: none; }
.product_meta { font-size: 13.5px; color: var(--nhv-muted); display: grid; gap: 4px; margin-top: 12px; }
.product_meta a { color: var(--nhv-ink); font-weight: 600; }
.nhv-tabs { margin-top: 8px; }
.nhv-acc { border: 1px solid var(--nhv-line); border-radius: var(--nhv-r); margin-bottom: 10px; background: #fff; }
.nhv-acc summary { padding: 15px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.nhv-acc summary::-webkit-details-marker { display: none; }
.nhv-acc summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--nhv-muted); }
.nhv-acc[open] summary::after { content: "−"; }
.nhv-acc__body { padding: 0 18px 18px; }
.nhv-acc__body h2 { font-size: 1.1rem; }
.nhv-wc .related, .nhv-wc .upsells { margin-top: 32px; }
.nhv-wc .related > h2, .nhv-wc .upsells > h2 { font-size: 1.3rem; }
#reviews .commentlist { list-style: none; padding: 0; }
#reviews .commentlist li { padding: 12px 0; border-bottom: 1px solid var(--nhv-line); }
#reviews .comment_container { display: flex; gap: 12px; }
#reviews img.avatar { width: 44px; height: 44px; border-radius: 50%; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form textarea { width: 100%; }

/* notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 18px; padding: 13px 16px; border-radius: 10px; background: var(--nhv-soft); border-left: 4px solid var(--nhv-accent); font-size: 14.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.woocommerce-error { border-color: #dc2626; background: #fef2f2; }
.woocommerce-message .button { order: 2; }
.woocommerce-store-notice { background: var(--nhv-ink); color: #fff; text-align: center; padding: 8px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; }

/* posts */
.nhv-posts { display: grid; gap: 22px; grid-template-columns: 1fr; }
.nhv-post { border: 1px solid var(--nhv-line); border-radius: var(--nhv-r); overflow: hidden; background: #fff; }
.nhv-post > *:not(.nhv-post__img) { margin-left: 16px; margin-right: 16px; }
.nhv-post__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.nhv-post__title { font-size: 1.15rem; margin-top: 14px; }
.nhv-post__meta { font-size: 13px; color: var(--nhv-muted); margin-bottom: 8px; }
.nhv-single__img img { border-radius: var(--nhv-r); margin-bottom: 18px; width: 100%; }
.nhv-empty-page { text-align: center; padding: 60px 16px; }

/* ---------------------------------------------------------- cart/checkout */
.woocommerce-cart-form table.shop_table, .woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; }
.woocommerce table.shop_table { border: 1px solid var(--nhv-line); border-radius: var(--nhv-r); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px; border-top: 1px solid var(--nhv-line); }
.woocommerce-checkout #payment { background: var(--nhv-soft); border-radius: var(--nhv-r); }
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order { width: 100%; padding: 16px; font-size: 1.05rem; background: var(--nhv-accent); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1.5px solid var(--nhv-line); border-radius: 10px; padding: 11px 12px; }
.woocommerce form .form-row label { font-weight: 600; margin-bottom: 4px; display: block; }

/* ------------------------------------------------------------ breakpoints */
@media (min-width: 640px) {
	.nhv-cats { grid-template-columns: repeat(4, 1fr); }
	.nhv-posts { grid-template-columns: repeat(2, 1fr); }
	ul.products { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.nhv-footer__grid { grid-template-columns: 2fr 1fr 1.4fr; }
}
@media (min-width: 900px) {
	body { padding-bottom: 0; }
	.nhv-bottomnav, .nhv-burger { display: none; }
	.nhv-account { display: inline-flex; }
	.nhv-search--header { display: flex; }
	.nhv-logo { flex: 0 0 auto; margin-right: 18px; }
	.nhv-header__row { gap: 12px; }
	.nhv-search--header { margin-left: auto; margin-right: auto; width: 100%; }
	.nhv-nav { display: block; }
	.nhv-wa { bottom: 24px; }
	.nhv-sticky { bottom: 0; padding: 10px 24px; }
	.nhv-toast { bottom: 30px; }
	.nhv-panel--top { display: none; }
	ul.products { grid-template-columns: repeat(4, 1fr); }
	.nhv-posts { grid-template-columns: repeat(3, 1fr); }
	.single-product div.product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }
	.single-product div.product > .nhv-tabs, .single-product div.product > .related, .single-product div.product > .upsells, .single-product div.product > .up-sells { grid-column: 1 / -1; }
	.nhv-gallery { position: sticky; top: 130px; }
	.nhv-cats { grid-template-columns: repeat(8, 1fr); }
	.nhv-hero { padding: 90px 0; }
}
@media (min-width: 1200px) { .single-product div.product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
@media (max-width: 899px) {
	.nhv-search--header { display: none; }
	.woocommerce-result-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
