/* ==========================================================================
   Reshakaar — WooCommerce
   ========================================================================== */

/* ---------- Product grid ---------- */
ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.products.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

ul.products.columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

ul.products::before,
ul.products::after {
	display: none;
}

/* Product rails (homepage carousels) scroll sideways instead of wrapping. */
ul.products.rail__track {
	display: flex;
	gap: var(--rail-gap, 16px);
}

/* ---------- Product card ---------- */
li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	list-style: none;
}

.product-card__media {
	position: relative;
	aspect-ratio: var(--product-ratio);
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-card);
}

.product-card__link {
	position: absolute;
	inset: 0;
	display: block;
}

.product-card__media img,
.product-card__media .rk-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}

.product-card__hover {
	opacity: 0;
}

li.product:hover .product-card__media img {
	transform: scale(1.04);
}

li.product:hover .product-card__hover {
	opacity: 1;
}

li.product .onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 4px 11px;
	border-radius: 100px;
	background: #e53030;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--c-white);
}

.product-card__actions {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.3s, transform 0.3s var(--ease);
}

li.product:hover .product-card__actions,
li.product:focus-within .product-card__actions {
	opacity: 1;
	transform: none;
}

.product-card__actions .button {
	width: 100%;
	min-width: 0;
	padding: 12px 10px;
	font-size: 13px;
	white-space: nowrap;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* View now: light pill. Add to cart: dark pill. */
.product-card__actions .product-card__view {
	background: var(--c-white);
	color: var(--c-ink);
}

.product-card__actions .product-card__view:hover {
	background: var(--c-white-hover);
	color: var(--c-ink);
}

.product-card__actions .add_to_cart_button,
.product-card__actions .product_type_variable,
.product-card__actions .product_type_grouped,
.product-card__actions .product_type_external {
	background: var(--c-ink);
	color: var(--c-white);
}

.product-card__actions .add_to_cart_button:hover {
	background: var(--c-ink-hover);
	color: var(--c-white);
}

.product-card__actions .button.loading {
	opacity: 0.7;
}

.product-card__actions .button.added::after {
	content: "✓";
	margin-left: 6px;
}

.product-card__actions .added_to_cart {
	display: none;
}

.product-card__body {
	padding-top: 16px;
}

.woocommerce-loop-product__title {
	margin: 0 0 6px;
	font-family: var(--f-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0;
}

.woocommerce-loop-product__title a {
	color: var(--c-ink);
}

.woocommerce-loop-product__title a:hover {
	color: var(--c-accent);
}

li.product .price,
.summary .price,
.woocommerce-Price-amount {
	font-variant-numeric: tabular-nums;
}

li.product .price {
	display: block;
	font-size: 15px;
	font-weight: 400;
	color: var(--c-ink);
}

.price del {
	margin-right: 6px;
	font-weight: 400;
	color: var(--c-muted);
}

.price ins {
	text-decoration: none;
}

li.product .star-rating {
	margin-top: 6px;
	font-size: 11px;
}

/* ---------- Star rating ---------- */
.star-rating {
	position: relative;
	display: inline-block;
	width: 5.4em;
	height: 1em;
	overflow: hidden;
	font-family: sans-serif;
	line-height: 1;
	letter-spacing: 0.1em;
	color: #f5b400;
}

.star-rating::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	left: 0;
	color: #e3e3e3;
}

.star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	padding-top: 1.5em;
}

.star-rating span::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	left: 0;
}

/* ---------- Shop page ---------- */
.shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 32px;
}

.woocommerce-result-count {
	margin: 0 auto 0 0;
	font-size: 14px;
}

.woocommerce-ordering {
	margin: 0;
}

.woocommerce-ordering select {
	width: auto;
	padding: 11px 44px 11px 20px;
	border-radius: 100px;
	appearance: none;
	background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23111' stroke-width='1.6'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 18px center;
	font-size: 14px;
	font-weight: 400;
}

.btn-outline {
	padding: 10px 22px;
	border: 1px solid var(--c-border);
	border-radius: 100px;
	background: var(--c-white);
	font-size: 14px;
	font-weight: 400;
	color: var(--c-ink);
}

.shop-toolbar__filter {
	display: none;
}

.shop-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.shop-sidebar {
	position: sticky;
	top: 110px;
}

.shop-sidebar__close {
	display: none;
}

