/**
 * Amber Market — store detail page (single-amber_store.php).
 * Reuses the design tokens already defined in amber-public.css
 * (:root — --amber-primary, --amber-ink, --amber-surface, etc.)
 * rather than redefining a parallel palette.
 */

.amber-store-detail {
	max-width: var(--amber-max-width, 1280px);
	margin: 0 auto;
	padding: 0 20px 64px;
	font-family: 'Inter', sans-serif;
	color: var(--amber-ink);
}

.amber-store-detail h2 {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 16px;
	color: var(--amber-ink);
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.amber-store-hero {
	position: relative;
	margin-top: 24px;
	border-radius: var(--amber-card-radius, 24px);
	overflow: hidden;
	min-height: 300px;
	display: flex;
	align-items: flex-end;
	background: #0D1615 center / cover no-repeat;
}

.amber-store-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(13, 22, 21, 0.15) 0%, rgba(13, 22, 21, 0.82) 85%);
}

.amber-store-hero-inner {
	position: relative;
	z-index: 1;
	padding: 32px 40px;
	width: 100%;
}

.amber-store-breadcrumb {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 14px;
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}

.amber-store-breadcrumb a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}
.amber-store-breadcrumb a:hover { color: #fff; }
.amber-store-breadcrumb span:last-child { color: #fff; font-weight: 600; }

.amber-store-hero-title {
	color: #fff;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 8px;
	max-width: 720px;
}

.amber-store-hero-subtitle {
	color: rgba(255, 255, 255, 0.88);
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 10px;
}

.amber-store-hero-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 14px;
	margin: 0 0 22px;
}
.amber-store-hero-status-icon { color: var(--amber-accent-light, #5BE688); font-size: 10px; }

.amber-store-hero-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.amber-store-btn-primary,
.amber-store-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 22px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.amber-store-btn-primary {
	background: var(--amber-primary);
	color: #fff;
	border: 1px solid var(--amber-primary);
}
.amber-store-btn-primary:hover { background: #17a044; }

.amber-store-btn-outline {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.65);
}
.amber-store-btn-outline:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------------------------------------------------------------
   4 info cards
   --------------------------------------------------------------- */

.amber-store-info-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: 28px;
}

.amber-store-info-card {
	background: #fff;
	border: 1px solid var(--amber-divider);
	border-radius: 16px;
	padding: 20px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.amber-store-info-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--amber-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
}

.amber-store-info-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--amber-secondary-text);
	margin-bottom: 4px;
}

.amber-store-info-card p {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--amber-ink);
	line-height: 1.4;
}
.amber-store-info-card a { color: var(--amber-ink); text-decoration: none; }
.amber-store-info-card a:hover { color: var(--amber-primary); }

/* ---------------------------------------------------------------
   Current Offers | Everyday Deals
   --------------------------------------------------------------- */

.amber-store-offers-deals {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 24px;
	margin-top: 40px;
	align-items: start;
	scroll-margin-top: 24px;
}

.amber-store-offer-card {
	background: var(--amber-surface);
	border-radius: 18px;
	padding: 20px;
	text-align: center;
}

.amber-store-offer-card .amber-fm-viewer {
	width: 100%;
	max-width: 190px;
	margin: 0 auto;
}

.amber-store-offer-card .amber-fm-viewer-controls,
.amber-store-offer-card .amber-fm-viewer-download {
	margin-top: 10px;
	transform: scale(0.85);
	transform-origin: center top;
}

.amber-store-offer-title {
	margin: 14px 0 2px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.amber-store-offer-dates {
	margin: 0;
	font-size: 13px;
	color: var(--amber-secondary-text);
}

.amber-store-offer-empty {
	background: var(--amber-surface);
	border-radius: 18px;
	padding: 32px 20px;
	text-align: center;
	color: var(--amber-secondary-text);
	font-size: 14px;
}

.amber-store-deals-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.amber-store-deals-head h2 { margin: 0; }
.amber-store-deals-head a {
	font-size: 13px;
	font-weight: 700;
	color: var(--amber-primary);
	text-decoration: none;
	white-space: nowrap;
}
.amber-store-deals-head a:hover { text-decoration: underline; }

.amber-store-deals-carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.amber-store-deals-viewport {
	overflow: hidden;
	flex: 1 1 auto;
	min-width: 0;
}

.amber-store-deals-track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 2px;
}
.amber-store-deals-track::-webkit-scrollbar { display: none; }

