/* Shared components: section heading, product card, news card, back-to-top button, accordion item (FAQ, product). */

/* Section heading: eyebrow (Label/Eyebrow) above an uppercase serif title (Heading/Section). */

.section-heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-8);
	text-align: center;
}

.section-heading--left {
	align-items: flex-start;
	text-align: left;
}

.section-heading__eyebrow {
	color: var(--color-accent);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.section-heading__title {
	color: var(--color-text);
	font-family: var(--font-serif);
	font-size: clamp(24px, 22.4px + 0.4vw, 30px);
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.section-heading--light .section-heading__title {
	color: var(--color-white);
}

/* Content pages: regular serif in sentence case (Figma heading/xl/40, mobile 28). */
.section-heading--display .section-heading__title {
	font-size: clamp(28px, 24.78px + 0.8011vw, 40px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.5px;
	text-transform: none;
}

@media (min-width: 1200px) {
	.section-heading {
		gap: var(--space-12);
	}

	.section-heading__eyebrow {
		font-size: 12px;
		letter-spacing: 2.5px;
	}
}

/* Product card. */

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	min-width: 0;
}

.product-card__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 10 / 11;
	background: var(--color-surface);
}

.product-card__image img,
.product-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.product-card:hover .product-card__image img {
	transform: scale(1.04);
}

.product-card__actions {
	position: absolute;
	top: var(--space-12);
	right: var(--space-12);
	display: flex;
	gap: var(--space-4);
}

.product-card__action {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--color-ink);
}

.product-card__action .icon {
	width: 20px;
	height: 20px;
	stroke-width: 1.3;
}

.product-card__action:hover,
.product-card__action.is-active {
	color: var(--color-accent);
}

.product-card__action--favorite.is-active {
	color: var(--color-favorite);
}

.product-card__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-4);
	min-width: 0;
	text-align: center;
}

.product-card__category {
	color: var(--color-accent);
	font-size: 9px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.product-card__name {
	max-width: 100%;
	overflow: hidden;
	font-family: var(--font-serif);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.product-card__price {
	color: var(--color-text-body);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.product-card__price del {
	color: var(--color-text-muted);
}

.product-card__price ins {
	text-decoration: none;
}

@media (min-width: 1200px) {
	.product-card {
		gap: 20px;
	}

	.product-card__info {
		gap: var(--space-8);
	}

	.product-card__category {
		font-size: 11px;
		letter-spacing: 1.5px;
	}

	.product-card__name {
		font-size: 20px;
		font-weight: 500;
	}

	.product-card__price {
		font-size: 13px;
	}

	.product-card__action {
		width: 32px;
		height: 32px;
	}

	.product-card__action .icon {
		width: 24px;
		height: 24px;
	}
}

/* News card. */

.news-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding: var(--space-16);
	background: var(--color-white);
}

.news-card__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 338 / 220;
	background: var(--color-surface);
}

.news-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-card__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-12);
}

.news-card__title {
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
}

.news-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	color: var(--color-text-body);
	font-size: 14px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.news-card__button {
	align-self: flex-start;
}

@media (min-width: 768px) {
	.news-card {
		gap: var(--space-24);
		padding: var(--space-24);
		border-radius: 4px;
	}

	.news-card__image {
		aspect-ratio: 505 / 300;
	}
}

/*
 * News card variants (news change): category and date above the title, "plain" on the page background (news
 * listing, frame 3:1315 / 3:5537) and "compact" with the date and title only (related articles, 3:1530).
 */

.news-card__title a {
	color: inherit;
	text-decoration: none;
}

.news-card__title a:hover {
	color: var(--color-primary);
}

.news-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-4) var(--space-12);
	margin: 0;
	line-height: 1.2;
}