/* ---------- Filter sidebar ---------- */
.shop-filters {
	margin-bottom: 40px;
}

.shop-filters__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--c-ink);
}

.shop-filters__title {
	margin: 0;
	font-size: 24px;
}

.shop-filters__clear {
	font-size: 12px;
	letter-spacing: 0.04em;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--c-text);
}

.filter-group {
	border-bottom: 1px solid var(--c-border);
}

.filter-group__title {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 18px 0;
	list-style: none;
	cursor: pointer;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-ink);
}

.filter-group__title::-webkit-details-marker {
	display: none;
}

.filter-group__title .icon {
	margin-left: auto;
	transition: transform 0.25s var(--ease);
}

.filter-group[open] > .filter-group__title .icon {
	transform: rotate(180deg);
}

.filter-group__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 100px;
	background: var(--c-accent);
	font-size: 10px;
	letter-spacing: 0;
	color: var(--c-white);
}

.filter-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0 0 20px;
	list-style: none;
}

.filter-option {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
	font-size: 14px;
	color: var(--c-text);
}

.filter-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.filter-option__box {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1px solid #c9c2ba;
	border-radius: 5px;
	background: var(--c-white);
	transition: background-color 0.15s, border-color 0.15s;
}

.filter-option__box::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 6px;
	width: 4px;
	height: 8px;
	border: solid var(--c-white);
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
	opacity: 0;
}

.filter-option:hover .filter-option__box {
	border-color: var(--c-ink);
}

.filter-option input:checked + .filter-option__box {
	background: var(--c-ink);
	border-color: var(--c-ink);
}

.filter-option input:checked + .filter-option__box::after {
	opacity: 1;
}

.filter-option input:focus-visible + .filter-option__box {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
}

.filter-option input:checked ~ .filter-option__name {
	color: var(--c-ink);
}

.filter-option__count {
	margin-left: auto;
	font-size: 12px;
	color: var(--c-muted);
}

.filter-option.is-empty {
	opacity: 0.45;
}

/* Sizes as square chips. */
.filter-list--chips {
	grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
	gap: 8px;
}

.filter-list--chips .filter-option {
	position: relative;
	justify-content: center;
	height: 44px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.filter-list--chips .filter-option__box,
.filter-list--chips .filter-option__count {
	display: none;
}

.filter-list--chips .filter-option:hover {
	border-color: var(--c-ink);
}

.filter-list--chips .filter-option:has(input:checked) {
	background: var(--c-ink);
	border-color: var(--c-ink);
}

.filter-list--chips .filter-option input:checked ~ .filter-option__name {
	color: var(--c-white);
}

.filter-list--chips .filter-option:has(input:focus-visible) {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
}

/* Price. */
.filter-price {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.filter-price__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-size: 12px;
	color: var(--c-text);
}

.filter-price__input {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-white);
}

.filter-price__input:focus-within {
	border-color: var(--c-ink);
}

.filter-price__currency {
	color: var(--c-muted);
}

.filter-price__input input {
	width: 100%;
	min-width: 0;
	padding: 11px 0;
	border: 0;
	background: transparent;
	font-size: 14px;
	-moz-appearance: textfield;
}

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

.filter-price__hint {
	margin: 10px 0 12px;
	font-size: 12px;
	color: var(--c-muted);
}

.filter-price__apply {
	width: 100%;
	margin-bottom: 20px;
	padding: 11px 20px;
}

/* Active filter chips above the grid. */
.active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: -12px 0 28px;
	padding: 0;
	list-style: none;
}

.active-filters a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px 7px 14px;
	border-radius: 100px;
	background: var(--c-cream);
	font-size: 13px;
	color: var(--c-ink);
}

.active-filters a:hover {
	background: var(--c-ink);
	color: var(--c-white);
}

.active-filters .active-filters__clear {
	background: none;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--c-text);
}

.active-filters .active-filters__clear:hover {
	background: none;
	color: var(--c-ink);
	opacity: 0.6;
}

.shop-toolbar__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	margin-left: 4px;
	border-radius: 100px;
	background: var(--c-accent);
	font-size: 10px;
	color: var(--c-white);
}

.shop-filters.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.term-description,
.woocommerce-products-header {
	margin-bottom: 24px;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-notices-wrapper > * {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--c-soft);
	list-style: none;
	font-size: 14px;
	color: var(--c-ink);
}

