/* RCHQ Product Page — Figma V1 tokens & layout */

:root {
	--red: #cf1019;
	--red-dark: #d42027;
	--teal-deep: #00a99d;
	--text: #333333;
	--text-dark: #1a1a1a;
	--muted: #5a6472;
	--gray-body: #4a5565;
	--border: #e2e2e2;
	--border-soft: #e8e8e8;
	--surface: #f5f5f5;
	--white: #ffffff;
	--container: 1360px;
	--font-display: "Libre Baskerville", "Georgia", serif;
	--font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--radius-pill: 32px;
	--radius-sm: 4px;
	--radius-md: 10px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--text);
	background: var(--white);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.container {
	width: min(100% - 48px, var(--container));
	margin-inline: auto;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 32px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.15s ease;
	white-space: nowrap;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--primary {
	background: var(--red);
	color: var(--white);
}

.btn--primary:hover {
	background: #b00e15;
}

.btn--outline {
	background: var(--white);
	color: var(--red);
	border: 1px solid var(--red);
}

.btn--outline:hover {
	background: var(--red);
	color: var(--white);
}

.btn--sm {
	min-height: 36px;
	padding: 9px 22px;
	font-size: 13px;
	border-radius: 22px;
}

.btn--block {
	flex: 1;
	width: 100%;
}

/* ——— Hero ——— */
.product-hero {
	padding: 60px 60px;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--white);
}

.product-hero__layout {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	max-width: 1440px;
}

.product-hero__layout > .gallery {
	width: 45%;
}

.product-hero__layout > .buybox {
	width: calc(55% - 50px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

/* Gallery */
.gallery {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	row-gap: 8px;
	position: sticky;
	top: 100px;
}

.gallery__main {
	position: relative;
	aspect-ratio: 1;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--white);
}

.gallery__slider {
	width: 100%;
	height: 100%;
}

.gallery__slider .slick-list,
.gallery__slider .slick-track {
	height: 100%;
}

.gallery__slider .slick-track {
	display: flex;
	align-items: stretch;
}

.gallery__slider .slick-slide {
	height: auto;
}

.gallery__slider .slick-slide > div,
.gallery__slide {
	height: 100%;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery__main .slick-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
}

.gallery__main .slick-arrow::before {
	display: none;
}

.gallery__main .slick-prev {
	left: 12px;
}

.gallery__main .slick-next {
	right: 12px;
}

.gallery__main .slick-prev img {
	transform: rotate(90deg);
}

.gallery__main .slick-next img {
	transform: rotate(-90deg);
}

.gallery__thumbs {
	width: 100%;
	margin: 0 -4px;
}

.gallery__thumbs .slick-list {
	margin: 0;
}

.gallery__thumbs .slick-track {
	display: flex;
	align-items: stretch;
}

.gallery__thumbs .slick-slide {
	padding: 0 4px;
	height: auto;
}

.gallery__thumbs .slick-slide > div {
	height: 100%;
}

.gallery__thumb {
	aspect-ratio: 1;
	border: 1px solid #e2e2e2;
	border-radius: var(--radius-md);
	overflow: hidden;
	cursor: pointer;
	opacity: 0.85;
	transition:
		border-color 0.2s ease,
		opacity 0.2s ease;
}

.gallery__thumbs .slick-current .gallery__thumb,
.gallery__thumb:hover {
	border-color: var(--red);
	opacity: 1;
}

.gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Buy box */
.buybox__title {
	font-family: ff-dagny-web-pro, sans-serif;
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 400;
	line-height: 1.25;
	color: var(--text-dark);
	margin: 0 0 20px;
}

.buybox__price-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.buybox__price {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.buybox__price-value {
	font-family: ff-dagny-web-pro, sans-serif;
	font-size: 36px;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--text-dark);
	line-height: 1;
}

.buybox__price-unit {
	font-size: 16px;
	color: var(--red-dark);
	letter-spacing: 0.02em;
}

.buybox__sku {
	font-size: 13px;
	color: #000;
}

.buybox__sku span {
	font-weight: 300;
}

.buybox__divider {
	height: 1px;
	width: 100%;
	background: var(--border);
	margin: 0 0 40px;
	border: 0;
}

.colors-row {
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 30px;
}

.colors-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.32px;
	text-transform: uppercase;
	color: var(--muted);
	margin: 16px 00;
	flex-shrink: 0;
}

