/**
 * Safe, preview-scoped primitives. No parent-theme selectors live here.
 */

body.artamall-experience {
	direction: rtl;
	color: var(--am-color-navy);
	background: var(--am-surface-page);
	font-family: var(--am-font-fa);
	font-size: var(--am-text-body);
	line-height: 1.75;
	text-align: right;
}

body.artamall-experience :where(button, input, select, textarea) {
	font: inherit;
}

/**
 * Inline-SVG safety net.
 *
 * An inline SVG that carries only a viewBox has no intrinsic size, so in a
 * grid or flex context it stretches to fill whatever box it lands in. That is
 * exactly how the parent theme's header produced a logo thousands of pixels
 * tall, and this layer shipped the same defect in its own header once.
 *
 * `:where()` has zero specificity, so every component rule that sets a real
 * size still wins. This only catches the ones nobody sized.
 */
body.artamall-experience :where(svg) {
	inline-size: 1.25em;
	block-size: 1.25em;
	flex: none;
}

body.artamall-experience :where(img, svg, video, canvas) {
	max-inline-size: 100%;
}

body.artamall-experience :where(a, button, input, select, textarea):focus-visible {
	outline: 0;
	box-shadow: var(--am-focus-ring);
}

/**
 * Visually-hidden utility.
 *
 * The standalone shell does not inherit the parent theme's stylesheet, so this
 * has to be defined here. Without it the search field's label stayed in flow
 * and consumed a grid cell, which pushed the search button onto its own row
 * and left the header field looking twice as tall as intended.
 */
body.artamall-experience .screen-reader-text {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

body.artamall-experience .screen-reader-text:focus {
	position: static;
	inline-size: auto;
	block-size: auto;
	margin: 0;
	clip-path: none;
}

body.artamall-experience .am-container {
	box-sizing: border-box;
	inline-size: min(100% - 2rem, var(--am-container));
	margin-inline: auto;
}

body.artamall-experience .am-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 3rem;
	padding: 0.75rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--am-radius-button);
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.artamall-experience .am-button:hover {
	transform: translateY(-1px);
}

body.artamall-experience .am-button--primary {
	color: var(--am-color-navy);
	background: var(--am-color-coral);
	border-color: var(--am-color-coral);
	box-shadow: 0 0.35rem 0.9rem rgba(240, 100, 90, 0.14);
}

body.artamall-experience .am-button--primary:hover {
	background: #f47a70;
	border-color: #f47a70;
}

body.artamall-experience .am-button--secondary {
	color: var(--am-color-navy);
	background: var(--am-color-white);
	border-color: var(--am-color-navy);
}

body.artamall-experience .am-button--tertiary {
	min-block-size: 2.75rem;
	padding-inline: 0;
	color: var(--am-color-navy);
	background: transparent;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 0.25rem;
}

body.artamall-experience .am-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--am-space-2);
	min-block-size: 2rem;
	padding: var(--am-space-1) var(--am-space-3);
	border-radius: var(--am-radius-chip);
	color: var(--am-color-navy);
	background: var(--am-surface-recessed);
	border: 1px solid var(--am-color-border);
	font-size: var(--am-text-small);
	font-weight: 600;
}

@media (max-width: 639px) {
	body.artamall-experience .am-container {
		inline-size: min(100% - 1.5rem, var(--am-container));
	}

	body.artamall-experience .am-button {
		min-block-size: 3.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.artamall-experience *,
	body.artamall-experience *::before,
	body.artamall-experience *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