.woocommerce-message {
	background: #eef6ee;
}

.woocommerce-error {
	background: #fbeeee;
}

.woocommerce-info .button,
.woocommerce-message .button {
	float: right;
	margin-left: 16px;
	padding: 8px 18px;
	font-size: 13px;
}

/* Price filter widget */
.price_slider_wrapper .ui-slider {
	position: relative;
	height: 3px;
	margin: 16px 6px 24px;
	border-radius: 2px;
	background: var(--c-border);
}

.price_slider_wrapper .ui-slider-range {
	position: absolute;
	height: 100%;
	background: var(--c-ink);
}

.price_slider_wrapper .ui-slider-handle {
	position: absolute;
	top: -6px;
	width: 15px;
	height: 15px;
	margin-left: -7px;
	border-radius: 50%;
	background: var(--c-ink);
	cursor: grab;
}

.price_slider_amount {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
}

.price_slider_amount .button {
	padding: 8px 18px;
}

.price_slider_amount input {
	display: none;
}

/* ---------- Single product ---------- */
.single-product .page-body {
	padding-top: 30px;
}

.single-product__crumbs {
	padding: 0 0 28px;
}

.single-product div.product {
	display: block;
}

.product-main {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 48px clamp(40px, 5vw, 80px);
	align-items: start;
}

/* Photo slider: thumbnails on the left, one photo at a time sized to fit the first screen. */
.woocommerce-product-gallery {
	--gallery-h: max(460px, min(calc(100svh - 190px), 860px));
	position: sticky;
	top: 100px;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 12px;
	margin: 0;
	opacity: 1 !important;
}

.woocommerce-product-gallery:not(:has(.gallery-thumbs)) {
	grid-template-columns: minmax(0, 1fr);
}

.gallery-stage {
	position: relative;
	/* Exactly the photo's width, so the arrows and counter sit on the photo. */
	width: min(100%, calc(var(--gallery-h) * 4 / 5));
	max-width: 100%;
	grid-column: -2 / -1;
	grid-row: 1;
	min-width: 0;
}

.woocommerce-product-gallery__wrapper {
	display: flex;
	width: 100%;
	aspect-ratio: var(--product-ratio);
	margin: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	border-radius: var(--radius);
	background: var(--c-card);
}

.woocommerce-product-gallery__wrapper::-webkit-scrollbar {
	display: none;
}

.woocommerce-product-gallery__image {
	flex: 0 0 100%;
	aspect-ratio: var(--product-ratio);
	scroll-snap-align: start;
}

.woocommerce-product-gallery__image a {
	display: block;
	height: 100%;
	cursor: zoom-in;
}

/* Photos are uploaded at 4:5, so cover fills the frame without cropping. */
.woocommerce-product-gallery__image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center top;
}

/* Product video slide: vertical clip inside the 4:5 frame. */
.product-gallery__video {
	position: relative;
	flex: 0 0 100%;
	aspect-ratio: var(--product-ratio);
	scroll-snap-align: start;
	overflow: hidden;
	background: var(--c-card);
}

.product-gallery__video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	cursor: pointer;
}

.product-gallery__video.is-fill video {
	object-fit: cover;
}

.product-gallery__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding-left: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--c-ink);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.product-gallery__play svg {
	fill: currentColor;
}

.product-gallery__video.is-paused .product-gallery__play {
	display: inline-flex;
}

.product-gallery__sound {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--c-ink);
	cursor: pointer;
}

.product-gallery__sound svg:last-child,
.product-gallery__video.is-unmuted .product-gallery__sound svg:first-child {
	display: none;
}

.product-gallery__video.is-unmuted .product-gallery__sound svg:last-child {
	display: block;
}

.gallery-thumbs button.is-video {
	position: relative;
}

.gallery-thumbs button.is-video::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l8.5-5.5z' fill='%23111'/%3E%3C/svg%3E") no-repeat 55% center / 14px;
	transform: translate(-50%, -50%);
}

.gallery-thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	grid-column: 1;
	grid-row: 1;
	max-height: var(--gallery-h);
	margin: 0;
	padding: 0;
	overflow-y: auto;
	scrollbar-width: none;
	list-style: none;
}

.gallery-thumbs button {
	display: block;
	width: 100%;
	aspect-ratio: var(--product-ratio);
	padding: 0;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--c-card);
	opacity: 0.55;
	transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumbs button:hover,
