/*
Theme Name: Medistore Theme
Theme URI: https://medistore.se
Author: Medistore
Description: Modern classic WooCommerce-ready theme for Medistore.
Version: 0.2.43
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: medistore-theme
*/

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/brand/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/brand/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--medistore-background: #ffffff;
	--medistore-surface: #f6f8fa;
	--medistore-surface-strong: #ffffff;
	--medistore-surface-dark: #17212b;
	--medistore-heading: #17212b;
	--medistore-text: #17212b;
	--medistore-muted: #66727d;
	--medistore-border: #e3e8ec;
	--medistore-accent: #176b87;
	--medistore-accent-dark: #145a73;
	--medistore-accent-soft: rgba(23, 107, 135, 0.1);
	--medistore-highlight: #4e9f78;
	--medistore-highlight-soft: rgba(78, 159, 120, 0.12);
	--medistore-status: #2e9b68;
	--medistore-max-width: 1440px;
	--medistore-shadow: 0 24px 60px rgba(23, 33, 43, 0.08);
	--medistore-shadow-strong: 0 32px 84px rgba(23, 33, 43, 0.14);
	--medistore-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--medistore-font-heading: var(--medistore-font-body);
	--medistore-font-size-base: 16px;
	--medistore-line-height-base: 1.5;
	--medistore-space-1: 4px;
	--medistore-space-2: 8px;
	--medistore-space-3: 12px;
	--medistore-space-4: 16px;
	--medistore-space-6: 24px;
	--medistore-space-8: 32px;
	--medistore-radius-sm: 6px;
	--medistore-radius-md: 8px;
	--medistore-radius-lg: 12px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	margin: 0;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--medistore-font-body);
	font-size: var(--medistore-font-size-base);
	color: var(--medistore-text);
	line-height: var(--medistore-line-height-base);
	background: var(--medistore-background);
}

a {
	color: var(--medistore-accent-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus {
	color: var(--medistore-accent);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.65em;
	font-family: var(--medistore-font-heading);
	line-height: 1.08;
	color: var(--medistore-heading);
	text-wrap: balance;
}

p,
ul,
ol,
dl,
blockquote,
figure,
table {
	margin: 0 0 1rem;
}

button,
input,
select,
textarea {
	font: inherit;
}

.site-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-header,
.site-main,
.site-footer {
	width: min(calc(100% - 2rem), var(--medistore-max-width));
	margin: 0 auto;
}

.site-header {
	position: relative;
	z-index: 40;
	padding: 0;
}

.site-header__announcement {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--medistore-space-4);
	padding: var(--medistore-space-2) var(--medistore-space-4);
	border: 1px solid var(--medistore-border);
	border-bottom: 0;
	border-radius: var(--medistore-radius-lg) var(--medistore-radius-lg) 0 0;
	background: var(--medistore-surface);
	color: var(--medistore-muted);
	font-size: 0.875rem;
}

.site-header__announcement p {
	margin: 0;
}

.site-header__announcement-link {
	display: inline-flex;
	align-items: center;
	gap: var(--medistore-space-1);
	color: var(--medistore-accent-dark);
	font-weight: 600;
	text-decoration: none;
}

.site-header__announcement-link svg,
.site-header__cta svg {
	width: 1rem;
	height: 1rem;
}

.site-header__main {
	position: relative;
	z-index: 40;
	display: grid;
	grid-template-columns: minmax(140px, 200px) minmax(320px, 1fr) auto;
	gap: var(--medistore-space-6);
	align-items: center;
	padding: var(--medistore-space-4);
	background: var(--medistore-surface-strong);
	border: 1px solid var(--medistore-border);
	border-top: 0;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-width: 0;
}

.site-branding__logo {
	min-width: 0;
	max-width: 100%;
}

.site-branding__logo .custom-logo {
	width: 200px;
	max-height: 4rem;
	object-fit: contain;
	object-position: left center;
}

.site-branding__logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	text-decoration: none;
}

.site-branding__fallback-logo {
	width: 3.4rem;
	height: 3.4rem;
	object-fit: contain;
}

.site-branding__text {
	min-width: 0;
}

.site-title {
	margin: 0;
	font-size: clamp(1.85rem, 3vw, 2.75rem);
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-description {
	margin: 0;
	color: var(--medistore-muted);
	font-size: 0.98rem;
	max-width: 26rem;
}

.site-header__search {
	min-width: 0;
}

.site-search {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "input button";
	align-items: center;
	gap: var(--medistore-space-1);
	padding: var(--medistore-space-1);
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-sm);
	background: var(--medistore-surface);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-search:focus-within {
	border-color: rgba(23, 107, 135, 0.42);
	box-shadow:
		0 0 0 4px rgba(23, 107, 135, 0.11),
		inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-search__button {
	grid-area: button;
	min-height: 44px;
}

.site-search__button svg {
	width: 1.25rem;
	height: 1.25rem;
	flex: 0 0 1.25rem;
}

.site-search__field {
	min-width: 0;
	flex: 1;
	border: 0;
	padding: var(--medistore-space-2) var(--medistore-space-3);
	background: transparent;
	color: var(--medistore-text);
}

.site-search__field::placeholder {
	color: var(--medistore-muted);
}

.site-search__field:focus {
	outline: none;
}

.site-header__actions {
	display: flex;
	gap: var(--medistore-space-4);
	align-items: stretch;
}

.site-action {
	position: relative;
	display: flex;
	min-width: 3.5rem;
	flex-direction: column;
	align-items: center;
	gap: var(--medistore-space-1);
	padding: var(--medistore-space-2);
	border: 0;
	border-radius: var(--medistore-radius-md);
	background: var(--medistore-surface-strong);
	text-decoration: none;
	font-size: 0.875rem;
}

.site-action__icon {
	width: 1.35rem;
	height: 1.35rem;
	flex: 0 0 auto;
	color: var(--medistore-accent-dark);
}

.site-action__copy {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.site-action__eyebrow,
.section-eyebrow,
.site-footer__eyebrow,
.category-card__eyebrow {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--medistore-muted);
}

.site-action__label {
	font-weight: 700;
	line-height: 1.25;
	color: var(--medistore-heading);
}

.site-action__count {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	display: inline-flex;
	min-width: 1.2rem;
	height: 1.2rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--medistore-status);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 700;
}

.site-header__nav-row {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: var(--medistore-space-2) var(--medistore-space-4);
	border: 1px solid var(--medistore-border);
	border-top: 0;
	border-radius: 0 0 var(--medistore-radius-lg) var(--medistore-radius-lg);
	background: var(--medistore-accent-dark);
}

.site-header__nav-row .site-menu a {
	color: #ffffff;
}

.site-header__nav-row .site-menu a:hover,
.site-header__nav-row .site-menu a:focus {
	background: rgba(255, 255, 255, 0.15);
	color: var(--medistore-surface-strong);
}

.site-header__nav-row .site-menu a:focus-visible {
	outline-color: var(--medistore-surface-strong);
}

.site-navigation {
	flex: 1 1 auto;
	min-width: 0;
}

.site-navigation__toggle {
	display: none;
}

.site-navigation__toggle,
.site-navigation__categories-toggle {
	align-items: center;
	gap: var(--medistore-space-2);
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-md);
	background: var(--medistore-surface-strong);
	color: var(--medistore-heading);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	list-style: none;
}

.site-navigation__toggle::-webkit-details-marker,
.site-navigation__categories-toggle::-webkit-details-marker {
	display: none;
}

.site-navigation__toggle svg,
.site-navigation__categories-toggle > svg:first-child {
	width: 1.25rem;
	height: 1.25rem;
	flex: 0 0 auto;
}

.site-navigation__panel {
	display: flex;
	align-items: center;
	gap: var(--medistore-space-2);
	flex-wrap: wrap;
}

.site-navigation__panel[hidden] {
	display: none;
}

.site-navigation__categories {
	position: static;
}

.site-navigation__categories-toggle {
	display: inline-flex;
	padding: var(--medistore-space-2) var(--medistore-space-3);
}

.site-navigation__categories-toggle:hover,
.site-navigation__categories-toggle:focus-visible,
.site-navigation__toggle:hover,
.site-navigation__toggle:focus-visible {
	border-color: rgba(23, 107, 135, 0.38);
	background: var(--medistore-surface-strong);
	color: var(--medistore-accent-dark);
}

.site-navigation__chevron {
	width: 1rem;
	height: 1rem;
	margin-left: var(--medistore-space-1);
	transition: transform 160ms ease;
}

.site-navigation__categories[open] .site-navigation__chevron {
	transform: rotate(180deg);
}

.site-navigation__mega {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	z-index: 30;
	display: none;
	grid-template-columns: 11rem minmax(0, 1fr);
	gap: var(--medistore-space-4);
	width: 100%;
	max-height: calc(100dvh - 12rem);
	overflow: auto;
	padding: var(--medistore-space-4);
	border: 1px solid var(--medistore-border);
	border-top: 0;
	border-radius: 0 0 var(--medistore-radius-lg) var(--medistore-radius-lg);
	background: var(--medistore-surface-strong);
	box-shadow: var(--medistore-shadow-strong);
}

.site-navigation__categories[open] > .site-navigation__mega {
	display: grid;
}

.site-navigation__overview {
	padding: var(--medistore-space-3);
	border-radius: var(--medistore-radius-sm);
	background: var(--medistore-surface);
}

.site-navigation__overview a,
.site-navigation__all {
	display: block;
	color: var(--medistore-accent-dark);
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
}

.site-navigation__overview p {
	font-size: 0.8125rem;
}

.site-navigation__overview img {
	width: 100%;
	aspect-ratio: 1.4;
	object-fit: cover;
	border-radius: var(--medistore-radius-sm);
}

.site-navigation__all {
	margin-top: var(--medistore-space-3);
}

.site-navigation__group-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--medistore-space-2);
}

.site-navigation__group-heading h3 a {
	display: flex;
	align-items: center;
	gap: var(--medistore-space-2);
}

.site-navigation__category-icon {
	width: 1.25rem;
	height: 1.25rem;
	flex: 0 0 1.25rem;
	color: var(--medistore-accent-dark);
}

.site-navigation__expand:not([hidden]) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-sm);
	background: var(--medistore-surface);
	color: var(--medistore-accent-dark);
	cursor: pointer;
}

.site-navigation__expand[aria-expanded="true"] span {
	transform: rotate(180deg);
}

.site-navigation__mobile-overview,
.site-navigation__close {
	display: none;
}

.site-navigation__mega-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: var(--medistore-space-4);
}

.site-navigation__mega-group {
	min-width: 0;
	padding-left: var(--medistore-space-3);
	border-left: 1px solid var(--medistore-border);
	overflow-wrap: anywhere;
}

.site-navigation__mega-group h3 {
	margin: 0 0 var(--medistore-space-2);
	font-family: var(--medistore-font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.35;
}

.site-navigation__mega-group h3 a {
	color: var(--medistore-heading);
	text-decoration: none;
}

.site-navigation__mega-group ul {
	display: grid;
	gap: var(--medistore-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-navigation__mega-group li a {
	display: block;
	padding: var(--medistore-space-1) 0;
	border-radius: var(--medistore-radius-sm);
	color: var(--medistore-muted);
	font-size: 0.8125rem;
	line-height: 1.4;
	text-decoration: none;
}

.site-navigation__mega-group a:hover,
.site-navigation__mega-group a:focus-visible,
.site-navigation__overview a:hover,
.site-navigation__overview a:focus-visible {
	color: var(--medistore-accent-dark);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.site-navigation__mega-group li a:hover,
.site-navigation__mega-group li a:focus-visible {
	background: var(--medistore-surface);
}

.site-navigation :focus-visible,
.site-header__announcement-link:focus-visible,
.site-header__cta:focus-visible,
.site-action:focus-visible {
	outline: 2px solid var(--medistore-accent);
	outline-offset: 2px;
}

.site-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 0.95rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-menu a {
	display: inline-flex;
	align-items: center;
	padding: var(--medistore-space-2) var(--medistore-space-3);
	border-radius: var(--medistore-radius-md);
	text-decoration: none;
	font-weight: 600;
	color: var(--medistore-heading);
}

.site-menu a:hover,
.site-menu a:focus {
	background: var(--medistore-accent-soft);
	color: var(--medistore-accent-dark);
}

.site-main {
	padding: 2rem 0 4rem;
}

.site-main--front {
	padding-top: var(--medistore-space-4);
}

.site-main--listing {
	display: grid;
	gap: 1.5rem;
}

.site-main--commerce,
.site-main--account {
	padding-top: 1.5rem;
}

.button-link,
.site-search__button,
.site-header__cta,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--medistore-space-2);
	padding: var(--medistore-space-3) var(--medistore-space-4);
	border: 1px solid transparent;
	border-radius: var(--medistore-radius-md);
	background: var(--medistore-accent);
	color: #ffffff;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button-link:hover,
.button-link:focus,
.site-search__button:hover,
.site-search__button:focus,
.site-header__cta:hover,
.site-header__cta:focus,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	transform: translateY(-1px);
	background: var(--medistore-accent-dark);
	color: #ffffff;
	box-shadow: 0 16px 28px rgba(23, 33, 43, 0.14);
}

.button-link--secondary {
	border-color: var(--medistore-border);
	background: transparent;
	color: var(--medistore-heading);
	box-shadow: none;
}

.button-link--secondary:hover,
.button-link--secondary:focus {
	background: var(--medistore-surface-strong);
	color: var(--medistore-accent-dark);
	box-shadow: none;
}

.site-search__button,
.site-header__cta {
	white-space: nowrap;
}

.hero-surface,
.catalog-hero,
.entry-card,
.entry-single,
.entry-page,
.page-shell,
.commerce-shell--surface,
.commerce-shell--catalog,
.archive-header,
.account-shell,
.empty-state {
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-lg);
	background: var(--medistore-surface);
	box-shadow: var(--medistore-shadow);
}

.hero-surface {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
	gap: 1.5rem;
	padding: 2rem;
	background:
		radial-gradient(circle at top right, var(--medistore-highlight-soft), transparent 28%),
		linear-gradient(135deg, var(--medistore-surface-strong), var(--medistore-surface));
}

.hero-surface::after {
	content: "";
	position: absolute;
	inset: auto -5% -30% 40%;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--medistore-accent-soft), transparent 68%);
	pointer-events: none;
}

