/**
 * Coded shop surfaces: page hero and product cards.
 *
 * Scoped under .enventor-shop / .enventor-shop-hero. Matches the existing
 * apparel pages: charcoal stage, orange section heading, white rounded cards,
 * orange primary button, light secondary button. Fonts are inherited.
 */

.enventor-shop,
.enventor-shop-hero {
	--enventor-orange: #ff4500;
	--enventor-action: #d93a00;
	--enventor-charcoal: #1c1c1c;
	--enventor-muted: #62605d;
	--enventor-rule: #e3dfda;
	--enventor-surface: #ffffff;
	--enventor-soft: #f3f1ee;
	box-sizing: border-box;
	font: inherit;
}

.enventor-shop *,
.enventor-shop *::before,
.enventor-shop *::after,
.enventor-shop-hero *,
.enventor-shop-hero *::before,
.enventor-shop-hero *::after {
	box-sizing: border-box;
}

/* Hero --------------------------------------------------------------------- */

.enventor-shop-hero {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	min-height: clamp(360px, 42vw, 560px);
	margin: 0;
	overflow: hidden;
	background: var(--enventor-charcoal);
	isolation: isolate;
}

.enventor-shop-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--enventor-charcoal) var(--enventor-hero-image, none) center 45% / cover no-repeat;
	z-index: 0;
}

.enventor-shop-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.55);
	z-index: 1;
}

.enventor-shop-hero-copy {
	position: relative;
	z-index: 2;
	padding: 0 24px;
	text-align: center;
}

.enventor-shop-eyebrow {
	margin: 0 0 8px;
	color: var(--enventor-orange);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
}

.enventor-shop-title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
	font-weight: 500;
	line-height: 1.15;
}

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

.enventor-shop {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}

.enventor-shop-heading {
	margin: 0 0 24px;
	color: var(--enventor-orange);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
	font-weight: 500;
	line-height: 1.2;
}

.enventor-shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	align-items: stretch;
}

.enventor-shop-grid-single {
	grid-template-columns: minmax(280px, 360px);
}

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

.enventor-shop-notices {
	margin: 0 0 24px;
}

.enventor-shop-notices .woocommerce-message,
.enventor-shop-notices .woocommerce-error,
.enventor-shop-notices .woocommerce-info {
	margin: 0 0 12px;
	padding: 14px 16px;
	border-left: 4px solid var(--enventor-orange);
	border-radius: 8px;
	background: var(--enventor-surface);
	color: var(--enventor-charcoal);
	list-style: none;
}

.enventor-shop-notices .woocommerce-message a,
.enventor-shop-notices .woocommerce-error a,
.enventor-shop-notices .woocommerce-info a {
	color: var(--enventor-action);
	font-weight: 600;
}

/* Card ---------------------------------------------------------------------- */

.enventor-shop-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 24px;
	background: var(--enventor-surface);
	color: var(--enventor-charcoal);
}

.enventor-shop-card-media {
	display: block;
	padding: 24px 24px 8px;
	background: var(--enventor-surface);
}

.enventor-shop-card-media img,
.enventor-shop-card-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}

.enventor-shop-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	padding: 8px 24px 24px;
}

.enventor-shop-card-category {
	margin: 0;
	color: var(--enventor-charcoal);
	font-size: 0.85rem;
	line-height: 1.4;
}

.enventor-shop-card-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.3;
}

.enventor-shop-card-title a {
	color: var(--enventor-orange);
	text-decoration: none;
}

.enventor-shop-card-title a:hover,
.enventor-shop-card-title a:focus-visible {
	color: var(--enventor-action);
}

.enventor-shop-card-price {
	margin: 0 0 8px;
	font-size: 0.95rem;
	font-weight: 500;
}

.enventor-shop-card-price del {
	color: var(--enventor-muted);
	font-weight: 400;
}

.enventor-shop-card-price ins {
	text-decoration: none;
}

.enventor-shop-card-soldout {
	margin: 0 0 8px;
	color: var(--enventor-muted);
	font-weight: 600;
}

/* Form ---------------------------------------------------------------------- */

.enventor-shop-form {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	margin: auto 0 0;
}

.enventor-shop-size {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
}

.enventor-shop-size select {
	width: 100%;
	min-height: 44px;
	padding: 8px 40px 8px 14px;
	border: 1px solid var(--enventor-rule);
	border-radius: 999px;
	background: var(--enventor-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c1c1c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
	color: var(--enventor-charcoal);
	font: inherit;
	font-weight: 500;
	appearance: none;
	-webkit-appearance: none;
}

.enventor-shop-size select:focus-visible,
.enventor-shop-button:focus-visible {
	outline: 3px solid var(--enventor-orange);
	outline-offset: 2px;
}

.enventor-shop-card-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.enventor-shop-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 120ms ease, color 120ms ease;
}

.enventor-shop-button-primary {
	background: var(--enventor-orange);
	color: #ffffff;
}

.enventor-shop-button-primary:hover,
.enventor-shop-button-primary:focus-visible {
	background: var(--enventor-action);
	color: #ffffff;
}

.enventor-shop-button-secondary {
	background: var(--enventor-soft);
	color: var(--enventor-charcoal);
}

.enventor-shop-button-secondary:hover,
.enventor-shop-button-secondary:focus-visible {
	background: #e8e4df;
	color: var(--enventor-charcoal);
}

/* Narrow screens ------------------------------------------------------------ */

@media (max-width: 560px) {
	.enventor-shop-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.enventor-shop-card-media {
		padding: 16px 16px 4px;
	}

	.enventor-shop-card-body {
		padding: 4px 16px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.enventor-shop-button {
		transition: none;
	}
}
