/* =========================================================================
   GL Electronics Lab — conversion components & storefront polish
   Variables come from theme.json (--wp--preset--color--*, --wp--preset--font-family--*)
   ========================================================================= */

:root {
	--gp-accent: var(--wp--preset--color--accent, #2563EB);
	--gp-accent-hover: var(--wp--preset--color--accent-hover, #1D4ED8);
	--gp-ink: var(--wp--preset--color--contrast, #0A0A0A);
	--gp-muted: var(--wp--preset--color--contrast-muted, #6B7280);
	--gp-border: var(--wp--preset--color--border, #E5E7EB);
	--gp-sale: var(--wp--preset--color--sale, #EF4444);
	--gp-success: var(--wp--preset--color--success, #16A34A);
	--gp-radius: 12px;
	--gp-shadow-card: 0 1px 3px rgba(10,10,10,.06), 0 8px 24px rgba(10,10,10,.08);
	--gp-shadow-soft: 0 1px 2px rgba(10,10,10,.04), 0 4px 16px rgba(10,10,10,.06);
	--gp-z-drawer: 9000;
	--gp-z-sticky: 8000;
}

*:focus-visible {
	outline: 2px solid var(--gp-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Tabular figures keep prices + timers from shifting width as digits change */
.woocommerce .price, .woocommerce-Price-amount, .woocommerce div.product p.price,
.gp-sticky__price, .gp-mega__pprice, .gp-search__rowprice, .gp-countdown__unit span {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

/* ---------- Header ------------------------------------------------------- */
.gp-header__row { gap: 1.5rem; }
.gp-header__left { gap: .6rem; flex: 0 0 auto; }
.gp-header__search { flex: 1 1 auto; max-width: 560px; }
.gp-header__right { gap: 1.1rem; flex: 0 0 auto; }
.gp-account-link a { color: var(--gp-ink); font-weight: 500; font-size: .9rem; }
.gp-account-link a:hover { color: var(--gp-accent); }
.gp-header__nav { margin-top: .85rem; }
.gp-nav a { color: var(--gp-ink); font-weight: 500; }
.gp-nav a:hover { color: var(--gp-accent); }

/* Mega-style submenus */
.gp-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--gp-border);
	border-radius: var(--gp-radius);
	box-shadow: var(--gp-shadow-card);
	padding: .35rem;
	min-width: 220px;
}

/* ---------- Cart button -------------------------------------------------- */
.gp-cart-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--gp-ink);
	padding: .35rem;
	line-height: 0;
}
.gp-cart-btn:hover { color: var(--gp-accent); }
.gp-cart-btn__count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--gp-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Predictive search ------------------------------------------- */
.gp-search { position: relative; display: flex; align-items: center; width: 100%; }
.gp-search__icon { position: absolute; left: 14px; color: var(--gp-muted); pointer-events: none; }
.gp-search__input {
	width: 100%;
	padding: .7rem 5.5rem .7rem 2.6rem;
	border: 1px solid var(--gp-border);
	border-radius: 999px;
	font-size: .95rem;
	background: var(--wp--preset--color--base-subtle, #F7F8FA);
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.gp-search__input:focus {
	outline: none;
	border-color: var(--gp-accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.gp-search__submit {
	position: absolute;
	right: 5px;
	border: 0;
	background: var(--gp-accent);
	color: #fff;
	font-weight: 600;
	font-size: .85rem;
	padding: .5rem 1rem;
	border-radius: 999px;
	cursor: pointer;
}
.gp-search__submit:hover { background: var(--gp-accent-hover); }
.gp-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--gp-border);
	border-radius: var(--gp-radius);
	box-shadow: var(--gp-shadow-card);
	z-index: 200;
	overflow: hidden;
	max-height: 70vh;
	overflow-y: auto;
}
.gp-search__list { list-style: none; margin: 0; padding: .35rem; }
.gp-search__row a {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .5rem;
	border-radius: 8px;
	color: var(--gp-ink);
}
.gp-search__row a:hover, .gp-search__row.is-active a { background: var(--wp--preset--color--accent-soft, #EFF4FF); }
.gp-search__thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.gp-search__rowmeta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gp-search__rowtitle { font-weight: 500; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-search__rowprice { font-size: .85rem; color: var(--gp-accent); font-weight: 600; }
.gp-search__rowprice del { color: var(--gp-muted); font-weight: 400; }
.gp-search__all {
	display: block;
	text-align: center;
	padding: .75rem;
	font-size: .85rem;
	font-weight: 600;
	border-top: 1px solid var(--gp-border);
	color: var(--gp-accent);
}
.gp-search__state { padding: 1rem; text-align: center; color: var(--gp-muted); font-size: .9rem; }

/* ---------- Mega menu (desktop bar) ------------------------------------- */
.gp-mega { position: relative; }
.gp-mega__toggle { display: none; }
.gp-mega__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.gp-mega__item { position: static; }
.gp-mega__link {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .55rem 0;
	font-size: .9rem;
	font-weight: 500;
	color: var(--gp-ink);
	white-space: nowrap;
}
.gp-mega__link:hover { color: var(--gp-accent); }
.gp-mega__item.is-deal .gp-mega__link { color: var(--gp-sale); font-weight: 700; }
.gp-mega__chev { transition: transform .2s ease; opacity: .6; }
.gp-mega__item.has-panel:hover .gp-mega__chev,
.gp-mega__item.has-panel:focus-within .gp-mega__chev { transform: rotate(180deg); }

.gp-mega__panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--gp-border);
	border-radius: 14px;
	box-shadow: var(--gp-shadow-card);
	z-index: 60;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.gp-mega__item.has-panel:hover > .gp-mega__panel,
.gp-mega__item.has-panel:focus-within > .gp-mega__panel,
.gp-mega__item.has-panel.is-open > .gp-mega__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.gp-mega__panel-inner {
	display: flex;
	gap: 2.5rem;
	padding: 1.75rem 2rem;
	align-items: stretch;
}
.gp-mega__group--browse { flex: 0 0 180px; }
.gp-mega__group--popular { flex: 1 1 auto; min-width: 0; }
.gp-mega__promo { flex: 0 0 240px; }
.gp-mega__h {
	font-family: var(--wp--preset--font-family--heading);
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--gp-muted);
	margin: 0 0 .9rem;
}
.gp-mega__links, .gp-mega__products { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.gp-mega__links a { color: var(--gp-ink); font-size: .92rem; }
.gp-mega__links a:hover { color: var(--gp-accent); }
.gp-mega__products a { display: flex; gap: .7rem; align-items: center; color: var(--gp-ink); }
.gp-mega__products a:hover .gp-mega__pname { color: var(--gp-accent); }
.gp-mega__pthumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--wp--preset--color--base-subtle, #F7F8FA); }
.gp-mega__pmeta { display: flex; flex-direction: column; min-width: 0; }
.gp-mega__pname { font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-mega__pprice { font-size: .82rem; color: var(--gp-accent); font-weight: 600; }
.gp-mega__pprice del { color: var(--gp-muted); font-weight: 400; }
.gp-mega__promo {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: .25rem;
	min-height: 168px;
	padding: 1.1rem;
	border-radius: 12px;
	background: var(--wp--preset--color--accent-soft, #EFF4FF);
	color: var(--gp-ink);
}
.gp-mega__promo.has-img { color: #fff; }
.gp-mega__promo-kicker { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 600; }
.gp-mega__promo-title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.05rem; }
.gp-mega__promo:hover { filter: brightness(0.98); }

/* ---------- Mega menu (mobile off-canvas) ------------------------------- */
.gp-mnav-overlay {
	position: fixed; inset: 0;
	background: rgba(10,10,10,.45);
	z-index: calc(var(--gp-z-drawer) - 1);
	opacity: 0; transition: opacity .25s ease;
}
.gp-mnav-overlay.is-open { opacity: 1; }
.gp-mnav {
	position: fixed; top: 0; left: 0; bottom: 0;
	width: min(360px, 88vw);
	background: #fff;
	z-index: var(--gp-z-drawer);
	display: flex; flex-direction: column;
	transform: translateX(-100%);
	transition: transform .28s cubic-bezier(.4,0,.2,1);
	box-shadow: 12px 0 40px rgba(10,10,10,.18);
}
.gp-mnav.is-open { transform: translateX(0); }
.gp-mnav__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--gp-border);
}
.gp-mnav__title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.1rem; }
.gp-mnav__close { background: none; border: 0; cursor: pointer; color: var(--gp-ink); line-height: 0; padding: .25rem; }
.gp-mnav__list { list-style: none; margin: 0; padding: .25rem 0; overflow-y: auto; flex: 1 1 auto; }
.gp-mnav__item { border-bottom: 1px solid var(--gp-border); }
.gp-mnav__link, .gp-mnav__toggle {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	padding: .95rem 1.25rem;
	font-size: 1rem; font-weight: 500; color: var(--gp-ink);
	background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit;
}
.gp-mnav__item.is-deal .gp-mnav__link { color: var(--gp-sale); font-weight: 700; }
.gp-mnav__toggle .gp-mega__chev { opacity: .6; }
.gp-mnav__toggle[aria-expanded="true"] .gp-mega__chev { transform: rotate(180deg); }
.gp-mnav__sub { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--wp--preset--color--base-subtle, #F7F8FA); }
.gp-mnav__sub.is-open { max-height: 640px; }
.gp-mnav__sub ul { list-style: none; margin: 0; padding: .35rem 0 .75rem; }
.gp-mnav__sub a { display: block; padding: .55rem 1.25rem .55rem 2rem; color: var(--gp-muted); font-size: .95rem; }
.gp-mnav__sub a:hover, .gp-mnav__sub a strong { color: var(--gp-ink); }
body.gp-mnav-open { overflow: hidden; }

@media (max-width: 900px) {
	.gp-header__nav { margin-top: .5rem; }
	.gp-mega__list { display: none; }
	.gp-mega__toggle {
		display: inline-flex; align-items: center; gap: .5rem;
		background: var(--wp--preset--color--base-subtle, #F7F8FA);
		border: 1px solid var(--gp-border); border-radius: 10px;
		padding: .55rem .9rem; font-size: .9rem; font-weight: 600; cursor: pointer;
		color: var(--gp-ink); font-family: inherit;
	}
	.gp-mega__panel { display: none; }
}

/* Keep wide mega panels inside the viewport on mid-size screens */
@media (max-width: 1024px) and (min-width: 901px) {
	.gp-mega__panel-inner { gap: 1.5rem; padding: 1.5rem; flex-wrap: wrap; }
	.gp-mega__promo { flex: 1 1 100%; min-height: 110px; }
}

/* ---------- Product badges ---------------------------------------------- */
.gp-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: flex-start;
}
.gp-badge {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .02em;
	padding: .22rem .5rem;
	border-radius: 6px;
	color: #fff;
	line-height: 1;
	box-shadow: var(--gp-shadow-soft);
}
.gp-badge--sale { background: var(--gp-sale); }
.gp-badge--new { background: var(--gp-ink); }
.gp-badge--best { background: var(--gp-accent); }
.gp-badge--preorder { background: #b45309; }

/* WooCommerce loop item needs positioning for the badges */
ul.products li.product { position: relative; }
.woocommerce div.product .images { position: relative; }

/* ---------- Stock urgency ----------------------------------------------- */
.gp-stock-urgency {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .9rem;
	font-weight: 600;
	color: var(--gp-sale);
	margin: .25rem 0 1rem;
}
.gp-stock-dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--gp-sale);
	box-shadow: 0 0 0 0 rgba(239,68,68,.5);
	animation: gp-pulse 1.8s infinite;
}
@keyframes gp-pulse {
	0% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
	70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
	100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* ---------- Trust signals ----------------------------------------------- */
.gp-trust {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .75rem 1.25rem;
	margin: 1.5rem 0 1rem;
	padding: 1.1rem;
	border: 1px solid var(--gp-border);
	border-radius: var(--gp-radius);
	background: var(--wp--preset--color--base-subtle, #F7F8FA);
}
.gp-trust__item { display: flex; gap: .6rem; align-items: center; }
.gp-trust__icon { width: 22px; height: 22px; color: var(--gp-accent); flex: 0 0 auto; }
.gp-trust__copy { display: flex; flex-direction: column; line-height: 1.25; }
.gp-trust__copy strong { font-size: .85rem; }
.gp-trust__copy span { font-size: .78rem; color: var(--gp-muted); }
.gp-payments { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0 0; }
.woocommerce div.product .summary .gp-payments__logo,
.gp-payments img.gp-payments__logo {
	height: 24px !important;
	width: 38px !important;
	max-width: none !important;
	display: inline-block !important;
	opacity: .9;
	margin: 0 !important;
	border-radius: 4px;
}

/* ---------- Free shipping bar ------------------------------------------- */
.gp-freeship { margin: 0 0 1.25rem; }
.gp-freeship__msg { font-size: .9rem; font-weight: 600; margin: 0 0 .5rem; }
.gp-freeship.is-qualified .gp-freeship__msg { color: var(--gp-success); }
.gp-freeship__track {
	height: 8px;
	border-radius: 999px;
	background: var(--gp-border);
	overflow: hidden;
}
.gp-freeship__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--gp-accent), #60A5FA);
	transition: width .4s ease;
}
.gp-freeship.is-qualified .gp-freeship__fill { background: var(--gp-success); }

/* ---------- Sticky add-to-cart ------------------------------------------ */
.gp-sticky {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: var(--gp-z-sticky);
	background: rgba(255,255,255,.96);
	backdrop-filter: saturate(180%) blur(10px);
	border-top: 1px solid var(--gp-border);
	box-shadow: 0 -6px 24px rgba(10,10,10,.08);
	transform: translateY(110%);
	transition: transform .25s ease;
}
.gp-sticky.is-visible { transform: translateY(0); }
.gp-sticky__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .65rem 1.25rem;
}
.gp-sticky__product { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.gp-sticky__img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.gp-sticky__meta { display: flex; flex-direction: column; min-width: 0; }
.gp-sticky__title { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.gp-sticky__price { font-size: .85rem; color: var(--gp-accent); font-weight: 600; }
.gp-sticky__cta {
	border: 0;
	background: var(--gp-accent);
	color: #fff;
	font-weight: 700;
	padding: .8rem 1.6rem;
	border-radius: 10px;
	cursor: pointer;
	white-space: nowrap;
	flex: 0 0 auto;
}
.gp-sticky__cta:hover { background: var(--gp-accent-hover); }
.gp-sticky__cta.is-disabled { background: var(--gp-muted); cursor: not-allowed; }

/* ---------- Cart drawer -------------------------------------------------- */
.gp-drawer-overlay {
	position: fixed; inset: 0;
	background: rgba(10,10,10,.45);
	z-index: calc(var(--gp-z-drawer) - 1);
	opacity: 0;
	transition: opacity .25s ease;
}
.gp-drawer-overlay.is-open { opacity: 1; }
.gp-drawer {
	position: fixed;
	top: 0; right: 0; bottom: 0;
	width: min(420px, 92vw);
	background: #fff;
	z-index: var(--gp-z-drawer);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .28s cubic-bezier(.4,0,.2,1);
	box-shadow: -12px 0 40px rgba(10,10,10,.18);
}
.gp-drawer.is-open { transform: translateX(0); }
.gp-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid var(--gp-border);
}
.gp-drawer__title { font-size: 1.15rem; margin: 0; }
.gp-drawer__close { background: none; border: 0; cursor: pointer; color: var(--gp-ink); line-height: 0; padding: .25rem; }
.gp-drawer__close:hover { color: var(--gp-accent); }
.gp-drawer .gp-freeship-slot { padding: 1rem 1.25rem 0; }
.gp-drawer__body { padding: 1rem 1.25rem 1.5rem; overflow-y: auto; flex: 1 1 auto; }
.gp-drawer .woocommerce-mini-cart__empty-message { color: var(--gp-muted); text-align: center; padding: 2rem 0; }
.gp-drawer ul.cart_list li { padding: .85rem 0; border-bottom: 1px solid var(--gp-border); }
.gp-drawer ul.cart_list li img { width: 52px; border-radius: 8px; }
.gp-drawer .woocommerce-mini-cart__total {
	display: flex; justify-content: space-between; align-items: center;
	padding: 1rem 0; font-size: 1.05rem; border-top: 1px solid var(--gp-border); margin-top: .5rem;
}
.gp-drawer .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: .6rem; margin: 0; }
.gp-drawer .woocommerce-mini-cart__buttons .button {
	text-align: center; border-radius: 10px; padding: .8rem 1rem; font-weight: 600;
}
.gp-drawer .woocommerce-mini-cart__buttons .checkout {
	background: var(--gp-accent); color: #fff;
}
.gp-drawer .woocommerce-mini-cart__buttons .checkout:hover { background: var(--gp-accent-hover); }
.gp-drawer .woocommerce-mini-cart__buttons .wc-forward:not(.checkout) {
	border: 1px solid var(--gp-border); color: var(--gp-ink); background: #fff;
}
body.gp-drawer-open { overflow: hidden; }

/* ---------- Shop archive ------------------------------------------------- */
.gp-archive-toolbar {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
	gap: 1rem; margin-bottom: 1.5rem;
}
.gp-archive-toolbar .woocommerce-result-count { margin: 0; color: var(--gp-muted); font-size: .9rem; }
.gp-shop__sidebar h3 { font-family: var(--wp--preset--font-family--heading); }
.gp-shop__main { min-width: 0; }

/* ---------- WooCommerce product cards ----------------------------------- */
/* Replace WooCommerce's float layout with a clean grid that honours columns-N. */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0 0 2rem !important;
	padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products.columns-1 { grid-template-columns: minmax(0, 1fr); }
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.woocommerce ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 768px) {
	.woocommerce ul.products,
	.woocommerce ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
	.woocommerce ul.products,
	.woocommerce ul.products[class*="columns-"] { grid-template-columns: minmax(0, 1fr); }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
	background: #fff;
	border: 1px solid var(--gp-border);
	border-radius: var(--gp-radius);
	padding: .75rem !important;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	display: flex;
	flex-direction: column;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: var(--gp-shadow-card);
	border-color: transparent;
}
.woocommerce ul.products li.product a img { border-radius: 8px; margin-bottom: .75rem; aspect-ratio: 1; object-fit: contain; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: .95rem !important;
	font-weight: 600 !important;
	padding: 0 0 .35rem !important;
	color: var(--gp-ink);
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--gp-accent); }
.woocommerce ul.products li.product .price {
	color: var(--gp-accent) !important;
	font-weight: 700;
	font-size: 1rem !important;
	margin-top: auto;
}
.woocommerce ul.products li.product .price del { color: var(--gp-muted); font-weight: 400; }
.woocommerce ul.products li.product .price ins { color: var(--gp-sale); text-decoration: none; }
.woocommerce ul.products li.product .star-rating { font-size: .8em; margin: .15rem 0 .5rem; color: #f59e0b; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	margin-top: .65rem !important;
	border-radius: 10px !important;
	font-weight: 600 !important;
	background: var(--gp-accent) !important;
	color: #fff !important;
	text-align: center;
}
.woocommerce ul.products li.product .button:hover { background: var(--gp-accent-hover) !important; }
.woocommerce ul.products li.product .button.loading { opacity: .7; }

/* Single product polish */
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--gp-ink); font-weight: 700; }
.woocommerce div.product p.price ins { color: var(--gp-sale); text-decoration: none; }
.woocommerce div.product form.cart .button.single_add_to_cart_button {
	background: var(--gp-accent); color: #fff; border-radius: 10px; padding: .9rem 2rem; font-weight: 700; font-size: 1rem;
}
.woocommerce div.product form.cart .button.single_add_to_cart_button:hover { background: var(--gp-accent-hover); }
.woocommerce .woocommerce-breadcrumb { color: var(--gp-muted); font-size: .85rem; margin-bottom: 1.25rem; }

/* ---------- Homepage sections ------------------------------------------- */
.gp-section__head { margin-bottom: 1.5rem; }
.gp-section__title { display: flex; align-items: center; gap: .6rem; }
.gp-section__title h2 { margin: 0; }
.gp-section__ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; flex: 0 0 auto;
	border-radius: 10px;
	background: var(--wp--preset--color--accent-soft, #EFF4FF);
	color: var(--gp-accent);
}
.gp-hero__img img { width: 100%; box-shadow: var(--gp-shadow-card); }

/* Announcement bar */
.gp-announce__msg { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0; font-size: .82rem; letter-spacing: .01em; }
.gp-announce__ico { flex: 0 0 auto; color: var(--gp-accent); }

/* Trust bar */
.gp-trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.5rem; }
.gp-trustbar__item { display: flex; align-items: center; gap: .7rem; justify-content: center; }
.gp-trustbar__icon { width: 26px; height: 26px; flex: 0 0 auto; color: var(--gp-accent); }
.gp-trustbar__copy { display: flex; flex-direction: column; line-height: 1.25; }
.gp-trustbar__copy strong { font-size: .9rem; }
.gp-trustbar__copy span { font-size: .78rem; color: var(--gp-muted); }

.gp-cats__row { flex-wrap: wrap; }
.gp-cat { flex-grow: 1; }
.gp-cat__tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: .6rem; padding: 1.75rem 1rem;
	border: 1px solid var(--gp-border);
	border-radius: 14px;
	background: #fff;
	color: var(--gp-ink);
	transition: transform .18s, box-shadow .18s, border-color .18s;
	text-align: center;
}
.gp-cat__tile:hover { transform: translateY(-3px); box-shadow: var(--gp-shadow-card); border-color: transparent; color: var(--gp-accent); }
.gp-cat__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-soft, #EFF4FF);
	color: var(--gp-accent);
	transition: background .18s, color .18s;
}
.gp-cat__tile:hover .gp-cat__icon { background: var(--gp-accent); color: #fff; }
.gp-cat__name { font-weight: 600; font-size: .95rem; }

/* Promo + countdown */
.gp-promo__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.gp-promo__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; opacity: .85; margin: 0 0 .4rem; }
.gp-promo__title { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .4rem; color: #fff; }
.gp-promo__sub { margin: 0; opacity: .92; }
.gp-promo__side { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.gp-countdown { display: flex; gap: .6rem; }
.gp-countdown__unit {
	background: rgba(255,255,255,.16);
	border-radius: 10px;
	padding: .55rem .7rem;
	text-align: center;
	min-width: 56px;
}
.gp-countdown__unit span { display: block; font-size: 1.5rem; font-weight: 700; font-family: var(--wp--preset--font-family--heading); line-height: 1; color: #fff; }
.gp-countdown__unit small { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.gp-promo__cta {
	background: #fff; color: var(--gp-accent); font-weight: 700;
	padding: .75rem 1.5rem; border-radius: 10px; align-self: stretch; text-align: center;
}
.gp-promo__cta:hover { background: #f1f5ff; }

/* Newsletter + footer forms */
.gp-news__form, .gp-footer__news {
	display: flex; gap: .5rem;
}
.gp-news__form { max-width: 460px; margin: 0 auto; }
.gp-news__form input, .gp-footer__news input {
	flex: 1 1 auto;
	padding: .8rem 1rem;
	border: 1px solid var(--gp-border);
	border-radius: 10px;
	font-size: .95rem;
}
.gp-footer__news input { background: #11141a; border-color: #2a2e36; color: #fff; }
.gp-footer__news input::placeholder { color: #7c828d; }
.gp-news__form button, .gp-footer__news button {
	border: 0; background: var(--gp-accent); color: #fff; font-weight: 700;
	padding: .8rem 1.4rem; border-radius: 10px; cursor: pointer; white-space: nowrap;
}
.gp-news__form button:hover, .gp-footer__news button:hover { background: var(--gp-accent-hover); }

/* ---------- Toast ------------------------------------------------------- */
.gp-toast {
	position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140%);
	background: var(--gp-ink); color: #fff; padding: .8rem 1.25rem; border-radius: 999px;
	font-size: .9rem; font-weight: 500; z-index: calc(var(--gp-z-drawer) + 1);
	box-shadow: var(--gp-shadow-card); display: flex; align-items: center; gap: .75rem;
	transition: transform .3s cubic-bezier(.4,0,.2,1); max-width: 90vw;
}
.gp-toast.is-visible { transform: translate(-50%, 0); }
.gp-toast a { color: #93c5fd; font-weight: 700; }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 900px) {
	.gp-header__row { flex-wrap: wrap; }
	.gp-header__search { order: 3; flex-basis: 100%; max-width: none; margin-top: .75rem; }
	.gp-trustbar__grid { grid-template-columns: repeat(2, 1fr); }
	.gp-trust { grid-template-columns: 1fr; }
	.gp-shop__layout { flex-direction: column; }
	.gp-shop__sidebar { flex-basis: auto !important; }
	.gp-promo__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
	.gp-sticky__title { max-width: 38vw; }
	.gp-countdown__unit { min-width: 48px; padding: .45rem .5rem; }
	.gp-countdown__unit span { font-size: 1.2rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.gp-stock-dot { animation: none; }
	.gp-drawer, .gp-sticky, .gp-toast, .gp-freeship__fill,
	.gp-mnav, .gp-mnav__sub, .gp-mega__panel, .gp-mega__chev,
	.gp-cat__icon, .woocommerce ul.products li.product { transition: none !important; }
}

/* ---------- Polish: safe areas, touch targets, layout stability --------- */
/* Fixed bottom UI clears the iOS home indicator / gesture bar. */
.gp-sticky__inner { padding-bottom: calc(.65rem + env(safe-area-inset-bottom, 0px)); }
.gp-drawer__body { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.gp-mnav__list { padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px)); }

/* Comfortable touch target for the icon-only cart button. */
.gp-cart-btn { min-width: 44px; min-height: 44px; }

/* Reserve hero artwork ratio so it never shifts layout on load (CLS). */
.gp-hero__img img { aspect-ratio: 640 / 520; }

/* The classic-loop shortcodes wrap in .woocommerce — kill its stray margins
   so homepage product rows align exactly like the shop grid. */
.gp-products .woocommerce { margin: 0; }
.gp-products .woocommerce::before, .gp-products .woocommerce::after { content: none; }

/* ---------- B2B ---------------------------------------------------------- */
.gp-b2b-cta {
	display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
	padding: 1.1rem 1.25rem; margin-bottom: 2.5rem;
	border: 1px solid #23262d; border-radius: 14px;
	background: linear-gradient(120deg, rgba(37,99,235,.18), rgba(37,99,235,.04));
}
.gp-b2b-cta strong { font-family: var(--wp--preset--font-family--heading); font-size: 1.05rem; }
.gp-b2b-cta span { color: #c7cad1; font-size: .9rem; flex: 1 1 280px; }
.gp-b2b-cta__btn, .gp-b2b-submit {
	border: 0; cursor: pointer; background: var(--gp-accent); color: #fff;
	font-weight: 700; padding: .7rem 1.3rem; border-radius: 10px; font-size: .95rem; white-space: nowrap;
}
.gp-b2b-cta__btn:hover, .gp-b2b-submit:hover { background: var(--gp-accent-hover); }

/* Modal */
.gp-b2b-overlay { position: fixed; inset: 0; background: rgba(10,10,10,.5); z-index: calc(var(--gp-z-drawer) + 2); opacity: 0; transition: opacity .2s; }
.gp-b2b-overlay.is-open { opacity: 1; }
.gp-b2b-modal {
	position: fixed; left: 50%; top: 50%; transform: translate(-50%, -48%);
	width: min(620px, 94vw); max-height: 92vh; overflow-y: auto;
	background: #fff; border-radius: 16px; z-index: calc(var(--gp-z-drawer) + 3);
	box-shadow: var(--gp-shadow-card); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.gp-b2b-modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.gp-b2b-modal__inner { padding: 1.75rem; position: relative; }
.gp-b2b-modal__close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; cursor: pointer; color: var(--gp-ink); padding: .25rem; line-height: 0; }
.gp-b2b-modal__title { font-size: 1.4rem; margin: 0 0 1rem; }

/* Form */
.gp-b2b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
.gp-b2b-field { display: flex; flex-direction: column; gap: .5rem; font-size: .82rem; font-weight: 600; color: var(--gp-ink); letter-spacing: .005em; margin: 0 !important; }
.gp-b2b-field--full { grid-column: 1 / -1; margin-top: 2.5rem !important; }
.gp-b2b-modal, .gp-b2b-modal *, .gp-b2b-panel, .gp-b2b-panel * { box-sizing: border-box; }
.gp-b2b-field input, .gp-b2b-field textarea {
	box-sizing: border-box !important;
	border: 1.5px solid #d4d8de !important;
	background: #F7F8FA !important;
	border-radius: 10px !important;
	padding: .9rem 1rem !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	width: 100% !important;
	color: var(--gp-ink) !important;
	box-shadow: none !important;
	margin: 0 !important;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.gp-b2b-field input::placeholder, .gp-b2b-field textarea::placeholder { color: #9aa0ab; }
.gp-b2b-field input:hover, .gp-b2b-field textarea:hover { border-color: #b9bfc7 !important; }
.gp-b2b-field input:focus, .gp-b2b-field textarea:focus {
	outline: none !important; border-color: var(--gp-accent) !important; background: #fff !important;
	box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
}
.gp-b2b-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.gp-b2b-submit { margin-top: 2rem !important; width: 100%; padding: .95rem; font-size: 1rem; }
.gp-b2b-note { font-size: .8rem; color: var(--gp-muted); margin: .75rem 0 0 !important; text-align: center; }
.gp-b2b-hp { position: absolute; left: -9999px; }
.gp-b2b-turnstile { margin-top: 1.5rem; min-height: 65px; }
.gp-b2b-captcha-msg { margin: .75rem 0 0; }
.gp-b2b-msg { padding: .7rem .9rem; border-radius: 10px; font-size: .9rem; margin-bottom: 1rem; }
.gp-b2b-msg.is-success { background: #e7f7ee; color: #0f7a3d; border: 1px solid #bce6cd; }
.gp-b2b-msg.is-error { background: #fdeaea; color: #b32d2e; border: 1px solid #f3c6c6; }

/* My Account tabs */
.gp-b2b-tabs { display: flex; gap: .5rem; margin: 0 0 1.5rem; border-bottom: 1px solid var(--gp-border); }
.gp-b2b-tab {
	background: none; border: 0; cursor: pointer; padding: .7rem 1rem; font-size: 1rem; font-weight: 600;
	color: var(--gp-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: inherit;
}
.gp-b2b-tab.is-active { color: var(--gp-accent); border-bottom-color: var(--gp-accent); }
.gp-b2b-panel { display: none; max-width: 620px; }
.gp-b2b-panel.is-open { display: block; }
.gp-b2b-panel__lead { color: var(--gp-muted); margin-top: 0; }
.gp-b2b-personal { display: block; }
body.gp-b2b-show-business .gp-b2b-personal { display: none; }
body.gp-b2b-show-business .gp-b2b-panel { display: block; }

/* ex. VAT suffix + admin badges */
.gp-exvat { color: var(--gp-success); font-weight: 600; font-size: .72em; text-transform: uppercase; letter-spacing: .03em; }
.gp-b2b-badge { display: inline-block; padding: .15rem .5rem; border-radius: 6px; font-size: .72rem; font-weight: 700; color: #fff; }
.gp-b2b-badge--approved { background: #16A34A; }
.gp-b2b-badge--pending { background: #d97706; }

@media (max-width: 560px) {
	.gp-b2b-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.gp-b2b-overlay, .gp-b2b-modal { transition: none !important; }
}

/* ---------- Footer contact + Contact page ------------------------------- */
.gp-footer__contact { font-style: normal; color: #e5e7eb; line-height: 1.7; font-size: .92rem; }
.gp-footer__contact a { color: #e5e7eb; }
.gp-footer__contact a:hover { color: #fff; }
.gp-footer__hours { width: 100%; margin-top: .9rem; font-size: .88rem; color: #c7cad1; border-collapse: collapse; }
.gp-footer__hours th { text-align: left; font-weight: 600; color: #e5e7eb; padding: .15rem 0; }
.gp-footer__hours td { text-align: right; padding: .15rem 0; white-space: nowrap; }
.gp-map { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 1.5rem 0; border: 1px solid var(--gp-border); }
.gp-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gp-hours-table { border-collapse: collapse; margin: .5rem 0 1.5rem; }
.gp-hours-table th { text-align: left; font-weight: 600; padding: .35rem 2rem .35rem 0; }
.gp-hours-table td { padding: .35rem 0; color: var(--gp-muted); }

/* ---------- Product gallery: tap-to-lightbox on touch -------------------- */
/* Belt-and-braces: if hover-zoom still initialises on a touch device (stale
   cached JS), keep its overlay from blocking the tap that opens PhotoSwipe. */
@media (hover: none) {
	.woocommerce-product-gallery .zoomImg { display: none !important; pointer-events: none !important; }
}
.woocommerce-product-gallery__image a { cursor: zoom-in; }
.woocommerce-product-gallery__trigger { box-shadow: 0 1px 6px rgba(10,10,10,.18); }

/* ---------- Shop sidebar: category filter -------------------------------- */
.wc-block-product-categories ul { list-style: none; margin: 0; padding: 0; }
.wc-block-product-categories li { list-style: none; margin: 0 0 .5rem; }
.wc-block-product-categories li ul { margin: .5rem 0 .15rem; padding-left: .85rem; border-left: 1px solid var(--gp-border); }
.wc-block-product-categories a { color: var(--gp-ink); font-weight: 500; font-size: .95rem; }
.wc-block-product-categories a:hover { color: var(--gp-accent); }
.wc-block-product-categories li li a { font-weight: 400; }
.wc-block-product-categories .wc-block-product-categories-list-item-count { color: var(--gp-accent); font-size: .85rem; }

/* ---------- Out-of-stock cards ------------------------------------------- */
.woocommerce ul.products li.product.outofstock .button,
.woocommerce ul.products li.product.outofstock .added_to_cart {
	background: #eef0f3 !important;
	color: var(--gp-muted) !important;
	cursor: default;
}
.woocommerce ul.products li.product.outofstock .button:hover { background: #eef0f3 !important; color: var(--gp-muted) !important; }
.woocommerce ul.products li.product.outofstock a img { opacity: .55; }

/* ---------- Single product gallery: contained stage ----------------------- */
/* Small source images must not blow up to column width — cap the stage and
   letterbox the image inside it at natural proportions. */
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
	width: 100%;
	max-height: 540px;
	object-fit: contain;
	background: #fff;
}
.woocommerce div.product div.images .flex-viewport { background: #fff; }

.gp-preorder-note { font-size: .88rem; color: var(--gp-muted); background: #fef3c7; border-radius: 10px; padding: .7rem .9rem; margin: .9rem 0 0; }
.gp-preorder-note a { color: #b45309; font-weight: 600; }
