/**
 * "Cloth Collection" inner page (template/cloth-collection.php).
 */

.page-cloth-collection {
	--ar-gold: rgb(200, 169, 106);
	--ar-ink: rgb(17, 17, 17);
	--ar-paper: rgb(245, 243, 239);
	--ar-label: rgb(122, 98, 50);
	--ar-line: rgb(221, 221, 221);
	--ar-muted-foreground: #6b6b6b;
	/* Height of the fixed site header, so the collection bar sticks below it. */
	--ar-header-offset: 68px;
	background: var(--ar-paper);
	color: var(--ar-ink);
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-size: 14px;
	line-height: 1.75;
}

.admin-bar .page-cloth-collection {
	--ar-header-offset: 100px;
}

@media screen and (max-width: 782px) {
	.admin-bar .page-cloth-collection {
		--ar-header-offset: 114px;
	}
}

.page-cloth-collection *,
.page-cloth-collection *::before,
.page-cloth-collection *::after {
	box-sizing: border-box;
}

.page-cloth-collection p {
	margin: 0 0 12px;
}

.page-cloth-collection [hidden] {
	display: none !important;
}

.page-cloth-collection :focus-visible {
	outline: 2px solid var(--ar-gold);
	outline-offset: 4px;
}

.page-cloth-collection .cc-wrap {
	max-width: 1152px;
	margin: 0 auto;
	padding: 40px 32px;
}

@media (min-width: 1024px) {
	.page-cloth-collection .cc-wrap {
		padding-left: 80px;
		padding-right: 80px;
	}
}

/* ----- Shared type and controls ----- */
.page-cloth-collection .cc-label {
	margin: 0;
	font-size: 10px;
	line-height: 1.6;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ar-label);
}

.page-cloth-collection .cc-title {
	margin: 0 0 20px;
	font-size: 30px;
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--ar-ink);
}

.page-cloth-collection .cc-small {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.6;
}

.page-cloth-collection .cc-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.page-cloth-collection .cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0;
}

.page-cloth-collection .cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 14px 20px;
	border: 0;
	border-radius: 0;
	background: var(--ar-ink);
	color: #fff;
	font: inherit;
	font-size: 10px;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.page-cloth-collection .cc-btn:hover {
	color: #fff;
	opacity: 0.8;
}

.page-cloth-collection .cc-btn--gold,
.page-cloth-collection .cc-btn--gold:hover {
	background: var(--ar-gold);
	color: var(--ar-ink);
}

/* Square image box that keeps its shape in older browsers too. */
.page-cloth-collection .cc-photo {
	position: relative;
	display: block;
	overflow: hidden;
	background: #e9e6df;
}

.page-cloth-collection .cc-photo::before {
	content: "";
	display: block;
	padding-top: 100%;
}

.page-cloth-collection .cc-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ----- Hero ----- */
.page-cloth-collection .cc-hero {
	position: relative;
	overflow: hidden;
	background: var(--ar-ink);
	color: #fff;
}

.page-cloth-collection .cc-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.28;
}

.page-cloth-collection .cc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(17, 17, 17, 0.97), rgba(17, 17, 17, 0.4));
	pointer-events: none;
}

.page-cloth-collection .cc-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 100px;
	padding-bottom: 60px;
}

.page-cloth-collection .cc-hero__kicker {
	color: var(--ar-gold);
}

.page-cloth-collection .cc-hero__title {
	margin: 16px 0;
	font-size: clamp(35px, 4.5vw, 67px);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: #fff;
}

.page-cloth-collection .cc-hero__lead {
	max-width: 500px;
	margin: 0;
	color: #bbb;
}

/* ----- Collection switcher ----- */
.page-cloth-collection .cc-switcher {
	position: sticky;
	top: var(--ar-header-offset);
	z-index: 10;
	background: rgba(245, 243, 239, 0.97);
	border-bottom: 1px solid var(--ar-line);
}

.page-cloth-collection .cc-switcher__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 8px;
	padding-bottom: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.page-cloth-collection .cc-switcher__inner::-webkit-scrollbar {
	display: none;
}