.hero-surface__content,
.hero-surface__panel {
	position: relative;
	z-index: 1;
}

.hero-surface__title {
	font-size: clamp(2.6rem, 5vw, 4.8rem);
	margin-bottom: 0.4rem;
}

.hero-surface__description,
.catalog-hero__description,
.archive-header__description,
.account-hero__description,
.page-content,
.entry-content {
	color: var(--medistore-muted);
	font-size: 1.02rem;
}

.hero-surface__description {
	max-width: 42rem;
}

.hero-surface__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.5rem;
}

.hero-surface__panel {
	padding: 1.35rem;
	border-radius: var(--medistore-radius-lg);
	background: var(--medistore-surface-dark);
	box-shadow: var(--medistore-shadow-strong);
	color: #ffffff;
}

.hero-surface__panel-title {
	margin-bottom: 0.85rem;
	color: #ffffff;
	font-size: 1.3rem;
}

.hero-surface__panel .site-search {
	background: rgba(255, 255, 255, 0.96);
	border-color: rgba(255, 255, 255, 0.18);
}

.hero-stats {
	display: grid;
	gap: 0.9rem;
	margin: 1.25rem 0 0;
}

.hero-stats div {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 0.8rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats dt {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.76);
}

.hero-stats dd {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 700;
	color: #ffffff;
}

.catalog-section,
.page-shell--front {
	margin-top: 2rem;
}

.catalog-hero,
.archive-header,
.account-hero {
	display: grid;
	gap: 1rem;
	padding: 1.65rem;
	background: linear-gradient(135deg, var(--medistore-surface-strong), var(--medistore-surface));
}

.catalog-hero {
	grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
	margin-bottom: 1.5rem;
}

.catalog-hero__note {
	padding: 1rem 1.1rem;
	border-radius: var(--medistore-radius-md);
	background: var(--medistore-accent-soft);
	color: var(--medistore-accent-dark);
	font-weight: 600;
}

.archive-header--blog {
	padding: 1.5rem;
}

.content-grid,
.category-grid {
	display: grid;
	gap: 1.25rem;
}

.content-grid {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-grid {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-card {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-lg);
	background: var(--medistore-surface-strong);
	text-decoration: none;
	box-shadow: var(--medistore-shadow);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover,
.category-card:focus {
	transform: translateY(-4px);
	border-color: rgba(23, 107, 135, 0.28);
	box-shadow: var(--medistore-shadow-strong);
}

.category-card__media {
	aspect-ratio: 1.05 / 1;
	overflow: hidden;
	background: linear-gradient(160deg, var(--medistore-accent-soft), var(--medistore-surface-strong));
}

.category-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.category-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-family: var(--medistore-font-heading);
	font-size: 3.4rem;
	color: rgba(21, 35, 31, 0.45);
}

.category-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.2rem;
}

.category-card__title {
	font-family: var(--medistore-font-heading);
	font-size: 1.55rem;
	line-height: 1.05;
	color: var(--medistore-heading);
	text-wrap: balance;
}

.category-card__description {
	color: var(--medistore-muted);
}

.category-directory {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: var(--medistore-space-4);
	align-items: start;
}

.category-directory__group {
	min-width: 0;
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-md);
	overflow: hidden;
}

.category-directory .category-card {
	min-height: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.category-directory .category-card__media {
	aspect-ratio: 2;
}

.category-directory .category-card__description,
.category-grid--children .category-card__description,
.category-grid--children .category-card__eyebrow {
	display: none;
}

.category-directory__branch {
	padding: var(--medistore-space-3);
	border-top: 1px solid var(--medistore-border);
}

.category-tree {
	margin: var(--medistore-space-2) 0;
	padding-left: var(--medistore-space-3);
	list-style: none;
}

.category-tree li {
	margin: var(--medistore-space-2) 0;
}

.category-tree a,
.category-directory summary {
	display: block;
	padding: var(--medistore-space-2) 0;
	overflow-wrap: anywhere;
}

.category-directory summary {
	display: list-item;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 600;
}

.category-directory summary:focus-visible {
	outline: 2px solid var(--medistore-accent);
	outline-offset: 3px;
}

.category-hero {
	display: grid;
	gap: var(--medistore-space-6);
	margin-bottom: var(--medistore-space-6);
	padding: var(--medistore-space-4);
	border-radius: var(--medistore-radius-md);
	background: var(--medistore-surface);
}

.category-hero--pictured {
	grid-template-columns: minmax(0, 1fr) minmax(8rem, 22%);
}

.category-hero > div {
	min-width: 0;
	overflow-wrap: anywhere;
}

.category-hero img {
	width: 100%;
	max-height: 14rem;
	object-fit: contain;
}

.category-children {
	margin-bottom: var(--medistore-space-6);
}

.category-grid--children {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
	gap: var(--medistore-space-3);
}

.category-grid--children .category-card__media {
	aspect-ratio: 1.4;
}

.category-grid--children .category-card__body {
	padding: var(--medistore-space-3);
}

.category-grid--children .category-card__title {
	font-size: 0.9375rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.category-grid--children .category-card__meta {
	padding: 0;
	background: transparent;
	font-size: 0.75rem;
	white-space: normal;
}

@media (max-width: 560px) {
	.category-hero--pictured {
		grid-template-columns: minmax(0, 1fr);
	}
}

.category-card__meta {
	display: inline-flex;
	align-self: flex-start;
	margin-top: auto;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	background: var(--medistore-accent-soft);
	color: var(--medistore-accent-dark);
	font-weight: 700;
	font-size: 0.9rem;
}

.entry-card,
.entry-single,
.entry-page,
.page-shell,
.commerce-shell--surface,
.commerce-shell--catalog,
.account-shell,
.empty-state {
	padding: 1.65rem;
}

.page-shell--narrow {
	width: min(100%, 760px);
	margin: 0 auto;
	display: grid;
	gap: 1.25rem;
}

.page-shell--checkout {
	width: min(100%, 1160px);
	margin: 0 auto;
}
.page-shell--checkout .page-shell__content form.checkout #customer_details {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.page-shell--checkout .page-shell__content form.checkout .col2-set .col-1,
.page-shell--checkout .page-shell__content form.checkout .col2-set .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.page-shell--checkout .page-shell__content > .woocommerce {
	width: 100%;
	max-width: none;
	margin: 0;
}

.commerce-shell {
	width: min(100%, var(--medistore-max-width));
	margin: 0 auto;
}

.commerce-shell--product,
.commerce-shell--catalog {
	width: min(100%, var(--medistore-max-width));
}

.commerce-shell--cart {
	width: min(100%, 1180px);
}

.commerce-shell--checkout {
	width: min(100%, 1160px);
}

.commerce-shell--checkout > .woocommerce {
	width: 100%;
	max-width: none;
	margin: 0;
}

.page-shell__header {
	margin-bottom: 1rem;
}

.page-shell__content > *:first-child,
.entry-content > *:first-child,
.woocommerce > *:first-child {
	margin-top: 0;
}

.page-shell__content > *:last-child,
.entry-content > *:last-child,
.page-content > *:last-child {
	margin-bottom: 0;
}

.page-content h2,
.page-content h3,
.entry-content h2,
.entry-content h3 {
	margin-top: 1.6rem;
}

.page-content ul,
.page-content ol,
.entry-content ul,
.entry-content ol {
	padding-left: 1.25rem;
}

.page-content blockquote,
.entry-content blockquote {
	padding: 1rem 1.2rem;
	border-left: 4px solid var(--medistore-accent);
	border-radius: 0 1rem 1rem 0;
	background: rgba(17, 119, 111, 0.08);
	color: var(--medistore-heading);
}

.page-title,
.entry-title {
	margin-top: 0;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-meta {
	margin-bottom: 1rem;
	font-size: 0.92rem;
	color: var(--medistore-muted);
}

.empty-state {
	justify-items: center;
	gap: 0.85rem;
	text-align: center;
	border-style: dashed;
}

.account-hero {
	grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.account-hero__panel {
	padding: 1.2rem;
	border: 1px solid var(--medistore-border);
	border-radius: 1.2rem;
	background: var(--medistore-surface-strong);
}

.account-benefits {
	margin: 0;
	padding-left: 1.15rem;
	color: var(--medistore-muted);
}

.account-benefits li + li {
	margin-top: 0.45rem;
}

.page-shell__search {
	padding: 1.25rem;
	border: 1px solid var(--medistore-border);
	border-radius: 1.25rem;
	background: var(--medistore-surface);
	box-shadow: var(--medistore-shadow);
}

.site-footer {
	margin-top: auto;
	padding: 2.25rem 0 2rem;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(220px, 0.9fr));
	gap: 1.5rem;
	padding: 1.6rem;
	border-radius: var(--medistore-radius-lg) var(--medistore-radius-lg) var(--medistore-radius-md) var(--medistore-radius-md);
	background: var(--medistore-surface-dark);
	box-shadow: var(--medistore-shadow-strong);
}

.site-footer__title,
.site-footer__heading {
	margin-bottom: 0.6rem;
	color: #ffffff;
}

.site-footer__text,
.site-footer__nav-group a {
	color: rgba(255, 255, 255, 0.78);
}

.footer-menu {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	text-decoration: none;
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.35rem 0;
	color: var(--medistore-muted);
	font-size: 0.92rem;
}

.commerce-shell--catalog {
	padding: 1.8rem;
}

.woocommerce-breadcrumb {
	overflow-wrap: anywhere;
}

.woocommerce .woocommerce-breadcrumb {
	margin: 0 0 1rem;
	color: var(--medistore-muted);
}

.woocommerce .woocommerce-result-count,
.woocommerce .commerce-shell--shop .shop-result-count,
.woocommerce .woocommerce-ordering {
	margin: 0 0 1.35rem;
	color: var(--medistore-muted);
}

.woocommerce .woocommerce-ordering select,
.woocommerce .quantity input.qty,
.woocommerce-cart table.cart td.actions .input-text,
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .password-input input {
	width: 100%;
	padding: var(--medistore-space-2) var(--medistore-space-3);
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-md);
	background: var(--medistore-surface-strong);
	color: var(--medistore-text);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.woocommerce .woocommerce-ordering select {
	width: auto;
	min-width: 240px;
	padding-right: 2.5rem;
	border-radius: var(--medistore-radius-md);
}

.woocommerce .woocommerce-ordering select:focus,
.woocommerce .quantity input.qty:focus,
.woocommerce-cart table.cart td.actions .input-text:focus,
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .password-input input:focus {
	outline: 2px solid rgba(23, 107, 135, 0.14);
	outline-offset: 1px;
	border-color: rgba(23, 107, 135, 0.42);
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

/* WooCommerce's float clearfix must not become empty CSS grid items. */
.home-products .woocommerce ul.products::before,
.home-products .woocommerce ul.products::after,
.commerce-shell--catalog.woocommerce ul.products::before,
.commerce-shell--catalog.woocommerce ul.products::after,
.commerce-shell--category ul.products::before,
.commerce-shell--category ul.products::after {
	content: none;
	display: none;
}

.woocommerce ul.products li.product {
	width: auto;
	float: none;
	margin: 0;
	display: flex;
	min-height: 100%;
	flex-direction: column;
	gap: 0.9rem;
	padding: 1rem;
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-lg);
	background: var(--medistore-surface-strong);
	box-shadow: var(--medistore-shadow);
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	border-color: rgba(23, 107, 135, 0.26);
	box-shadow: var(--medistore-shadow-strong);
}

.woocommerce ul.products li.product a:not(.button):not(.added_to_cart) {
	color: inherit;
	text-decoration: none;
}

.woocommerce ul.products li.product img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 1rem;
	background: linear-gradient(160deg, rgba(17, 119, 111, 0.12), rgba(255, 255, 255, 0.96));
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	font-family: var(--medistore-font-heading);
	font-size: clamp(1.05rem, 1.4vw, 1.35rem);
	line-height: 1.14;
	word-break: break-word;
	text-wrap: balance;
	min-height: 3.45rem;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--medistore-accent-dark);
	font-weight: 700;
}

.woocommerce ul.products li.product .button {
	margin-top: auto;
	align-self: flex-start;
}

.woocommerce ul.products li.product .stock {
	display: inline-flex;
	align-self: flex-start;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 700;
}

.woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
	gap: 1.8rem 2rem;
	align-items: start;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .up-sells,
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary,
.woocommerce div.product .woocommerce-notices-wrapper {
	grid-column: auto;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .up-sells {
	grid-column: 1 / -1;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	width: auto;
	float: none;
	margin: 0;
}

.woocommerce div.product div.images img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 1.2rem;
	background: linear-gradient(160deg, rgba(17, 119, 111, 0.12), rgba(255, 255, 255, 0.96));
}

.woocommerce div.product .summary {
	display: grid;
	gap: 1rem;
	align-content: start;
	padding: 1.5rem;
	border: 1px solid var(--medistore-border);
	border-radius: 1.25rem;
	background: var(--medistore-surface-strong);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.woocommerce div.product .product_title {
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.7rem);
	line-height: 1.05;
}

.woocommerce div.product .summary .price {
	font-size: 1.25rem;
}

.woocommerce div.product .summary > p,
.woocommerce div.product .summary > div,
.woocommerce div.product .summary > form {
	margin: 0;
}

.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .product_meta {
	color: var(--medistore-muted);
}

.woocommerce div.product .product_meta {
	display: grid;
	gap: 0.35rem;
	font-size: 0.95rem;
}

.woocommerce div.product .stock,
.woocommerce ul.products li.product .stock {
	color: var(--medistore-muted);
	border: 1px solid var(--medistore-border);
	background: rgba(255, 255, 255, 0.94);
}

.woocommerce div.product .stock {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	font-weight: 700;
}

.woocommerce div.product .stock.out-of-stock,
.woocommerce ul.products li.product .stock.out-of-stock {
	color: #8b2c2c;
	border-color: rgba(139, 44, 44, 0.22);
	background: rgba(139, 44, 44, 0.08);
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.woocommerce div.product .woocommerce-tabs {
	margin-top: 0.25rem;
	padding: 1.25rem;
	border: 1px solid var(--medistore-border);
	border-radius: 1.25rem;
	background: var(--medistore-surface-strong);
	box-shadow: var(--medistore-shadow);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 0;
	margin: 0 0 1rem;
	border-bottom: 0;
	list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	border-radius: 0;
	float: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: inline-flex;
	padding: 0.72rem 1rem;
	border: 1px solid var(--medistore-border);
	border-radius: 999px;
	background: var(--medistore-surface);
	color: var(--medistore-heading);
	font-weight: 700;
	text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	border-color: var(--medistore-accent);
	background: var(--medistore-accent);
	color: #ffffff;
}

.woocommerce div.product .related,
.woocommerce div.product .up-sells {
	padding-top: 0.6rem;
}

.woocommerce div.product .related > h2,
.woocommerce div.product .up-sells > h2 {
	margin-bottom: 1rem;
}

.woocommerce div.product .related ul.products,
.woocommerce div.product .up-sells ul.products {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.woocommerce nav.woocommerce-pagination {
	margin-top: 2rem;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.7rem;
	padding: 0;
	margin: 0;
	border: 0;
	list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
	margin: 0;
	padding: 0;
	float: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: inline-flex;
	min-width: 2.75rem;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 0.95rem;
	border: 1px solid var(--medistore-border);
	border-radius: 999px;
	background: var(--medistore-surface-strong);
	color: var(--medistore-text);
	text-decoration: none;
	line-height: 1;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	border-color: var(--medistore-accent);
	background: var(--medistore-accent);
	color: #ffffff;
}

.woocommerce-cart-form {
	overflow-x: auto;
	padding-bottom: 0.25rem;
}

.woocommerce-cart table.cart,
.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--medistore-surface-strong);
	border: 1px solid var(--medistore-border);
	border-radius: 1.15rem;
	overflow: hidden;
}

.woocommerce-cart table.cart {
	min-width: 680px;
}

.woocommerce-cart table.cart img {
	width: 4.6rem;
	height: auto;
	border-radius: 0.85rem;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	padding: 1rem;
	border-bottom: 1px solid var(--medistore-border);
}

.woocommerce-cart table.cart td.actions {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

.woocommerce-cart table.cart td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-checkout,
.woocommerce-account .woocommerce,
.woocommerce .u-columns {
	display: grid;
	gap: 1.5rem;
}

.woocommerce-cart .cart-collaterals {
	grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
	align-items: start;
}

.woocommerce-checkout {
	grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
	align-items: start;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-cart .cart_totals,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce .u-column1,
.woocommerce .u-column2 {
	padding: 1.3rem;
	border: 1px solid var(--medistore-border);
	border-radius: 1.25rem;
	background: var(--medistore-surface-strong);
	box-shadow: var(--medistore-shadow);
}

.woocommerce-cart .cart_totals h2,
.woocommerce-checkout #order_review_heading {
	margin-top: 0;
	margin-bottom: 1rem;
}

.woocommerce-cart .medistore-cart-products table {
	table-layout: fixed;
}

.woocommerce-cart .cart-collaterals .cart_totals.medistore-cart-products table th {
	width: 60%;
}

@media (max-width: 768px) {
	.woocommerce-cart .medistore-cart-products table.shop_table_responsive tr td::before {
		float: none;
		display: block;
		margin-bottom: 0.35rem;
		text-align: left;
	}
}

.woocommerce-cart .wc-proceed-to-checkout {
	margin-bottom: 0;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout #payment .place-order .button {
	width: 100%;
	justify-content: center;
	padding: 1rem 1.2rem;
	font-size: 1rem;
}

.woocommerce-checkout #customer_details {
	display: grid;
	gap: 1rem;
}

.woocommerce form .form-row label,
.woocommerce-checkout .form-row label {
	display: block;
	margin-bottom: 0.45rem;
	font-weight: 700;
	color: var(--medistore-heading);
}

.woocommerce-checkout #payment {
	margin-top: 1.5rem;
	padding: 1.25rem;
	border: 1px solid var(--medistore-border);
	border-radius: 1rem;
	background: linear-gradient(180deg, var(--medistore-surface-strong), var(--medistore-surface));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.woocommerce-checkout #payment ul.payment_methods {
	padding: 0;
	margin: 0 0 1rem;
	border-bottom: 0;
	list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
	padding: 0.75rem 0;
	border-top: 1px solid var(--medistore-border);
}