.amber-store-deal-card {
	position: relative;
	flex: 0 0 auto;
	width: calc(25% - 11px);
	min-width: 150px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid var(--amber-divider);
	border-radius: 14px;
	padding: 12px;
}

.amber-store-deal-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #E4402C;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	padding: 4px 7px;
	border-radius: 7px;
	z-index: 1;
}

.amber-store-deal-image {
	aspect-ratio: 1 / 1;
	background: var(--amber-surface);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 8px;
}
.amber-store-deal-image img { width: 100%; height: 100%; object-fit: contain; }
.amber-store-deal-noimage { display: block; width: 60%; height: 60%; background: var(--amber-divider); border-radius: 8px; }

.amber-store-deal-name {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 8px;
	min-height: 2.6em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.amber-store-deal-prices {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}
.amber-store-deal-price { font-size: 14.5px; font-weight: 800; color: var(--amber-ink); }
.amber-store-deal-regular { font-size: 11.5px; color: var(--amber-secondary-text); text-decoration: line-through; }

.amber-store-deals-prev,
.amber-store-deals-next {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--amber-divider);
	background: #fff;
	color: var(--amber-ink);
	font-size: 15px;
	cursor: pointer;
}
.amber-store-deals-prev:hover,
.amber-store-deals-next:hover { border-color: var(--amber-primary); color: var(--amber-primary); }

.amber-store-deals-empty {
	color: var(--amber-secondary-text);
	font-size: 14px;
}

/* ---------------------------------------------------------------
   Gallery
   --------------------------------------------------------------- */

.amber-store-gallery { margin-top: 48px; }

.amber-store-gallery-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 16px;
}

.amber-store-gallery-large,
.amber-store-gallery-small {
	border-radius: 16px;
	overflow: hidden;
	background: var(--amber-surface);
}
.amber-store-gallery-large { min-height: 320px; }
.amber-store-gallery-large img,
.amber-store-gallery-small img { width: 100%; height: 100%; object-fit: cover; display: block; }

.amber-store-gallery-small-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	height: 100%;
}
.amber-store-gallery-small { min-height: 150px; }

/* ---------------------------------------------------------------
   Map + details
   --------------------------------------------------------------- */

.amber-store-map-section {
	margin-top: 48px;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 24px;
	align-items: stretch;
}

.amber-store-map-embed {
	border-radius: 18px;
	overflow: hidden;
	background: var(--amber-surface);
	min-height: 280px;
}
.amber-store-map-embed iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

.amber-store-map-details {
	background: var(--amber-surface);
	border-radius: 18px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}