.news-card__category {
	color: var(--color-accent);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.news-card__date {
	color: var(--color-text-muted);
	font-size: 11px;
}

.news-card--plain {
	gap: var(--space-12);
	padding: 0;
	background: none;
}

.news-card--plain .news-card__image {
	aspect-ratio: 370 / 220;
}

.news-card--plain .news-card__text {
	gap: 6px;
}

.news-card--plain .news-card__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.news-card--compact .news-card__text {
	gap: var(--space-8);
}

.news-card--compact .news-card__title {
	overflow: hidden;
	font-size: 18px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.news-card--plain {
		gap: var(--space-24);
		padding: 0;
		border-radius: 0;
	}

	.news-card--plain .news-card__image {
		aspect-ratio: 553 / 320;
		border-radius: 4px;
	}

	.news-card--plain .news-card__text {
		gap: var(--space-12);
	}

	.news-card--plain .news-card__category {
		font-size: 11px;
		letter-spacing: 1.5px;
	}

	.news-card--plain .news-card__date {
		font-size: 12px;
	}

	.news-card--plain .news-card__title {
		font-size: 24px;
		font-weight: 400;
	}

	.news-card--plain .news-card__button {
		margin-top: calc(var(--space-8) - var(--space-24));
	}

	.news-card--compact {
		gap: var(--space-16);
		padding: var(--space-16);
	}

	.news-card--compact .news-card__image {
		aspect-ratio: 468 / 220;
		border-radius: 4px;
	}
}

/* Back to top (all pages). */

.back-to-top {
	position: fixed;
	right: var(--page-padding);
	bottom: var(--space-24);
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--color-text);
	border-radius: 50%;
	background: var(--color-white);
	color: var(--color-text);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background-color var(--transition), color var(--transition);
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.back-to-top:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}

.back-to-top .icon {
	width: 24px;
	height: 24px;
}

@media (min-width: 1200px) {
	.back-to-top {
		width: 57px;
		height: 57px;
		bottom: var(--space-32);
	}
}

/* Message after a failed card action (favorite, compare), shown for a few seconds at the bottom of the screen. */

.card-action-message {
	position: fixed;
	bottom: var(--space-24);
	left: 50%;
	z-index: 100;
	max-width: calc(100% - 2 * var(--space-16));
	padding: var(--space-12) var(--space-24);
	background: var(--color-text);
	color: var(--color-white);
	font-size: 13px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%);
	transition: opacity var(--transition), visibility var(--transition);
}

.card-action-message.is-visible {
	opacity: 1;
	visibility: visible;
}

/* Compact product card (related products): tagline instead of category, accent price; a bordered card below 768px. */

.product-card--compact {
	gap: var(--space-12);
	padding: var(--space-12);
	border: 1px solid var(--color-border);
	background: var(--color-white);
}

.product-card--compact .product-card__info {
	align-items: flex-start;
	text-align: left;
}

.product-card--compact .product-card__name {
	font-size: 16px;
	font-weight: 400;
}

.product-card__tagline {
	max-width: 100%;
	overflow: hidden;
	color: var(--color-text-muted);
	font-size: 12px;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.product-card--compact .product-card__price {
	color: var(--color-accent);
	font-size: 13px;
	font-weight: 600;
}

@media (min-width: 768px) {
	.product-card--compact {
		gap: 20px;
		padding: 0 0 var(--space-24);
		border: 0;
	}

	.product-card--compact .product-card__info {
		align-items: center;
		gap: var(--space-8);
		padding-inline: var(--space-16);
		text-align: center;
	}

	.product-card--compact .product-card__name {
		font-size: 20px;
	}

	.product-card__tagline {
		font-size: 13px;
	}

	.product-card--compact .product-card__price {
		font-size: 15px;
	}
}

/* Quantity stepper (product page and mini cart). */

.quantity {
	display: inline-flex;
	align-items: center;
	gap: var(--space-4);
	height: 41px;
	padding-inline: var(--space-8);
	border: 1px solid var(--color-border);
	background: var(--color-white);
}

.quantity__input {
	width: 3ch;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

.quantity__input::-webkit-inner-spin-button,
.quantity__input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.quantity__step {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-text);
	cursor: pointer;
}

.quantity__step[hidden] {
	display: none;
}

.quantity__step:disabled {
	color: var(--color-border);
	cursor: default;
}

.quantity__step .icon {
	width: 12px;
	height: 12px;
	stroke-width: 1.5;
}

.quantity--small {
	gap: 2px;
	height: 27px;
	padding-inline: var(--space-4);
	border-radius: 2px;
}

.quantity--small .quantity__input {
	font-size: 12px;
}

.quantity--small .quantity__step {
	width: 20px;
	height: 20px;
}

.quantity--small .quantity__step .icon {
	width: 8px;
	height: 8px;
}

@media (min-width: 1024px) {
	.quantity:not(.quantity--small) {
		height: 46px;
		padding-inline: var(--space-12);
		border-radius: 4px;
	}

	.quantity:not(.quantity--small) .quantity__input {
		font-size: 15px;
	}
}

/* Metal swatches (above the category) and desktop buttons on product cards (product-page D14). */

.product-card__swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2px;
	margin-bottom: var(--space-4);
}

.product-card--compact .product-card__swatches {
	justify-content: flex-start;
}