.woocommerce-checkout #payment ul.payment_methods li:first-child {
	padding-top: 0;
	border-top: 0;
}

.woocommerce-checkout #payment .payment_method > label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0;
	font-weight: 700;
}

.woocommerce-checkout #payment div.payment_box {
	margin-top: 0.75rem;
	padding: 1rem;
	border-radius: 0.85rem;
	background: var(--medistore-background);
	color: var(--medistore-text);
}

.woocommerce-account .woocommerce {
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.85rem 1rem;
	border: 1px solid var(--medistore-border);
	border-radius: 1rem;
	background: var(--medistore-surface-strong);
	color: var(--medistore-heading);
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--medistore-shadow);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	border-color: var(--medistore-accent);
	background: var(--medistore-accent);
	color: #ffffff;
}

.woocommerce .u-columns {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce .u-column1,
.woocommerce .u-column2,
.woocommerce-account .woocommerce-MyAccount-content fieldset {
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset {
	padding: 1rem;
	border: 1px solid var(--medistore-border);
	border-radius: 1rem;
}

.woocommerce-notices-wrapper,
.woocommerce .woocommerce-notices-wrapper {
	margin-bottom: 1rem;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	border-radius: 1rem;
	border: 1px solid var(--medistore-border);
	background: var(--medistore-surface-strong);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 1200px) {
	.site-navigation__mega-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.site-header__main {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.site-header__search {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.hero-surface,
	.account-hero {
		grid-template-columns: 1fr;
	}

	.site-navigation__mega-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.single-product.woocommerce div.product {
		grid-template-columns: minmax(0, 1fr);
	}

	.catalog-hero,
	.woocommerce div.product,
	.woocommerce-checkout,
	.woocommerce-account .woocommerce,
	.woocommerce .u-columns,
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.woocommerce div.product .related ul.products,
	.woocommerce div.product .up-sells ul.products {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}

	.site-footer__bottom {
		flex-direction: column;
	}

	.site-header__nav-row {
		align-items: stretch;
		flex-direction: column;
	}

	.site-header__cta {
		display: none;
	}

	.site-navigation {
		width: 100%;
	}

	.site-navigation__toggle:not([hidden]) {
		display: inline-flex;
		width: 100%;
		justify-content: flex-start;
		padding: var(--medistore-space-2) var(--medistore-space-4);
	}

	.site-navigation__panel {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: var(--medistore-space-2);
		padding-top: var(--medistore-space-2);
	}

	.site-navigation__panel:not([hidden]) {
		display: flex;
	}

	.site-navigation__categories-toggle {
		width: 100%;
		justify-content: space-between;
	}

	.site-navigation__mega {
		position: static;
		grid-template-columns: minmax(0, 1fr);
		max-height: none;
		overflow: visible;
		margin-top: var(--medistore-space-2);
		padding: var(--medistore-space-4);
		border-top: 1px solid var(--medistore-border);
		border-radius: var(--medistore-radius-md);
		box-shadow: none;
	}

	.site-navigation__mega-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--medistore-space-4) var(--medistore-space-2);
	}

	.is-mobile-navigation .site-navigation__categories-toggle,
	.is-mobile-navigation .site-navigation__overview,
	.is-mobile-navigation .site-menu__featured {
		display: none;
	}

	.is-mobile-navigation .site-navigation__mobile-overview,
	.is-mobile-navigation .site-navigation__mobile-overview:visited {
		display: block;
		padding: var(--medistore-space-3);
		border-radius: var(--medistore-radius-sm);
		background: var(--medistore-surface-strong);
		color: var(--medistore-accent-dark);
	}

	.is-mobile-navigation .site-navigation__mobile-overview:hover,
	.is-mobile-navigation .site-navigation__mobile-overview:focus-visible {
		background: var(--medistore-surface);
		color: var(--medistore-accent);
	}

	.is-mobile-navigation .site-navigation__mobile-overview:focus-visible {
		outline-color: var(--medistore-surface-strong);
	}

	.site-navigation__toggle[aria-expanded="true"] .site-navigation__close {
		display: inline;
		margin-left: auto;
		font-size: 1.5rem;
	}

	.site-navigation__mega-group {
		padding: 0 0 var(--medistore-space-2);
		border-left: 0;
		border-bottom: 1px solid var(--medistore-border);
	}

	.site-navigation__mega-group h3 {
		margin: 0;
		font-size: 1rem;
	}

	.site-navigation__mega-group li a {
		min-height: 44px;
		padding: var(--medistore-space-3);
		font-size: 0.9375rem;
	}

	.site-navigation__links .site-menu {
		flex-direction: column;
		gap: 0;
	}

	.site-navigation__links .site-menu a {
		width: 100%;
	}
}

@media (max-width: 720px) {
	.site-header__main,
	.site-header__nav-row,
	.hero-surface,
	.catalog-hero,
	.archive-header,
	.entry-card,
	.entry-single,
	.entry-page,
	.page-shell,
	.account-shell,
	.account-hero,
	.commerce-shell--surface,
	.commerce-shell--catalog,
	.empty-state {
		padding: 1.25rem;
	}

	.site-branding {
		align-items: center;
	}

	.site-header__main {
		gap: var(--medistore-space-3);
		padding: var(--medistore-space-3);
	}

	.site-branding__logo .custom-logo {
		max-height: 3rem;
	}

	.site-header__nav-row {
		padding: var(--medistore-space-2);
	}

	.site-header__actions {
		gap: var(--medistore-space-1);
	}

	.site-action {
		min-width: 2.75rem;
		padding: var(--medistore-space-1);
		font-size: 0.75rem;
	}

	.hero-surface__title {
		font-size: clamp(2.1rem, 10vw, 3.2rem);
	}

	.woocommerce .woocommerce-result-count,
	.woocommerce .commerce-shell--shop .shop-result-count,
	.woocommerce .woocommerce-ordering {
		float: none;
		width: 100%;
	}

	.woocommerce .woocommerce-ordering select {
		width: 100%;
		min-width: 0;
	}

	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		min-height: 0;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs {
		flex-direction: column;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li a {
		width: 100%;
		justify-content: center;
	}

	.woocommerce-cart .cart-collaterals,
	.woocommerce-checkout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.site-header__announcement p {
		display: none;
	}

	.site-header__announcement {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--medistore-space-1);
	}

	.site-navigation__mega-grid {
		grid-template-columns: 1fr;
	}

}

.account-shell {
	display: grid;
	gap: 1.4rem;
}

.account-shell__intro {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.account-summary-card {
	display: grid;
	gap: 0.8rem;
	padding: 1.25rem;
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-lg);
	background: var(--medistore-surface-strong);
	box-shadow: var(--medistore-shadow);
}

.account-summary-card--profile {
	background: linear-gradient(145deg, var(--medistore-surface-strong), var(--medistore-surface));
}

.account-summary-card h2 {
	margin: 0;
	font-size: clamp(1.4rem, 2vw, 2rem);
	line-height: 1.08;
}

.account-summary-card__lead {
	margin: 0;
	color: var(--medistore-accent-dark);
	font-weight: 700;
}

.account-summary-card p:last-child {
	margin-bottom: 0;
	color: var(--medistore-muted);
}

.account-shortcuts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem;
}

.account-shortcut {
	display: grid;
	gap: 0.3rem;
	padding: 0.95rem 1rem;
	border: 1px solid rgba(23, 107, 135, 0.14);
	border-radius: var(--medistore-radius-md);
	background: var(--medistore-accent-soft);
	text-decoration: none;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.account-shortcut:hover,
.account-shortcut:focus {
	transform: translateY(-2px);
	border-color: rgba(23, 107, 135, 0.3);
	background: rgba(23, 107, 135, 0.14);
	outline: none;
}

.account-shortcut strong {
	color: var(--medistore-heading);
}

.account-shortcut span,
.account-support-note p {
	color: var(--medistore-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.account-support-note {
	display: grid;
	gap: 0.85rem;
}

.woocommerce-account .woocommerce {
	gap: 1.75rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	position: sticky;
	top: 1.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	gap: 0.7rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.1rem;
	font-weight: 700;
	border-radius: 1.05rem;
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus {
	transform: translateY(-1px);
	border-color: rgba(17, 119, 111, 0.24);
	box-shadow: var(--medistore-shadow-strong);
	outline: none;
}

.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce .u-column1,
.woocommerce .u-column2 {
	border-radius: 1.35rem;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
	padding: 1rem 1.1rem;
	border-radius: 1rem;
	background: rgba(17, 119, 111, 0.08);
	color: var(--medistore-heading);
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button),
.woocommerce-account .woocommerce-MyAccount-content mark {
	color: var(--medistore-accent-dark);
	font-weight: 700;
	background: transparent;
}

.woocommerce .u-columns {
	align-items: start;
}

.woocommerce .u-columns h2 {
	margin-top: 0;
	margin-bottom: 0.85rem;
	font-size: 1.4rem;
}

.woocommerce form.login,
.woocommerce form.register {
	display: grid;
	gap: 0.9rem;
}

.woocommerce form.login .form-row:last-child,
.woocommerce form.register .form-row:last-child {
	margin-bottom: 0;
}

.woocommerce ul.products {
	align-items: stretch;
}

.woocommerce ul.products li.product,
.woocommerce .related ul.products li.product,
.woocommerce .up-sells ul.products li.product {
	position: relative;
	overflow: hidden;
	padding: 1.1rem;
	border-radius: 1.25rem;
	gap: 0.95rem;
}

.woocommerce ul.products li.product::after {
	content: "";
	position: absolute;
	inset: auto -12% -36% 48%;
	height: 140px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(17, 119, 111, 0.09), transparent 70%);
	pointer-events: none;
	opacity: 0;
	transition: opacity 180ms ease;
}

.woocommerce ul.products li.product:hover::after {
	opacity: 1;
}

.woocommerce ul.products li.product img {
	transition: transform 220ms ease;
}

.woocommerce ul.products li.product:hover img {
	transform: scale(1.02);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	min-height: 0;
	line-height: 1.2;
	margin-bottom: 0.1rem;
}

.woocommerce ul.products li.product .price {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.7rem;
	align-items: baseline;
	margin-top: auto;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	width: 100%;
	justify-content: center;
	margin-top: 0.2rem;
}

.woocommerce ul.products li.product .added_to_cart {
	display: inline-flex;
	font-weight: 700;
	text-decoration: none;
	color: var(--medistore-accent-dark);
}

.woocommerce ul.products li.product .onsale {
	position: absolute;
	top: 1rem;
	left: 1rem;
	min-width: 0;
	padding: 0.45rem 0.75rem;
	border: 0;
	border-radius: 999px;
	background: rgba(21, 35, 31, 0.86);
	color: #ffffff;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 10px 18px rgba(21, 35, 31, 0.16);
	margin: 0;
	right: auto;
}

/* Search terms can be longer than the narrow catalog heading track. */
.search .catalog-hero__content {
	min-width: 0;
}

.search .catalog-hero .page-title {
	overflow-wrap: anywhere;
}

.search-results-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	margin: -0.15rem 0 1.5rem;
	padding: 0.9rem 1rem;
	border: 1px solid var(--medistore-border);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.7);
}

.search-results-toolbar__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	background: var(--medistore-accent-soft);
	color: var(--medistore-accent-dark);
	font-weight: 700;
}

.search-results-toolbar__clear {
	font-weight: 700;
	color: var(--medistore-accent-dark);
	text-decoration: none;
}

.site-search__suggestions-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.site-search__clear-history {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--medistore-accent-dark);
	font-weight: 700;
	cursor: pointer;
}

