/*
 * Single store page layout.
 *
 * Structure:
 *   .coastal-store-single          — page wrapper
 *   .coastal-store-single__hero    — 50/50 grid: image left, info right
 *   .coastal-store-single__map     — full-width map strip below the hero
 *
 * Category carousel and brand section that follow re-use their own
 * stylesheets (category-carousel.css, brand-section.css).
 */

.coastal-store-single {
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #000000;
}

/* ── Hero: image + info side by side ───────────────────────────────────── */

.coastal-store-single__hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
	margin-bottom: 48px;
}

/* ── Image column ───────────────────────────────────────────────────────── */

.coastal-store-single__image {
	border-radius: 16px;
	overflow: hidden;
	background: #f0f4f8;
}

.coastal-store-single__image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.coastal-store-single__image--empty {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aab;
	font-size: 14px;
}

/* ── Info column ────────────────────────────────────────────────────────── */

.coastal-store-single__info {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Open / closed status badge */
.coastal-store-single__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	width: fit-content;
}

.coastal-store-single__status--open {
	background: #e6f7ec;
	color: #166534;
}

.coastal-store-single__status--closed {
	background: #fee2e2;
	color: #991b1b;
}

.coastal-store-single__status::before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

/* Grouped hours table */
.coastal-store-single__hours {
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 24px;
	row-gap: 5px;
	margin: 0;
}

.coastal-store-single__hours dt {
	font-weight: 600;
	color: #000000;
}

.coastal-store-single__hours dd {
	margin: 0;
	color: #333333;
}

/* Address */
.coastal-store-single__address {
	font-style: normal;
	line-height: 1.6;
	margin: 0;
}

/* Phone */
.coastal-store-single__phone {
	margin: 0;
}

.coastal-store-single__phone a {
	color: #2c2c75;
	font-weight: 600;
	text-decoration: none;
}

.coastal-store-single__phone a:hover {
	text-decoration: underline;
}

/* Directions CTA */
.coastal-store-single__directions {
	margin: 0;
}

/* ── Map strip ──────────────────────────────────────────────────────────── */

.coastal-store-single__map {
	margin-bottom: 0;
	border-radius: 16px;
	overflow: hidden;
}

.coastal-store-single__map .wpsl-gmap-canvas {
	display: block;
	width: 100% !important;
	border-radius: 16px;
	overflow: hidden;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.coastal-store-single__hero {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 640px) {
	.coastal-store-single__hero {
		gap: 24px;
		margin-bottom: 32px;
	}

	.coastal-store-single__map {
		border-radius: 12px;
	}
}

/* ── Products at this store ─────────────────────────────────────────────── */

.coastal-store-products {
	background: #eff4fb;
	padding: 56px 0;
}

.coastal-store-products__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: 48px;
}

.coastal-store-products__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.coastal-store-products__heading {
	margin: 0;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	color: #2c2c75;
}

.coastal-store-products__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.coastal-store-products__card-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none !important;
	background: #fff;
	border: 1px solid #dce9f5;
	border-radius: 12px;
	padding: 20px 14px 16px;
	height: 100%;
	box-sizing: border-box;
	transition: box-shadow 150ms ease-in-out, border-color 150ms ease-in-out;
}

.coastal-store-products__card-link:hover,
.coastal-store-products__card-link:focus-visible {
	box-shadow: 0 4px 16px rgba(44, 44, 117, 0.14);
	border-color: #2c2c75;
}

.coastal-store-products__image-wrap {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	margin-bottom: 12px;
}

.coastal-store-products__image {
	display: block;
	max-width: 100%;
	max-height: 100px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.coastal-store-products__image-placeholder {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.05);
}

.coastal-store-products__name {
	display: block;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
	color: #1a1a1a;
}

@media (max-width: 1024px) {
	.coastal-store-products__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.coastal-store-products__inner {
		padding-inline: 32px;
	}
}

@media (max-width: 640px) {
	.coastal-store-products__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.coastal-store-products__inner {
		padding-inline: 20px;
	}

	.coastal-store-products__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}