.amber-store-map-details h2 { margin-bottom: 6px; }
.amber-store-map-details p { margin: 0; font-size: 14px; color: var(--amber-ink); display: flex; gap: 8px; align-items: flex-start; }
.amber-store-map-icon { flex-shrink: 0; }
.amber-store-map-details .amber-store-btn-primary { align-self: flex-start; margin-top: 10px; color: #fff; }

/* ---------------------------------------------------------------
   Other stores
   --------------------------------------------------------------- */

.amber-store-other { margin-top: 48px; }

.amber-store-other-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.amber-store-other-head h2 { margin: 0; }
.amber-store-other-head a {
	font-size: 13px;
	font-weight: 700;
	color: var(--amber-primary);
	text-decoration: none;
	white-space: nowrap;
}
.amber-store-other-head a:hover { text-decoration: underline; }

.amber-store-other-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.amber-store-other-card {
	background: #fff;
	border: 1px solid var(--amber-divider);
	border-radius: 16px;
	overflow: hidden;
	padding-bottom: 16px;
}

.amber-store-other-image { aspect-ratio: 16 / 10; background: var(--amber-surface); }
.amber-store-other-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amber-store-other-noimage { display: block; width: 100%; height: 100%; }

.amber-store-other-name { margin: 14px 16px 4px; font-size: 15px; font-weight: 700; }
.amber-store-other-area {
	margin: 0 16px 14px;
	font-size: 12.5px;
	color: var(--amber-secondary-text);
	display: flex;
	align-items: center;
	gap: 5px;
}

.amber-store-other-btn {
	margin: 0 16px;
	width: calc(100% - 32px);
	justify-content: center;
	color: #fff;
	background: var(--amber-primary);
	border-color: var(--amber-primary);
}
.amber-store-other-btn:hover { background: #17a044; }

/* ---------------------------------------------------------------
   Tablet
   --------------------------------------------------------------- */

@media (max-width: 1024px) {
	.amber-store-info-cards { grid-template-columns: repeat(2, 1fr); }
	.amber-store-offers-deals { grid-template-columns: minmax(0, 1fr); }
	.amber-store-offer-card { max-width: 320px; margin: 0 auto; }
	.amber-store-deal-card { width: calc(33.333% - 10px); }
	.amber-store-gallery-grid { grid-template-columns: 1fr; }
	.amber-store-gallery-large { min-height: 260px; }
	.amber-store-map-section { grid-template-columns: 1fr; }
	.amber-store-other-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------
   Mobile
   --------------------------------------------------------------- */

@media (max-width: 640px) {
	.amber-store-detail { padding: 0 14px 48px; }
	.amber-store-hero { margin-top: 14px; min-height: 260px; }
	.amber-store-hero-inner { padding: 22px 20px; }
	.amber-store-hero-actions { flex-direction: column; align-items: stretch; }
	.amber-store-btn-primary, .amber-store-btn-outline { justify-content: center; }

	.amber-store-info-cards { grid-template-columns: 1fr; margin-top: 20px; gap: 12px; }

	.amber-store-offers-deals { margin-top: 28px; gap: 28px; }
	.amber-store-deal-card { width: calc(50% - 7px); min-width: 130px; }

	.amber-store-gallery { margin-top: 32px; }
	.amber-store-gallery-small-grid { grid-template-columns: 1fr 1fr; }
	.amber-store-gallery-large { min-height: 200px; }
	.amber-store-gallery-small { min-height: 100px; }

	.amber-store-map-section { margin-top: 32px; }
	.amber-store-map-details { padding: 20px; }

	.amber-store-other { margin-top: 32px; }
	.amber-store-other-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.amber-store-other-name { font-size: 13.5px; }
}

@media (max-width: 400px) {
	.amber-store-other-grid { grid-template-columns: 1fr; }
}


/* ---- Phase A additions: Opening Soon, WhatsApp card, Delivery box ---- */

.amber-store-hero-status--opening-soon {
	background: var(--amber-cream);
	color: var(--amber-dark-green);
	padding: 6px 14px;
	border-radius: 20px;
	font-weight: 600;
}

.amber-store-info-card--whatsapp .amber-store-info-icon {
	background: #E7F8EC;
}

/* The WhatsApp Delivery card is now the whole-card <a> itself (merged with
   the old separate Delivery CTA section below - see single-amber_store.php),
   so it needs its own hover treatment; every other info card is a plain,
   non-interactive div and is unaffected. */
.amber-store-info-card--whatsapp {
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.amber-store-info-card--whatsapp:hover,
.amber-store-info-card--whatsapp:focus-visible {
	border-color: var(--amber-primary);
	box-shadow: 0 4px 14px rgba(20, 88, 47, 0.12);
}
.amber-store-delivery {
	margin-top: 28px;
}

.amber-store-delivery-card {
	display: flex;
	align-items: center;
	gap: 22px;
	background: var(--amber-cream);
	border-radius: 20px;
	padding: 28px 32px;
	flex-wrap: wrap;
}

.amber-store-delivery-icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
}

.amber-store-delivery-copy {
	flex: 1 1 260px;
}

.amber-store-delivery-copy h2 {
	color: var(--amber-dark-green);
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 6px;
}

.amber-store-delivery-copy p {
	color: var(--amber-ink);
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.amber-store-delivery-sub {
	color: var(--amber-secondary-text) !important;
}

.amber-store-delivery-btn {
	flex-shrink: 0;
	white-space: nowrap;
}

.amber-store-opening-soon-notice {
	background: var(--amber-cream);
	border-radius: 20px;
	padding: 48px 32px;
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

.amber-store-opening-soon-notice h2 {
	color: var(--amber-dark-green);
	font-size: 24px;
	margin: 0 0 12px;
}

.amber-store-opening-soon-notice p {
	color: var(--amber-ink);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 600px) {
	.amber-store-delivery-card {
		flex-direction: column;
		text-align: center;
		padding: 24px 20px;
	}
	.amber-store-delivery-copy {
		/* flex-basis follows the main axis, so the 260px row-layout basis
		   would otherwise become a min-HEIGHT once the card switches to
		   column here, leaving a large empty gap above the button. */
		flex-basis: auto;
	}
	.amber-store-delivery-btn {
		width: 100%;
		text-align: center;
	}
}