.site-search__clear-history:hover,
.site-search__clear-history:focus,
.search-results-toolbar__clear:hover,
.search-results-toolbar__clear:focus,
.site-search__view-all:hover,
.site-search__view-all:focus {
	text-decoration: underline;
	outline: none;
}

@media (max-width: 900px) {
	.account-shell__intro {
		grid-template-columns: 1fr;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		position: static;
	}
}

@media (max-width: 640px) {
	.account-shortcuts {
		grid-template-columns: 1fr;
	}

	.woocommerce ul.products li.product .button,
	.woocommerce ul.products li.product .added_to_cart {
		width: 100%;
	}

	.search-results-toolbar {
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	.site-search {
		border-radius: 1.25rem;
	}

	.site-header__cta,
	.button-link,
	.woocommerce .button,
	.woocommerce button.button,
	.woocommerce a.button,
	.woocommerce input.button,
	.woocommerce #respond input#submit {
		width: 100%;
	}

	.site-action {
		min-width: 2.75rem;
	}

}
.entry-card,
.entry-single,
.entry-page,
.commerce-shell,
.empty-state {
	padding: 1.5rem;
	background: var(--medistore-surface);
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-md);
	box-shadow: var(--medistore-shadow);
}

.entry-title,
.page-title {
	margin-top: 0;
}

.entry-meta {
	margin-bottom: 1rem;
	color: var(--medistore-muted);
	font-size: 0.95rem;
}

.entry-content > *:first-child,
.page-content > *:first-child,
.woocommerce > *:first-child {
	margin-top: 0;
}

.commerce-shell {
	display: block;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.commerce-shell--category ul.products {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.commerce-shell--shop [hidden] { display: none !important; }
.commerce-shell--shop .shop-result-count { float: left; }
.commerce-shell--shop ul.products {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 1.25rem;
}
.commerce-shell--shop ul.products::before,
.commerce-shell--shop ul.products::after { content: none; display: none; }
.woocommerce .commerce-shell--shop ul.products li.product { padding: 0.85rem; gap: 0.65rem; }
.woocommerce .commerce-shell--shop ul.products li.product img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--medistore-surface-strong);
}
.woocommerce .commerce-shell--shop ul.products li.product .woocommerce-loop-product__title {
	font-size: 1rem;
	min-height: 0;
	text-wrap: initial;
	overflow-wrap: anywhere;
}
.shop-heading, .shop-filter-heading { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.shop-heading { margin-bottom: 1rem; }
.shop-heading h1, .shop-filter-heading h2 { margin: 0; }
.shop-filters { position: static; width: 100%; max-width: none; margin: 0 0 1.5rem; padding: 1rem; border: 1px solid var(--medistore-border); border-radius: var(--medistore-radius-md); color: inherit; background: var(--medistore-surface-strong); }
.shop-filter-heading { margin-bottom: 1rem; }
.shop-filter-heading h2 { font-size: 1.125rem; }
.shop-filters form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.shop-filters label { display: grid; gap: 0.4rem; min-width: 0; flex: 1 1 12rem; font-size: 0.875rem; }
.shop-filters input, .shop-filters select {
	width: 100%; min-width: 0; min-height: 2.75rem; padding: 0.65rem 0.85rem;
	border: 1px solid var(--medistore-border); border-radius: var(--medistore-radius-sm);
	background: var(--medistore-surface-strong); color: var(--medistore-text); font: inherit;
}
.shop-filters input:focus-visible, .shop-filters select:focus-visible { outline: 2px solid var(--medistore-accent); outline-offset: 3px; }
.shop-active-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.shop-active-filters a { padding: 0.4rem 0.65rem; border: 1px solid var(--medistore-border); border-radius: var(--medistore-radius-md); }
.shop-more { text-align: center; margin-top: 1.5rem; }
.shop-more button { min-width: 14rem; }
.shop-more p { margin-bottom: 0; }
.shop-filter-toggle { margin-bottom: 1rem; }
.shop-filters:modal { position: fixed; inset: 1rem; width: min(32rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; overflow-y: auto; }
.shop-filters::backdrop { background: rgba(23, 33, 43, 0.55); }
@media (max-width: 767px) {
	.shop-filters form { display: grid; grid-template-columns: minmax(0, 1fr); }
	.shop-heading { align-items: start; }
}

.woocommerce ul.products li.product {
	width: auto;
	margin: 0;
	float: none;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	height: 100%;
	padding: 1rem;
	background: var(--medistore-surface-strong);
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-lg);
	box-shadow: var(--medistore-shadow);
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-2px);
	border-color: rgba(23, 107, 135, 0.24);
	box-shadow: var(--medistore-shadow-strong);
}

.woocommerce ul.products li.product a:not(.button):not(.added_to_cart) {
	color: inherit;
	text-decoration: none;
}

.woocommerce ul.products li.product img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 0.7rem;
	margin-bottom: 0;
	background: linear-gradient(180deg, var(--medistore-accent-soft), var(--medistore-surface-strong));
}


.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: clamp(1rem, 1.4vw, 1.3rem);
	line-height: 1.25;
	word-break: break-word;
	margin: 0;
	text-wrap: balance;
	min-height: 3.9rem;
}

.woocommerce div.product .product_title {
	font-size: clamp(1.2rem, 2vw, 1.6rem);
	line-height: 1.2;
	margin: 0;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--medistore-accent-dark);
	font-weight: 700;
}

.woocommerce ul.products li.product .button {
	margin-top: auto;
	align-self: flex-start;
}

.woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 2rem;
	align-items: start;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .up-sells,
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary,
.woocommerce div.product .woocommerce-notices-wrapper {
	grid-column: auto;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .up-sells {
	grid-column: 1 / -1;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	width: auto;
	float: none;
	margin: 0;
}

.woocommerce div.product div.images img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0.9rem;
	background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.95));
}

.woocommerce div.product .woocommerce-tabs {
	margin-top: 0.5rem;
}

.woocommerce div.product .related > h2,
.woocommerce div.product .up-sells > h2 {
	margin-bottom: 1rem;
}

.woocommerce div.product .related ul.products,
.woocommerce div.product .up-sells ul.products {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.woocommerce .woocommerce-result-count,
.woocommerce .commerce-shell--shop .shop-result-count,
.woocommerce .woocommerce-ordering {
	margin: 0 0 1.5rem;
	color: var(--medistore-muted);
}

.woocommerce .woocommerce-ordering select {
	padding: 0.75rem 2.5rem 0.75rem 0.9rem;
	border: 1px solid var(--medistore-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--medistore-text);
}

.woocommerce nav.woocommerce-pagination {
	margin-top: 2rem;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 0;
	list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
	margin: 0;
	padding: 0;
	float: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0.65rem 0.95rem;
	border: 1px solid var(--medistore-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--medistore-text);
	text-decoration: none;
	line-height: 1;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--medistore-accent);
	border-color: var(--medistore-accent);
	color: #ffffff;
}

.woocommerce div.product .summary {
	display: grid;
	gap: 1rem;
	align-content: start;
}

/* Native purchase controls retain their names, limits and disabled states. */
.single-product.woocommerce div.product > .summary {
	padding: clamp(1rem, 2vw, 1.5rem);
}

.single-product.woocommerce div.product > .summary > form.variations_form .variations {
	width: 100%;
	margin: 0 0 0.5rem;
}

.single-product.woocommerce div.product > .summary > form.variations_form .variations th,
.single-product.woocommerce div.product > .summary > form.variations_form .variations td {
	display: block;
	width: 100%;
	padding: 0;
	text-align: left;
}