.product-card__swatch {
	display: flex;
	padding: 3px;
	border-radius: 50%;
}

.product-card__swatch::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--swatch, var(--color-border));
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%);
}

.product-card__swatch[aria-current="true"] {
	box-shadow: 0 0 0 1px var(--color-text);
}

.product-card__swatch-more {
	padding-inline: var(--space-4);
	color: var(--color-text-muted);
	font-size: 11px;
}

@media (min-width: 768px) {
	.product-card--compact .product-card__swatches {
		justify-content: center;
	}
}

.product-card__buttons {
	display: none;
}

@media (min-width: 1200px) {
	.product-card__swatches {
		gap: 6px;
		margin-bottom: var(--space-8);
	}

	.product-card__swatch::before {
		width: 16px;
		height: 16px;
	}

	/* Buttons sit at the bottom of the card, so they line up in a row of cards with and without swatches. */
	.product-card:has(.product-card__buttons) .product-card__info {
		flex: 1;
	}

	.product-card__buttons {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-8);
		align-self: stretch;
		margin-top: auto;
		padding-top: var(--space-8);
	}

	.product-card__button {
		padding: 11px var(--space-8);
		font-size: 11px;
		letter-spacing: 1.5px;
		white-space: nowrap;
	}

	.product-card__button[aria-busy="true"] {
		cursor: progress;
		opacity: 0.6;
	}
}

@media (min-width: 1440px) {
	.product-card__buttons {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-12);
	}

	.product-card__button {
		font-size: 12px;
	}
}

/* WooCommerce notices (product, cart and checkout pages). */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-12);
	margin-block: var(--space-8) var(--space-16);
	padding: var(--space-12) var(--space-16);
	border-left: 2px solid var(--color-accent);
	background: var(--color-surface);
	color: var(--color-text);
	font-size: 13px;
	line-height: 1.5;
	list-style: none;
}

.woocommerce-error {
	border-left-color: var(--color-error);
}

.woocommerce-message .button,
.woocommerce-info .button {
	order: 1;
	padding: var(--space-8) var(--space-16);
}

/*
 * Social sign-in (account-auth change, D5): "OR" divider and the Nextend Social Login buttons in the outline style of
 * the mockups, two per row from 360px. The plugin's inline styles need the !important overrides.
 */

.social-login {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

.social-login__divider {
	display: flex;
	align-items: center;
	gap: var(--space-16);
	margin: 0;
	padding-block: var(--space-12);
	color: var(--color-text-muted);
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.social-login__divider::before,
.social-login__divider::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--color-border);
}

.social-login .nsl-container {
	padding: 0 !important;
}

.social-login .nsl-container-buttons {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: var(--space-16);
	padding: 0 !important;
}

.social-login .nsl-container-buttons a {
	margin: 0 !important;
}

.social-login .nsl-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: var(--space-8);
	min-height: 46px;
	border: 1px solid var(--color-border);
	border-radius: 0 !important;
	background: var(--color-white) !important;
	box-shadow: none !important;
	color: var(--color-text) !important;
	transition: border-color var(--transition);
}

.social-login .nsl-button:hover {
	border-color: var(--color-text);
}

.social-login .nsl-button-svg-container svg {
	width: 18px;
	height: 18px;
}

.social-login .nsl-button-svg-container {
	padding: 0 !important;
}

.social-login div.nsl-button-label-container {
	flex: 0 1 auto !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--font-sans) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
}

.social-login .nsl-button-label-container b {
	font-weight: inherit;
}

@media (min-width: 1200px) {
	.social-login div.nsl-button-label-container {
		font-size: 13px !important;
	}
}

/* Editor content (text pages, news articles): headings in the serif font, body text, lists and links. */

.entry-content {
	color: var(--color-text-body);
	font-size: 14px;
	line-height: 1.6;
}

.entry-content > * {
	margin-block: 0;
}

.entry-content > * + * {
	margin-top: var(--space-12);
}

.entry-content > :is(h2, h3, h4) {
	margin-top: 28px;
	color: var(--color-text);
	font-family: var(--font-serif);
	font-weight: 400;
	line-height: 1.2;
}

.entry-content > :is(h2, h3, h4):first-child {
	margin-top: 0;
}

.entry-content > h2 {
	font-size: 26px;
}

.entry-content > :is(h3, h4) {
	font-size: 21px;
}

.entry-content :is(ul, ol) {
	padding-left: 1.25em;
}

/* Block editor lists carry a class (`wp-block-list`), which the reset strips of their markers. */
.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li::marker {
	color: var(--color-accent);
}