.gallery-thumbs button.is-active {
	opacity: 1;
}

.gallery-thumbs button.is-active {
	border-color: var(--c-ink);
}

.gallery-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px;
	height: 44px;
	transform: translateY(-50%);
}

.gallery-arrow--prev {
	left: 14px;
}

.gallery-arrow--next {
	right: 14px;
}

.gallery-counter {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 3;
	padding: 5px 12px;
	border-radius: 100px;
	background: rgba(17, 17, 17, 0.55);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--c-white);
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--c-white);
	font-size: 0;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.woocommerce-product-gallery__trigger::before {
	content: "";
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.woocommerce-product-gallery__trigger img {
	display: none !important;
}

/* Info column: sticks while the photos scroll, but only within the top area. */
.summary.entry-summary {
	margin: 0;
}

.summary .product_title {
	margin: 0 0 14px;
	font-size: clamp(30px, 3vw, 44px);
	line-height: 1.1;
}

.summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 13px;
}

.summary > .price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0;
	font-family: var(--f-head);
	font-size: 26px;
	color: var(--c-ink);
}

.summary > .price del {
	font-size: 0.72em;
}

.price__badge {
	padding: 4px 12px;
	border-radius: 100px;
	background: var(--c-accent);
	font-family: var(--f-body);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-white);
}

.product-price-note {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--c-muted);
}

.woocommerce-product-details__short-description {
	margin: 26px 0 0;
	padding-top: 26px;
	border-top: 1px solid var(--c-border);
	font-size: 15px;
	line-height: 1.75;
}

.woocommerce-product-details__short-description ul {
	margin: 0 0 1em;
	padding-left: 1.1em;
}

.woocommerce-product-details__short-description li {
	margin-bottom: 4px;
}

.woocommerce-product-details__short-description li::marker {
	color: var(--c-accent);
}

/* Accordions. */
.product-accordions {
	margin: 24px 0 28px;
	border-top: 1px solid var(--c-border);
}

.product-accordion {
	border-bottom: 1px solid var(--c-border);
}

.product-accordion > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 0;
	list-style: none;
	cursor: pointer;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-ink);
}

.product-accordion > summary::-webkit-details-marker {
	display: none;
}

.product-accordion > summary .icon {
	transition: transform 0.25s var(--ease);
}

.product-accordion[open] > summary .icon {
	transform: rotate(45deg);
}

.product-accordion__body {
	padding: 0 0 22px;
	font-size: 14px;
	line-height: 1.7;
}

.product-accordion__body ul {
	margin: 0;
	padding-left: 1.1em;
}

.product-accordion__body li + li {
	margin-top: 6px;
}

/* Size chart tables. */
.size-tabs__list {
	display: flex;
	gap: 8px;
	margin: 0 0 14px;
}

.size-tabs__tab {
	padding: 8px 18px;
	border: 1px solid var(--c-border);
	border-radius: 100px;
	background: var(--c-white);
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--c-ink);
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.size-tabs__tab:hover {
	border-color: var(--c-ink);
}

.size-tabs__tab.is-active {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: var(--c-white);
}

.size-chart__guide {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-top: 16px;
}

.size-chart__img {
	flex: 0 0 38%;
	max-width: 38%;
	height: auto;
	border-radius: var(--radius-sm);
	background: var(--c-card);
}

.size-chart__tips {
	flex: 1;
	font-size: 13px;
	color: var(--c-muted);
}

.size-chart__tips-title {
	margin: 0 0 6px;
	font-family: var(--f-head);
	font-size: 16px;
	color: var(--c-ink);
}

.size-chart__tips ul {
	margin: 0;
	padding-left: 18px;
}

.size-chart__tips li + li {
	margin-top: 4px;
}

.size-chart + .size-chart {
	margin-top: 24px;
}

.size-tabs ~ .size-chart {
	margin-top: 0;
}

@media (max-width: 575px) {
	.size-chart__guide {
		flex-direction: column;
	}

	.size-chart__img {
		max-width: 100%;
	}
}

.size-chart__title {
	margin: 0 0 10px;
	font-size: 18px;
}

.size-chart__scroll {
	overflow-x: auto;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
}