.single-product.woocommerce div.product > .summary > form.variations_form .variations label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.single-product.woocommerce div.product > .summary > form.variations_form .variations select {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	margin-bottom: 0.85rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--medistore-border);
	border-radius: 0.75rem;
	background: #fff;
	color: var(--medistore-text);
	font: inherit;
}

.single-product.woocommerce div.product > .summary > form.variations_form .reset_variations {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-bottom: 0.5rem;
	text-decoration: underline;
}

.single-product.woocommerce div.product > .summary > form.variations_form .single_variation_wrap {
	width: 100%;
}

.single-product.woocommerce div.product > .summary > form.variations_form .woocommerce-variation-price {
	margin-bottom: 0.85rem;
}

.single-product.woocommerce div.product > .summary > form.variations_form .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin-top: 1rem;
}

.single-product.woocommerce div.product > .summary > form.cart > .quantity,
.single-product.woocommerce div.product > .summary > form.variations_form .woocommerce-variation-add-to-cart > .quantity {
	flex: 0 0 72px;
	width: 72px;
	margin: 0;
}

.single-product.woocommerce div.product > .summary > form.cart > .quantity input.qty,
.single-product.woocommerce div.product > .summary > form.variations_form .woocommerce-variation-add-to-cart > .quantity input.qty {
	width: 100%;
	min-height: 44px;
	padding: 0.6rem 0.35rem;
}

.single-product.woocommerce div.product > .summary > form.cart > .single_add_to_cart_button,
.single-product.woocommerce div.product > .summary > form.variations_form .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
	flex: 1 1 180px;
	min-height: 44px;
	margin: 0;
	float: none;
	white-space: normal;
}

/* Keep Woo's live SKU and metadata nodes; secondary links stay below purchase. */
.single-product.woocommerce div.product > .summary > .product_meta {
	padding-top: 1rem;
	border-top: 1px solid var(--medistore-border);
	gap: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.single-product.woocommerce div.product > .summary > .product_meta .sku_wrapper {
	margin-bottom: 0.35rem;
	color: var(--medistore-heading);
	font-weight: 600;
}

.single-product.woocommerce div.product > .summary > .product_meta > span:empty {
	display: none;
}

.single-product.woocommerce div.product .woocommerce-Tabs-panel > h2 {
	margin: 0 0 1rem;
	font-size: 1.4rem;
	line-height: 1.25;
}

.single-product.woocommerce div.product .woocommerce-Tabs-panel :is(h3, h4) {
	margin: 1.5rem 0 0.65rem;
	line-height: 1.35;
}

.single-product.woocommerce div.product .woocommerce-product-attributes {
	width: 100%;
	margin: 0;
}

.single-product.woocommerce div.product .woocommerce-product-attributes :is(th, td) {
	padding: 0.75rem;
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

/* Only replace the parent range when Woo has rendered a selected price. */
.single-product.woocommerce div.product > .summary.medistore-selected-price > .medistore-product-price {
	display: none;
}

.single-product.woocommerce div.product > .summary > .medistore-product-price,
.single-product.woocommerce div.product > .summary > form.variations_form .woocommerce-variation-price {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--medistore-accent);
}

.single-product.woocommerce div.product > .summary > form.variations_form .woocommerce-variation-price .price {
	font-size: inherit;
}

.single-product.woocommerce div.product > .summary .medistore-product-price > .medistore-price-secondary {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.7em;
}

/* Bound the main product gallery without changing nested bundle images or cards. */
.single-product.woocommerce div.product > .woocommerce-product-gallery {
	--medistore-gallery-height: clamp(240px, 45vw, 520px);
}

/* Reserve one stable main-media frame; Woo still owns slides, zoom and lightbox. */
.single-product.woocommerce div.product > .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product.woocommerce div.product > .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder {
	height: var(--medistore-gallery-height);
}

.single-product.woocommerce div.product > .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
	display: block;
	height: 100%;
}

.single-product.woocommerce div.product > .woocommerce-product-gallery .woocommerce-product-gallery__wrapper img:not(.zoomImg) {
	width: 100%;
	height: var(--medistore-gallery-height);
	aspect-ratio: auto;
	object-fit: contain;
	background: #fff;
}

/* Keep every native thumbnail in a compact, locally scrollable touch strip. */
.single-product.woocommerce div.product > .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	overflow-x: auto;
}

.single-product.woocommerce div.product > .woocommerce-product-gallery .flex-control-thumbs li {
	flex: 0 0 56px;
	width: 56px;
	float: none;
}

.single-product.woocommerce div.product > .woocommerce-product-gallery .flex-control-thumbs img {
	width: 56px;
	height: 56px;
	aspect-ratio: auto;
	object-fit: contain;
}

/* Rich descriptions can contain long technical words and URLs in narrow lists. */
.single-product.woocommerce div.product .woocommerce-Tabs-panel {
	overflow-wrap: anywhere;
}

/* Let product grid/flex children shrink to the available column, including gallery slides. */
.single-product.woocommerce div.product > *,
.single-product.woocommerce div.product .summary > *,
.single-product.woocommerce div.product form.cart > * {
	min-width: 0;
}

.single-product.woocommerce div.product .summary {
	grid-template-columns: minmax(0, 1fr);
}

.single-product.woocommerce div.product .product_title,
.single-product.woocommerce div.product .product_meta,
.single-product.woocommerce div.product .price {
	overflow-wrap: anywhere;
}

.single-product.woocommerce div.product .medistore-price-secondary,
.single-product.woocommerce div.product form.cart select,
.single-product.woocommerce div.product form.cart .input-text {
	min-width: 0;
	max-width: 100%;
}

.single-product.woocommerce div.product form.cart .wc-pao-addons-container,
.single-product.woocommerce div.product form.cart #product-addons-total {
	flex-basis: 100%;
	width: 100%;
}

.single-product.woocommerce div.product .product-addon-totals li {
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
}

.single-product.woocommerce div.product .stock {
	flex-wrap: wrap;
}

.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .stock {
	color: var(--medistore-muted);
}

.woocommerce div.product .stock {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.75rem;
	border: 1px solid var(--medistore-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	font-weight: 600;
}

.woocommerce div.product .stock.out-of-stock,
.woocommerce ul.products li.product .stock.out-of-stock {
	color: #8b2c2c;
	border-color: rgba(139, 44, 44, 0.22);
	background: rgba(139, 44, 44, 0.08);
}

.woocommerce ul.products li.product .stock {
	display: inline-flex;
	align-self: flex-start;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 600;
}

.woocommerce div.product .summary .price {
	font-size: 1.2rem;
}

/* Product-only secondary amounts; cart, checkout and order amounts retain Woo formatting. */
.woocommerce .medistore-price-secondary {
	display: inline-block;
	font-size: 0.78em;
	line-height: 1.5;
	font-weight: 400;
	color: var(--medistore-heading);
	vertical-align: baseline;
}

.woocommerce .medistore-product-price ins {
	background: transparent;
	font-weight: 700;
}

.woocommerce div.product .summary > p,
.woocommerce div.product .summary > form,
.woocommerce div.product .summary > div {
	margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 0;
	margin: 0 0 1rem;
	border-bottom: 0;
	list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	border-radius: 0;
	float: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: inline-flex;
	padding: 0.7rem 1rem;
	border: 1px solid var(--medistore-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--medistore-text);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	background: var(--medistore-accent);
	border-color: var(--medistore-accent);
	color: #ffffff;
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.woocommerce-cart-form {
	overflow-x: auto;
	padding-bottom: 0.25rem;
}

.woocommerce-cart table.cart {
	min-width: 640px;
}

/* Match WooCommerce Classic Cart's stacked-row breakpoint. Keep its update
 * control and quantities inside the visible form instead of a wide scroller. */
@media (max-width: 768px) {
	.woocommerce-cart table.cart {
		min-width: 0;
	}
}

.woocommerce-cart table.cart img {
	width: 4.5rem;
	height: auto;
	border-radius: 0.7rem;
}

.woocommerce-cart table.cart td.actions {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

.woocommerce-cart table.cart td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.woocommerce-cart .cart-collaterals .cart_totals {
	grid-column: 2;
	width: 100%;
	min-width: 0;
	float: none;
	padding: 1.25rem;
	background: #ffffff;
	border: 1px solid var(--medistore-border);
	border-radius: 0.9rem;
	box-shadow: 0 10px 24px rgba(31, 37, 35, 0.06);
}

.woocommerce-cart .cart_totals h2,
.woocommerce-checkout #order_review_heading {
	margin-top: 0;
	margin-bottom: 1rem;
}

.woocommerce-cart .wc-proceed-to-checkout {
	margin-bottom: 0;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	justify-content: center;
	padding: 0.95rem 1.2rem;
	border-radius: var(--medistore-radius-md);
	font-size: 1rem;
	text-align: center;
	white-space: normal;
}

.woocommerce-cart .cart_totals ul#shipping_method li {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: var(--medistore-space-2);
	align-items: start;
}

.woocommerce-cart .cart_totals ul#shipping_method input {
	margin: 0.3em 0 0;
	accent-color: var(--medistore-accent);
}

.woocommerce div.product form.cart .quantity input,
.woocommerce-cart table.cart td.actions .input-text,
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--medistore-border);
	border-radius: 0.75rem;
	background: #ffffff;
	color: var(--medistore-text);
}

.woocommerce-cart table.cart,
.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #ffffff;
	border: 1px solid var(--medistore-border);
	border-radius: 0.9rem;
	overflow: hidden;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	padding: 1rem;
	border-bottom: 1px solid var(--medistore-border);
}

.woocommerce-cart .cart-collaterals,
.woocommerce-checkout {
	display: grid;
	gap: 1.5rem;
}

.woocommerce-cart .cart-collaterals {
	grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	align-items: start;
}

/* Woo's float clearfix must not create extra items inside the theme's grid. */
.woocommerce-cart .cart-collaterals::before,
.woocommerce-cart .cart-collaterals::after {
	display: none;
}

.woocommerce-cart .cart-collaterals .cross-sells {
	width: 100%;
	min-width: 0;
	float: none;
}

@media (max-width: 768px) {
	.woocommerce-cart .cart-collaterals {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-cart .cart-collaterals .cart_totals {
		grid-column: 1;
		padding: var(--medistore-space-4);
	}

	.woocommerce-cart .cart_totals ul#shipping_method {
		clear: both;
		padding-top: var(--medistore-space-2);
		text-align: left;
	}
}

.woocommerce-checkout {
	display: block;
	width: 100%;
	margin: 0;
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout .woocommerce-checkout-review-order {
	width: 100%;
	float: none;
	margin: 0;
}

.woocommerce-checkout form.checkout {
	display: block;
	width: 100%;
	margin: 0;
}

.woocommerce-checkout .medistore-checkout-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
	gap: 2rem;
	align-items: start;
}


.woocommerce-checkout .medistore-checkout-main,
.woocommerce-checkout .medistore-checkout-sidebar {
	min-width: 0;
}


.woocommerce-checkout .medistore-checkout-sidebar {
	position: sticky;
	top: 6rem;
	align-self: start;
}

.woocommerce-checkout .medistore-checkout-section-heading {
	display: grid;
	gap: 0.35rem;
	margin: 0 0 1rem;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(17, 119, 111, 0.16);
	border-radius: 1rem;
	background: linear-gradient(180deg, rgba(217, 240, 236, 0.9), rgba(255, 250, 243, 0.96));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.woocommerce-checkout .medistore-checkout-section-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	padding: 0.22rem 0.65rem;
	border-radius: 999px;
	background: rgba(17, 119, 111, 0.14);
	color: var(--medistore-accent-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.woocommerce-checkout .medistore-checkout-section-heading h3 {
	margin: 0;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	line-height: 1.15;
}

.woocommerce-checkout .medistore-checkout-section-heading p {
	margin: 0;
	max-width: 60ch;
	color: var(--medistore-muted);
	font-size: 0.97rem;
	line-height: 1.55;
}

.woocommerce-checkout .medistore-checkout-runtime-status {
	display: grid;
	gap: 0.8rem;
	margin: 0 0 1rem;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(17, 119, 111, 0.18);
	border-radius: 1rem;
	background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(217, 240, 236, 0.7));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.woocommerce-checkout .medistore-checkout-runtime-status__eyebrow {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--medistore-accent-dark);
}

.woocommerce-checkout .medistore-checkout-runtime-status__summary,
.woocommerce-checkout .medistore-checkout-runtime-status__hint {
	margin: 0;
	color: var(--medistore-text);
	line-height: 1.6;
}

.woocommerce-checkout .medistore-checkout-runtime-status__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
}

