/* ==========================================================================
   Oops, Mine Co. — the shop kit (inc/shop-kit.php, assets/js/omc-shop.js):
   size pickers outside the product grids, hotspots on photographs, the
   "Shop the look" sheet, and "Wear it with" on the product page.
   ========================================================================== */

/* ─── picker: a size select and "Add to bag" ─── */
.omc-pick { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.omc-pick__size {
	flex: 1 1 140px;
	min-width: 0;
	min-height: 44px;
	padding: 0 34px 0 12px;
	border: 1px solid var(--omc-line);
	border-radius: 0;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233a2b26' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	color: var(--omc-ink);
	font: 500 14px/1.2 var(--omc-sans);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.omc-pick__size:focus { outline: none; border-color: var(--omc-ink); }
.omc-pick__add, .omc-pick__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--omc-ink);
	background: var(--omc-ink);
	color: var(--omc-cream);
	font: 600 11px/1 var(--omc-sans);
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.omc-pick__go { background: transparent; color: var(--omc-ink); }
.omc-pick__add:hover, .omc-pick__go:hover { background: var(--omc-rose-dark); border-color: var(--omc-rose-dark); color: var(--omc-cream); }
.omc-pick__add[disabled] { opacity: .7; cursor: default; }
.omc-pick__add.is-done { background: var(--omc-rose-dark); border-color: var(--omc-rose-dark); }
.omc-pick__add:focus-visible, .omc-pick__go:focus-visible { outline: 2px solid var(--omc-rose); outline-offset: 2px; }
.omc-pick__out { display: inline-block; padding: 12px 0; font: 600 11px/1 var(--omc-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--omc-muted); }
.omc-pick__note { flex: 1 0 100%; margin: 0; font: 400 12px/1.5 var(--omc-sans); color: var(--omc-rose-dark); }
.omc-pick__note:empty { display: none; }
.omc-pick__note a { color: inherit; }
.omc-pick--compact .omc-pick__size { flex-basis: 120px; min-height: 40px; font-size: 13px; }
.omc-pick--compact .omc-pick__add, .omc-pick--compact .omc-pick__go { min-height: 40px; padding: 0 16px; }

/* ─── hotspots ─── */
.omc-spots { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .5s var(--omc-ease), visibility .5s; }
.omc-spots.is-ready { opacity: 1; }
.omc-spots.is-off { opacity: 0; visibility: hidden; }
.omc-spot {
	position: absolute;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	transform: translate(-50%, -50%);
	cursor: pointer;
	pointer-events: auto;
}
.omc-spot[hidden] { display: none; }
.omc-spot__dot {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 2px 12px rgba(42, 31, 27, .5);
	transform: translate(-50%, -50%);
	transition: transform .25s var(--omc-ease), background-color .2s;
}
/* the centre: ink on white reads on a light photo and a dark one alike */
.omc-spot__dot::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--omc-ink); transition: background-color .2s; }
.omc-spot__dot::after {
	content: "";
	position: absolute;
	inset: -8px;
	border: 2px solid rgba(255, 255, 255, .85);
	border-radius: 50%;
	animation: omc-spot-ring 2.4s ease-out infinite;
}
.omc-spot:hover .omc-spot__dot, .omc-spot.is-open .omc-spot__dot { transform: translate(-50%, -50%) scale(1.15); }
.omc-spot:hover .omc-spot__dot::before, .omc-spot.is-open .omc-spot__dot::before { background: var(--omc-rose-dark); }
.omc-spot:focus-visible { outline: none; }
.omc-spot:focus-visible .omc-spot__dot { outline: 2px solid #fff; outline-offset: 4px; }
@keyframes omc-spot-ring {
	0% { transform: scale(.6); opacity: .9; }
	80%, 100% { transform: scale(1.35); opacity: 0; }
}
.omc-spots__outfit {
	position: absolute;
	top: 14px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 14px;
	border: 0;
	background: rgba(255, 255, 255, .92);
	color: var(--omc-ink);
	font: 600 10.5px/1 var(--omc-sans);
	letter-spacing: .16em;
	text-transform: uppercase;
	box-shadow: 0 6px 18px -8px rgba(42, 31, 27, .5);
	cursor: pointer;
	pointer-events: auto;
	transition: background-color .2s, color .2s;
}
.omc-spots__outfit .omc-icon { width: 15px; height: 15px; }
.omc-spots__outfit:hover { background: var(--omc-ink); color: var(--omc-cream); }
.omc-hero .omc-spots__outfit { top: clamp(16px, 3vw, 32px); left: clamp(16px, 3vw, 32px); }

/* hosts: a tile, a journal card — the link fills the box, the points sit beside it, not inside it */
.omc-mosaic__link { position: absolute; inset: 0; display: block; }
.omc-mosaic__item--spots:focus-within { outline: 2px solid var(--omc-rose); outline-offset: 2px; }
.omc-card__media--spots { position: relative; }
.omc-card__link { display: block; width: 100%; height: 100%; }

/* the card a point opens: beside the point, or a sheet along the bottom of a phone */
.omc-spotcard {
	position: absolute;
	z-index: 100001;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 14px;
	width: 340px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--omc-line);
	box-shadow: 0 30px 60px -24px rgba(42, 31, 27, .45);
	color: var(--omc-ink);
	font-family: var(--omc-sans);
	animation: omc-card-in .25s var(--omc-ease);
}
.omc-spotcard[hidden] { display: none; }
.omc-spotcard.is-sheet { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-width: 1px 0 0; }
.omc-spotcard__x { position: absolute; top: 4px; right: 6px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--omc-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.omc-spotcard__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--omc-sand); }
.omc-spotcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.omc-spotcard__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-right: 18px; }
.omc-spotcard__name { font-family: var(--omc-serif); font-size: 20px; line-height: 1.15; color: var(--omc-ink); text-decoration: none; }
.omc-spotcard__name:hover { color: var(--omc-rose-dark); }
.omc-spotcard__price { margin: 0 0 4px; font: 600 14px/1.3 var(--omc-sans); color: var(--omc-rose-dark); }
.omc-spotcard__view { margin-top: 2px; font: 600 10.5px/1.4 var(--omc-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--omc-muted); text-decoration: underline; text-underline-offset: 3px; }
@keyframes omc-card-in { from { opacity: 0; transform: translateY(6px); } }

