/* Sephari Blended Shop — scoped styles, safe to load alongside Astra. */

.sbs-disclosure {
	font-size: 0.8em;
	color: #6b6b6b;
	margin: 0 0 1em;
}

.sbs-empty {
	font-size: 0.9em;
	color: #6b6b6b;
	font-style: italic;
}

/* Intertwined grid */
.sbs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
	margin: 0 0 2rem;
}

.sbs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.sbs-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.sbs-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	overflow: hidden;
}

.sbs-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sbs-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.75rem 0.9rem 1rem;
}

.sbs-card__title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
}

.sbs-card__price {
	font-size: 0.9rem;
	font-weight: 500;
	color: #444;
}

.sbs-card__source {
	font-size: 0.75rem;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.sbs-card--affiliate {
	border-color: rgba(255, 153, 0, 0.4);
}

.sbs-card__badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1;
	background: #ff9900;
	color: #111;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
}

/* Horizontal "Similar Items" gallery */
.sbs-gallery {
	margin: 1.5rem 0 2rem;
}

.sbs-gallery__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.sbs-gallery__title {
	margin: 0;
	font-size: 1.1rem;
}

.sbs-gallery__nav {
	display: flex;
	gap: 0.4rem;
}

.sbs-gallery__btn {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #fff;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
}

.sbs-gallery__btn:hover {
	background: #f2f2f2;
}

.sbs-gallery__track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	padding-bottom: 0.5rem;
}

.sbs-gallery__track .sbs-card {
	flex: 0 0 180px;
	scroll-snap-align: start;
}

/* Shopify iframe fallback */
.sbs-iframe-wrap {
	position: relative;
	width: 100%;
	height: var(--sbs-iframe-height, 900px);
	margin-bottom: 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	overflow: hidden;
}

.sbs-iframe-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

@media (max-width: 480px) {
	.sbs-gallery__track .sbs-card {
		flex-basis: 140px;
	}
}