.size-chart table {
	width: 100%;
	min-width: 340px;
	border-collapse: collapse;
	font-size: 13px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.size-chart th,
.size-chart td {
	padding: 10px 8px;
	border-bottom: 1px solid var(--c-border);
	white-space: nowrap;
}

.size-chart tbody tr:last-child th,
.size-chart tbody tr:last-child td {
	border-bottom: 0;
}

.size-chart thead th {
	background: var(--c-ink);
	font-weight: 400;
	letter-spacing: 0.06em;
	color: var(--c-white);
}

.size-chart tbody th {
	position: sticky;
	left: 0;
	background: var(--c-cream);
	font-weight: 400;
	text-align: left;
	color: var(--c-ink);
}

.size-chart tbody tr:nth-child(even) td {
	background: #faf8f5;
}

.size-chart__note {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--c-muted);
}

table.variations th.label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.size-chart-link {
	padding: 0;
	border: 0;
	background: none;
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: none;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--c-text);
}

.size-chart-link:hover {
	color: var(--c-ink);
	opacity: 0.6;
}

.product-accordion__body #reviews h2 {
	font-size: 18px;
}

/* Add to cart form. */
.product-form__label,
table.variations th.label label {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-ink);
}

.summary form.cart {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: end;
	gap: 12px;
	margin: 0 0 20px;
}

.summary form.cart .product-form__label {
	grid-column: 1 / -1;
	margin-bottom: -2px;
}

.summary form.cart.variations_form {
	display: block;
}

table.variations {
	width: 100%;
	margin: 0 0 20px;
	border-collapse: collapse;
}

table.variations tr {
	display: block;
}

table.variations th,
table.variations td {
	display: block;
	padding: 0;
	text-align: left;
}

table.variations .size-selected {
	margin-left: 6px;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--c-muted);
}

/* Size swatches (the select stays in the DOM for WooCommerce). */
.swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.swatch {
	min-width: 54px;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-white);
	font-size: 14px;
	color: var(--c-ink);
	transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.swatch:hover {
	border-color: var(--c-ink);
}

.swatch.is-selected {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-white);
}

.swatch:disabled {
	color: var(--c-muted);
	background: repeating-linear-gradient(135deg, transparent 0 8px, #f1ece6 8px 9px);
	cursor: not-allowed;
}

.has-swatches select {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.single_variation_wrap .woocommerce-variation-price {
	margin-bottom: 14px;
	font-family: var(--f-head);
	font-size: 20px;
	color: var(--c-ink);
}

.single_variation_wrap .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: end;
	gap: 12px;
}

.single_variation_wrap .woocommerce-variation-add-to-cart .product-form__label {
	grid-column: 1 / -1;
	margin-bottom: -2px;
}

/* Quantity stepper. */
.quantity {
	display: inline-flex;
	align-items: center;
	height: 54px;
	border: 1px solid var(--c-border);
	border-radius: 100px;
	background: var(--c-white);
}

.quantity .qty {
	width: 44px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	text-align: center;
	font-size: 15px;
	-moz-appearance: textfield;
}

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

.qty-step {
	width: 44px;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	font-size: 18px;
	color: var(--c-ink);
}

.qty-step:hover {
	color: var(--c-ink);
	opacity: 0.6;
}

.single_add_to_cart_button {
	width: 100%;
	height: 54px;
	font-size: 15px;
}

.single_add_to_cart_button.disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.product-share {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 13px;
	letter-spacing: 0.06em;
	color: var(--c-text);
}

.product-share:hover {
	color: var(--c-ink);
	opacity: 0.6;
}

/* Reviews inside the accordion. */
#reviews .commentlist {
	padding: 0;
	list-style: none;
}

#reviews .comment_container {
	display: flex;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--c-border);
}

#reviews .avatar {
	border-radius: 50%;
}

/* Related / upsells. */
.related.products,
.upsells.products {
	margin-top: clamp(64px, 8vw, 110px);
}

.related.products > h2,
.upsells.products > h2 {
	margin-bottom: 32px;
	font-size: clamp(28px, 3vw, 40px);
}

/* ---------- Cart drawer ---------- */
#cart-drawer .drawer__panel {
	width: min(460px, 94vw);
	overflow: hidden;
}

.cart-drawer__count {
	font-family: var(--f-body);
	font-size: 15px;
	color: var(--c-muted);
}

.widget_shopping_cart_content {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.cart-drawer__items {
	flex: 1;
	margin: 0;
	padding: 0 24px;
	overflow-y: auto;
	list-style: none;
}

.cart-item {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--c-border);
	transition: opacity 0.2s;
}