.woocommerce-checkout .medistore-checkout-runtime-status__facts div {
	padding: 0.85rem 0.9rem;
	border: 1px solid rgba(221, 211, 196, 0.9);
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.82);
	transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.woocommerce-checkout .medistore-checkout-runtime-status__facts .is-complete {
	border-color: rgba(17, 119, 111, 0.32);
	background: linear-gradient(180deg, rgba(228, 246, 242, 0.98), rgba(255, 255, 255, 0.94));
	box-shadow: inset 0 0 0 1px rgba(17, 119, 111, 0.08);
}

.woocommerce-checkout .medistore-checkout-runtime-status__facts dt,
.woocommerce-checkout .medistore-checkout-runtime-status__facts dd {
	margin: 0;
}

.woocommerce-checkout .medistore-checkout-runtime-status__facts dt {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--medistore-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.woocommerce-checkout .medistore-checkout-runtime-status__facts dd {
	margin-top: 0.35rem;
	font-weight: 700;
	color: var(--medistore-heading);
}

.woocommerce-checkout #customer_details {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.woocommerce-checkout #order_review {
	padding: 1.35rem;
	background: #ffffff;
	border: 1px solid var(--medistore-border);
	border-radius: 1.1rem;
	box-shadow: 0 16px 36px rgba(31, 37, 35, 0.07);
}

.woocommerce-checkout #order_review_heading {
	display: none;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.9rem;
	width: 100%;
	padding: 1rem;
	border: 1px solid rgba(221, 211, 196, 0.82);
	border-radius: 1rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 243, 0.92));
	float: none;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
	width: 100%;
	max-width: none;
	margin: 0;
}

.woocommerce-checkout .woocommerce-shipping-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.woocommerce-checkout #customer_details .select2-container {
	/* Select2's initial pixel width must follow the checkout column on resize. */
	width: 100% !important;
}

.woocommerce-checkout .form-row label {
	display: block;
	margin-bottom: 0.45rem;
	font-weight: 700;
}

.woocommerce-checkout .form-row {
	margin-bottom: 0.75rem;
}

.woocommerce-checkout #payment {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.woocommerce-checkout #payment .payment_methods,
.woocommerce-checkout #payment .place-order {
	padding: 1.25rem;
	border: 1px solid var(--medistore-border);
	border-radius: 1.1rem;
	background: #ffffff;
	box-shadow: 0 16px 36px rgba(31, 37, 35, 0.05);
}

.woocommerce-checkout #payment .place-order {
	margin-top: 1rem;
}

.woocommerce-checkout #place_order {
	width: 100%;
	min-height: 3.25rem;
	border-radius: 999px;
	font-weight: 700;
}

.woocommerce-checkout .required {
	color: #b93030;
}

.woocommerce-checkout #payment {
	margin-top: 1.5rem;
	padding: 1.25rem;
	border: 1px solid var(--medistore-border);
	border-radius: 0.9rem;
	background: #ffffff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.woocommerce-checkout #payment ul.payment_methods {
	padding: 0;
	margin: 0 0 1rem;
	border-bottom: 0;
	list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
	padding: 0.75rem 0;
	border-top: 1px solid var(--medistore-border);
}

.woocommerce-checkout #payment ul.payment_methods li:first-child {
	border-top: 0;
	padding-top: 0;
}

.woocommerce-checkout #payment .payment_method > label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0;
	font-weight: 600;
}

.woocommerce-checkout #payment div.payment_box {
	margin-top: 0.75rem;
	padding: 1rem;
	border-radius: 0.75rem;
	background: var(--medistore-background);
	color: var(--medistore-text);
}

.woocommerce-checkout #payment .place-order {
	padding-top: 1rem;
}

.woocommerce-checkout #payment .place-order .button {
	width: 100%;
	justify-content: center;
	padding: 0.95rem 1.2rem;
	font-size: 1rem;
}

.woocommerce-checkout .woocommerce-shipping-totals td,
.woocommerce-checkout .woocommerce-shipping-totals th,
.woocommerce-checkout .woocommerce-checkout-payment {
	scroll-margin-top: 1rem;
}

.woocommerce-checkout .woocommerce-shipping-totals .woocommerce-Price-amount,
.woocommerce-checkout .order-total .woocommerce-Price-amount {
	font-weight: 800;
}

.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message {
	padding: 1rem 1.1rem 1rem 3rem;
}

.woocommerce-checkout .woocommerce-checkout-payment .woocommerce-info,
.woocommerce-checkout #payment .woocommerce-info {
	border-color: rgba(239, 150, 106, 0.45);
	background: linear-gradient(180deg, rgba(255, 230, 216, 0.92), rgba(255, 250, 243, 0.98));
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	border-radius: 0.9rem;
	border: 1px solid var(--medistore-border);
	background: #ffffff;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-cart table.cart td.actions .input-text:focus,
.woocommerce div.product form.cart .quantity input:focus,
.woocommerce .woocommerce-ordering select:focus {
	outline: 2px solid rgba(15, 118, 110, 0.18);
	outline-offset: 1px;
	border-color: var(--medistore-accent);
}

.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select,
.woocommerce-checkout .form-row.woocommerce-invalid textarea {
	border-color: #b93030;
	box-shadow: 0 0 0 3px rgba(185, 48, 48, 0.08);
}

.woocommerce-checkout .form-row.woocommerce-validated input.input-text,
.woocommerce-checkout .form-row.woocommerce-validated select,
.woocommerce-checkout .form-row.woocommerce-validated textarea {
	border-color: rgba(17, 119, 111, 0.55);
}

.woocommerce-checkout .form-row.medistore-checkout-field--conditionally-required label .optional {
	display: none;
}

.site-footer {
	padding: 0 0 2rem;
	color: var(--medistore-muted);
}

@media (max-width: 980px) {
	.woocommerce-checkout {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-checkout form.checkout {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-checkout form.checkout > .col2-set,
	.woocommerce-checkout form.checkout > .medistore-checkout-section-heading--review,
	.woocommerce-checkout form.checkout > .medistore-checkout-runtime-status,
	.woocommerce-checkout form.checkout > #order_review,
	.woocommerce-checkout form.checkout > .woocommerce-checkout-review-order {
		grid-column: 1;
		grid-row: auto;
	}

	.woocommerce-checkout .medistore-checkout-shell {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}

	.woocommerce-checkout .medistore-checkout-sidebar {
		position: static;
	}

	.woocommerce-checkout .medistore-checkout-runtime-status__facts {
		grid-template-columns: 1fr;
	}

	.woocommerce-checkout #order_review {
		position: static;
		top: auto;
	}

	.woocommerce-checkout .medistore-checkout-section-heading p {
		max-width: none;
	}
}

.site-footer__inner {
	padding-top: 1.25rem;
	border-top: 1px solid var(--medistore-border);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button:visited,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
	border-radius: 999px;
	background: var(--medistore-accent);
	color: #ffffff;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce a.button:focus-visible,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
	background: var(--medistore-accent-dark);
	color: #ffffff;
}

/* Keep Woo's disabled semantics/opacity; override its more specific purple alt rules. */
.woocommerce :is(a.button, button.button, input.button).alt:is(.disabled, :disabled, :disabled[disabled]),
.woocommerce :is(a.button, button.button, input.button).alt:is(.disabled, :disabled, :disabled[disabled]):hover,
.woocommerce #respond input#submit.alt:is(.disabled, :disabled, :disabled[disabled]),
.woocommerce #respond input#submit.alt:is(.disabled, :disabled, :disabled[disabled]):hover {
	background: var(--medistore-accent);
	color: var(--medistore-surface-strong);
}

.woocommerce .button:focus-visible,
.woocommerce #respond input#submit:focus-visible {
	outline: 2px solid var(--medistore-accent-dark);
	outline-offset: 3px;
}

@media (max-width: 720px) {
	.site-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.woocommerce .woocommerce-result-count,
	.woocommerce .commerce-shell--shop .shop-result-count,
	.woocommerce .woocommerce-ordering {
		float: none;
		width: 100%;
	}

	.woocommerce .woocommerce-ordering select {
		width: 100%;
	}

	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		min-height: 0;
	}

	.woocommerce div.product {
		grid-template-columns: 1fr;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs {
		flex-direction: column;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li a {
		width: 100%;
		justify-content: center;
	}

	.woocommerce-cart .cart-collaterals,
	.woocommerce-checkout {
		grid-template-columns: 1fr;
	}
}

.site-search {
	overflow: visible;
}

.site-search__input-wrap {
	position: relative;
	min-width: 0;
	grid-area: input;
}

.site-search__input-wrap {
	display: flex;
	align-items: center;
	position: static;
}

.site-search__field {
	width: 100%;
	padding-right: 0.25rem;
}

.site-search__suggestions {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	right: 0;
	z-index: 60;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-height: min(65vh, 34rem);
	overflow: auto;
	gap: 0.9rem;
	padding: 1rem;
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-md);
	background: var(--medistore-surface-strong);
	box-shadow: 0 24px 60px rgba(21, 35, 31, 0.16);
}

.site-search__suggestions[hidden] {
	display: none;
}

.site-search__suggestions-group {
	display: grid;
	gap: 0.55rem;
}

.site-search__suggestions-heading {
	margin: 0;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--medistore-muted);
}

.site-search__suggestions-list {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-search__suggestion-link {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.8rem;
	padding: 0.72rem 0.78rem;
	border-radius: 1rem;
	color: var(--medistore-heading);
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

.site-search__suggestion-link:hover,
.site-search__suggestion-link:focus,
.site-search__suggestion-link.is-active {
	background: rgba(17, 119, 111, 0.08);
	transform: translateY(-1px);
	outline: none;
}

.site-search__suggestion-media {
	display: inline-flex;
	width: 3rem;
	height: 3rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.85rem;
	background: linear-gradient(160deg, rgba(17, 119, 111, 0.11), rgba(255, 255, 255, 0.98));
	overflow: hidden;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--medistore-accent-dark);
}

.site-search__suggestion-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-search__suggestion-copy {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.site-search__suggestion-label {
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}

.site-search__suggestion-meta {
	color: var(--medistore-muted);
	font-size: 0.92rem;
	line-height: 1.3;
	word-break: break-word;
}

.site-search__suggestion-type {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: var(--medistore-accent-soft);
	color: var(--medistore-accent-dark);
	font-size: 0.74rem;
	font-weight: 700;
	white-space: nowrap;
}

.site-search__suggestions-empty {
	margin: 0;
	padding: 0.2rem 0.15rem;
	color: var(--medistore-muted);
	font-size: 0.95rem;
}

.site-search__suggestions-footer {
	display: flex;
	justify-content: flex-end;
	padding-top: 0.1rem;
	border-top: 1px solid rgba(221, 211, 196, 0.9);
}

.site-search__view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding-top: 0.75rem;
	color: var(--medistore-accent-dark);
	font-weight: 700;
	text-decoration: none;
}

.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce .related ul.products li.product,
.woocommerce .up-sells ul.products li.product {
	width: auto;
	max-width: none;
	float: none;
	margin: 0;
	min-width: 0;
	align-self: stretch;
	justify-self: stretch;
}

.woocommerce ul.products li.product > a:first-child,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: grid;
	gap: 0.8rem;
	align-content: start;
	min-width: 0;
	width: 100%;
}

.woocommerce .related ul.products,
.woocommerce .up-sells ul.products,
.woocommerce .related ul.products[class*="columns-"],
.woocommerce .up-sells ul.products[class*="columns-"] {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	align-items: stretch;
	gap: 1.25rem;
}

.woocommerce div.product .related,
.woocommerce div.product .up-sells {
	display: grid;
	gap: 1rem;
	padding-top: 0.85rem;
}

.woocommerce div.product .related > h2,
.woocommerce div.product .up-sells > h2 {
	margin-bottom: 0;
	font-size: clamp(1.5rem, 2.1vw, 1.9rem);
	line-height: 1.1;
}

.woocommerce .related ul.products li.product .woocommerce-loop-product__title,
.woocommerce .up-sells ul.products li.product .woocommerce-loop-product__title {
	min-height: 0;
	font-size: clamp(1.05rem, 1.5vw, 1.3rem);
	word-break: normal;
	overflow-wrap: anywhere;
	text-wrap: pretty;
}

