/**
 * Makini Energy theme: the plugin's shop pages in the homepage's design.
 *
 * Loaded after the plugin's own stylesheet (makini-shop), only on pages that
 * use it. It changes appearance only: the plugin's markup, forms and scripts
 * are untouched. Every rule is scoped to body.makini-theme .makini-shop so
 * nothing applies if the plugin is used with another theme (the compare
 * tray, which the plugin adds outside .makini-shop, is the one exception).
 */

body.makini-theme {
	overflow-x: clip; /* Full-width page header bands below must not cause sideways scrolling. */
}

body.makini-theme .makini-shop {
	--mk-radius: 14px;
	--mk-shadow: 0 1px 2px rgba(16, 45, 37, 0.06), 0 8px 24px rgba(16, 45, 37, 0.08);
	--mk-leaf: #1e7b45;
	--mk-green-tint: #e8f5ec;
	--mk-heading: var(--wp--preset--font-family--heading, Outfit, Inter, system-ui, sans-serif);
	--mk-sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
}

/* Headings in the brand heading font ------------------------------- */

body.makini-theme .makini-shop :is(h1, h2, h3, h4),
body.makini-theme .makini-shop :is(.makini-shop__title, .makini-commerce__title, .makini-product__title, .makini-card__title, .makini-filters__title, .makini-fieldset legend, .makini-totals__grand) {
	font-family: var(--mk-heading);
	letter-spacing: -0.01em;
}

body.makini-theme .makini-shop :is(.makini-shop__title, .makini-commerce__title, .makini-product__title) {
	font-weight: 800;
	line-height: 1.08;
	color: var(--mk-forest);
}

body.makini-theme .makini-shop :is(.makini-shop__title, .makini-commerce__title) {
	font-size: clamp(2rem, 4.4vw, 3rem);
	margin: 0.25rem 0 0.5rem;
}

body.makini-theme .makini-shop .makini-product__title {
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

body.makini-theme .makini-shop :is(.makini-section h2, .makini-product__details h2) {
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
}

/* Buttons: 10 px corners like the homepage -------------------------- */

body.makini-theme .makini-shop .makini-button,
body.makini-theme .makini-shop .makini-linkbutton:not(.makini-linkbutton--plain) {
	border-radius: 10px;
}

body.makini-theme .makini-shop .makini-button--ghost {
	background: #fff;
	color: var(--mk-forest) !important;
}

body.makini-theme .makini-shop .makini-button--ghost:hover,
body.makini-theme .makini-shop .makini-button--ghost:focus-visible {
	background: var(--mk-green-tint);
	border-color: var(--mk-forest);
}

body.makini-theme .makini-shop :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) {
	border-radius: 10px;
}

/* Notices ------------------------------------------------------------ */

body.makini-theme .makini-shop .makini-notice {
	border-radius: 12px;
}

/* Shop and category: page header band ------------------------------- */

body.makini-theme .makini-shop .makini-shop__header {
	position: relative;
	isolation: isolate;
	padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.25rem, 3vw, 1.75rem);
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

body.makini-theme .makini-shop .makini-shop__header::before {
	content: "";
	position: absolute;
	inset: 0 calc(50% - 50vw);
	z-index: -1;
	background: linear-gradient(180deg, var(--mk-offwhite) 0%, #f7faf6 100%);
	border-bottom: 1px solid var(--mk-border);
}

body.makini-theme .makini-shop .makini-shop__intro {
	max-width: 46rem;
	color: var(--mk-muted);
	font-size: 1.0625rem;
}

body.makini-theme .makini-shop .makini-search input {
	background: #fff;
}

/* The header already has product search; on phones and tablets it sits just
   above this one, so this copy is hidden there. */
@media (max-width: 1199px) {
	body.makini-theme .makini-shop .makini-shop__header .makini-search {
		display: none;
	}
}

body.makini-theme .makini-shop .makini-chip {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	font-weight: 600;
}

body.makini-theme .makini-shop .makini-chip:not(.is-current):hover {
	background: var(--mk-green-tint);
}

/* Breadcrumbs sit inside the band's top on shop pages. */
body.makini-theme .makini-shop .makini-breadcrumbs {
	font-size: 0.875rem;
}

/* Filters ------------------------------------------------------------ */

@media (min-width: 1024px) {
	body.makini-theme .makini-shop .makini-filters {
		border-radius: var(--mk-radius);
		background: #fff;
	}
}

body.makini-theme .makini-shop .makini-filters__title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--mk-forest);
}

body.makini-theme .makini-shop .makini-filter legend,
body.makini-theme .makini-shop .makini-filter > h3 {
	font-family: var(--mk-heading);
	font-weight: 700;
	color: var(--mk-forest);
}

/* Product cards: like the homepage kit cards ------------------------ */

body.makini-theme .makini-shop .makini-card {
	padding: 0.75rem;
	gap: 0.35rem;
	border-radius: var(--mk-radius);
	box-sizing: border-box;
}

body.makini-theme .makini-shop .makini-card:hover {
	transform: none;
	box-shadow: var(--mk-shadow);
}

body.makini-theme .makini-shop .makini-card__media {
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
}

body.makini-theme .makini-shop .makini-card__body {
	padding: 0.5rem 0.15rem 0;
}

body.makini-theme .makini-shop .makini-card__footer {
	padding-left: 0.15rem;
	padding-right: 0.15rem;
	padding-bottom: 0.1rem;
}

body.makini-theme .makini-shop .makini-card__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

body.makini-theme .makini-shop .makini-card__title a {
	color: var(--mk-forest);
}

body.makini-theme .makini-shop .makini-card__title a:hover {
	color: var(--mk-leaf);
}

body.makini-theme .makini-shop .makini-price__current {
	font-weight: 800;
	color: var(--mk-forest);
}

