/* ==========================================================================
   Shop — /shop/ and its subpages. Loaded on the six shop templates only
   (see inc/enqueue.php). Cards, chips and grids come from atelier.css.
   ========================================================================== */

.shop__disclosure {
	max-width: 52ch;
	margin: 20px 0 0;
	font-size: 16px;
	font-style: italic;
	line-height: 1.45;
	color: var(--ink-faint);
}
.shop__disclosure a { background-size: 100% 1px; }

/* Filters ------------------------------------------------------------------- */

.shop__active { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shop__clear { margin-left: 6px; color: var(--ink); background-size: 100% 1px; }
.filter-chip--active { border-color: var(--wine); color: var(--wine); }

.shop__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 32px;
	margin-bottom: 24px;
}
.shop__meta .shop__disclosure { margin: 0; }

.shop__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop__none { margin-block: 40px; font-style: italic; }

.shop__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 56px; }
.shop__pages a,
.shop__pages span {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--gold-pale);
	background-image: none;
}
.shop__pages a:hover { border-color: var(--gold); }
.shop__pages [aria-current] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* Landing shelves ----------------------------------------------------------- */

.shop-shelf + .shop-shelf { padding-top: 0; }

.shop-wives__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
}
.shop-wife {
	display: grid;
	gap: 6px;
	justify-items: center;
	text-align: center;
	background-image: none;
}
.shop-wife__portrait {
	width: min(100%, 180px);
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50%;
	border: 1px solid var(--gold-pale);
	background: var(--paper-deep);
}
.shop-wife__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shop-wife__name { margin-top: 8px; font: 500 21px/1.15 var(--font-display); }
.shop-wife:hover .shop-wife__name { color: var(--wine); }

@media (max-width: 800px) {
	.shop-wives__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The Salon's filters: the fine tab row, held under the slim bar on scroll. */
.shop__filters {
	position: sticky;
	top: var(--bar-h, 0px);   /* set by atelier.js; the tabs can't reach the top before the bar condenses */
	z-index: 5;
	padding-top: 14px;
	background: var(--paper);
}
.is-condensed .admin-bar .shop__filters { top: calc(var(--bar-h, 0px) + 32px); }
.shop__facet-title { min-width: 9ch; color: var(--ink-faint); }
.shop__hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.opening .shop__disclosure { margin-inline: auto; font-size: 15px; color: var(--ink-faint); }
@media (max-width: 780px) {
	.shop__filters { position: static; }   /* a sticky tab block would cover a phone screen */
}