@media (max-width: 960px) {
	.woocommerce .related ul.products,
	.woocommerce .up-sells ul.products,
	.woocommerce .related ul.products[class*="columns-"],
	.woocommerce .up-sells ul.products[class*="columns-"] {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

@media (max-width: 640px) {
	.single-product.woocommerce div.product .variations,
	.single-product.woocommerce div.product .variations tbody,
	.single-product.woocommerce div.product .variations tr,
	.single-product.woocommerce div.product .variations th,
	.single-product.woocommerce div.product .variations td {
		display: block;
		width: 100%;
	}

	.single-product.woocommerce div.product .variations select {
		width: 100%;
		min-width: 0;
	}

	.single-product.woocommerce div.product .related ul.products,
	.single-product.woocommerce div.product .up-sells ul.products {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-search__suggestion-link {
		grid-template-columns: 2.7rem minmax(0, 1fr);
	}

	.site-search__suggestion-type {
		grid-column: 2;
		justify-self: flex-start;
	}
}

.site-search__suggestions-group {
	align-content: start;
	gap: 0.7rem;
	padding: 0;
}

.site-search__suggestions-header-row {
	margin-bottom: 0.15rem;
}

.site-search__suggestions-empty,
.site-search__suggestions-footer {
	grid-column: 1 / -1;
}

.site-search__suggestion-link {
	grid-template-columns: 3.35rem minmax(0, 1fr);
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.8rem;
	border: 1px solid transparent;
	border-radius: 1rem;
	background: transparent;
}

.site-search__suggestion-link:hover,
.site-search__suggestion-link:focus,
.site-search__suggestion-link.is-active {
	border-color: rgba(17, 119, 111, 0.18);
	background: rgba(17, 119, 111, 0.08);
	transform: translateY(-1px);
	outline: none;
}

.site-search__suggestion-media {
	width: 3.35rem;
	height: 3.35rem;
	border-radius: 0.95rem;
	flex-shrink: 0;
}

.site-search__suggestion-copy {
	gap: 0.38rem;
}

.site-search__suggestion-label {
	font-size: 0.98rem;
	line-height: 1.28;
	text-wrap: pretty;
	overflow-wrap: anywhere;
}

.site-search__suggestion-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.site-search__suggestion-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.6rem;
	border-radius: 999px;
	background: rgba(17, 119, 111, 0.1);
	color: var(--medistore-accent-dark);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.15;
}

.site-search__suggestion-detail {
	color: var(--medistore-muted);
	font-size: 0.9rem;
	line-height: 1.35;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.site-search__suggestions-footer {
	justify-content: flex-end;
	padding-top: 0;
	border-top: 0;
}

.site-search__view-all {
	padding: 0.25rem 0;
	font-weight: 700;
}

@media (max-width: 960px) {
	.site-search__suggestions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.site-search__suggestions {
		max-height: min(75vh, 26rem);
	}

	.site-search__suggestion-link {
		grid-template-columns: 3rem minmax(0, 1fr);
	}
}

.entry-page.page-shell.page-shell--checkout .page-shell__content form.checkout #customer_details {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.entry-page.page-shell.page-shell--checkout .page-shell__content form.checkout .col2-set .col-1,
.entry-page.page-shell.page-shell--checkout .page-shell__content form.checkout .col2-set .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-checkout-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: sticky;
	top: 6rem;
	align-self: start;
}

.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-checkout-section-heading--review {
	order: 1;
	margin-bottom: 0;
}

.entry-page.page-shell.page-shell--checkout .page-shell__content #order_review {
	order: 3;
	display: grid;
	gap: 1rem;
	padding: 1.15rem;
}

.entry-page.page-shell.page-shell--checkout .page-shell__content #order_review .shop_table {
	margin: 0;
}

.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-checkout-runtime-status {
	order: 2;
	margin-bottom: 0;
}

.entry-page.page-shell.page-shell--checkout .page-shell__content #payment {
	display: grid;
	gap: 1rem;
	margin-top: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.entry-page.page-shell.page-shell--checkout .page-shell__content #payment .payment_methods {
	padding: 1.15rem;
	border: 1px solid var(--medistore-border);
	border-radius: 1rem;
	background: #ffffff;
	box-shadow: 0 12px 28px rgba(31, 37, 35, 0.05);
}

.entry-page.page-shell.page-shell--checkout .page-shell__content #payment .place-order {
	display: grid;
	gap: 0.85rem;
	padding: 1.1rem;
	border: 1px solid rgba(17, 119, 111, 0.18);
	border-radius: 1rem;
	background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(228, 246, 242, 0.92));
	box-shadow: 0 14px 30px rgba(17, 119, 111, 0.08);
}

.entry-page.page-shell.page-shell--checkout .page-shell__content #payment .place-order .button,
.entry-page.page-shell.page-shell--checkout .page-shell__content #place_order {
	width: 100%;
	min-height: 3.4rem;
	justify-content: center;
	padding: 1rem 1.2rem;
	font-size: 1rem;
	font-weight: 800;
	box-shadow: 0 14px 28px rgba(17, 119, 111, 0.16);
}

@media (max-width: 980px) {
	.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-checkout-shell {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 1.25rem !important;
	}

	.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-checkout-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-checkout-shell {
		gap: 1rem !important;
	}

	.woocommerce-checkout form .form-row-first,
	.woocommerce-checkout form .form-row-last {
		float: none;
		width: 100%;
	}

	.woocommerce-checkout form .form-row label {
		overflow-wrap: anywhere;
	}

	.woocommerce-checkout-review-order-table {
		overflow-wrap: anywhere;
	}

	.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
	.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
		padding: 0.75rem 0.5rem;
	}

	.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-checkout-section-heading,
	.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-checkout-runtime-status,
	.entry-page.page-shell.page-shell--checkout .page-shell__content #order_review,
	.entry-page.page-shell.page-shell--checkout .page-shell__content #payment .payment_methods,
	.entry-page.page-shell.page-shell--checkout .page-shell__content #payment .place-order,
	.entry-page.page-shell.page-shell--checkout .page-shell__content #customer_details .col-1,
	.entry-page.page-shell.page-shell--checkout .page-shell__content #customer_details .col-2 {
		padding: 0.95rem !important;
		border-radius: 1rem;
	}

	.entry-page.page-shell.page-shell--checkout .page-shell__content #place_order {
		min-height: 3.2rem;
	}
}

.home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	overflow: hidden;
	min-width: 0;
	border: 1px solid var(--medistore-border);
	border-radius: var(--medistore-radius-lg);
	background: var(--medistore-accent-soft);
}

.home-hero__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(1.5rem, 3.5vw, 3rem);
}

.home-hero__title {
	width: 100%;
	margin: 0;
	max-width: 12ch;
	font-size: clamp(2rem, 3.6vw, 3.5rem);
	line-height: 1.1;
	color: var(--medistore-accent-dark);
	overflow-wrap: break-word;
}

.home-hero__description {
	max-width: 34rem;
	margin: var(--medistore-space-4) 0 0;
	color: var(--medistore-text);
	font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--medistore-space-3);
	margin-top: var(--medistore-space-6);
}

.home-hero__picture {
	display: block;
	min-width: 0;
	min-height: 100%;
	background: var(--medistore-surface);
}

.home-hero__picture img {
	width: 100%;
	height: 100%;
	min-height: 340px;
	max-height: 440px;
	object-fit: cover;
	object-position: 62% center;
}

.home-section {
	min-width: 0;
	margin-top: var(--medistore-space-8);
}

.home-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--medistore-space-2) var(--medistore-space-4);
	margin-bottom: var(--medistore-space-4);
}

.home-section__header h2,
.home-brands > h2 {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	color: var(--medistore-accent-dark);
}

.home-section__link {
	font-weight: 700;
	text-decoration: none;
	font-size: 0.875rem;
}

.home-category-grid {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: var(--medistore-space-2);
}

.home-category-grid .category-card {
	min-width: 0;
	height: 100%;
	box-shadow: none;
	background: var(--medistore-surface);
	border-radius: var(--medistore-radius-sm);
}

.home-category-grid .category-card--home .category-card__media {
	aspect-ratio: 1;
	background: var(--medistore-surface);
}

.home-category-grid .category-card--home .category-card__media img {
	padding: var(--medistore-space-2);
	object-fit: contain;
}

.home-category-grid .category-card--home .category-card__placeholder {
	background: var(--medistore-surface);
}

.home-category-grid .category-card--home .category-card__body {
	gap: 0;
	padding: var(--medistore-space-2);
	text-align: center;
}

.home-category-grid .category-card__title {
	font-size: 0.875rem;
	line-height: 1.2;
	overflow-wrap: break-word;
}

.home-products .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: var(--medistore-space-4);
	margin: 0;
}

.home-products .woocommerce ul.products > li.product {
	width: auto;
	max-width: none;
	min-width: 0;
	float: none;
	margin: 0;
	justify-self: stretch;
	gap: var(--medistore-space-2);
	padding: var(--medistore-space-3);
	border-radius: var(--medistore-radius-sm);
	box-shadow: none;
}

.home-products .woocommerce ul.products > li.product img {
	aspect-ratio: 1;
	max-height: 220px;
	object-fit: contain;
	margin-bottom: 0;
	background: var(--medistore-surface-strong);
}

.home-products .woocommerce ul.products > li.product .woocommerce-loop-product__title {
	min-height: 2.5em;
	font-size: 0.95rem;
	line-height: 1.3;
	overflow-wrap: break-word;
}

.home-products .woocommerce ul.products > li.product .button {
	width: 100%;
	min-height: 2.75rem;
	padding: var(--medistore-space-3) var(--medistore-space-2);
	border-radius: var(--medistore-radius-sm);
	color: #ffffff;
	font-size: 0.875rem;
	text-align: center;
}

.home-products .woocommerce ul.products > li.product .stock {
	margin: 0;
	color: var(--medistore-text);
	font-size: 0.8rem;
}

.home-products .stock::before {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-right: var(--medistore-space-2);
	border-radius: 50%;
	background: var(--medistore-status);
}

.home-products .stock.out-of-stock::before,
.home-products .stock.available-on-backorder::before {
	background: var(--medistore-muted);
}

.home-product-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--medistore-space-2);
	aspect-ratio: 1;
	max-height: 220px;
	background: var(--medistore-surface);
	color: var(--medistore-muted);
	font-size: 0.875rem;
}

.home-product-placeholder svg {
	width: 3rem;
	height: 3rem;
}

.home-campaign {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	overflow: hidden;
	min-width: 0;
	border-radius: var(--medistore-radius-lg);
	background: var(--medistore-accent-dark);
}

.home-campaign__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: var(--medistore-space-2);
	padding: var(--medistore-space-6);
	color: #ffffff;
}

.home-campaign__content .section-eyebrow,
.home-campaign__content h2,
.home-campaign__content p {
	margin: 0;
	color: #ffffff;
}

.home-campaign__content h2 {
	font-size: clamp(1.25rem, 2.5vw, 1.85rem);
}

.home-campaign__image {
	width: 100%;
	height: 100%;
	min-height: 180px;
	object-fit: cover;
}

.button-link--light {
	border-color: var(--medistore-surface-strong);
	background: var(--medistore-surface-strong);
	color: var(--medistore-accent-dark);
}

.button-link--light:hover,
.button-link--light:focus {
	background: var(--medistore-surface);
	color: var(--medistore-accent-dark);
}

.home-brands > h2 {
	margin-bottom: var(--medistore-space-4);
}

