/*
 * SE Merch Network — base styles
 *
 * Intentionally minimal. These provide functional layout only.
 * Override freely using Additional CSS in each site's Customizer,
 * or via Site Editor → Styles → Additional CSS.
 *
 * BEM-style classes: .se-merch, .se-merch--grid, .se-merch__card, etc.
 */

/* -----------------------------------------------------------------------
   Shared
   ----------------------------------------------------------------------- */

.se-merch img {
	display: block;
	width: 100%;
	height: auto;
}

.se-merch__title {
	margin: 0 0 0.25em;
	font-size: 1.1em;
	font-weight: 600;
}

.se-merch__excerpt {
	margin: 0 0 0.5em;
	font-size: 0.9em;
	color: inherit;
	opacity: 0.8;
}

.se-merch__price {
	margin: 0 0 0.75em;
	font-size: 1em;
	font-weight: 700;
}

.se-merch__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.se-merch__btn {
	display: inline-block;
	padding: 0.45em 1em;
	font-size: 0.85em;
	font-weight: 600;
	text-decoration: none;
	border-radius: 3px;
	transition: opacity 0.15s ease;
}

.se-merch__btn:hover {
	opacity: 0.85;
}

.se-merch__btn--payhip {
	background: #1a1a1a;
	color: #fff;
}

.se-merch__btn--etsy {
	background: #f1641e;
	color: #fff;
}

.se-merch-empty {
	font-style: italic;
	opacity: 0.6;
}

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

.se-merch--grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 1.5rem;
}

.se-merch__card {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
}

.se-merch__image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.se-merch__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.se-merch__body {
	padding: 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.se-merch__body .se-merch__actions {
	margin-top: auto;
	padding-top: 0.75em;
}

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

.se-merch--hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
}

.se-merch__hero-image img {
	border-radius: 4px;
}

.se-merch__hero-content {
	padding: 1rem 0;
}

.se-merch--hero .se-merch__title {
	font-size: 1.6em;
	margin-bottom: 0.5em;
}

@media ( max-width: 640px ) {
	.se-merch--hero {
		grid-template-columns: 1fr;
	}
}

/* -----------------------------------------------------------------------
   Sidebar layout
   ----------------------------------------------------------------------- */

.se-merch--sidebar .se-merch__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.se-merch__item {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.se-merch__thumb {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 3px;
	flex-shrink: 0;
}

.se-merch__item-body {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
}

.se-merch--sidebar .se-merch__title {
	font-size: 0.9em;
}

.se-merch--sidebar .se-merch__price {
	font-size: 0.85em;
	margin: 0;
}

.se-merch--sidebar .se-merch__btn {
	padding: 0.3em 0.75em;
	font-size: 0.8em;
}
