/*
 * db-new-arrivals.css v1.1.0
 * Dark background rounded-corner tile grid for new arrivals.
 * Section background is controlled via inline style from instance.mvt.
 */

/* ── Outer wrapper ── */
.db-new-arrivals {
	width: 100%;
	clear: both;
	padding-bottom: 20px;
}

/* ── Section heading — dark background variant ── */
.db-new-arrivals__heading {
	padding: 20px 20px 10px;
	text-align: center;
}

.db-new-arrivals__heading h2 {
	font-family: Besom, 'Permanent Marker', cursive;
	font-size: 75px;
	font-weight: 500;
	color: #ffffff;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
}

/* ── Red line divider ── */
.db-new-arrivals__divider {
	width: 100%;
	height: 2px;
	background-color: #7a1010;
	margin: 0 0 12px 0;
}

/* ── Grid ── */
.db-new-arrivals__grid {
	display: grid;
	gap: 12px;
	padding: 12px 16px 0;
	width: 100%;
	box-sizing: border-box;
}

.db-new-arrivals--cols-4 .db-new-arrivals__grid {
	grid-template-columns: repeat(4, 1fr);
}

.db-new-arrivals--cols-3 .db-new-arrivals__grid {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
	.db-new-arrivals--cols-4 .db-new-arrivals__grid,
	.db-new-arrivals--cols-3 .db-new-arrivals__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.db-new-arrivals--cols-4 .db-new-arrivals__grid,
	.db-new-arrivals--cols-3 .db-new-arrivals__grid {
		grid-template-columns: 1fr;
	}
}

/* ── Tile (rounded dark card) ── */
.db-new-arrivals__tile {
	background: #2a2a2a;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ── Tile image ── */
.db-new-arrivals__tile-link {
	display: block;
	width: 100%;
}

.db-new-arrivals__image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px 10px 0 0;
}

/* ── Tile info area ── */
.db-new-arrivals__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 0 10px;
}

/* ── Product name ── */
.db-new-arrivals__name {
	margin: 16px 0 10px 0;
	width: 100%;
	text-align: center;
}

.db-new-arrivals__name a {
	font-family: Lato, sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #b93832;
	text-decoration: none !important;
	line-height: 1.3;
}

.db-new-arrivals__name a:hover {
	text-decoration: underline !important;
}

/* ── Price ── */
.db-new-arrivals__price {
	font-family: Lato, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #aaaaaa;
	text-align: center;
	margin: 0 0 10px 0;
	width: 100%;
}

/* ── Shop Now button ── */
.db-new-arrivals__btn {
	display: block;
	width: 100%;
	max-width: 260px;
	height: 33px;
	line-height: 33px;
	margin: 0 auto 16px auto;
	background-image: url('https://www.deliciousboutique.com/mm5/graphics/store-button-background.jpg');
	background-color: #7a1010;
	background-size: cover;
	color: #ffffff !important;
	font-family: Lato, sans-serif;
	font-size: 16px;
	font-weight: 900;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none !important;
	box-sizing: border-box;
	padding: 0 10px;
	border-radius: 0;
}

.db-new-arrivals__btn:hover {
	opacity: 0.9;
	color: #ffffff !important;
}

/* ── When no button shown, add bottom padding to info area ── */
.db-new-arrivals__info:not(:has(.db-new-arrivals__btn)) {
	padding-bottom: 16px;
}

/* ── Empty state placeholder ── */
.db-new-arrivals__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	color: #666;
	font-family: Lato, sans-serif;
	font-size: 14px;
	font-style: italic;
	text-align: center;
	padding: 1rem;
	box-sizing: border-box;
	border: 2px dashed #444;
	margin: 12px 16px;
	border-radius: 10px;
}