.home-brands__list {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	align-items: center;
	gap: var(--medistore-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-brands__list li {
	display: grid;
	min-width: 0;
	min-height: 4.5rem;
	place-items: center;
	padding: var(--medistore-space-3);
	background: var(--medistore-surface-strong);
}

.home-brands__list a,
.home-brands__list img {
	width: 100%;
}

.home-brands__list img {
	max-height: 3rem;
	object-fit: contain;
}

@media (max-width: 960px) {
	.home-category-grid,
	.home-brands__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.home-products .woocommerce ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.home-hero {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	}

	.home-hero__content {
		padding: var(--medistore-space-4);
	}

	.home-hero__title {
		font-size: clamp(1.35rem, 5vw, 2.25rem);
	}

	.home-hero__picture img {
		height: 100%;
		min-height: 270px;
		max-height: none;
		object-position: 62% center;
	}

	.home-hero__description {
		font-size: 0.875rem;
	}

	.home-hero__actions {
		margin-top: var(--medistore-space-4);
	}

	.home-hero .button-link {
		padding: var(--medistore-space-3);
		font-size: 0.875rem;
	}

	.home-products .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-campaign {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-campaign__image {
		min-height: 0;
		aspect-ratio: 2.3 / 1;
	}

	.home-brands__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 380px) {
	.home-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Owned five-step Classic checkout. No-JS keeps all native controls available. */
.entry-page.page-shell.page-shell--checkout .medistore-steps-form {
    display: block; width: 100%; min-width: 0;
}
.medistore-steps-form [hidden] { display: none !important; }
.medistore-five-step-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: var(--medistore-space-6); align-items: start; }
.medistore-step-list { display: grid; gap: var(--medistore-space-4); min-width: 0; }
.medistore-step, .medistore-order-summary { min-width: 0; padding: var(--medistore-space-6); border: 1px solid var(--medistore-border); border-radius: var(--medistore-radius-lg); background: var(--medistore-surface-strong); }
.medistore-step-header { display: flex; align-items: start; gap: 14px; margin-bottom: 18px; }
.medistore-step-number { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--medistore-accent-dark); color: var(--medistore-surface-strong); font-weight: 700; }
.entry-page.page-shell.page-shell--checkout .medistore-step-header h2 { margin: 0 0 4px; font-size: 1.2rem; line-height: 1.35; }
.medistore-step-header p, .medistore-step-hint { margin: 0; font-size: .875rem; color: var(--medistore-muted); }
.medistore-step-header > div { flex: 1; min-width: 0; }
.medistore-step-edit, .medistore-step-back { min-height: 44px; padding: 8px; color: var(--medistore-accent-dark); border: 0; background: transparent; text-decoration: underline; cursor: pointer; }
.medistore-step-content { min-width: 0; }

.medistore-steps-enhanced .medistore-step:not(.is-current) { background: var(--medistore-surface); }
.medistore-steps-enhanced .is-pending .medistore-step-number { background: var(--medistore-muted); }
.medistore-steps-enhanced .is-complete .medistore-step-number { background: var(--medistore-accent-dark); }
.medistore-step-hint { margin-top: 12px; padding: 0; border-radius: var(--medistore-radius-sm); background: var(--medistore-surface); }
.medistore-step-navigation { display: flex; flex-wrap: wrap; gap: var(--medistore-space-3); justify-content: space-between; align-items: center; margin-top: 20px; }
.medistore-step-next { margin-left: auto; white-space: normal; }
.medistore-steps-form button:focus-visible, .medistore-steps-form a:focus-visible { outline: 3px solid var(--medistore-accent); outline-offset: 3px; }
.medistore-steps-enhanced #billing_customer_type_field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.medistore-customer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--medistore-space-3); }
.medistore-customer-card { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 16px 12px; border: 1px solid var(--medistore-border); border-radius: var(--medistore-radius-md); background: var(--medistore-surface-strong); color: var(--medistore-heading); text-align: center; cursor: pointer; font: inherit; white-space: normal; }
.medistore-customer-card svg { width: 30px; height: 32px; color: var(--medistore-accent-dark); }
.medistore-customer-card > span:not(.medistore-card-mark) { font-size: .875rem; line-height: 1.5; }
.medistore-customer-card[aria-checked="true"] { border: 2px solid var(--medistore-accent); padding: 15px 11px; background: var(--medistore-accent-soft); }
.medistore-card-mark { margin-top: auto; align-self: start; width: 18px; height: 18px; border: 2px solid var(--medistore-muted); border-radius: 50%; }
[aria-checked="true"] > .medistore-card-mark { border: 5px solid var(--medistore-accent); }
.entry-page.page-shell.page-shell--checkout .medistore-steps-form #customer_details,
.entry-page.page-shell.page-shell--checkout .medistore-steps-form #customer_details > .col-1,
.entry-page.page-shell.page-shell--checkout .medistore-steps-form #customer_details > .col-2,
.entry-page.page-shell.page-shell--checkout .medistore-step-content > .col-2 { float: none; display: block; width: 100%; padding: 0; border: 0; box-shadow: none; background: transparent; }
.entry-page.page-shell.page-shell--checkout .medistore-steps-form #order_review { width: 100%; float: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.entry-page.page-shell.page-shell--checkout .medistore-steps-form #payment { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.medistore-summary-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.entry-page.page-shell.page-shell--checkout .medistore-summary-title h2 { margin: 0; font-size: 1.25rem; }
.medistore-summary-title a { font-size: .875rem; }
.medistore-steps-form table { width: 100%; table-layout: fixed; margin: 0; }
.medistore-steps-form th, .medistore-steps-form td { overflow-wrap: anywhere; }
.medistore-steps-form .woocommerce-checkout-review-order-table .product-name { width: 65%; }
.medistore-steps-form .woocommerce-checkout-review-order-table .product-total { width: 35%; }
.medistore-steps-form .medistore-delivery-methods th { width: 24%; }
.medistore-steps-form .medistore-delivery-methods td { width: auto; }
.medistore-steps-form input, .medistore-steps-form select, .medistore-steps-form textarea, .medistore-steps-form .select2-container { max-width: 100%; }
.medistore-steps-form .medistore-final-slot .place-order { padding: 0; margin: 0; }
.medistore-steps-form #place_order { width: 100%; white-space: normal; }
@media (max-width: 960px) {
    .medistore-five-step-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .medistore-step, .medistore-order-summary { padding: 14px; }
    .medistore-step-header { gap: 10px; }
    .medistore-customer-cards { grid-template-columns: minmax(0, 1fr); }
    .medistore-customer-card { display: grid; grid-template-columns: 32px minmax(0, 1fr) 18px; text-align: left; gap: 6px 12px; }
    .medistore-customer-card svg { grid-row: 1 / 3; }
    .medistore-customer-card strong { grid-column: 2; }
    .medistore-customer-card > span:not(.medistore-card-mark) { grid-column: 2; }
    .medistore-customer-card .medistore-card-mark { grid-column: 3; grid-row: 1 / 3; align-self: center; margin: 0; }
    .medistore-steps-form .form-row-first, .medistore-steps-form .form-row-last { float: none; width: 100%; }
    .medistore-step-navigation .button { width: 100%; }
}
.entry-page.page-shell.page-shell--checkout .medistore-steps-form #order_review_heading { display: block; }
.entry-page.page-shell.page-shell--checkout .page-shell__content form.medistore-steps-form #customer_details .col-1,
.entry-page.page-shell.page-shell--checkout .page-shell__content form.medistore-steps-form #order_review { padding: 0 !important; }
.medistore-step-feedback:empty { display: none; }
.medistore-step-feedback { color: #963126; margin: 12px 0; }
@media (max-width: 600px) {
    .medistore-steps-form .medistore-delivery-methods tr,
    .medistore-steps-form .medistore-delivery-methods th,
    .medistore-steps-form .medistore-delivery-methods td { display: block; width: 100%; }
    .medistore-steps-form .medistore-delivery-methods ul { padding: 0; margin: 0; list-style: none; }
    .medistore-steps-form .woocommerce-checkout-review-order-table .product-name { width: 55%; }
    .medistore-steps-form .woocommerce-checkout-review-order-table .product-total { width: 45%; }
    .medistore-steps-form .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
}

/* Compact inactive panels retain the original controls and values in the DOM. */
.medistore-review-details { display: grid; gap: var(--medistore-space-4); margin-bottom: var(--medistore-space-6); }
.medistore-review-card { min-width: 0; padding: var(--medistore-space-4); background: var(--medistore-surface); border: 1px solid var(--medistore-border); border-radius: var(--medistore-radius-sm); }
.medistore-review-card dl { margin: 0; }
.medistore-review-card dl > div { margin-bottom: var(--medistore-space-2); }
.medistore-review-card dt { color: var(--medistore-muted); font-size: .8125rem; }
.medistore-review-card dd { margin: 0; overflow-wrap: anywhere; }
.medistore-review-card p { white-space: pre-line; overflow-wrap: anywhere; }
.medistore-review-edit { min-height: 44px; padding: var(--medistore-space-2) 0; border: 0; background: transparent; color: var(--medistore-accent-dark); text-decoration: underline; cursor: pointer; }
.medistore-review-order-slot { margin-bottom: var(--medistore-space-6); }
.medistore-payment-slot ul.payment_methods { list-style: none; padding: 0; margin: 0; }
.medistore-payment-slot li.wc_payment_method { padding: var(--medistore-space-4); margin-bottom: var(--medistore-space-3); border: 1px solid var(--medistore-border); border-radius: var(--medistore-radius-sm); background: var(--medistore-surface-strong); }
.medistore-payment-slot li.wc_payment_method:has(> input:checked) { border-color: var(--medistore-accent); background: var(--medistore-accent-soft); }
.medistore-payment-slot li.wc_payment_method > label { display: inline; font-weight: 600; cursor: pointer; }
.medistore-payment-slot .payment_box { margin: var(--medistore-space-3) 0 0; padding: 0; background: transparent; overflow-wrap: anywhere; }
.medistore-payment-slot .payment_box::before { display: none; }
.medistore-payment-slot li.wc_payment_method > input { accent-color: var(--medistore-accent-dark); }
.medistore-review-order-slot .shop_table { background: transparent; }
@media (min-width: 700px) {
    .medistore-review-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .medistore-review-billing { grid-row: span 2; }
}
.entry-page.page-shell.page-shell--checkout { padding: 0; border: 0; box-shadow: none; background: transparent; }
.page-shell--checkout .page-shell__header { margin-bottom: var(--medistore-space-6); }
.page-shell--checkout .page-title { margin-bottom: var(--medistore-space-2); font-size: clamp(1.75rem, 3vw, 2.25rem); }
.medistore-checkout-subtitle { margin: 0; color: var(--medistore-muted); }
.medistore-steps-enhanced .medistore-step:not(.is-current) .medistore-step-header { margin-bottom: 0; }
.medistore-steps-enhanced .medistore-step:not(.is-current) .medistore-step-header h2 { color: var(--medistore-muted); }
.medistore-steps-enhanced .medistore-step.is-current { border-color: var(--medistore-accent); }
.entry-page.page-shell.page-shell--checkout .medistore-step-content h3 { font-size: 1rem; line-height: 1.4; }
.medistore-step-header h2:focus { outline: none; }
.entry-page.page-shell.page-shell--checkout .medistore-steps-form button.medistore-step-next,
.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-steps-form #place_order { border-radius: var(--medistore-radius-sm); font-weight: 600; box-shadow: none; }
.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-steps-form #place_order { background: var(--medistore-accent); border-color: var(--medistore-accent); color: var(--medistore-surface-strong); }
.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-steps-form #place_order:hover { background: var(--medistore-accent-dark); border-color: var(--medistore-accent-dark); }
.entry-page.page-shell.page-shell--checkout .page-shell__content .medistore-steps-form #place_order:disabled { background: var(--medistore-muted); cursor: wait; }
.medistore-steps-form .medistore-step-next:disabled { opacity: 1; background: var(--medistore-muted); color: var(--medistore-surface-strong); cursor: wait; }
.medistore-customer-card:hover { border-color: var(--medistore-accent); }
.medistore-customer-card[aria-checked="true"] { box-shadow: inset 0 0 0 1px var(--medistore-accent); }
.entry-page.page-shell.page-shell--checkout .medistore-order-summary #order_review .shop_table { border: 0; border-radius: 0; background: transparent; }
.entry-page.page-shell.page-shell--checkout .medistore-order-summary .shop_table th,
.entry-page.page-shell.page-shell--checkout .medistore-order-summary .shop_table td { padding: var(--medistore-space-4) 0; border: 0; border-bottom: 1px solid var(--medistore-border); font-size: .875rem; line-height: 1.5; color: var(--medistore-text); font-weight: 400; background: transparent; }
.entry-page.page-shell.page-shell--checkout .medistore-order-summary .shop_table thead th { padding-top: 0; padding-bottom: var(--medistore-space-2); color: var(--medistore-muted); font-size: .75rem; }
.medistore-order-summary .shop_table .product-total,
.medistore-order-summary .shop_table tfoot td { text-align: right; }
.entry-page.page-shell.page-shell--checkout .medistore-order-summary .shop_table .order-total th,
.entry-page.page-shell.page-shell--checkout .medistore-order-summary .shop_table .order-total td { border-bottom: 0; font-size: 1.125rem; font-weight: 700; }
.medistore-order-summary .includes_tax { display: block; font-weight: 400; font-size: .75rem; color: var(--medistore-muted); }
.medistore-summary-thumbnail { float: left; width: 48px; margin: 0 var(--medistore-space-3) var(--medistore-space-2) 0; }
.medistore-summary-thumbnail img { width: 48px; height: 48px; object-fit: contain; padding: var(--medistore-space-1); border: 1px solid var(--medistore-border); border-radius: var(--medistore-radius-sm); background: var(--medistore-surface-strong); }
.medistore-summary-product-name { display: block; margin-left: 60px; font-weight: 600; }
.medistore-order-summary .product-quantity { display: block; margin-left: 60px; font-weight: 400; color: var(--medistore-muted); }
.medistore-order-summary .variation { clear: both; font-size: .8rem; }
.entry-page.page-shell.page-shell--checkout .medistore-order-summary .shop_table .medistore-price-basis td { font-size: .75rem; color: var(--medistore-muted); }
@media (min-width: 961px) {
    .medistore-steps-enhanced .medistore-order-summary { position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow: auto; }
    .admin-bar .medistore-steps-enhanced .medistore-order-summary { top: 48px; max-height: calc(100dvh - 64px); }
}
@media (max-width: 600px) {
    .medistore-step, .medistore-order-summary { padding: var(--medistore-space-4); }
    .medistore-step-number { flex-basis: 32px; width: 32px; height: 32px; }
    .entry-page.page-shell.page-shell--checkout .medistore-step-header h2 { font-size: 1.0625rem; }
    .medistore-step-header { flex-wrap: wrap; }
    .medistore-step-edit { margin-left: auto; padding-top: 0; padding-bottom: 0; min-height: 32px; }
    .medistore-summary-thumbnail { float: none; display: block; margin-bottom: var(--medistore-space-2); }
    .medistore-summary-product-name, .medistore-order-summary .product-quantity { margin-left: 0; }
    .medistore-step-hint { font-size: .8125rem; }
}