body.makini-theme .makini-shop .makini-price--sale .makini-price__current {
	color: #b3261e;
}

/* Demo badge: same look as on the homepage. */
body.makini-theme .makini-shop .makini-badge--demo {
	background: #fff3cd;
	color: #6b4e00;
	border-color: transparent;
}

/* Product page ------------------------------------------------------ */

body.makini-theme .makini-shop .makini-gallery__main {
	border-radius: var(--mk-radius);
	overflow: hidden;
}

body.makini-theme .makini-shop .makini-gallery__thumb {
	border-radius: 10px;
}

body.makini-theme .makini-shop .makini-product__buy {
	border-radius: var(--mk-radius);
}

body.makini-theme .makini-shop .makini-product__buy .makini-price__current {
	font-size: clamp(1.75rem, 3vw, 2.125rem);
}

body.makini-theme .makini-shop .makini-product__assurances .makini-icon,
body.makini-theme .makini-shop .makini-product__assurances svg {
	color: var(--mk-leaf);
}

body.makini-theme .makini-shop .makini-spec-table {
	border-radius: 12px;
	overflow: hidden;
}

/* Comparison ---------------------------------------------------------- */

body.makini-theme .makini-shop .makini-compare__scroll {
	border: 1px solid var(--mk-border);
	border-radius: var(--mk-radius);
}

body.makini-theme .makini-shop .makini-compare__product {
	font-family: var(--mk-heading);
}

body.makini-theme .makini-shop .makini-empty-state {
	border-radius: var(--mk-radius);
	background: var(--mk-offwhite);
	border-style: solid;
}

/* Cart and checkout -------------------------------------------------- */

body.makini-theme .makini-shop.makini-commerce .makini-commerce__title {
	margin-top: clamp(1rem, 3vw, 1.75rem);
}

/* Cart lines in a card, like the summary beside them. */
body.makini-theme .makini-shop .makini-cart__lines {
	margin: 0 0 1rem;
	padding: 0.25rem 1rem;
	border: 1px solid var(--mk-border);
	border-radius: var(--mk-radius);
	background: #fff;
	list-style: none;
}

body.makini-theme .makini-shop .makini-cart__line:last-child {
	border-bottom: 0;
}

body.makini-theme .makini-shop .makini-cart__image img,
body.makini-theme .makini-shop .makini-cart__image {
	border-radius: 10px;
}

body.makini-theme .makini-shop .makini-cart__name {
	font-family: var(--mk-heading);
	font-weight: 700;
}

body.makini-theme .makini-shop .makini-cart__name a {
	color: var(--mk-forest);
	text-decoration: none;
}

body.makini-theme .makini-shop .makini-cart__name a:hover {
	color: var(--mk-leaf);
	text-decoration: underline;
}

body.makini-theme .makini-shop .makini-commerce__summary > * {
	border-radius: var(--mk-radius);
}

body.makini-theme .makini-shop .makini-commerce__summary h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--mk-forest);
}

body.makini-theme .makini-shop .makini-totals__grand {
	color: var(--mk-forest);
	font-weight: 800;
}

@media (min-width: 900px) {
	/* The order summary stays in view below the sticky header. */
	body.makini-theme .makini-shop .makini-commerce__summary {
		position: sticky;
		top: var(--mk-sticky-top);
		align-self: start;
	}
}

/* Checkout sections as cards with a heading inside (not on the border). */
body.makini-theme .makini-shop .makini-fieldset {
	padding: clamp(1rem, 3vw, 1.5rem);
	border-radius: var(--mk-radius);
}

body.makini-theme .makini-shop .makini-fieldset > legend {
	float: left;
	width: 100%;
	margin: 0 0 0.75rem;
	padding: 0;
	font-size: 1.1875rem;
	font-weight: 700;
	color: var(--mk-forest);
}

body.makini-theme .makini-shop .makini-fieldset > legend + * {
	clear: both;
}

body.makini-theme .makini-shop .makini-choice__option {
	border-radius: 12px;
}

body.makini-theme .makini-shop .makini-secure {
	color: var(--mk-muted);
}

/* Order page (after payment) --------------------------------------- */

body.makini-theme .makini-shop .makini-order__eyebrow {
	display: inline-block;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	background: var(--mk-green-tint);
	color: var(--mk-forest);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}

/* Section spacing above the footer ---------------------------------- */

body.makini-theme .makini-main {
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Compare tray: "Clear" is a text button; give it a comfortable tap area. */
body.makini-theme .makini-compare-tray .makini-compare-clear {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 0.5rem;
}

/* Customer pages (Ask Makini, packages, quotations, account, tracking) */

/* Package price and buttons as one card, like the kit cards on the homepage. */
body.makini-theme .makini-shop .makini-package__buy {
	padding: 1.25rem;
	border-radius: var(--mk-radius);
	background: var(--mk-offwhite, #f2f5f1);
}

body.makini-theme .makini-shop .makini-package__buy .makini-button {
	min-width: min(100%, 320px);
}

/* Package cards: lift on hover like the homepage kit cards. */
body.makini-theme .makini-shop .makini-packages .makini-option {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
	body.makini-theme .makini-shop .makini-packages .makini-option:hover {
		box-shadow: var(--mk-shadow);
		transform: translateY(-2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.makini-theme .makini-shop .makini-packages .makini-option {
		transition: none;
	}
}

/* Track Your Order and the newsletter page sit in a soft panel. */
body.makini-theme .makini-shop .makini-track__card {
	background: var(--mk-offwhite, #f2f5f1);
	border-color: transparent;
}

/* Signed-out account page: keep the short text to a readable width. */
body.makini-theme .makini-shop.makini-account > p {
	max-width: 640px;
}
