/* Rustic of Utah - mobile refresh, step 2.
   Phone-only blocks are hidden on desktop; everything else is inside the 768px media query. */
.rm2-promo, .rm2-section-title, .rm2-showroom { display: none; }

@media (max-width: 768px) {

	/* ---------- Sticky top bar ---------- */
	html { scroll-padding-top: 60px; }
	body.mean-container { padding-top: 52px !important; }
	.mean-container .mean-bar {
		position: fixed !important;
		top: 0;
		left: 0;
		right: 0;
		width: 100% !important;
		z-index: 9999 !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
	}
	.mean-container .mean-nav {
		max-height: calc(100vh - 52px);
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	/* ---------- Anniversary promo (homepage) ---------- */
	html.rm2-home .rm2-promo {
		display: flex;
		align-items: center;
		gap: 14px;
		margin: 16px 14px 4px;
		padding: 14px 14px 14px 12px;
		background: #231712;
		border-radius: 6px;
		box-shadow: 0 2px 10px rgba(35, 23, 18, .25);
		border: 1px solid #4a3a30;
	}
	.rm2-promo-badge {
		flex: 0 0 72px;
		width: 72px !important;
		height: 72px !important;
		border-radius: 50%;
		object-fit: cover;
		background: #efe3cf;
	}
	.rm2-promo-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
	.rm2-promo-kicker {
		color: #d9c79a;
		font: 700 10px/1.2 Lato, "Open Sans", sans-serif;
		letter-spacing: .16em;
		text-transform: uppercase;
	}
	.rm2-promo-title {
		color: #e8cf8a;
		font: 400 23px/1.1 "Playfair Display", Georgia, serif;
	}
	.rm2-promo-body { color: #f6efe2; font: 400 13px/1.45 Lato, "Open Sans", sans-serif; }
	.rm2-code {
		display: inline-block;
		color: #fff;
		font-weight: 700;
		letter-spacing: .06em;
		padding: 0 6px;
		border: 1px dashed #e8cf8a;
		border-radius: 3px;
	}
	.rm2-promo-fine { color: #cbbfae; font: 400 11px/1.3 Lato, "Open Sans", sans-serif; }

	/* ---------- Homepage: compact two-column categories ---------- */
	html.rm2-home .rm2-section-title {
		display: block;
		margin: 6px 0 12px !important;
		padding: 0 !important;
		text-align: center;
		color: #3b2a1e;
		font: 400 22px/1.2 "Playfair Display", Georgia, serif !important;
		letter-spacing: .02em;
	}
	html.rm2-home h1.home-intro-title { padding-top: 18px !important; }
	html.rm2-home .tiles { display: flex !important; flex-wrap: wrap; gap: 12px; padding-top: 0 !important; }
	html.rm2-home .tiles::before, html.rm2-home .tiles::after { display: none !important; }
	html.rm2-home .tiles .thirds {
		width: calc(50% - 6px) !important;
		max-width: none;
		margin: 0 !important;
	}
	/* Tiles match the photos' 4:3 shape (theme forces 250px tall, which crops them). */
	html.rm2-home body#Home .tiles .thirds .img-wrap-1,
	html.rm2-home .tiles .thirds .img-wrap-1 { height: auto !important; min-height: 0 !important; }
	html.rm2-home body#Home .tiles .thirds .img-wrap-1 img,
	html.rm2-home .tiles .thirds .img-wrap-1 img {
		height: auto !important;
		max-height: none !important;
		aspect-ratio: 4 / 3;
		object-fit: cover;
	}
	html.rm2-home .tiles .thirds .title { padding: 0 !important; min-height: 0 !important; }
	html.rm2-home .tiles .thirds .title h4 {
		font-size: 14px !important;
		line-height: 1.25 !important;
		letter-spacing: .04em !important;
		margin: 0 !important;
		padding: 16px 6px !important;
		min-height: 0 !important;
	}

	/* ---------- Showroom card (homepage) ---------- */
	html.rm2-home .rm2-showroom {
		display: block;
		margin: 22px 0 16px;
		padding: 18px 16px;
		text-align: center;
		background: #f6efe2;
		border: 1px solid #d8cdbd;
		border-radius: 6px;
	}
	.rm2-showroom-kicker {
		display: block;
		color: #bd1e24;
		font: 700 11px/1.2 Lato, "Open Sans", sans-serif;
		letter-spacing: .18em;
		text-transform: uppercase;
		margin-bottom: 8px;
	}
	.rm2-showroom-addr { margin: 0 0 6px !important; color: #3b2a1e; font: 400 16px/1.4 Lato, "Open Sans", sans-serif; }
	.rm2-showroom-hours { margin: 0 0 14px !important; color: #6b5440; font: 400 13px/1.4 Lato, "Open Sans", sans-serif; }
	.rm2-showroom-btns { display: flex; gap: 10px; }
	.rm2-btn {
		flex: 1 1 0;
		display: block;
		height: 44px;
		line-height: 44px;
		border-radius: 6px;
		background: #231712;
		color: #f6efe2 !important;
		font: 600 14px/44px Lato, "Open Sans", sans-serif;
		letter-spacing: .04em;
		text-decoration: none !important;
		white-space: nowrap;
	}
	.rm2-btn-alt { background: #bd1e24; }

	/* ---------- Product page: larger photos ---------- */
	.img-wrap-2, .img-wrap-2 .images {
		float: none !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 0 12px !important;
		padding: 0 !important;
		height: auto !important;
	}
	/* Main photo runs edge to edge on phones. */
	.img-wrap-2 .images > a {
		display: block !important;
		width: 100vw !important;
		max-width: 100vw !important;
		float: none !important;
		margin: 0 0 0 calc(50% - 50vw) !important;
	}
	.img-wrap-2 .images > a img {
		display: block;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		background: #fff;
	}
	.img-wrap-2 .thumbnails {
		display: flex !important;
		gap: 8px;
		width: 100% !important;
		overflow-x: auto;
		padding: 10px 0 4px !important;
		margin: 0 !important;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		float: none !important;
	}
	.img-wrap-2 .thumbnails a {
		flex: 0 0 72px;
		width: 72px !important;
		float: none !important;
		margin: 0 !important;
		scroll-snap-align: start;
	}
	.img-wrap-2 .thumbnails img {
		width: 72px !important;
		height: 72px !important;
		object-fit: cover;
		border-radius: 4px;
		border: 1px solid #d8cdbd;
		margin: 0 !important;
	}
}