.color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 0;
}

.color-swatch {
	width: 48px;
	height: 48px;
	border: 1px solid transparent;
	padding: 3px;
	transition:
		border-color 0.2s ease,
		transform 0.15s ease;
}

.color-swatch:hover {
	transform: scale(1.05);
}

.color-swatch.is-selected {
	border-color: #333;
}

.color-swatch__fill {
	display: block;
	width: 100%;
	height: 100%;
}

/* Color panels */
.color-panels {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
}

.color-panel {
	background: var(--surface);
	border-radius: var(--radius-sm);
	padding: 16px 16px 20px;
}

.color-panel__top {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.color-panel__header {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	text-align: left;
	padding: 8px 0;
}

.color-panel__remove {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	transition:
		border-color 0.2s ease,
		background 0.2s ease,
		opacity 0.2s ease;
}

.color-panel__remove img {
	width: 14px;
	height: 14px;
	display: block;
	object-fit: contain;
}

.color-panel__remove:hover {
	border-color: var(--red);
	background: var(--white);
}

.color-panel__remove:disabled {
	border-color: transparent;
	background: transparent;
	cursor: not-allowed;
	opacity: 0.35;
}

.color-panel__remove:disabled:hover {
	border-color: transparent;
	background: transparent;
}

.color-panel__swatch {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.color-panel__name {
	font-size: 16px;
	text-transform: uppercase;
	white-space: nowrap;
}

.color-panel__line {
	flex: 1;
	height: 1px;
	background: #d0d0d0;
}

.color-panel__summary {
	font-size: 16px;
	text-transform: uppercase;
	white-space: nowrap;
}

.color-panel__summary em {
	font-style: normal;
	color: var(--red);
}

.color-panel__chevron {
	width: 20px;
	height: 20px;
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.color-panel.is-open .color-panel__chevron {
	transform: rotate(180deg);
}

.color-panel__body {
	display: none;
	margin-top: 8px;
}

.color-panel.is-open .color-panel__body {
	display: block;
}

.matrix {
	width: 100%;
}

.matrix__row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(226, 226, 226, 0.93);
}

.matrix__row:last-child {
	border-bottom: none;
}

.matrix__label {
	flex: 0 0 72px;
	width: 72px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.32px;
	text-transform: uppercase;
	color: var(--muted);
}

.matrix__cell {
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: #1e2939;
}

.matrix__stock {
	font-weight: 400;
	text-transform: uppercase;
}

.qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	max-width: none;
	margin-inline: 0;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--white);
}

.qty button {
	width: 18px;
	height: 28px;
	font-size: 14px;
	color: var(--muted);
	line-height: 1;
	padding: 0;
}

.qty button:hover {
	color: var(--red);
}

.qty input {
	width: 22px;
	border: none;
	text-align: center;
	font-size: 15px;
	font-family: inherit;
	padding: 0;
	min-height: auto;
	line-height: normal;
	box-shadow: none;
	background: var(--white);
	-moz-appearance: textfield;
}

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

.add-color-wrap {
	position: relative;
	margin-bottom: 8px;
}

.add-color {
	font-size: 17px;
	text-transform: uppercase;
	color: rgba(90, 100, 114, 0.6);
	padding: 8px 0 20px;
	text-align: left;
	transition: color 0.2s ease;
}

.add-color:hover,
.add-color[aria-expanded="true"] {
	color: var(--red);
}

.add-color-picker {
	position: absolute;
	left: 0;
	top: calc(100% - 12px);
	z-index: 20;
	min-width: 220px;
	max-width: 100%;
	padding: 12px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.add-color-picker[hidden] {
	display: none;
}

.add-color-picker__option {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 4px;
	width: 56px;
	border-radius: var(--radius-sm);
	transition: background 0.15s ease;
}

.add-color-picker__option:hover {
	background: var(--surface);
}

.add-color-picker__swatch {
	width: 36px;
	height: 36px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 2px;
}

.add-color-picker__name {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--muted);
	text-align: center;
	line-height: 1.2;
	max-width: 56px;
}

