/* IH Premium Store
   Colours, radius, columns and image ratio are set from the plugin settings (see :root added inline). */

:root {
	--ihps-ink: #15211e;
	--ihps-muted: #66726e;
	--ihps-line: #e1e5e0;
	--ihps-card: #ffffff;
	--ihps-focus: #1a73e8;
	--ihps-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ihps-lock { overflow: hidden; }

.ihps-icon { display: block; }

:where(.ihps-wrap, .ihps-drawer, .ihps-sticky, .ihps-toast) :focus-visible,
.ihps-premium :where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--ihps-focus);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Wrapper and two-column shell (sidebar + products)                   */
/* ------------------------------------------------------------------ */

.ihps-wrap {
	max-width: 1360px;
	margin: 0 auto;
	padding: 8px 20px 48px;
	color: var(--ihps-ink);
	box-sizing: border-box;
}
.ihps-wrap *, .ihps-wrap *::before, .ihps-wrap *::after { box-sizing: border-box; }
.ihps-wrap a { text-decoration: none; }

.ihps-wrap__title {
	margin: 0 0 18px;
	font-family: var(--ihps-serif);
	font-weight: 600;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.ihps-shell { display: block; }
.ihps-layout--side .ihps-shell {
	display: grid;
	grid-template-columns: 236px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}
.ihps-main { min-width: 0; }

/* Left category list: stays in view while the products scroll. */
.ihps-side {
	position: sticky;
	top: var(--ihps-side-top, 24px);
	max-height: calc(100vh - var(--ihps-side-top, 24px) - 24px);
	overflow-y: auto;
	padding: 4px 6px 4px 0;
	scrollbar-width: thin;
}
body.admin-bar .ihps-side { top: calc(var(--ihps-side-top, 24px) + 32px); }

.ihps-side__title {
	margin: 0 0 10px;
	padding: 0 12px;
	font-family: var(--ihps-serif);
	font-size: 1.2rem;
	font-weight: 600;
}
.ihps-side__list, .ihps-side__sub { list-style: none; margin: 0; padding: 0; }
.ihps-side__item { margin: 0; padding: 0; }
.ihps-side__item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	color: var(--ihps-ink);
	font-size: 15px;
	line-height: 1.35;
	transition: background-color .15s;
}
.ihps-side__item > a:hover { background: color-mix(in srgb, var(--ihps-accent) 8%, transparent); }
.ihps-side__item.is-active > a {
	background: color-mix(in srgb, var(--ihps-accent) 12%, transparent);
	color: var(--ihps-accent);
	font-weight: 700;
}
.ihps-side__count { flex: none; font-size: 13px; font-weight: 400; color: var(--ihps-muted); }
.ihps-side__sub {
	margin: 2px 0 6px 14px;
	padding-inline-start: 8px;
	border-inline-start: 2px solid var(--ihps-line);
}
.ihps-side__sub .ihps-side__item > a { padding: 7px 10px; font-size: 14px; }

