/*
 * WooCommerce skin.
 * Plugin CSS sets img { height: auto; max-width: 100% }, which overrides the
 * header logo's logical size. Physical properties here win on shop screens.
 * Also maps notices, buttons, prices, commerce header chrome, and block field
 * primitives onto tokens.
 */

.woocommerce .site-brand__logo,
.woocommerce-page .site-brand__logo {
	display: block;
	width: auto;
	height: 3.5rem;
	max-width: 10.5rem;
	max-height: 3.5rem;
	object-fit: contain;
}

.woocommerce .site-footer .site-brand__logo,
.woocommerce-page .site-footer .site-brand__logo {
	width: auto;
	height: 4.5rem;
	max-width: 15rem;
	max-height: 4.5rem;
}

.woocommerce .header-account__avatar,
.woocommerce-page .header-account__avatar {
	width: 2.25rem;
	height: 2.25rem;
	max-width: 2.25rem;
	max-height: 2.25rem;
}

@media (min-width: 48rem) {
	.woocommerce .site-brand__logo,
	.woocommerce-page .site-brand__logo {
		height: 5rem;
		max-width: 19rem;
		max-height: 5rem;
	}

	.woocommerce .site-footer .site-brand__logo,
	.woocommerce-page .site-footer .site-brand__logo {
		height: 4.5rem;
		max-width: 15rem;
		max-height: 4.5rem;
	}
}

/* -------------------------------------------------------------------------- */
/* Commerce page shell (Cart & Checkout shared breadcrumbs, hero, trust)      */
/* -------------------------------------------------------------------------- */

.entry--commerce {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 80rem;
	margin-inline: auto;
	padding-block: 1.5rem 4rem;
}

.commerce-breadcrumbs {
	position: relative;
	z-index: 1;
}

.commerce-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--color-text-muted);
	font-size: var(--text-label-md);
	font-weight: 500;
	line-height: var(--leading-label-md);
}

.commerce-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-inline-size: 0;
}

.commerce-breadcrumbs__sep {
	color: var(--color-surface-highest);
	font-weight: 300;
}

.commerce-breadcrumbs__link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--color-text-secondary);
	text-decoration: none;
	transition: color 0.15s ease;
}

.commerce-breadcrumbs__link:hover {
	color: var(--color-primary);
}

.commerce-breadcrumbs__link .material-symbols-outlined {
	font-size: 0.95rem;
	direction: ltr;
}

.commerce-breadcrumbs__current {
	color: var(--color-primary);
	font-weight: 600;
}

.commerce-hero {
	position: relative;
	z-index: 1;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--color-gold-light) 70%, transparent) 0%, transparent 50%),
		var(--color-white);
	box-shadow: var(--shadow-sm);
}

.commerce-hero__head {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-between;
	gap: 1.25rem;
}

.commerce-hero__brand {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	min-inline-size: 0;
}

.commerce-hero__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 3rem;
	block-size: 3rem;
	border: 1px solid color-mix(in srgb, var(--color-gold) 45%, transparent);
	border-radius: var(--radius-lg);
	background: var(--color-primary);
	color: var(--color-gold);
	box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.commerce-hero__icon .material-symbols-outlined {
	font-size: 1.5rem;
	direction: ltr;
}

.commerce-hero__titles {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-inline-size: 0;
}

.commerce-hero__title {
	margin: 0;
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-headline-sm);
	font-weight: 700;
	line-height: var(--leading-headline-sm);
}

.commerce-hero__subtitle {
	margin: 0;
	color: var(--color-text-muted);
	font-size: var(--text-label-md);
	font-weight: 500;
	line-height: var(--leading-label-md);
}

.commerce-steps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.625rem 0.875rem;
	list-style: none;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}

.commerce-steps__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.commerce-steps__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
}

.commerce-steps__badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 1.75rem;
	block-size: 1.75rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: var(--color-white);
	color: var(--color-text-muted);
	font-size: var(--text-label-md);
	font-weight: 700;
	line-height: 1;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.commerce-steps__badge .material-symbols-outlined {
	font-size: 1rem;
	direction: ltr;
}

.commerce-steps__label {
	color: var(--color-text-muted);
	font-size: var(--text-label-md);
	font-weight: 500;
	line-height: var(--leading-label-md);
	white-space: nowrap;
}

