/* TA Shade Collections: front end. Colours and fonts come from the theme's custom properties, with fallbacks. */
.ta-sc-chips, .ta-sc-card, .ta-sc-chart, .ta-sc-row, .ta-sc-soldout, .ta-sc-family-note {
	--ta-sc-accent: var(--hgs-berry, #ab296a);
	--ta-sc-accent-deep: var(--hgs-berry-deep, #8f1f57);
	--ta-sc-ink: var(--hgs-ink, #2a1520);
	--ta-sc-muted: #6e5562;
	--ta-sc-line: var(--hgs-line, #ecd9e2);
	--ta-sc-soft: var(--hgs-blush, #fdf2f7);
	--ta-sc-tag: var(--hgs-petal, #ffd1e6);
	--ta-sc-tag-ink: var(--hgs-hole, #7a1a4a);
	--ta-sc-ok: var(--hgs-ok, #157a43);
	--ta-sc-paper: var(--hgs-paper, #ffffff);
	--ta-sc-head: var(--font-display, "Baloo 2", system-ui, sans-serif);
}
.ta-sc-dot { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ta-sc-paper, #fff); box-shadow: 0 0 0 1px var(--ta-sc-line, #ecd9e2); flex: none; }
.ta-sc-dot--sm { width: 12px; height: 12px; border-width: 1px; margin-right: 6px; vertical-align: -1px; }
.ta-sc-dot--faded { opacity: .5; }

/* Colour chips */
.ta-sc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.ta-sc-chips__label { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ta-sc-muted); margin-right: 4px; }
.ta-sc-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--ta-sc-line); border-radius: 999px; background: var(--ta-sc-paper); color: var(--ta-sc-ink); font-weight: 600; font-size: .9375rem; text-decoration: none; line-height: 1.1; }
.ta-sc-chip:hover { border-color: var(--ta-sc-accent); color: var(--ta-sc-ink); }
.ta-sc-chip.is-active { background: var(--ta-sc-accent); border-color: var(--ta-sc-accent); color: #fff; }
.ta-sc-chip__n { margin-left: 6px; font-size: .8125rem; opacity: .7; font-variant-numeric: tabular-nums; }
.ta-sc-family-note { margin: -6px 0 16px; color: var(--ta-sc-muted); }
.ta-sc-family-note a { font-weight: 700; color: var(--ta-sc-accent); }

/* Collection card (an li.product in the theme grid) */
ul.products li.product.ta-sc-card { display: flex; flex-direction: column; gap: 8px; position: relative; }
.ta-sc-card__media { position: relative; display: block; text-align: center; }
.ta-sc-card__media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.ta-sc-card__badge { position: absolute; top: 0; left: 0; padding: .35rem .55rem; border-radius: 999px; background: var(--ta-sc-tag); color: var(--ta-sc-tag-ink); font: 700 .75rem/1 var(--ta-sc-head); }
.ta-sc-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
ul.products li.product .ta-sc-card__title { margin: 0; padding: 0; font-size: 1rem; line-height: 1.25; }
.ta-sc-card__title a { color: var(--ta-sc-ink); text-decoration: none; }
.ta-sc-card__dots { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.ta-sc-card__dots .ta-sc-dot { width: 18px; height: 18px; }
.ta-sc-card__more { font-size: .8125rem; font-weight: 700; color: var(--ta-sc-muted); margin-left: 3px; }
.ta-sc-card__stock { margin: 0; font-size: .875rem; font-weight: 600; color: var(--ta-sc-ok); }
ul.products li.product .ta-sc-card__price { margin: auto 0 0; font-weight: 700; color: var(--ta-sc-ink); }
ul.products li.product .ta-sc-card__btn { display: block; width: 100%; text-align: center; }

/* Sold-out collections under the grid */
.ta-sc-soldout { margin: 20px 0 0; padding: 14px 16px; border: 1px dashed var(--ta-sc-line); border-radius: 14px; background: var(--ta-sc-paper); }
.ta-sc-soldout__title { margin: 0 0 10px; font-weight: 700; }
.ta-sc-soldout__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ta-sc-soldout__list a { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-height: 44px; align-content: center; padding: 6px 12px; border: 1px solid var(--ta-sc-line); border-radius: 10px; background: var(--ta-sc-soft); color: var(--ta-sc-ink); text-decoration: none; }
.ta-sc-soldout__list span { font-size: .875rem; color: var(--ta-sc-muted); }
.ta-sc-soldout__list em { font-style: normal; font-size: .875rem; font-weight: 700; color: var(--ta-sc-accent); }

/* Shade chart on a collection's page */
.ta-sc-chart { display: flex; flex-direction: column; gap: 22px; margin: 0 0 24px; }
.ta-sc-chart__lede { margin: 0; font-size: 1.0625rem; color: var(--ta-sc-muted); }
.ta-sc-chart .ta-sc-chips { margin: 0; }
.ta-sc-chart__h { margin: 0 0 10px; font-size: 1.25rem; }
.ta-sc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ta-sc-tile { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--ta-sc-line); border-radius: 12px; background: var(--ta-sc-paper); }
.ta-sc-tile:hover { border-color: var(--ta-sc-accent); }
.ta-sc-tile__link { display: flex; flex-direction: column; gap: 4px; color: var(--ta-sc-ink); text-decoration: none; }
.ta-sc-tile__swatch { display: block; aspect-ratio: 1 / 1; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .08); overflow: hidden; }
.ta-sc-tile__swatch--img { position: relative; background: #fff; }
.ta-sc-tile__dot { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.ta-sc-tile__swatch--img img { width: 100%; height: 100%; object-fit: contain; }
.ta-sc-tile__code { font: 700 1.375rem/1 var(--ta-sc-head); }
.ta-sc-tile__name { font-size: .875rem; line-height: 1.25; min-height: 2.5em; }
.ta-sc-tile__foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; }
.ta-sc-tile__price { font-weight: 700; font-size: .9375rem; }
.ta-sc-tile__price del { font-weight: 400; opacity: .6; font-size: .8125rem; }
.ta-sc-tile .ta-sc-tile__add { min-height: 36px; padding: 6px 12px; font-size: .8125rem; }
.ta-sc-tile .added_to_cart { display: none; }
.ta-sc-chart__sold { padding: 14px 16px; border: 1px dashed var(--ta-sc-line); border-radius: 14px; }
.ta-sc-chart__note { margin: -4px 0 10px; color: var(--ta-sc-muted); font-size: .9375rem; }
.ta-sc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ta-sc-pills a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 12px 5px 6px; border: 1px solid var(--ta-sc-line); border-radius: 999px; background: var(--ta-sc-soft); color: var(--ta-sc-muted); text-decoration: none; font-size: .875rem; }

/* Swatch row on the product page */
.ta-sc-row { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--ta-sc-line); border-radius: 14px; background: var(--ta-sc-paper); }
.ta-sc-row__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; }
.ta-sc-row__label { margin: 0; }
.ta-sc-row__label span { color: var(--ta-sc-muted); }
.ta-sc-row__all { font-weight: 700; font-size: .9375rem; color: var(--ta-sc-accent); }
.ta-sc-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ta-sc-sw { display: block; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ta-sc-paper); box-shadow: 0 0 0 1px var(--ta-sc-line); }
.ta-sc-sw:hover { box-shadow: 0 0 0 2px var(--ta-sc-accent-deep); }
.ta-sc-sw.is-current { box-shadow: 0 0 0 2px var(--ta-sc-accent); }
.ta-sc-sw:focus-visible { outline: 2px solid var(--ta-sc-accent); outline-offset: 3px; }
.ta-sc-sw--text { width: auto; min-width: 44px; height: 40px; padding: 0 12px; border: 1px solid var(--ta-sc-line); border-radius: 10px; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; color: var(--ta-sc-ink); font-weight: 700; text-decoration: none; background: var(--ta-sc-paper); }
.ta-sc-sw--text.is-current { border-color: var(--ta-sc-accent); background: var(--ta-sc-accent); color: #fff; box-shadow: none; }
.ta-sc-more { margin-top: 10px; }
.ta-sc-more summary { cursor: pointer; font-weight: 700; color: var(--ta-sc-accent); min-height: 32px; }
.ta-sc-more .ta-sc-swatches { margin-top: 8px; }