.customize-card {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 20px;
	background: var(--white);
	border-radius: var(--radius-sm);
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.12);
	margin-bottom: 24px;
}

.customize-card h3 {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}

.customize-card p {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	color: var(--gray-body);
	max-width: 360px;
}

.buybox__actions {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 24px;
}

/* ——— Details + Size chart ——— */
.details-section {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface);
	padding: 80px 60px;
}

.details-section__layout {
	width: 100%;
	max-width: 1400px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.details-section__content {
	width: 48%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	row-gap: 24px;
}

.section-heading {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	row-gap: 12px;
}

.section-heading h2 {
	font-family: ff-dagny-web-pro, sans-serif;
	font-size: 32px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--text);
	line-height: 1.3;
	margin: 0;
}

.section-heading__rule {
	width: 80px;
	height: 5px;
	background: #cf121a;
}

.accordion__item {
	border-top: 1px solid var(--border-soft);
}

.accordion__item:last-child {
	border-bottom: 1px solid var(--border-soft);
}

.accordion__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 300;
	color: var(--text);
	text-align: left;
}

.accordion__item.is-open .accordion__trigger {
	color: var(--red);
}

.accordion__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: currentColor;
	transition:
		transform 0.2s ease,
		color 0.2s ease;
}

.accordion__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.accordion__item.is-open .accordion__icon {
	transform: rotate(180deg);
}

.accordion__panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	color: var(--text);
}

.accordion__panel-inner {
	padding: 0 24px 40px;
}

.accordion__panel p {
	margin: 0 0 16px;
}

.accordion__panel p:last-child {
	margin-bottom: 0;
}

.size-chart {
	width: calc(52% - 60px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	row-gap: 24px;
}

.size-chart__diagram {
	max-width: 430px;
	width: 80%;
	margin: 0 auto;
}

.size-chart__diagram img {
	width: 100%;
}

.size-table {
	width: 100%;
	overflow-x: auto;
}

.size-table table {
	width: 100%;
	border-collapse: collapse;
}

.size-table th,
.size-table td {
	padding: 8px 4px;
	text-align: center;
	font-size: 16px;
}

.size-table th:first-child,
.size-table td:first-child {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.32px;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}

.size-table thead th {
	font-size: 17px;
	font-weight: 700;
	color: #1e2939;
	border-bottom: 1px solid rgba(226, 226, 226, 0.93);
}

.size-table tbody tr:last-child td {
	border-bottom: 1px solid #e4e4e4;
}

.size-chart__footer {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	font-size: 16px;
	font-weight: 300;
	margin-top: 12px;
}

.size-chart__footer p {
	margin: 0;
}

.unit-toggle {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.unit-toggle button {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.32px;
	text-transform: uppercase;
	color: var(--muted);
	padding: 4px;
	border-bottom: 1px solid transparent;
}

.unit-toggle button.is-active {
	color: var(--red);
	border-bottom-color: var(--red);
}

/* ——— Related ——— */
.related {
	padding: 80px 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--white);
}

.related__inner {
	width: 100%;
	max-width: 1440px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	row-gap: 40px;
}
.related .section-heading {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.related-carousel {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	max-width: 1400px;
}

.related-carousel__track {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.related-carousel__track .slick-list {
	margin: 0 -20px;
}

.related-carousel__track .slick-track {
	display: flex;
	align-items: stretch;
}

.related-carousel__track .slick-slide {
	height: auto;
	padding: 0 20px;
}

.related-carousel__track .slick-slide > div {
	height: 100%;
}

.related-card {
	width: 100%;
	text-align: left;
	transition: transform 0.25s ease;
}

.related-card:hover {
	transform: translateY(-4px);
}

.related-card__media {
	position: relative;
	aspect-ratio: 1;
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--surface);
}

.related-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-card__title {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 400;
	margin: 0 0 8px;
	color: var(--text-dark);
	line-height: 1.3;
	min-height: 52px;
}

.related-card__price {
	font-family: var(--font-display);
	font-size: 26px !important;
	margin: 0 0 8px !important;
	padding: 0;
	text-transform: uppercase;
}

.related-card__link {
	font-size: 13px;
	font-weight: 700;
	color: var(--red-dark);
}

.carousel-btn {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease;
}

.carousel-btn img {
	width: 40px;
	height: 40px;
	display: block;
}

.carousel-btn--prev img {
	transform: rotate(90deg);
}

.carousel-btn--next img {
	transform: rotate(-90deg);
}

.carousel-btn:hover {
	opacity: 0.7;
}

/* ——— FAQ ——— */
.faq {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--white);
	padding: 60px;
}

.faq__inner {
	width: 100%;
	max-width: 890px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	row-gap: 40px;
}
.faq .section-heading {
	text-align: center;
	align-items: center;
}

.faq .section-heading h2 {
	margin-bottom: 0;
}

/* ——— Toast ——— */
.toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(120%);
	background: var(--text-dark);
	color: var(--white);
	padding: 14px 24px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	z-index: 200;
	transition: transform 0.3s ease;
	max-width: 90vw;
	text-align: center;
}