/* "Shop the look": every piece in the photo, one size each, one button */
.omc-outfit {
	width: min(560px, calc(100vw - 24px));
	max-height: calc(100vh - 40px);
	padding: 0;
	border: 0;
	background: var(--omc-cream);
	color: var(--omc-ink);
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
}
.omc-outfit::backdrop { background: rgba(58, 43, 38, .55); }
.omc-outfit__in { position: relative; padding: clamp(22px, 4vw, 34px); }
.omc-outfit__x { position: absolute; top: 8px; right: 10px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--omc-ink); font-size: 28px; line-height: 1; cursor: pointer; }
.omc-outfit__h { margin: 4px 0 18px; font-family: var(--omc-serif); font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.1; color: var(--omc-rose-dark); }
.omc-outfit__list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.omc-outfit__row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--omc-line); }
.omc-outfit__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--omc-sand); }
.omc-outfit__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.omc-outfit__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.omc-outfit__name { font-family: var(--omc-serif); font-size: 19px; line-height: 1.15; color: var(--omc-ink); text-decoration: none; }
.omc-outfit__price { font: 600 13px/1.3 var(--omc-sans); color: var(--omc-rose-dark); }
.omc-outfit__foot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 18px; }
.omc-outfit__note { margin: 0; font: 400 13px/1.5 var(--omc-sans); color: var(--omc-rose-dark); }
.omc-outfit__note:empty { display: none; }

/* ─── Wear it with (product page, under the buy box) ─── */
.omc-wear { margin: 26px 0 6px; padding-top: 22px; border-top: 1px solid var(--omc-line); }
.omc-wear__h { margin: 0 0 4px; font-family: var(--omc-serif); font-size: 24px; font-weight: 500; line-height: 1.1; color: var(--omc-rose-dark); }
.omc-wear__h em { font-style: italic; color: var(--omc-ink); }
.omc-wear__lede { margin: 0 0 14px; font: 400 13px/1.6 var(--omc-sans); color: var(--omc-muted); }
.omc-wear__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.omc-wear__item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.omc-wear__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--omc-sand); }
.omc-wear__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--omc-ease); }
.omc-wear__item:hover .omc-wear__media img { transform: scale(1.05); }
.omc-wear__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.omc-wear__name { font: 500 14px/1.35 var(--omc-sans); color: var(--omc-ink); text-decoration: none; }
.omc-wear__name:hover { color: var(--omc-rose-dark); }
.omc-wear__price { font: 600 13px/1.3 var(--omc-sans); color: var(--omc-rose-dark); }
.omc-wear__all { margin-top: 14px; }

/* ─── Ask about this piece ─── */
.omc-ask { margin: 18px 0 4px; }
.omc-ask__h { margin: 0 0 8px; font: 600 11px/1.4 var(--omc-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--omc-muted); }
.omc-ask__row { display: flex; flex-wrap: wrap; gap: 8px; }
.omc-ask__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--omc-line);
	background: #fff;
	color: var(--omc-ink);
	font: 600 12px/1 var(--omc-sans);
	letter-spacing: .04em;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.omc-ask__btn:hover { border-color: var(--omc-ink); background: var(--omc-cream); color: var(--omc-ink); }
.omc-ask__btn .omc-icon { width: 18px; height: 18px; }
.omc-ask__note { margin: 8px 0 0; font: 400 12px/1.5 var(--omc-sans); color: var(--omc-muted); }
.omc-ask__note:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
	.omc-spot__dot::after { animation: none; opacity: .6; }
	.omc-spotcard { animation: none; }
}
