/* =========================================================
   Storefront header: utility bar, rating chip, main
   navigation, review strip, search panel, mobile drawer.
   ========================================================= */

/* ---------- Utility bar ---------- */
.ndk-utility { background: var(--ndk-primary); color: #fff; font-size: 16px; }
.ndk-utility__inner { display: flex; min-height: 42px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding: 2px 0; }
.ndk-utility p { margin: 0; font-weight: 400; letter-spacing: .005em; }
.ndk-utility__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-left: auto; }
.ndk-utility__links > a { color: #fff; font-weight: 500; font-size: 16px; }
.ndk-utility__links > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Rating chip (utility bar, left) ---------- */
.ndk-rating-chip { display: inline-flex; min-height: 34px; align-items: center; gap: 10px; padding: 4px 0; color: #fff; font-size: 15px; }
.ndk-rating-chip:hover { color: #fff; }
.ndk-rating-chip__label { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ndk-rating-chip__provider { font-weight: 600; }
.ndk-stars { display: inline-flex; gap: 3px; }
.ndk-stars__item { display: block; width: 19px; height: 19px; border-radius: 2px; background: rgba(255, 255, 255, .32); -webkit-mask: none; mask: none; }
.ndk-stars__item.is-on { background: #00b67a; }
.ndk-stars__item::after { display: block; width: 100%; height: 100%; background: #fff; content: ""; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3.5 2.6 5.5 5.9.8-4.3 4.2 1 5.9-5.2-2.8-5.2 2.8 1-5.9L3.5 9.8l5.9-.8Z'/%3E%3C/svg%3E") center / 78% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3.5 2.6 5.5 5.9.8-4.3 4.2 1 5.9-5.2-2.8-5.2 2.8 1-5.9L3.5 9.8l5.9-.8Z'/%3E%3C/svg%3E") center / 78% no-repeat; }

/* ---------- Utility bar switchers ---------- */
.ndk-utility__switchers { display: flex; align-items: center; gap: 10px; }
.ndk-switcher { position: relative; }
.ndk-switcher__toggle { display: inline-flex; min-height: 28px; align-items: center; gap: 5px; padding: 3px 7px; border: 0; border-radius: 7px; background: transparent; color: #fff; cursor: pointer; font-size: 16px; font-weight: 500; line-height: 1; }
/* GeneratePress paints button:hover dark - keep the toggle quiet on the orange bar. */
body .ndk-utility .ndk-switcher__toggle:hover,
body .ndk-utility .ndk-switcher__toggle:focus,
body .ndk-utility .ndk-switcher__toggle:active,
body .ndk-utility .ndk-switcher__toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .18) !important; color: #fff !important; }
.ndk-switcher__toggle .ndk-icon { width: 14px; height: 14px; transform: rotate(90deg); }
.ndk-switcher--currency .ndk-switcher__toggle { padding: 4px 12px; background: rgba(255, 255, 255, .22); }
.ndk-switcher--currency .ndk-switcher__toggle:hover { background: rgba(255, 255, 255, .32); }
.ndk-switcher__list { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; min-width: 104px; padding: 6px; border: 1px solid var(--ndk-border); border-radius: var(--ndk-radius-sm); margin: 0; background: #fff; box-shadow: var(--ndk-shadow); list-style: none; }
.ndk-switcher__list[hidden] { display: none; }
/* The utility bar paints its links white - the dropdown lives on a white panel,
   so its links must be forced back to ink or the labels vanish next to the flags. */
body .ndk-utility .ndk-switcher__list a, .ndk-switcher__list a { display: flex; align-items: center; padding: 7px 10px; border-radius: 6px; color: var(--ndk-ink) !important; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
body .ndk-utility .ndk-switcher__list a:hover, .ndk-switcher__list a:hover { background: var(--ndk-primary-soft); color: var(--ndk-primary) !important; }
.ndk-switcher--plugin select { min-height: 28px; padding: 2px 8px; border: 0; border-radius: var(--ndk-pill); background: rgba(255, 255, 255, .22); color: #fff; font-size: 13.5px; }

/* ---------- Main navigation ---------- */
.ndk-store-nav { position: sticky; z-index: 50; top: 0; background: #fff; }
.admin-bar .ndk-store-nav { top: 32px; }
.ndk-store-nav__inner { display: flex; min-height: 78px; align-items: center; gap: 24px; }
.ndk-store-nav .ndk-mobile-menu-trigger { display: none; }
.ndk-store-brand { display: inline-flex; max-width: 250px; flex: 0 0 auto; align-items: center; color: var(--ndk-ink); font-family: var(--ndk-heading); font-size: 23px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ndk-store-brand:hover { color: var(--ndk-ink); }
.ndk-store-brand__logo, .ndk-store-brand img { width: auto; max-width: 230px; max-height: 40px; object-fit: contain; }

.ndk-desktop-menu { margin-inline: auto; }
.ndk-menu { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.ndk-menu > li { position: relative; }
.ndk-menu > li > a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ndk-ink); font-size: 18px; font-weight: 500; white-space: nowrap; }
.ndk-menu > li > a:hover { color: var(--ndk-primary); }
.ndk-menu > li.current-menu-item > a, .ndk-menu > li.current-menu-parent > a, .ndk-menu > li.current-product-ancestor > a { color: var(--ndk-ink); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }

/* Optional menu marks: add one of these CSS classes to a menu item
   in Appearance > Menus > (item) > CSS Classes. */
.ndk-menu > li[class*="ndk-mi-"] > a::before { display: block; width: 21px; height: 21px; flex: 0 0 21px; content: ""; background-position: center; background-repeat: no-repeat; background-size: contain; }
.ndk-menu > li.ndk-mi-windows > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='9.4' height='9.4' fill='%23f25022'/%3E%3Crect x='12.6' y='2' width='9.4' height='9.4' fill='%237fba00'/%3E%3Crect x='2' y='12.6' width='9.4' height='9.4' fill='%2300a4ef'/%3E%3Crect x='12.6' y='12.6' width='9.4' height='9.4' fill='%23ffb900'/%3E%3C/svg%3E"); }
.ndk-menu > li.ndk-mi-office > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6.4 14 3v18L4 17.6Z' fill='%23eb3c00'/%3E%3Cpath d='M14 5.4 20 7v10l-6 1.6Z' fill='%23c53200'/%3E%3C/svg%3E"); }
.ndk-menu > li.ndk-mi-cad > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 19 12 4l9 15Z' fill='%23111'/%3E%3C/svg%3E"); }
.ndk-menu > li.ndk-mi-shield > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 20 5.6v6c0 4.9-3.4 9.1-8 10.4-4.6-1.3-8-5.5-8-10.4v-6Z' fill='%23f16b34'/%3E%3Cpath d='m8.6 12 2.5 2.5 4.6-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ndk-menu > li.ndk-mi-key > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f16b34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='14' r='4'/%3E%3Cpath d='m11 11 8-8 2 2-2 2 2 2-2 2-2-2-2 2'/%3E%3C/svg%3E"); }

.ndk-menu .sub-menu { position: absolute; z-index: 60; top: calc(100% + 12px); left: 0; min-width: 224px; padding: 8px; border: 1px solid var(--ndk-border); border-radius: var(--ndk-radius-sm); margin: 0; background: #fff; box-shadow: var(--ndk-shadow); list-style: none; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity var(--ndk-transition), transform var(--ndk-transition); }
.ndk-menu > li:hover > .sub-menu, .ndk-menu > li:focus-within > .sub-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.ndk-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ndk-text); font-size: 15px; }
.ndk-menu .sub-menu a:hover { background: var(--ndk-primary-soft); color: var(--ndk-primary); }

.ndk-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; margin-left: auto; }
.ndk-icon-button { display: inline-grid; width: 40px; height: 40px; min-height: 40px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; color: var(--ndk-ink); cursor: pointer; transition: background var(--ndk-transition), color var(--ndk-transition); }
.ndk-icon-button:hover { background: var(--ndk-soft); color: var(--ndk-primary); }
.ndk-icon-button .ndk-icon { width: 23px; height: 23px; }
.ndk-cart-link { position: relative; }
.ndk-cart-count { position: absolute; top: 0; right: -2px; display: grid; min-width: 19px; height: 19px; padding: 0 5px; place-items: center; border: 2px solid #fff; border-radius: var(--ndk-pill); background: var(--ndk-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }

/* ---------- Review strip (below navigation) ---------- */
.ndk-review-strip { background: #fff; }
.ndk-review-strip__inner { display: flex; align-items: center; justify-content: center; padding: 10px 0 4px; }
.ndk-review-strip__link { display: inline-flex; align-items: center; gap: 12px; color: var(--ndk-ink); font-size: 15px; }
.ndk-review-strip__link:hover { color: var(--ndk-ink); }
.ndk-review-strip .ndk-stars__item { background: transparent; }
.ndk-review-strip .ndk-stars__item::after { background: #dcdcdc; }
.ndk-review-strip .ndk-stars__item.is-on::after { background: var(--ndk-primary); }
.ndk-review-strip strong { font-weight: 700; }
.ndk-review-strip__count { color: var(--ndk-muted); }
.ndk-review-strip__badge { width: auto; max-height: 26px; }

/* ---------- Confidence bar (fallback when no review strip) ---------- */
.ndk-confidence-bar { border-bottom: 1px solid var(--ndk-border); background: var(--ndk-soft); }
.ndk-confidence-bar__inner { display: flex; min-height: 46px; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 44px; color: #4d4d4d; font-size: 14px; }
.ndk-confidence-bar span { display: inline-flex; align-items: center; gap: 9px; }
.ndk-confidence-bar .ndk-icon { width: 19px; height: 19px; color: var(--ndk-primary); }

/* ---------- Search panel ---------- */
.ndk-search-panel { border-bottom: 1px solid var(--ndk-border); background: #fff; }
.ndk-search-panel[hidden] { display: none; }
.ndk-search-panel__inner { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.ndk-product-search { display: flex; flex: 1 1 auto; gap: 10px; }
.ndk-product-search input[type="search"] { flex: 1 1 auto; }
.ndk-product-search button { display: inline-flex; min-width: 118px; align-items: center; justify-content: center; gap: 8px; }
.ndk-product-search button .ndk-icon { width: 18px; height: 18px; }
.ndk-search-close { flex: 0 0 44px; border: 1px solid var(--ndk-border); }

/* ---------- Mobile drawer (desktop defaults) ---------- */
.ndk-drawer-overlay { position: fixed; z-index: 1000; inset: 0; background: rgba(17, 17, 17, .45); }
.ndk-drawer-overlay[hidden] { display: none; }
.ndk-mobile-drawer { display: none; }
.ndk-mobile-menu { margin: 0; padding: 0; list-style: none; }

/* Screen-reader helper used by the switchers and search form. */
.screen-reader-text { position: absolute !important; overflow: hidden; width: 1px; height: 1px; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; word-wrap: normal; }

/* Automatic brand marks inside the main menu */
.ndk-menu > li > a .ndk-cat-mark { width: 23px; height: 23px; flex: 0 0 23px; }
.ndk-menu-label { display: inline-block; }
.ndk-mobile-menu .ndk-cat-mark { width: 19px; height: 19px; margin-right: 8px; vertical-align: -3px; }

/* Static currency pill (store currency, no multi-currency plugin) */
.ndk-switcher__toggle--static { cursor: default; }

/* Language flags in the switchers */
.ndk-flag { display: inline-flex; flex: 0 0 auto; align-items: center; }
.ndk-flag svg { width: 21px; height: 14px; border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.ndk-switcher__toggle .ndk-flag { margin-right: 7px; }
.ndk-switcher__list .ndk-flag { margin-right: 8px; vertical-align: -2px; }
.ndk-switcher__list .ndk-flag svg { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* =========================================================
   Header mini-cart dropdown
   ========================================================= */
.ndk-minicart { position: relative; }
.ndk-minicart__panel {
	position: absolute; z-index: 120; top: calc(100% + 14px); right: -6px; width: 330px;
	padding: 20px; border: 1px solid #ececec; border-radius: 14px; background: #fff;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .14); text-align: left;
	animation: ndk-minicart-in 160ms ease both;
}
.ndk-minicart__panel::before {
	content: ""; position: absolute; top: -7px; right: 20px; width: 12px; height: 12px;
	border-top: 1px solid #ececec; border-left: 1px solid #ececec; background: #fff; transform: rotate(45deg);
}
@keyframes ndk-minicart-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ndk-minicart .woocommerce-mini-cart { max-height: 300px; margin: 0; padding: 0 6px 0 0; list-style: none; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ddd transparent; }
.ndk-minicart .woocommerce-mini-cart::-webkit-scrollbar { width: 4px; }
.ndk-minicart .woocommerce-mini-cart::-webkit-scrollbar-track { background: transparent; }
.ndk-minicart .woocommerce-mini-cart::-webkit-scrollbar-thumb { border-radius: 4px; background: #ddd; }
.ndk-minicart .woocommerce-mini-cart::-webkit-scrollbar-thumb:hover { background: #c6c6c6; }
.ndk-minicart .woocommerce-mini-cart-item {
	position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px;
	align-items: start; margin: 0; padding: 14px 26px 14px 0; border-bottom: 1px solid #f1f1f1;
}
.ndk-minicart .woocommerce-mini-cart-item:first-child { padding-top: 2px; }
.ndk-minicart .woocommerce-mini-cart-item a:not(.remove) {
	grid-column: 1 / -1; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center;
	color: var(--ndk-ink); font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1.45; text-transform: uppercase;
}
.ndk-minicart .woocommerce-mini-cart-item img {
	width: 56px; height: 56px; padding: 5px; border: 1px solid #ececec; border-radius: 8px;
	background: var(--ndk-soft); object-fit: contain; float: none; margin: 0;
}
.ndk-minicart .woocommerce-mini-cart-item .quantity { grid-column: 2; color: var(--ndk-muted); font-size: 13px; }
.ndk-minicart .woocommerce-mini-cart-item .quantity .woocommerce-Price-amount { color: var(--ndk-ink); font-weight: 600; }
.ndk-minicart .woocommerce-mini-cart-item a.remove {
	position: absolute; top: 12px; right: 0; width: 22px; height: 22px; display: grid; place-items: center;
	border-radius: 50%; color: #b5b5b5 !important; font-size: 17px; font-weight: 400; line-height: 1;
}
.ndk-minicart .woocommerce-mini-cart-item a.remove:hover { background: #f5f5f5; color: var(--ndk-error, #d92c20) !important; }
.ndk-minicart .woocommerce-mini-cart__total {
	display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 16px; padding-top: 14px;
	border-top: 1px solid #ececec; color: var(--ndk-ink); font-size: 15px;
}
.ndk-minicart .woocommerce-mini-cart__total .woocommerce-Price-amount { font-size: 17px; font-weight: 700; }
.ndk-minicart .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.ndk-minicart .woocommerce-mini-cart__buttons .button {
	width: 100%; min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
	margin: 0; padding: 10px 16px; border: 1px solid var(--ndk-primary); border-radius: 9px;
	background: var(--ndk-primary); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .01em;
	transition: background var(--ndk-transition), transform var(--ndk-transition);
}
.ndk-minicart .woocommerce-mini-cart__buttons .button:hover { background: var(--ndk-primary-hover); border-color: var(--ndk-primary-hover); transform: translateY(-1px); }
.ndk-minicart .woocommerce-mini-cart__empty-message { margin: 6px 0 4px; color: var(--ndk-muted); font-size: 14px; text-align: center; }

@media (max-width: 899px) {
	.ndk-minicart__panel { display: none; }
}