.toast.is-visible {
	transform: translateX(-50%) translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
	.product-hero {
		padding: 60px 30px;
	}
	.product-hero__layout > .gallery {
		width: 40%;
	}
	.product-hero__layout > .buybox {
		width: calc(60% - 30px);
	}
	.details-section {
		padding: 60px 30px;
	}
	.size-chart {
		width: calc(52% - 40px);
	}
	.section-heading h2 {
		font-size: 28px;
	}
	.accordion__trigger {
		padding: 16px 16px;
	}
	.accordion__panel-inner {
		padding: 0 16px 26px;
	}
}

@media (max-width: 768px) {
	.product-hero {
		padding: 50px 20px;
	}
	.product-hero__layout {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 30px;
	}
	.product-hero__layout > .gallery {
		width: 100%;
		max-width: 480px;
		position: static;
	}
	.product-hero__layout > .buybox {
		width: 100%;
	}
	.buybox__price-value {
		font-size: 30px;
	}
	.buybox__divider {
		margin: 0 0 30px;
	}
	.color-swatches {
		gap: 4px;
	}
	.color-panel__remove {
		width: 12px;
		height: 12px;
	}
	.color-panel__swatch {
		width: 26px;
		height: 26px;
	}
	.color-panel__header {
		gap: 6px;
	}
	.color-panel__name {
		font-size: 14px;
	}
	.color-panel__summary {
		font-size: 12px;
	}
	.matrix {
		display: flex;
	}
	.matrix__row {
		flex-direction: column;
		width: calc((100% - 26%) / 2);
		gap: 4px;
		padding: 0;
		border: none;
	}
	.matrix__row:first-child {
		width: 26%;
	}
	.matrix__label {
		flex: none;
		width: 100%;
		text-align: center;
		padding-bottom: 6px;
		border-bottom: 1px solid rgba(226, 226, 226, 1);
	}
	.matrix__cell {
		width: 100%;
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.qty {
		min-width: 80px;
	}
	.customize-card {
		flex-direction: column;
	}
	.customize-card .btn {
		width: 100%;
	}

	.details-section {
		padding: 40px 20px;
	}

	.details-section__layout {
		flex-direction: column;
		gap: 40px;
	}
	.details-section__content,
	.size-chart {
		width: 100%;
	}
	.section-heading h2 {
		font-size: 24px;
	}
	.size-table {
		ovverflow-x: scroll;
	}
	.size-table th,
	.size-table td {
		padding: 8px 8px;
	}
	.size-chart__footer p {
		font-size: 14px;
	}
	.related {
		padding: 50px 20px;
	}
	.related__inner {
		row-gap: 30px;
	}
	.carousel-btn {
		padding: 0;
	}
	.related-carousel {
		gap: 0;
	}
	.carousel-btn img {
		width: 32px;
		height: 32px;
	}
	.related-card__title {
		font-size: 16px;
	}
	.related-card__price {
		font-size: 22px;
	}
	.faq {
		padding: 40px 20px;
	}
	.accordion__trigger {
		padding: 16px 0px;
	}
	.accordion__panel-inner {
		padding: 0 0px 26px;
	}
}