.cart-item.is-updating {
	opacity: 0.45;
	pointer-events: none;
}

.cart-item__media {
	display: block;
	overflow: hidden;
	aspect-ratio: var(--product-ratio);
	border-radius: var(--radius-sm);
	background: var(--c-card);
}

.cart-item__media img,
.cart-item__media .rk-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cart-item__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.cart-item__top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.cart-item__name {
	font-family: var(--f-head);
	font-size: 17px;
	line-height: 1.3;
	color: var(--c-ink);
}

.cart-item__total {
	flex-shrink: 0;
	font-size: 14px;
	color: var(--c-ink);
}

.cart-item__meta {
	font-size: 13px;
	color: var(--c-muted);
}

.cart-item__meta dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 0 4px;
	margin: 0 0 2px;
}

.cart-item__meta dl.variation dd {
	margin-right: 8px !important;
}

.cart-item__meta dl.variation dt,
.cart-item__meta dl.variation dd,
.cart-item__meta dl.variation p {
	margin: 0;
	font-weight: 400;
}

.cart-item__unit del {
	margin-right: 4px;
}

.cart-item__unit ins {
	text-decoration: none;
}

.cart-item__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 8px;
}

.cart-qty {
	display: inline-flex;
	align-items: center;
	height: 40px;
	border: 1px solid var(--c-border);
	border-radius: 100px;
}

.cart-qty__btn {
	width: 38px;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	font-size: 16px;
	color: var(--c-ink);
}

.cart-qty__btn:hover:not(:disabled) {
	color: var(--c-ink);
	opacity: 0.6;
}

.cart-qty__btn:disabled {
	color: var(--c-border);
	cursor: not-allowed;
}

.cart-qty__value {
	min-width: 22px;
	text-align: center;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.cart-item__remove {
	padding: 0;
	border: 0;
	background: none;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--c-muted);
}

.cart-item__remove:hover {
	color: var(--c-ink);
	opacity: 0.6;
}

.cart-drawer__footer {
	padding: 20px 24px 24px;
	border-top: 1px solid var(--c-border);
	background: var(--c-white);
	box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.04);
}

.cart-drawer__footer .woocommerce-mini-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0;
	font-size: 15px;
	color: var(--c-ink);
}

.cart-drawer__footer .woocommerce-mini-cart__total strong {
	font-family: var(--f-head);
	font-size: 22px;
	font-weight: 400;
}

.cart-drawer__note {
	margin: 4px 0 18px;
	font-size: 12px;
	color: var(--c-muted);
}

.cart-drawer__checkout {
	width: 100%;
	height: 54px;
	font-size: 15px;
}

.cart-drawer__view {
	display: block;
	margin-top: 12px;
	text-align: center;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--c-text);
}

.cart-drawer__empty {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 40px 24px;
	text-align: center;
	color: var(--c-muted);
}

.cart-drawer__empty .woocommerce-mini-cart__empty-message {
	margin: 0 0 8px;
	font-family: var(--f-head);
	font-size: 22px;
	color: var(--c-ink);
}

/* Product page add-to-cart feedback. */
.single_add_to_cart_button.loading {
	opacity: 0.6;
	cursor: progress;
}

.product-form__error {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: #fbeeee;
	font-size: 13px;
	color: #9b2c2c;
}

/* ---------- Review form stars ---------- */
p.stars {
	margin: 0 0 16px;
}

p.stars span {
	display: inline-flex;
	gap: 2px;
}

p.stars a {
	position: relative;
	display: inline-block;
	width: 1.3em;
	height: 1.3em;
	overflow: hidden;
	font-size: 20px;
	line-height: 1;
	text-indent: 100%;
	white-space: nowrap;
	color: #f5b400;
}

p.stars a::before {
	content: "☆";
	position: absolute;
	top: 0;
	left: 0;
	text-indent: 0;
}

p.stars:hover a::before,
p.stars.selected a::before {
	content: "★";
}

p.stars a:hover ~ a::before,
p.stars.selected a.active ~ a::before {
	content: "☆";
}

/* ---------- Store notice ---------- */
.woocommerce-store-notice {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	margin: 0;
	padding: 14px 20px;
	background: var(--c-ink);
	text-align: center;
	font-size: 14px;
	color: var(--c-white);
}