@media (max-width: 900px) {
	.ihps-layout--side .ihps-shell { display: block; }
	.ihps-side { position: static; max-height: none; overflow: visible; padding: 0 0 6px; }
	.ihps-side__title { display: none; }
	/* On phones the category list becomes one swipeable row of pills. */
	.ihps-side__list, .ihps-side__sub {
		display: flex;
		flex-wrap: nowrap;
		gap: 8px;
		margin: 0;
		padding: 2px 0 14px;
		border: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.ihps-side__list::-webkit-scrollbar { display: none; }
	.ihps-side__sub { display: contents; }
	.ihps-side__item { display: contents; }
	.ihps-side__item > a,
	.ihps-side__sub .ihps-side__item > a {
		flex: 0 0 auto;
		padding: 8px 16px;
		border: 1px solid var(--ihps-line);
		border-radius: 999px;
		background: var(--ihps-card);
		font-size: 14px;
		white-space: nowrap;
	}
	.ihps-side__item.is-active > a { border-color: var(--ihps-accent); background: var(--ihps-accent); color: #fff; }
	.ihps-side__count { display: none; }
}

/* ------------------------------------------------------------------ */
/* Chips (layout="chips")                                              */
/* ------------------------------------------------------------------ */

.ihps-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.ihps-chips::-webkit-scrollbar { display: none; }
.ihps-chip {
	flex: 0 0 auto;
	padding: 8px 16px;
	border: 1px solid var(--ihps-line);
	border-radius: 999px;
	background: var(--ihps-card);
	color: var(--ihps-ink);
	font-size: 14px;
	line-height: 1.2;
	transition: border-color .15s;
}
.ihps-chip:hover { border-color: var(--ihps-accent); }
.ihps-chip.is-active { background: var(--ihps-accent); border-color: var(--ihps-accent); color: #fff; }

/* ------------------------------------------------------------------ */
/* Search and sort row                                                 */
/* Theme-proof: many themes force inputs to 100% width and fixed       */
/* heights, so the important flags here are intentional.               */
/* ------------------------------------------------------------------ */

.ihps-wrap .ihps-tools {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
}
.ihps-wrap .ihps-tools .ihps-tools__search {
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 20px !important;
	border: 1.5px solid var(--ihps-ink) !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--ihps-ink);
	font-size: 15px !important;
	line-height: normal !important;
}
.ihps-wrap .ihps-tools .ihps-tools__search:focus { border-color: var(--ihps-accent) !important; outline: 2px solid color-mix(in srgb, var(--ihps-accent) 30%, transparent); outline-offset: 1px; }
.ihps-wrap .ihps-tools .ihps-tools__sort {
	flex: 0 0 auto;
	width: auto !important;
	min-width: 168px;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 40px 0 18px !important;
	border: 1.5px solid var(--ihps-line) !important;
	border-radius: 999px !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%2315211e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none !important;
	color: var(--ihps-ink);
	font-size: 15px !important;
	line-height: normal !important;
}
.ihps-wrap .ihps-tools .ihps-tools__go {
	flex: 0 0 auto;
	width: auto !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 26px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--ihps-accent) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600;
	line-height: 1 !important;
	cursor: pointer;
}
.ihps-wrap .ihps-tools .ihps-tools__go:hover { filter: brightness(1.12); }

@media (max-width: 639px) {
	.ihps-wrap .ihps-tools { flex-wrap: wrap; }
	.ihps-wrap .ihps-tools .ihps-tools__search { flex: 1 1 100%; }
	.ihps-wrap .ihps-tools .ihps-tools__sort { flex: 1 1 auto; min-width: 0; }
}

/* ------------------------------------------------------------------ */
/* Grid                                                                */
/* ------------------------------------------------------------------ */

.ihps-grid {
	display: grid;
	grid-template-columns: repeat(var(--ihps-cols, 4), minmax(0, 1fr));
	gap: 32px 20px;
}
@media (max-width: 1100px) { .ihps-grid { grid-template-columns: repeat(min(var(--ihps-cols, 4), 3), minmax(0, 1fr)); gap: 28px 16px; } }
@media (max-width: 639px)  { .ihps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

.ihps-empty { padding: 48px 16px; text-align: center; color: var(--ihps-muted); }

.ihps-pager { margin-top: 40px; text-align: center; }
.ihps-pager .ihps-pg {
	display: inline-block;
	min-width: 42px;
	margin: 0 2px;
	padding: 10px 14px;
	border: 1px solid var(--ihps-line);
	border-radius: 999px;
	background: var(--ihps-card);
	color: var(--ihps-ink);
	line-height: 1;
	position: relative;
	z-index: 1;
}
.ihps-pager a.ihps-pg:hover { border-color: var(--ihps-accent); }
.ihps-pager .ihps-pg.is-current { background: var(--ihps-accent); border-color: var(--ihps-accent); color: #fff; }

/* ------------------------------------------------------------------ */
/* Product card: image tile with the text underneath, no box           */
/* ------------------------------------------------------------------ */

.ihps-card { display: flex; flex-direction: column; min-width: 0; background: transparent; }

.ihps-card__media { position: relative; border-radius: var(--ihps-radius); overflow: hidden; background: #e9ece7; }

/* Image frame. The picture is a CSS background set inline on the link, so no
   theme or plugin <img> rule (lazy-load, width/height, stacking) can touch it. */
.ihps-card__media .ihps-card__img {
	display: block !important;
	position: relative !important;
	width: 100% !important;
	aspect-ratio: var(--ihps-ratio, 1 / 1) !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	background-color: #e9ece7;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
/* Hover swap: the second picture is only requested when the card is hovered. */
.ihps-card__media .ihps-card__img::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .25s;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	pointer-events: none;
}
@media (hover: hover) {
	.ihps-card:hover .ihps-card__img::after { background-image: var(--ihps-alt, none); opacity: 1; }
}

.ihps-badges {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-start: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: calc(100% - 64px);
	z-index: 2;
	pointer-events: none;
}
.ihps-badge {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .95);
	color: var(--ihps-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}
.ihps-badge--sale { background: var(--ihps-accent-2); color: #1b1405; }
.ihps-badge--best { background: var(--ihps-accent); color: #fff; }

/* Heart: appears on hover on computers, always visible on touch screens. */
.ihps-heart {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-end: 10px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .96);
	color: var(--ihps-ink);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
	cursor: pointer;
	transition: transform .15s, color .15s, opacity .15s;
}
@media (hover: hover) {
	.ihps-heart { opacity: 0; }
	.ihps-card:hover .ihps-heart,
	.ihps-heart:focus-visible,
	.ihps-heart.is-on { opacity: 1; }
}
.ihps-heart:hover { transform: scale(1.08); }
.ihps-heart.is-on { color: #c2334d; }
.ihps-heart.is-on .ihps-icon path { fill: currentColor; }

.ihps-card__body { display: flex; flex-direction: column; flex: 1; gap: 3px; padding: 12px 2px 0; }

.ihps-wrap .ihps-card__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
}
.ihps-card__title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--ihps-ink);
}
.ihps-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ihps-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ihps-muted); }
.ihps-rating .star-rating { margin: 0; float: none; font-size: 13px; color: var(--ihps-accent-2); }
.ihps-card__proof { font-size: 13px; color: var(--ihps-muted); }

.ihps-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin-top: auto;
	padding-top: 6px;
}
.ihps-price { font-size: 1.05rem; font-weight: 700; color: var(--ihps-ink); }
.ihps-price del { margin-inline-end: 4px; color: var(--ihps-muted); font-size: .85em; font-weight: 400; }
.ihps-price ins { background: transparent; color: var(--ihps-accent); text-decoration: none; }

