/**
 * Shop By Device Widget — Frontend Styles
 * Version: 1.0.0
 */

/* ── Wrapper ─────────────────────────────────────────────────── */
.sbd-widget {
	display: block;
	width: 100%;
}

/* ── Heading ─────────────────────────────────────────────────── */
.sbd-heading {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 16px;
	padding: 0;
}

/* ── List Layout ─────────────────────────────────────────────── */
.sbd-items.sbd-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* ── Grid Layout ─────────────────────────────────────────────── */
.sbd-items.sbd-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

/* ── Item ────────────────────────────────────────────────────── */
.sbd-item {
	display: block;
	margin: 0;
	padding: 6px 0;
	line-height: 1.5;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sbd-item.has-separator {
	border-bottom: 1px solid #e5e5e5;
}

.sbd-item.has-separator:last-child {
	border-bottom: none;
}

/* ── Item Inner ──────────────────────────────────────────────── */
.sbd-item-inner {
	display: flex;
	align-items: center;
	gap: 0;
	text-decoration: none;
	color: inherit;
	width: 100%;
}

/* ── Item Link ───────────────────────────────────────────────── */
.sbd-item a.sbd-item-inner {
	text-decoration: none;
	color: inherit;
	transition: color 0.15s ease;
}

.sbd-item a.sbd-item-inner:hover {
	text-decoration: none;
}

/* ── Product Image ───────────────────────────────────────────── */
.sbd-item-image {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin-right: 12px;
}

.sbd-item-image img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	display: block;
}

/* ── Title ───────────────────────────────────────────────────── */
.sbd-item-title {
	display: block;
	flex: 1;
}

/* ── Price ───────────────────────────────────────────────────── */
.sbd-item-price {
	display: block;
	font-size: 0.85em;
	opacity: 0.75;
	margin-left: auto;
	padding-left: 12px;
	white-space: nowrap;
}

.sbd-item-price .woocommerce-Price-amount {
	font-size: inherit;
}

.sbd-item-price ins {
	text-decoration: none;
}

/* ── No Products / Placeholder ───────────────────────────────── */
.sbd-no-products,
.sbd-placeholder {
	color: #999;
	font-style: italic;
	font-size: 14px;
	padding: 12px;
	text-align: center;
	border: 2px dashed #ddd;
	border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
	.sbd-items.sbd-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

@media (max-width: 480px) {
	.sbd-item-price {
		display: none;
	}
}