.page-cloth-collection .cc-switcher__link {
	flex-shrink: 0;
	padding: 7px 12px;
	font-size: 11px;
	line-height: 1.5;
	white-space: nowrap;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.page-cloth-collection .cc-switcher__link:hover {
	opacity: 0.7;
}

.page-cloth-collection .cc-switcher__link[aria-current] {
	background: var(--ar-ink);
	color: #fff;
	opacity: 1;
}

/* ----- Intro ----- */
.page-cloth-collection .cc-intro__grid {
	display: grid;
	gap: 32px;
}

.page-cloth-collection .cc-intro__grid > * {
	min-width: 0;
}

.page-cloth-collection .cc-intro__lead {
	font-size: 18px;
	line-height: 1.65;
}

.page-cloth-collection .cc-intro__body {
	font-size: 13px;
	color: #4a4a4a;
}

.page-cloth-collection .cc-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 20px 0 0;
}

.page-cloth-collection .cc-specs__label {
	font-size: 9px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #777;
}

.page-cloth-collection .cc-specs__value {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.6;
}

.page-cloth-collection .cc-intro__photo {
	max-width: 320px;
	margin: 0 auto 16px;
}

.page-cloth-collection .cc-pricing {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 16px;
	border: 1px solid #d0d0d0;
}

.page-cloth-collection .cc-pricing__cell {
	padding: 14px;
}

.page-cloth-collection .cc-pricing__cell--samples {
	border-left: 1px solid #d0d0d0;
	background: rgba(200, 169, 106, 0.1);
}

.page-cloth-collection .cc-price {
	margin: 4px 0;
	font-size: 26px;
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.page-cloth-collection .cc-price small {
	font-size: 11.5px;
	letter-spacing: 0;
}

.page-cloth-collection .cc-intro__note {
	color: #4a4a4a;
}

/* ----- Swatches ----- */
.page-cloth-collection .cc-samples {
	border-top: 1px solid var(--ar-line);
	scroll-margin-top: calc(var(--ar-header-offset) + 62px);
}

.page-cloth-collection .cc-samples__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.page-cloth-collection .cc-search {
	width: 100%;
	max-width: 280px;
}

.page-cloth-collection .cc-search__label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	color: #555;
}

.page-cloth-collection .cc-search__input {
	display: block;
	width: 100%;
	padding: 12px;
	border: 1px solid #aaa;
	border-radius: 0;
	background: transparent;
	color: var(--ar-ink);
	font: inherit;
	font-size: 13px;
	line-height: 1.4;
}

.page-cloth-collection .cc-search__status {
	min-height: 1.6em;
	margin: 6px 0 0;
	font-size: 11.5px;
	line-height: 1.6;
	color: #555;
}