.commerce-steps__item.is-active .commerce-steps__badge {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: var(--color-white);
	box-shadow: 0 3px 8px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

.commerce-steps__item.is-active .commerce-steps__label {
	color: var(--color-primary);
	font-weight: 700;
}

.commerce-steps__item.is-done .commerce-steps__badge {
	border-color: var(--color-gold-border);
	background: var(--color-gold-light);
	color: var(--color-gold-deep);
}

.commerce-steps__item.is-done .commerce-steps__label {
	color: var(--color-text-body);
	font-weight: 600;
}

.commerce-steps__item.is-done .commerce-steps__link:hover .commerce-steps__label {
	color: var(--color-primary);
}

.commerce-steps__divider {
	inline-size: 1.5rem;
	block-size: 2px;
	border-radius: 999px;
	background: var(--color-border);
}

.commerce-steps__divider.is-complete {
	background: var(--color-gold);
}

.commerce-body {
	position: relative;
	z-index: 1;
}

/* Classic WC notices above Cart / Checkout blocks (gateway cancel / fail return). */
.commerce-notices {
	margin-block-end: 1.25rem;
}

.commerce-notices .woocommerce-notices-wrapper {
	margin: 0;
}

.commerce-notices .woocommerce-notices-wrapper:empty {
	display: none;
}

.commerce-trust {
	position: relative;
	z-index: 1;
	margin-block-start: 0.5rem;
}

.commerce-trust__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.commerce-trust__card {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-white);
	box-shadow: var(--shadow-xs);
}

.commerce-trust__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	border: 1px solid var(--color-gold-border);
	border-radius: var(--radius-md);
	background: var(--color-gold-light);
	color: var(--color-gold-deep);
}

.commerce-trust__icon .material-symbols-outlined {
	font-size: 1.375rem;
	direction: ltr;
}

.commerce-trust__copy {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-inline-size: 0;
}

.commerce-trust__title {
	color: var(--color-text);
	font-size: var(--text-label-lg);
	font-weight: 700;
	line-height: var(--leading-label-lg);
}

.commerce-trust__desc {
	color: var(--color-text-muted);
	font-size: var(--text-label-md);
	font-weight: 400;
	line-height: var(--leading-label-md);
}

@media (min-width: 48rem) {
	.commerce-hero {
		padding: 1.5rem 1.75rem;
	}

	.commerce-hero__head {
		flex-direction: row;
		align-items: center;
	}

	.commerce-steps {
		justify-content: flex-end;
		gap: 0.625rem;
		padding: 0.625rem 1rem;
	}

	.commerce-steps__divider {
		inline-size: 2rem;
	}

	.commerce-trust__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* -------------------------------------------------------------------------- */
/* Notices                                                                    */
/* -------------------------------------------------------------------------- */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.wc-block-components-notice-banner {
	display: flex;
	align-items: flex-start;
	gap: var(--space-sm);
	margin-block: 0 var(--space-md);
	padding-block: 0.875rem;
	padding-inline: 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-white);
	color: var(--color-text-body);
	font-family: var(--font-body);
	font-size: var(--text-body-md);
	line-height: var(--leading-body-md);
	box-shadow: var(--shadow-sm);
	list-style: none;
}