.entry-content li + li {
	margin-top: var(--space-4);
}

.entry-content a {
	color: var(--color-text);
	text-decoration: underline;
	text-decoration-color: var(--color-accent);
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--color-primary);
}

.entry-content strong {
	color: var(--color-text);
	font-weight: 600;
}

@media (min-width: 768px) {
	.entry-content {
		font-size: 15px;
		line-height: 1.8;
	}

	.entry-content > * + * {
		margin-top: var(--space-16);
	}

	.entry-content > :is(h2, h3, h4) {
		margin-top: var(--space-32);
	}

	.entry-content > h2 {
		font-size: 24px;
	}

	.entry-content > :is(h3, h4) {
		font-size: 20px;
	}
}

/* Dots of a swipe row (product gallery, related products and articles). */

.dots {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-top: var(--space-4);
}

.dots[hidden] {
	display: none;
}

.dots__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 24px;
}

.dots__dot::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-border);
	transition: background var(--transition);
}

.dots__dot[aria-current="true"]::before {
	background: var(--color-accent);
}

/* Chips: news tags and popular searches (outlined links). */

.tag-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-16);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tag-chip {
	display: block;
	padding: var(--space-12) var(--space-24);
	border: 1px solid var(--color-border);
	background: var(--color-white);
	color: var(--color-text);
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color var(--transition), color var(--transition);
}

.tag-chip:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.tag-chip[aria-current="page"] {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* Accordion item (FAQ page, product page): a <details> on the surface color with a gold plus / minus. */

.faq-item {
	background: var(--color-surface);
}

.faq-item__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-16);
	padding: var(--space-16);
	color: var(--color-text);
	font-family: var(--font-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	list-style: none;
	cursor: pointer;
}

.faq-item__question::-webkit-details-marker {
	display: none;
}

.faq-item__question:hover .faq-item__text {
	color: var(--color-primary);
}

.faq-item__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	color: var(--color-accent);
}

.faq-item__toggle .icon {
	width: 14px;
	height: 14px;
	stroke-width: 1.2;
}

.faq-item .faq-item__minus,
.faq-item[open] .faq-item__plus {
	display: none;
}

.faq-item[open] .faq-item__minus {
	display: block;
}

.faq-item__answer {
	padding: 0 var(--space-16) var(--space-16);
	color: var(--color-text-body);
	font-size: 13px;
	line-height: 1.5;
}

.faq-item__answer > * {
	margin: 0;
}

.faq-item__answer > * + * {
	margin-top: var(--space-8);
}

.faq-item__answer ul,
.faq-item__answer ol {
	padding-left: var(--space-16);
}

.faq-item__answer li + li {
	margin-top: var(--space-4);
}

.faq-item__answer a {
	color: var(--color-text);
	text-decoration: underline;
	text-decoration-color: var(--color-accent);
	text-underline-offset: 3px;
}

@media (min-width: 768px) {
	.faq-item {
		border-radius: 4px;
	}

	.faq-item__question {
		padding: var(--space-32);
		font-size: 22px;
		font-weight: 400;
	}

	.faq-item__toggle {
		width: 24px;
		height: 24px;
		background: var(--color-accent);
		color: var(--color-white);
	}

	.faq-item__toggle .icon {
		width: 12px;
		height: 12px;
		stroke-width: 1.5;
	}

	.faq-item__answer {
		margin-top: calc(var(--space-16) * -1);
		padding: 0 var(--space-32) var(--space-32);
		font-size: 14px;
		line-height: 1.6;
	}
}

/* Cookie consent banner (seo change, D4): a bar at the bottom of the screen, above the back-to-top button. */

.consent-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding: var(--space-24) var(--page-padding);
	background: var(--color-primary);
	color: var(--color-white);
}

.consent-banner[hidden] {
	display: none;
}

.consent-banner__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
}

.consent-banner__text a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--color-accent);
	text-underline-offset: 3px;
}

.consent-banner__actions {
	display: flex;
	gap: var(--space-12);
}

.consent-banner__actions .button {
	flex: 1;
}

.consent-banner__accept {
	border-color: var(--color-white);
	background: var(--color-white);
	color: var(--color-primary);
}

.consent-banner__accept:hover {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-white);
}

@media (min-width: 768px) {
	.consent-banner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-40);
		padding-block: var(--space-24);
	}

	.consent-banner__text {
		max-width: 720px;
		font-size: 14px;
	}

	.consent-banner__actions .button {
		flex: none;
	}
}
