/*
 * Coastal Supply — Single Product page.
 *
 * Two custom sections rendered by content-single-product.php:
 *   1. Hero  — 50/50 grid: breadcrumb + title + image (left) | excerpt + CTA (right).
 *   2. Stores — full-viewport-width band with horizontal store cards.
 *
 * The Trusted Brands section reuses .coastal-brands from brand-section.css —
 * only the full-width escape-hatch override lives here.
 */

/* ── Kill Astra's default #primary margin so breadcrumb sits under the header ── */

.single-product #primary,
.single-product.ast-plain-container.ast-no-sidebar #primary {
	margin: 0;
	margin-top: 0;
}

/* ── Hero — full-viewport-width background band ──────────────────────────── */

.coastal-single-product__hero-section {
	width: auto;
	max-width: none;
	margin-inline: calc(50% - 50vw);
	background: rgba(220, 233, 245, 0.50);
}

.coastal-single-product__hero-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding: 24px 10px 64px;
}

.coastal-single-product__hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: start;
}

/* ── Breadcrumb + title above the grid ───────────────────────────────────── */

.coastal-single-product__breadcrumb,
.coastal-single-product__breadcrumb .woocommerce-breadcrumb {
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #888;
	margin: 0 0 8px;
	padding: 0;
	background: none;
}

.coastal-single-product__breadcrumb a,
.coastal-single-product__breadcrumb .woocommerce-breadcrumb a {
	color: #888;
	text-decoration: none;
}

.coastal-single-product__breadcrumb a:hover,
.coastal-single-product__breadcrumb .woocommerce-breadcrumb a:hover {
	color: #2c2c75;
	text-decoration: underline;
}

.coastal-single-product__title {
	font-family: "Manrope", sans-serif;
	font-size: 36px;
	font-weight: 700;
	color: #2c2c75;
	margin: 0 0 28px;
	line-height: 1.2;
}

/* ── Left column: image only ─────────────────────────────────────────────── */

.coastal-single-product__left {
	min-width: 0;
}

/* WooCommerce gallery — force full column width */
.coastal-single-product__image,
.coastal-single-product__image .woocommerce-product-gallery,
.coastal-single-product__image .woocommerce-product-gallery__wrapper,
.coastal-single-product__image .woocommerce-product-gallery__image {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

.coastal-single-product__image .woocommerce-product-gallery__image a,
.coastal-single-product__image .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
}

.coastal-single-product__image .woocommerce-product-gallery__image img {
	border-radius: 12px;
	background: #f5f8fb;
	object-fit: cover;
}

/* ── Right column: excerpt + CTA ─────────────────────────────────────────── */

.coastal-single-product__right {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.coastal-single-product__excerpt {
	font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #333;
}

.coastal-single-product__excerpt p {
	margin: 0 0 12px;
}

.coastal-single-product__excerpt p:last-child {
	margin-bottom: 0;
}

.coastal-single-product__cta {
	align-self: flex-start;
}

/* ── Store locations — full-viewport-width band ──────────────────────────── */

.coastal-single-product__stores-section {
	width: auto;
	max-width: none;
	margin-inline: calc(50% - 50vw);
	background: rgba(220, 233, 245, 0.50);
	padding: 40px 80px;
}

.coastal-single-product__stores-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
}

.coastal-single-product__stores-inner {
	padding: 40px;
}

.coastal-single-product__stores-header {
	margin-bottom: 28px;
}

.coastal-single-product__stores-heading {
	font-family: "Manrope", sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #2c2c75;
	margin: 0 0 6px;
}

/* Scroll track */
.coastal-single-product__stores-scroll-wrap {
	overflow-x: auto;
	overflow-y: visible;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.coastal-single-product__stores-scroll-wrap::-webkit-scrollbar {
	display: none;
}

.coastal-single-product__stores-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 4px 2px 16px;
	width: max-content;
	min-width: 100%;
	scroll-snap-type: x mandatory;
}

/* Store card */
.coastal-single-product__store-card {
	flex: 0 0 240px;
	background: #fff;
	border: 1px solid #dce9f5;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	scroll-snap-align: start;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: box-shadow 150ms ease-in-out, border-color 150ms ease-in-out;
}

.coastal-single-product__store-card:hover {
	box-shadow: 0 4px 16px rgba(44, 44, 117, 0.12);
	border-color: #2c2c75;
}

/* Store photo */
.coastal-single-product__store-photo {
	width: 100%;
	height: 140px;
	overflow: hidden;
	background: #dce9f5;
	flex-shrink: 0;
}

.coastal-single-product__store-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.coastal-single-product__store-photo-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #dce9f5 0%, #c3d8ef 100%);
}

/* Store info */
.coastal-single-product__store-info {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.coastal-single-product__store-name {
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.coastal-single-product__store-name a {
	color: #1e1e3f;
	text-decoration: none;
}

.coastal-single-product__store-name a:hover {
	color: #2c2c75;
}

.coastal-single-product__store-address {
	font-size: 13px;
	line-height: 1.5;
	color: #555;
	font-style: normal;
	margin: 0;
}

.coastal-single-product__store-today {
	font-size: 13px;
	color: #2a7a4b;
	margin: 0;
	font-weight: 500;
}

.coastal-single-product__store-today strong {
	font-weight: 700;
}

.coastal-single-product__store-hours {
	margin: 0;
	font-size: 12px;
	color: #555;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.coastal-single-product__store-hours > div {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.coastal-single-product__store-hours dt {
	font-weight: 600;
	color: #333;
	white-space: nowrap;
}

.coastal-single-product__store-hours dd {
	margin: 0;
	text-align: right;
}

.coastal-single-product__store-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
	border-top: 1px solid #eaf1f8;
	font-size: 13px;
	font-weight: 600;
}

.coastal-single-product__store-directions {
	color: #2c2c75;
	text-decoration: none;
}

.coastal-single-product__store-directions:hover {
	text-decoration: underline;
}

.coastal-single-product__store-phone {
	color: #555;
	text-decoration: none;
}

.coastal-single-product__store-phone:hover {
	color: #2c2c75;
}

/* ── Trusted Brands — full-width override for .coastal-brands ────────────── */

.coastal-single-product__brands-section.coastal-brands {
	width: auto;
	max-width: none;
	margin-inline: calc(50% - 50vw);
	padding: 40px 80px;
}

/* White inner card — mirrors the stores card pattern */
.coastal-single-product__brands-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
}

/* brand-section.css uses padding on .coastal-brands__inner; override for card context */
.coastal-single-product__brands-section .coastal-brands__inner {
	max-width: 100% !important;
	padding: 40px !important;
}

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

@media (max-width: 1024px) {
	.coastal-single-product__hero-wrap,
	.coastal-single-product__stores-inner {
		padding-inline: 18px;
	}
}

@media (max-width: 768px) {
	.coastal-single-product__hero-wrap,
	.coastal-single-product__stores-inner {
		padding-inline: 14px;
	}

	.coastal-single-product__hero {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.coastal-single-product__title {
		font-size: 28px;
	}

	.coastal-single-product__store-card {
		flex: 0 0 220px;
	}
}