.woocommerce-message,
.wc-block-components-notice-banner.is-success {
	border-color: color-mix(in srgb, #059669 35%, var(--color-border));
	background: color-mix(in srgb, #059669 6%, var(--color-white));
	color: var(--color-text);
}

.woocommerce-error,
.wc-block-components-notice-banner.is-error {
	border-color: color-mix(in srgb, #b91c1c 35%, var(--color-border));
	background: color-mix(in srgb, #b91c1c 6%, var(--color-white));
	color: var(--color-text);
}

.woocommerce-info,
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning {
	border-color: color-mix(in srgb, var(--color-primary) 25%, var(--color-border));
	background: color-mix(in srgb, var(--color-primary) 4%, var(--color-white));
}

.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a,
.wc-block-components-notice-banner a {
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: underline;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
	margin: 0;
	list-style: none;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button,
.wc-block-components-button:not(.is-link):not(.wc-block-components-quantity-selector__button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	min-block-size: 2.75rem;
	padding-block: 0.625rem;
	padding-inline: var(--space-md);
	border: 1px solid var(--color-primary);
	border-radius: var(--radius-lg);
	background: var(--color-primary);
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: var(--text-label-lg);
	font-weight: 600;
	line-height: var(--leading-label-lg);
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.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 .single_add_to_cart_button:hover,
.wc-block-components-button:not(.is-link):not(.wc-block-components-quantity-selector__button):hover {
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
	color: var(--color-white);
}

.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled,
.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.wc-block-components-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce .single_add_to_cart_button:focus-visible,
.wc-block-components-button:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Prices                                                                     */
/* -------------------------------------------------------------------------- */

.woocommerce .price,
.woocommerce-page .price,
.wc-block-components-product-price,
.wc-block-components-totals-item__value,
.wc-block-components-product-price__value {
	color: var(--color-text);
	font-family: var(--font-body);
	font-weight: 700;
}

.woocommerce .price del,
.woocommerce-page .price del,
.wc-block-components-product-price del {
	color: var(--color-text-muted);
	font-weight: 500;
	opacity: 0.85;
}

.woocommerce .price ins,
.woocommerce-page .price ins {
	text-decoration: none;
	color: var(--color-text);
}

.woocommerce .onsale {
	display: inline-flex;
	align-items: center;
	padding-block: 0.2rem;
	padding-inline: 0.55rem;
	border: 1px solid var(--color-gold-border);
	border-radius: var(--radius-xl);
	background: var(--color-gold-light);
	color: var(--color-gold-deep);
	font-size: var(--text-label-sm);
	font-weight: 600;
	letter-spacing: var(--tracking-label-sm);
	line-height: var(--leading-label-sm);
}

/* -------------------------------------------------------------------------- */
/* Block field / radio / checkbox primitives                                  */
/* -------------------------------------------------------------------------- */

.wc-block-components-form .wc-block-components-text-input,
.wc-block-components-text-input,
.wc-block-components-combobox,
.wc-block-components-country-input,
.wc-block-components-state-input,
.wc-block-components-select {
	position: relative;
	margin-block-end: 0;
}

.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-text-input input[type="url"],
.wc-block-components-textarea textarea,
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-select .wc-blocks-components-select__select,
.wc-block-components-totals-coupon__form input,
.wc-block-components-form .wc-block-components-text-input input {
	inline-size: 100%;
	min-block-size: 3.25rem;
	border: 1px solid var(--color-border) !important;
	border-radius: var(--radius-lg) !important;
	background-color: var(--color-surface) !important;
	color: var(--color-text) !important;
	font-family: var(--font-body) !important;
	font-size: var(--text-body-md) !important;
	font-weight: 500;
	line-height: 1.5 !important;
	box-shadow: inset 0 1px 2px rgba(15, 36, 71, 0.03) !important;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.wc-block-components-text-input input:hover,
.wc-block-components-textarea textarea:hover,
.wc-block-components-combobox .components-combobox-control__input:hover,
.wc-block-components-select .wc-blocks-components-select__select:hover {
	border-color: var(--color-surface-highest) !important;
	background-color: var(--color-white) !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus,
.wc-block-components-combobox .components-combobox-control__input:focus,
.wc-block-components-select .wc-blocks-components-select__select:focus,
.wc-block-components-totals-coupon__form input:focus {
	outline: none !important;
	border-color: var(--color-primary) !important;
	background-color: var(--color-white) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent) !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox label,
.wc-block-components-select .wc-blocks-components-select__label,
.wc-block-components-textarea label,
.wc-block-components-checkbox label,
.wc-block-components-radio-control__label {
	color: var(--color-text-secondary);
	font-family: var(--font-body);
	font-weight: 500;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input,
.wc-block-components-radio-control__input {
	accent-color: var(--color-primary);
	inline-size: 1.25rem;
	block-size: 1.25rem;
	cursor: pointer;
}

.wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: center;
	gap: 0.125rem;
	padding: 0.25rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-white);
	box-shadow: var(--shadow-xs);
}

.wc-block-components-quantity-selector__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2rem;
	block-size: 2rem;
	min-block-size: 2rem;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-text);
	font-weight: 700;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wc-block-components-quantity-selector__button:hover {
	background: var(--color-primary);
	color: var(--color-white);
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	inline-size: 2.5rem;
	min-block-size: 2rem;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	color: var(--color-text) !important;
	font-size: var(--text-body-md) !important;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce a.button,
	.woocommerce button.button,
	.woocommerce .single_add_to_cart_button,
	.wc-block-components-button,
	.wc-block-components-text-input input,
	.wc-block-components-textarea textarea {
		transition: none;
	}
}
