/*
 * The shop (shop_v2/, shop/shop_page.py) on the index pages' layer (ix_base.css: the cards and
 * rows; index_v2.css: the head and tabs). Only what's the shop's own: the affiliate disclosure,
 * the browse view's categories and rows, and the category view's section grids.
 */

/* Centred under the tabs (Robin). `margin-inline: auto` also keeps .ix-wrap's centring, which a
   plain `margin: 0` here used to undo */
.sh-disclosure {
	max-width: 46rem;
	margin: 0 auto 1.25rem;
	color: var(--ix-muted);
	text-align: center;
	text-wrap: balance;
	font-size: .875rem;
	line-height: 1.5;
}

/* ---------- Browse: the favourites, then each category's sections as rows ---------- */

.sh-browse {
	padding-top: .25rem;
	padding-bottom: 1rem;
}

.sh-browse .sh-disclosure {
	margin-bottom: 0;
}

.sh-row {
	--ix-carousel-card: min(40vw, 11.5rem);   /* phones: a third card peeks in, so the row reads as one to swipe */
	padding-top: 1.25rem;
}

.sh-row--favourites {
	padding-top: clamp(1.5rem, 4vw, 2rem);
}

.sh-group {
	padding-top: clamp(2.75rem, 6vw, 4rem);
}

.sh-group__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .25rem 1rem;
}

.ix-kit .sh-group__title {
	margin: 0;
	color: var(--ix-ink);
	font-family: var(--ix-display);
	font-size: clamp(1.75rem, 5vw, 2.4rem);
	font-weight: normal;
	line-height: 1.05;
}

.ix-kit .sh-group__all {
	color: var(--ix-green);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.ix-kit .sh-group__all:hover {
	color: var(--ix-green-dark);
	text-decoration: underline;
	text-underline-offset: .2em;
}

/* A section's row, under its category: a smaller heading (h3) */
.ix-kit .sh-group .ix-carousel__title {
	font-size: clamp(1.25rem, 3.6vw, 1.5rem);
}

/* ---------- A category: its sections, each a grid ---------- */

.sh-part + .sh-part {
	margin-top: clamp(2.25rem, 5vw, 3rem);
}

.ix-kit .sh-part__title {
	display: flex;
	align-items: baseline;
	gap: .6rem;
	margin: 0 0 1rem;
	color: var(--ix-ink);
	font-family: var(--ix-display);
	font-size: clamp(1.6rem, 4.5vw, 2.1rem);
	font-weight: normal;
	line-height: 1.1;
}

.sh-part__count {
	color: var(--ix-muted);
	font-family: var(--ix-sans);
	font-size: .9375rem;
	font-weight: 600;
}