.page-cloth-collection .cc-swatches {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.page-cloth-collection .cc-swatches {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.page-cloth-collection .cc-swatches {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}
}

.page-cloth-collection .cc-swatch__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.page-cloth-collection .cc-swatch__media img {
	transition: transform 0.4s ease;
}

.page-cloth-collection .cc-swatch__link:hover img {
	transform: scale(1.05);
}

.page-cloth-collection .cc-swatch__tag {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 4px;
	background: rgba(17, 17, 17, 0.73);
	color: #fff;
	font-size: 8px;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.page-cloth-collection .cc-swatch__link:hover .cc-swatch__tag,
.page-cloth-collection .cc-swatch__link:focus-visible .cc-swatch__tag {
	opacity: 1;
}

.page-cloth-collection .cc-swatch__name {
	display: block;
	margin-top: 6px;
	font-size: 9.5px;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
}

.page-cloth-collection .cc-samples__empty {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-bottom: 24px;
}

.page-cloth-collection .cc-samples__empty p {
	width: 100%;
	margin: 0;
}

/* ----- Confidence ----- */
.page-cloth-collection .cc-confidence {
	background: rgb(245, 245, 241);
	border-top: 1px solid var(--ar-line);
}

.page-cloth-collection .cc-confidence__grid,
.page-cloth-collection .cc-quotes {
	display: grid;
	gap: 24px;
}

.page-cloth-collection .cc-confidence__grid > * {
	min-width: 0;
}

@media (min-width: 640px) {
	.page-cloth-collection .cc-quotes {
		grid-template-columns: 1fr 1fr;
	}
}

.page-cloth-collection .cc-quote {
	margin: 0;
	padding-left: 16px;
	border-left: 1px solid var(--ar-gold);
}

.page-cloth-collection .cc-quote__text {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.page-cloth-collection .cc-quote__text p {
	margin: 0;
	font-size: 17px;
	font-style: italic;
	font-weight: 300;
	line-height: 1.5;
}

.page-cloth-collection .cc-quote__who {
	margin-top: 8px;
	font-size: 9px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #666;
}

.page-cloth-collection .cc-reviews {
	display: inline-block;
	margin-top: 24px;
	border-bottom: 1px solid currentColor;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ar-label);
}

.page-cloth-collection .cc-guarantee {
	align-self: start;
	border: 1px solid var(--ar-line);
	background: var(--ar-paper);
}

.page-cloth-collection .cc-guarantee__list {
	margin: 0;
	padding: 20px 20px 20px 36px;
}

.page-cloth-collection .cc-guarantee__list li {
	margin-bottom: 12px;
	font-size: 13.5px;
}

.page-cloth-collection .cc-guarantee__list li:last-child {
	margin-bottom: 0;
}

.page-cloth-collection .cc-guarantee__list li::marker {
	color: var(--ar-gold);
}

.page-cloth-collection .cc-guarantee__details {
	border-top: 1px solid var(--ar-line);
}

.page-cloth-collection .cc-guarantee__details summary {
	padding: 14px 20px;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ar-label);
	cursor: pointer;
}

.page-cloth-collection .cc-guarantee__body {
	padding: 0 20px 20px;
	font-size: 12.5px;
	color: #555;
}

@media (min-width: 1024px) {
	.page-cloth-collection .cc-intro__grid,
	.page-cloth-collection .cc-confidence__grid {
		grid-template-columns: 7fr 5fr;
		gap: 48px;
	}
}

/* ----- Pager ----- */
.page-cloth-collection .cc-pager {
	border-top: 1px solid var(--ar-line);
}

.page-cloth-collection .cc-pager__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	gap: 20px;
	padding-top: 24px;
	padding-bottom: 24px;
	font-size: 13px;
}

.page-cloth-collection .cc-pager__link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.page-cloth-collection .cc-pager__link:hover {
	color: var(--ar-label);
}

.page-cloth-collection .cc-pager__link--all {
	text-align: center;
}

.page-cloth-collection .cc-pager__link--next {
	align-items: flex-end;
	text-align: right;
}

.page-cloth-collection .cc-pager__title {
	line-height: 1.4;
}

/* ----- "Not set up" fallback ----- */
.page-cloth-collection .cc-missing {
	padding: 160px 40px 96px;
	text-align: center;
}

/* Coming-soon body sits below the collection hero, so it needs less top room. */
.page-cloth-collection .cc-soon {
	padding-top: 88px;
}

.page-cloth-collection .cc-soon .cc-missing__body a {
	color: var(--ar-label);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.page-cloth-collection .cc-missing__inner {
	max-width: 36rem;
	margin: 0 auto;
}

.page-cloth-collection .cc-missing__kicker {
	margin: 0 0 12px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--ar-muted-foreground);
}

.page-cloth-collection .cc-missing__title {
	margin: 0 0 16px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 300;
	letter-spacing: -0.02em;
	color: var(--ar-ink);
}

.page-cloth-collection .cc-missing__body {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--ar-muted-foreground);
}

.page-cloth-collection .cc-missing__body a {
	color: var(--ar-label);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

@media (prefers-reduced-motion: reduce) {
	.page-cloth-collection *,
	.page-cloth-collection *::before,
	.page-cloth-collection *::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.page-cloth-collection .cc-swatch__link:hover img {
		transform: none;
	}
}