.ihps-add {
	display: inline-block;
	margin: 0;
	padding: 8px 16px;
	border: 1.5px solid var(--ihps-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--ihps-accent);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.ihps-add:hover { background: var(--ihps-accent); color: #fff; }
.ihps-add.is-loading { opacity: .6; pointer-events: none; }
.ihps-add.is-added { background: var(--ihps-accent); color: #fff; }
.ihps-add--view { border-color: var(--ihps-line); color: var(--ihps-ink); }
.ihps-add--view:hover { background: var(--ihps-ink); border-color: var(--ihps-ink); color: #fff; }

@media (max-width: 639px) {
	.ihps-card__title { font-size: 14px; }
	.ihps-card__foot { flex-direction: column; align-items: stretch; }
	.ihps-add { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* [ih_categories] picture tiles                                       */
/* ------------------------------------------------------------------ */

.ihps-tiles { display: grid; grid-template-columns: repeat(var(--ihps-tcols, 5), minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .ihps-tiles { grid-template-columns: repeat(min(var(--ihps-tcols, 5), 3), minmax(0, 1fr)); } }
@media (max-width: 639px)  { .ihps-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.ihps-tile { position: relative; display: block; border-radius: var(--ihps-radius); overflow: hidden; background: #e9ece7; }
.ihps-tile__img { display: block; aspect-ratio: 4 / 5; background-color: #e9ece7; background-position: center; background-repeat: no-repeat; background-size: cover; }
.ihps-tile__label {
	position: absolute;
	inset-inline: 12px;
	inset-block-end: 12px;
	display: block;
	width: fit-content;
	max-width: calc(100% - 24px);
	padding: 8px 16px;
	border-radius: 999px;
	background: #fff;
	color: var(--ihps-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}
.ihps-tile:hover .ihps-tile__label { background: var(--ihps-accent); color: #fff; }

/* ------------------------------------------------------------------ */
/* Toast                                                               */
/* ------------------------------------------------------------------ */

.ihps-toast {
	position: fixed;
	inset-inline: 16px;
	bottom: 20px;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 420px;
	margin-inline: auto;
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--ihps-ink);
	color: #fff;
	font-size: 15px;
	transform: translateY(24px);
	opacity: 0;
	visibility: hidden;
	transition: transform .25s, opacity .25s, visibility .25s;
}
.ihps-toast.is-visible { transform: none; opacity: 1; visibility: visible; }
.ihps-toast a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Drawer                                                              */
/* ------------------------------------------------------------------ */

.ihps-drawer { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; }
.ihps-drawer.is-open { visibility: visible; pointer-events: auto; }

.ihps-drawer__overlay {
	position: absolute; inset: 0;
	background: rgba(12, 20, 18, .5);
	opacity: 0;
	transition: opacity .25s;
}
.ihps-drawer.is-open .ihps-drawer__overlay { opacity: 1; }

.ihps-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	background: #fff;
	color: var(--ihps-ink);
	transform: translateX(100%);
	transition: transform .28s ease;
}
[dir="rtl"] .ihps-drawer__panel { transform: translateX(-100%); }
.ihps-drawer.is-open .ihps-drawer__panel { transform: none; }

.ihps-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--ihps-line);
}
.ihps-drawer__head h2 { margin: 0; font-family: var(--ihps-serif); font-size: 1.25rem; }
.ihps-drawer__close, .ihps-line__remove {
	display: grid; place-items: center;
	width: 38px; height: 38px;
	padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--ihps-ink); cursor: pointer;
}
.ihps-drawer__close:hover, .ihps-line__remove:hover { background: #eef0ec; }

.ihps-drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }
.ihps-drawer__empty { padding: 40px 0; text-align: center; color: var(--ihps-muted); }

.ihps-lines { list-style: none; margin: 0; padding: 0; }
.ihps-line {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--ihps-line);
}
.ihps-line__img img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.ihps-line__name { display: block; color: var(--ihps-ink); font-weight: 600; text-decoration: none; line-height: 1.3; }
.ihps-line__meta { display: block; margin-top: 2px; font-size: 14px; color: var(--ihps-muted); }

.ihps-totals { margin-top: 16px; }
.ihps-totals__row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; }
.ihps-totals__row--fee { color: var(--ihps-accent); }
.ihps-totals__row--total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--ihps-line); font-size: 1.1rem; font-weight: 700; }

.ihps-drawer__actions { display: grid; gap: 10px; margin-top: 18px; }

.ihps-btn {
	display: block;
	padding: 14px 20px;
	border: 1.5px solid var(--ihps-accent);
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
.ihps-btn--primary { background: var(--ihps-accent); color: #fff; }
.ihps-btn--primary:hover { filter: brightness(1.12); color: #fff; }
.ihps-btn--ghost { background: transparent; color: var(--ihps-accent); }
.ihps-btn--ghost:hover { background: #eef0ec; }

/* ------------------------------------------------------------------ */
/* Discount progress                                                   */
/* ------------------------------------------------------------------ */

.ihps-progress {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid var(--ihps-line);
	border-radius: var(--ihps-radius);
	background: #fbfbf8;
}
.ihps-progress__msg { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.ihps-progress__track { height: 8px; border-radius: 999px; background: #e5e8e3; overflow: hidden; }
.ihps-progress__track span { display: block; height: 100%; border-radius: inherit; background: var(--ihps-accent-2); transition: width .4s ease; }
.ihps-progress.is-unlocked .ihps-progress__track span { background: var(--ihps-accent); }
.ihps-progress.is-unlocked .ihps-progress__msg { color: var(--ihps-accent); }

/* ------------------------------------------------------------------ */
/* Trust notes, product page extras, wishlist link                     */
/* ------------------------------------------------------------------ */

.ihps-single-extras { margin-top: 18px; }
.ihps-single-proof { margin: 0 0 10px; font-size: 14px; color: var(--ihps-muted); }
.ihps-bundle-note {
	margin: 0 0 14px;
	padding: 11px 14px;
	border-inline-start: 3px solid var(--ihps-accent-2);
	background: #fbf7ec;
	border-radius: 0 var(--ihps-radius) var(--ihps-radius) 0;
	font-size: 14px;
}

.ihps-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ihps-ink); }
.ihps-trust li { display: flex; align-items: center; gap: 8px; margin: 0; }
.ihps-trust .ihps-icon { flex: none; color: var(--ihps-accent); }
.ihps-trust a { color: inherit; text-underline-offset: 3px; }
.ihps-trust--row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 14px 16px; }

.ihps-wl-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.ihps-wl-link__count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--ihps-accent); color: #fff; font-size: 12px; text-align: center; }

/* ------------------------------------------------------------------ */
/* Sticky buy bar (phones only)                                        */
/* ------------------------------------------------------------------ */

.ihps-sticky { display: none; }

@media (max-width: 767px) {
	.ihps-sticky {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 9999;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid var(--ihps-line);
		box-shadow: 0 -8px 24px -16px rgba(21, 33, 30, .4);
		transform: translateY(110%);
		transition: transform .25s;
	}
	.ihps-sticky[hidden] { display: none; }
	.ihps-sticky.is-visible { transform: none; }
	.ihps-sticky__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.ihps-sticky__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
	.ihps-sticky__price { font-size: 14px; color: var(--ihps-muted); }
	.ihps-sticky__btn {
		flex: none;
		padding: 12px 22px;
		border: 0;
		border-radius: 999px;
		background: var(--ihps-accent);
		color: #fff;
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
	}
	body.single-product { padding-bottom: 72px; }
}

/* ------------------------------------------------------------------ */
/* Premium skin for standard WooCommerce pages                         */
/* Scoped to body.ihps-premium so it can be switched off in settings.  */
/* ------------------------------------------------------------------ */

body.ihps-premium.woocommerce,
body.ihps-premium.woocommerce-page { background-color: var(--ihps-bg); color: var(--ihps-ink); }

.ihps-premium.woocommerce h1.product_title,
.ihps-premium.woocommerce-page h1.entry-title,
.ihps-premium.woocommerce-page .woocommerce-products-header__title {
	font-family: var(--ihps-serif);
	font-weight: 600;
	letter-spacing: -0.015em;
}

/* Shop, category and related-product grids (same borderless tiles as [ih_grid]) */
.ihps-premium ul.products {
	display: grid;
	grid-template-columns: repeat(var(--ihps-cols, 4), minmax(0, 1fr));
	gap: 32px 20px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}
.ihps-premium ul.products::before,
.ihps-premium ul.products::after { display: none; content: none; }

@media (max-width: 1100px) { .ihps-premium ul.products { grid-template-columns: repeat(min(var(--ihps-cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 639px)  { .ihps-premium ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

.ihps-premium ul.products li.product {
	position: relative;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	background: transparent;
	border: 0;
}
.ihps-premium ul.products li.product a img {
	display: block;
	width: 100%;
	margin: 0 0 12px;
	border-radius: var(--ihps-radius);
	aspect-ratio: var(--ihps-ratio, 1 / 1);
	object-fit: cover;
}
.ihps-premium ul.products li.product .woocommerce-loop-product__title {
	padding: 0 2px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ihps-ink);
}
.ihps-premium ul.products li.product .price { display: block; padding: 4px 2px 0; font-weight: 700; color: var(--ihps-ink); }
.ihps-premium ul.products li.product .price del { color: var(--ihps-muted); font-weight: 400; }
.ihps-premium ul.products li.product .price ins { background: transparent; color: var(--ihps-accent); text-decoration: none; }
.ihps-premium ul.products li.product .star-rating { margin: 4px 2px 0; color: var(--ihps-accent-2); }
.ihps-premium ul.products li.product .ihps-card__proof { padding: 2px 2px 0; }
.ihps-premium ul.products li.product .button {
	margin: 10px 0 0;
	padding: 9px 16px;
	border: 1.5px solid var(--ihps-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--ihps-accent);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}
.ihps-premium ul.products li.product .button:hover { background: var(--ihps-accent); color: #fff; }
.ihps-premium ul.products li.product .added_to_cart { display: block; margin: 8px 0 0; font-size: 13px; text-align: center; color: var(--ihps-accent); }
.ihps-badges-on ul.products li.product .onsale { display: none; }
.ihps-premium ul.products li.product .ihps-badges { inset-block-start: 10px; }

/* Single product */
.ihps-premium div.product div.images img { border-radius: var(--ihps-radius); }
.ihps-premium div.product p.price,
.ihps-premium div.product span.price { color: var(--ihps-ink); font-size: 1.6rem; font-weight: 700; }
.ihps-premium div.product p.price del { color: var(--ihps-muted); font-weight: 400; }
.ihps-premium div.product p.price ins { text-decoration: none; }
.ihps-premium div.product .woocommerce-product-details__short-description { color: var(--ihps-ink); line-height: 1.65; }
.ihps-premium div.product form.cart { margin-bottom: 14px; }
.ihps-premium div.product form.cart .single_add_to_cart_button {
	padding: 15px 34px;
	border: 0;
	border-radius: 999px;
	background: var(--ihps-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
}
.ihps-premium div.product form.cart .single_add_to_cart_button:hover { filter: brightness(1.12); }
.ihps-premium .woocommerce-tabs ul.tabs { padding-inline-start: 0; }
.ihps-premium .woocommerce-tabs ul.tabs li { border-radius: 999px 999px 0 0; }
.ihps-premium .woocommerce-tabs .panel { line-height: 1.7; }
.ihps-premium .related.products > h2,
.ihps-premium .upsells.products > h2 { font-family: var(--ihps-serif); font-weight: 600; }

/* Notices */
.ihps-premium .woocommerce-message,
.ihps-premium .woocommerce-info {
	border-top-color: var(--ihps-accent);
	background: #fff;
	border-radius: var(--ihps-radius);
}
.ihps-premium .woocommerce-message::before,
.ihps-premium .woocommerce-info::before { color: var(--ihps-accent); }

/* Cart and checkout */
.ihps-premium.woocommerce-cart table.cart,
.ihps-premium.woocommerce-checkout #order_review,
.ihps-premium .cart_totals {
	background: var(--ihps-card);
	border-radius: var(--ihps-radius);
}
.ihps-premium.woocommerce-checkout #customer_details input.input-text,
.ihps-premium.woocommerce-checkout #customer_details select,
.ihps-premium .woocommerce-cart-form input.qty {
	border: 1px solid var(--ihps-line);
	border-radius: 8px;
	padding: 11px 12px;
}
.ihps-premium .checkout-button,
.ihps-premium #place_order {
	padding: 16px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--ihps-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
}
.ihps-premium .checkout-button:hover,
.ihps-premium #place_order:hover { filter: brightness(1.12); color: #fff; }
.ihps-premium.woocommerce-cart .ihps-progress { max-width: 560px; margin-inline: auto; margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) {
	.ihps-card, .ihps-heart, .ihps-toast, .ihps-drawer__overlay, .ihps-drawer__panel,
	.ihps-sticky, .ihps-progress__track span, .ihps-card__img::after { transition: none; }
}