.woocommerce-store-notice a {
	margin-left: 12px;
	color: var(--c-white);
	text-decoration: underline;
}

/* ---------- Login / register ---------- */
.woocommerce .col2-set,
.woocommerce-account .u-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
}

.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-ResetPassword {
	padding: 32px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

.woocommerce-password-strength {
	margin-top: 8px;
	padding: 6px 12px;
	border-radius: var(--radius-sm);
	font-size: 13px;
}

.woocommerce-password-strength.strong {
	background: #eef6ee;
}

.woocommerce-password-strength.short,
.woocommerce-password-strength.bad {
	background: #fbeeee;
}

.woocommerce-password-strength.good {
	background: #fdf6e6;
}

.woocommerce-cart .alignwide,
.woocommerce-checkout .alignwide {
	margin-left: 0;
	margin-right: 0;
}

/* ---------- Classic cart / checkout / account tables ---------- */
table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

table.shop_table th,
table.shop_table td {
	padding: 16px 12px;
	border-bottom: 1px solid var(--c-border);
	text-align: left;
	vertical-align: middle;
}

table.shop_table th {
	font-weight: 400;
	color: var(--c-ink);
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 18px;
	border-radius: var(--radius-sm);
	font-weight: 400;
}

.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--c-soft);
	color: var(--c-ink);
}

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 48px;
}

.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account:not(.logged-in) .woocommerce > * {
	grid-column: 1 / -1;
}

.woocommerce form .form-row {
	margin: 0 0 16px;
}

.woocommerce form .form-row label {
	display: block;
}

.required {
	color: var(--c-accent);
	text-decoration: none;
}

/* Block cart/checkout: align with theme. */
.wc-block-components-button:not(.is-link) {
	border-radius: 100px !important;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--c-ink) !important;
	color: var(--c-white) !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: var(--c-ink-hover) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	ul.products,
	ul.products.columns-4,
	ul.products.columns-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.shop-layout {
		grid-template-columns: 1fr;
	}

	.shop-toolbar__filter {
		display: inline-flex;
	}

	.shop-sidebar {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 120;
		width: min(340px, 88vw);
		padding: 64px 24px 24px;
		overflow-y: auto;
		background: var(--c-white);
		box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
		transform: translateX(-105%);
		transition: transform 0.35s var(--ease);
	}

	.shop-sidebar.is-open {
		transform: none;
	}

	.shop-sidebar__close {
		position: absolute;
		top: 14px;
		right: 14px;
		display: inline-flex;
	}

	.product-main {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.summary.entry-summary {
		position: static;
	}

	.woocommerce-product-gallery__wrapper {
		width: 100%;
	}

	.gallery-stage {
		width: 100%;
	}

	.woocommerce-product-gallery {
		position: relative;
		top: 0;
		grid-template-columns: minmax(0, 1fr);
	}

	.gallery-thumbs {
		display: none;
	}

	.gallery-arrow {
		display: none;
	}

	.woocommerce-account .woocommerce,
	.woocommerce .col2-set,
	.woocommerce-account .u-columns {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 767px) {
	ul.products,
	ul.products.columns-3,
	ul.products.columns-4,
	ul.products.columns-5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 10px;
	}

	.woocommerce-loop-product__title,
	li.product .price {
		font-size: 13px;
	}

	.product-card__actions {
		left: 8px;
		right: 8px;
		bottom: 8px;
		gap: 6px;
		opacity: 1;
		transform: none;
	}

	.product-card__actions .button {
		padding: 8px 6px;
		font-size: 11px;
	}

	/* Filter and sort share one row; the result count is hidden to save space. */
	.shop-toolbar {
		flex-wrap: nowrap;
		gap: 8px;
		margin-bottom: 20px;
	}

	.woocommerce-result-count {
		display: none;
	}

	.shop-toolbar__filter {
		display: inline-flex;
		align-items: center;
		flex: 0 0 calc(50% - 4px);
		min-width: 0;
		justify-content: center;
		height: 42px;
		padding: 0 16px;
		font-size: 13px;
	}

	.woocommerce-ordering {
		display: flex;
		flex: 0 0 calc(50% - 4px);
		min-width: 0;
	}

	.woocommerce-ordering select {
		width: 100%;
		height: 42px;
		padding: 0 36px 0 16px;
		background-position: right 14px center;
		font-size: 13px;
	}
}
