/* ==========================================================================
   Atelier single product
   Selectors start with :is(.woocommerce, body) div.product.atp so they beat
   WooCommerce's default styles without !important.
   ========================================================================== */

.product.atp,
.atp-below,
.atp-bar,
.atp-drawer,
.atp-viewer {
	--atp-font: "Manrope", system-ui, sans-serif;
	--atp-ink: #151413;
	--atp-muted: #7a766f;
	--atp-line: #dedad3;
	--atp-paper: #ffffff;
	--atp-wash: #f2f0ec;
	--atp-sale: #8a2b1d;
	--atp-sticky-offset: 96px; /* header height + breathing room */

	font-family: var(--atp-font);
	color: var(--atp-ink);
	-webkit-font-smoothing: antialiased;
}

/* Hello Elementor & similar: let the product page use the full 1440 width */
body.single-product .site-main:has(> .product.atp) {
	max-width: 1440px;
	padding-inline: clamp(16px, 2.5vw, 32px);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
:is(.woocommerce, body) div.product.atp {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: 24px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0;
}

:is(.woocommerce, body) div.product.atp::before,
:is(.woocommerce, body) div.product.atp::after {
	content: none;
}

:is(.woocommerce, body) div.product.atp > * {
	grid-column: 1 / -1;
	min-width: 0;
}

:is(.woocommerce, body) div.product.atp > div.summary {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

@media (min-width: 1025px) {
	:is(.woocommerce, body) div.product.atp {
		grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr);
		column-gap: clamp(40px, 5vw, 88px);
		row-gap: 0;
	}

	:is(.woocommerce, body) div.product.atp > .atp-gallery {
		grid-column: 1;
	}

	:is(.woocommerce, body) div.product.atp > div.summary {
		grid-column: 2;
		align-self: start;
		position: sticky;
		top: var(--atp-top, var(--atp-sticky-offset));
		max-width: 460px;
		padding-top: 8px;
	}
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.atp-gallery__track {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
}

.atp-gallery__item {
	margin: 0;
	background: var(--atp-wash);
}

.atp-gallery__item.is-wide {
	grid-column: 1 / -1;
}

.atp .atp-gallery__open,
.atp .atp-gallery__open:hover,
.atp .atp-gallery__open:focus {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	cursor: zoom-in;
}

.atp .atp-gallery__open:focus-visible {
	outline: 1px solid var(--atp-ink);
	outline-offset: -4px;
}

.atp .atp-gallery img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	border-radius: 0;
}

.atp-gallery__dots {
	display: none;
}

@media (max-width: 1024px) {
	.atp-gallery__track {
		display: flex;
		gap: 0;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.atp-gallery__track::-webkit-scrollbar {
		display: none;
	}

	.atp-gallery__item {
		flex: 0 0 100%;
		scroll-snap-align: start;
	}

	.atp-gallery__dots {
		display: flex;
		gap: 4px;
		margin-top: 12px;
	}

	.atp-gallery__dots span {
		flex: 1 1 0;
		height: 2px;
		background: var(--atp-line);
		transition: background-color .2s;
	}

	.atp-gallery__dots span.is-active {
		background: var(--atp-ink);
	}
}

/* Full-size viewer */
.atp-viewer {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--atp-paper);
}

.atp-viewer::backdrop {
	background: var(--atp-paper);
}

.atp-viewer__list {
	height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.atp-viewer .atp-viewer__img {
	display: block;
	width: 100%;
	max-width: 1100px;
	height: auto;
	margin: 0 auto 4px;
}

.atp-viewer .atp-viewer__close,
.atp-viewer .atp-viewer__close:hover,
.atp-viewer .atp-viewer__close:focus {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 2;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background: var(--atp-paper);
	color: var(--atp-ink);
	box-shadow: none;
	font: 600 11px/1 var(--atp-font);
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Summary
   -------------------------------------------------------------------------- */
.atp-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 18px;
	font-size: 11.5px;
	line-height: 1.4;
	color: var(--atp-muted);
}

.atp .atp-crumbs a {
	color: inherit;
	text-decoration: none;
}

.atp .atp-crumbs a:hover {
	color: var(--atp-ink);
}

.atp-crumbs__sep {
	opacity: .6;
}

:is(.woocommerce, body) div.product.atp .product_title {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--atp-font);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-transform: none;
	color: var(--atp-ink);
}

:is(.woocommerce, body) div.product.atp .woocommerce-product-rating {
	margin: 0 0 10px;
	font-size: 12px;
}

:is(.woocommerce, body) div.product.atp p.price,
:is(.woocommerce, body) div.product.atp span.price {
	margin: 0;
	font-family: var(--atp-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--atp-ink);
	font-variant-numeric: tabular-nums;
}

:is(.woocommerce, body) div.product.atp .price del {
	margin-right: 8px;
	font-weight: 400;
	color: var(--atp-muted);
	opacity: 1;
}

:is(.woocommerce, body) div.product.atp .price ins {
	font-weight: 500;
	color: var(--atp-sale);
	text-decoration: none;
}

.atp .woocommerce-product-details__short-description {
	margin-top: 20px;
	font-size: 14px;
	line-height: 1.65;
}

.atp .woocommerce-product-details__short-description > :last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Add to cart form
   -------------------------------------------------------------------------- */
:is(.woocommerce, body) div.product.atp form.cart {
	margin: 28px 0 0;
}

:is(.woocommerce, body) div.product.atp form.cart:not(.variations_form),
:is(.woocommerce, body) div.product.atp .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

:is(.woocommerce, body) div.product.atp form.cart .quantity {
	display: flex;
	flex: 0 0 auto;
	align-items: stretch;
	float: none;
	height: 52px;
	margin: 0;
	border: 1px solid var(--atp-line);
	background: var(--atp-paper);
	transition: border-color .15s;
}

:is(.woocommerce, body) div.product.atp form.cart .quantity:hover,
:is(.woocommerce, body) div.product.atp form.cart .quantity:focus-within {
	border-color: var(--atp-ink);
}

/* Sold individually → WooCommerce outputs a hidden input */
:is(.woocommerce, body) div.product.atp form.cart .quantity:has(input[type="hidden"]) {
	display: none;
}

:is(.woocommerce, body) div.product.atp form.cart .quantity .qty {
	width: 40px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--atp-ink);
	font: 500 14px/1 var(--atp-font);
	text-align: center;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
	appearance: textfield;
}

:is(.woocommerce, body) div.product.atp form.cart .quantity .qty:focus {
	outline: none;
}

:is(.woocommerce, body) div.product.atp form.cart .quantity .qty::-webkit-inner-spin-button,
:is(.woocommerce, body) div.product.atp form.cart .quantity .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.atp .atp-step,
.atp .atp-step:hover,
.atp .atp-step:focus {
	position: relative;
	flex: 0 0 auto;
	width: 40px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--atp-ink);
	cursor: pointer;
}

.atp .atp-step::before,
.atp .atp-step--plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 1px;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.atp .atp-step--plus::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.atp .atp-step:disabled {
	color: var(--atp-line);
	cursor: default;
}

.atp .atp-step:focus-visible {
	outline: 1px solid var(--atp-ink);
	outline-offset: -4px;
}

/* Variations table → stacked rows */
:is(.woocommerce, body) div.product.atp form.cart table.variations {
	display: block;
	width: 100%;
	margin: 0 0 20px;
	border: 0;
	background: none;
	table-layout: auto;
}

:is(.woocommerce, body) div.product.atp form.cart table.variations :is(tbody, tr, th, td) {
	display: block;
	width: auto;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	line-height: 1.4;
}

:is(.woocommerce, body) div.product.atp form.cart table.variations tr + tr {
	margin-top: 20px;
}

:is(.woocommerce, body) div.product.atp form.cart table.variations th.label {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
}

:is(.woocommerce, body) div.product.atp form.cart table.variations th.label label {
	margin: 0;
	font: inherit;
	color: var(--atp-ink);
}

.atp .atp-chosen {
	font-weight: 400;
	color: var(--atp-muted);
}

.atp .atp-native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden;
	clip: rect(0 0 0 0);
	opacity: 0;
	pointer-events: none;
}

:is(.woocommerce, body) div.product.atp form.cart .reset_variations {
	display: none !important;
}

/* Size buttons */
.atp-opts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	gap: 6px;
}

.atp .atp-opt,
.atp .atp-opt:hover,
.atp .atp-opt:focus {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--atp-line);
	border-radius: 0;
	background: var(--atp-paper);
	box-shadow: none;
	color: var(--atp-ink);
	font: 500 13px/1 var(--atp-font);
	letter-spacing: 0;
	text-transform: none;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s;
}

.atp .atp-opt:hover {
	border-color: var(--atp-ink);
}

.atp .atp-opt[aria-pressed="true"],
.atp .atp-opt[aria-pressed="true"]:hover {
	border-color: var(--atp-ink);
	background: var(--atp-ink);
	color: var(--atp-paper);
}

.atp .atp-opt.is-out,
.atp .atp-opt:disabled {
	border-color: var(--atp-line);
	background: linear-gradient(to top right, transparent calc(50% - .5px), var(--atp-line) 50%, transparent calc(50% + .5px)) var(--atp-paper);
	color: var(--atp-muted);
	cursor: not-allowed;
}

.atp .atp-opt:focus-visible {
	outline: 1px solid var(--atp-ink);
	outline-offset: 2px;
}

.atp form.is-hint .atp-opt:not(:disabled):not([aria-pressed="true"]) {
	border-color: var(--atp-sale);
}

.atp .atp-hint {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--atp-sale);
}

.atp .atp-hint:empty {
	display: none;
}

/* Size guide link */
.atp .atp-sg-open,
.atp .atp-sg-open:hover,
.atp .atp-sg-open:focus {
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--atp-ink);
	font: 500 12px/1.4 var(--atp-font);
	letter-spacing: 0;
	text-transform: none;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	cursor: pointer;
}

/* Selected variation: price / stock */
:is(.woocommerce, body) div.product.atp .woocommerce-variation-price {
	margin-bottom: 8px;
}

:is(.woocommerce, body) div.product.atp .woocommerce-variation-availability p.stock,
:is(.woocommerce, body) div.product.atp p.stock {
	margin: 0 0 12px;
	font-size: 12px;
	color: var(--atp-muted);
}

:is(.woocommerce, body) div.product.atp p.stock.out-of-stock {
	color: var(--atp-sale);
}

/* Add to cart button */
:is(.woocommerce, body) div.product.atp form.cart .single_add_to_cart_button,
:is(.woocommerce, body) div.product.atp form.cart .single_add_to_cart_button:hover,
:is(.woocommerce, body) div.product.atp form.cart .single_add_to_cart_button.disabled {
	float: none;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: var(--atp-ink);
	box-shadow: none;
	color: var(--atp-paper);
	font: 600 12px/1 var(--atp-font);
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: 1;
	cursor: pointer;
}

:is(.woocommerce, body) div.product.atp form.cart .single_add_to_cart_button:hover {
	background: #000;
}

:is(.woocommerce, body) div.product.atp form.cart .single_add_to_cart_button:focus-visible {
	outline: 1px solid var(--atp-ink);
	outline-offset: 2px;
}

:is(.woocommerce, body) div.product.atp form.cart .single_add_to_cart_button.loading {
	opacity: .6;
	cursor: progress;
}

/* Stripe / WooPayments express checkout (Apple Pay, Google Pay, Link) */
.atp :is(#wc-stripe-express-checkout-element, #wc-stripe-payment-request-wrapper, #wcpay-express-checkout-element, .wcpay-express-checkout-wrapper) {
	flex: 1 1 100%;
	width: 100%;
	margin: 0;
	padding: 0 !important;
}

.atp :is(#wc-stripe-express-checkout-button-separator, #wc-stripe-payment-request-button-separator, #wcpay-express-checkout-button-separator) {
	flex: 1 1 100%;
	margin: 6px 0 !important;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atp-muted);
	text-align: center;
}

/* --------------------------------------------------------------------------
   Accordions
   -------------------------------------------------------------------------- */
.atp-acc {
	margin-top: 36px;
	border-top: 1px solid var(--atp-line);
}

.atp-acc__item {
	border-bottom: 1px solid var(--atp-line);
}

.atp-acc__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.atp-acc__title::-webkit-details-marker {
	display: none;
}

.atp-acc__title:focus-visible {
	outline: 1px solid var(--atp-ink);
	outline-offset: 2px;
}

.atp-acc__icon {
	position: relative;
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
}

.atp-acc__icon::before,
.atp-acc__icon::after {
	content: "";
	position: absolute;
	background: currentColor;
	transition: transform .2s ease;
}

.atp-acc__icon::before { left: 0; right: 0; top: 5px; height: 1px; }
.atp-acc__icon::after { top: 0; bottom: 0; left: 5px; width: 1px; }

.atp-acc__item[open] .atp-acc__icon::after {
	transform: scaleY(0);
}

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

.atp-acc__body > :first-child { margin-top: 0; }
.atp-acc__body > :last-child { margin-bottom: 0; }

.atp-acc__body p {
	margin: 0 0 12px;
}

.atp-acc__body img {
	max-width: 100%;
	height: auto;
}

/* Details table */
:is(.woocommerce, body) div.product.atp table.woocommerce-product-attributes {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

:is(.woocommerce, body) div.product.atp table.woocommerce-product-attributes :is(th, td) {
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid var(--atp-line);
	background: none;
	font-size: 13px;
	font-style: normal;
	text-align: left;
	vertical-align: top;
}

:is(.woocommerce, body) div.product.atp table.woocommerce-product-attributes th {
	width: 40%;
	font-weight: 500;
	color: var(--atp-muted);
}

:is(.woocommerce, body) div.product.atp table.woocommerce-product-attributes td p {
	margin: 0;
	padding: 0;
}

/* Reviews inside accordion */
.atp .atp-acc .woocommerce-Reviews-title {
	display: none;
}

.atp .atp-acc #reviews #comments ol.commentlist {
	padding: 0;
}

/* --------------------------------------------------------------------------
   Complete the look
   -------------------------------------------------------------------------- */
.atp-ctl {
	margin-top: 36px;
}

.atp .atp-ctl__title {
	margin: 0 0 14px;
	font-family: var(--atp-font);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atp-muted);
}

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

.atp .atp-ctl__item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
}

.atp .atp-ctl__thumb {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--atp-wash);
}

.atp .atp-ctl__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.atp-ctl__info {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.atp .atp-ctl__name {
	overflow: hidden;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--atp-ink);
	text-decoration: none;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.atp .atp-ctl__name:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.atp .atp-ctl__price,
.atp .atp-ctl__price .amount {
	font-size: 12.5px;
	color: var(--atp-muted);
	font-variant-numeric: tabular-nums;
}

.atp .atp-ctl__price ins {
	color: var(--atp-sale);
	text-decoration: none;
}

.atp .atp-ctl__price del {
	margin-right: 4px;
}

.atp .atp-ctl__add,
.atp .atp-ctl__add:hover {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	height: 34px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--atp-ink);
	border-radius: 0;
	background: var(--atp-paper);
	box-shadow: none;
	color: var(--atp-ink);
	font: 600 10.5px/1 var(--atp-font);
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

.atp .atp-ctl__add:hover {
	background: var(--atp-ink);
	color: var(--atp-paper);
}

.atp .atp-ctl__add.loading {
	opacity: .5;
	cursor: progress;
}

.atp .atp-ctl__add.loading::after {
	content: none;
}

.atp .atp-ctl__add.added {
	font-size: 0;
	background: var(--atp-ink);
	color: var(--atp-paper);
}

.atp .atp-ctl__add.added::after {
	content: "Added";
	position: static;
	margin: 0;
	font-size: 10.5px;
	font-family: var(--atp-font);
}

.atp .atp-ctl .added_to_cart {
	display: none;
}

/* --------------------------------------------------------------------------
   Size guide drawer
   -------------------------------------------------------------------------- */
.atp-drawer {
	width: min(560px, 100vw);
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: var(--atp-paper);
	overflow: hidden;
}

.atp-drawer[open] {
	display: flex;
	flex-direction: column;
	animation: atp-drawer-in .3s cubic-bezier(.2, .7, .2, 1);
}

.atp-drawer::backdrop {
	background: rgba(21, 20, 19, .35);
}

@keyframes atp-drawer-in {
	from { transform: translateX(100%); }
}

.atp-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 28px;
	border-bottom: 1px solid var(--atp-line);
}

.atp-drawer .atp-drawer__title {
	margin: 0;
	font-family: var(--atp-font);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atp-ink);
}

.atp-drawer .atp-drawer__close,
.atp-drawer .atp-drawer__close:hover,
.atp-drawer .atp-drawer__close:focus {
	position: relative;
	width: 32px;
	height: 32px;
	margin: 0 -8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--atp-ink);
	cursor: pointer;
}

.atp-drawer__close span::before,
.atp-drawer__close span::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 1px;
	background: currentColor;
}

.atp-drawer__close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.atp-drawer__close span::after { transform: translate(-50%, -50%) rotate(-45deg); }

.atp-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 24px 28px 40px;
	font-size: 14px;
	line-height: 1.65;
}

.atp-drawer__body > :first-child { margin-top: 0; }

.atp-drawer__body :is(h2, h3, h4) {
	margin: 28px 0 10px;
	font-family: var(--atp-font);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.atp-drawer__body :is(figure, .wp-block-table) {
	margin: 0 0 20px;
	overflow-x: auto;
}

.atp-drawer__body table {
	width: 100%;
	min-width: 420px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.atp-drawer__body :is(th, td) {
	padding: 10px 8px;
	border: 0;
	border-bottom: 1px solid var(--atp-line);
	background: none;
	text-align: left;
	white-space: nowrap;
}

.atp-drawer__body :is(th, td):first-child {
	padding-left: 0;
	font-weight: 600;
}

.atp-drawer__body thead :is(th, td) {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--atp-muted);
	border-bottom-color: var(--atp-ink);
}

.atp-drawer__body tbody tr:hover :is(th, td) {
	background: var(--atp-wash);
}

.atp-drawer__body figcaption,
.atp-drawer__body .wp-element-caption {
	margin-top: 10px;
	font-size: 12px;
	color: var(--atp-muted);
}

html:has(.atp-drawer[open], .atp-viewer[open]) {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Add-to-cart notice (after the page reloads)
   -------------------------------------------------------------------------- */
body.single-product .woocommerce-notices-wrapper .woocommerce-message,
body.single-product .woocommerce-notices-wrapper .woocommerce-error,
body.single-product .woocommerce-notices-wrapper .woocommerce-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	max-width: 1440px;
	margin: 0 auto 24px;
	padding: 14px 18px;
	border: 0;
	background: #f2f0ec;
	color: #151413;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 13px;
	list-style: none;
}

body.single-product .woocommerce-notices-wrapper .woocommerce-error {
	color: #8a2b1d;
}

body.single-product .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-error, .woocommerce-info)::before {
	content: none;
}

body.single-product .woocommerce-notices-wrapper .woocommerce-message .button {
	order: 2;
	float: none;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.atp *,
	.atp-drawer[open] {
		transition: none !important;
		animation: none !important;
	}
}

/* ==========================================================================
   v2 additions
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fit scale (inside the add-to-cart row)
   -------------------------------------------------------------------------- */
.atp-fit {
	flex: 1 1 100%;
	margin: 4px 0 14px;
}

.atp-fit__head {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 13px;
	line-height: 1.3;
}

.atp-fit__label {
	font-weight: 600;
}

.atp-fit__value {
	color: var(--atp-muted);
}

.atp-fit__scale {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3px;
}

.atp-fit__scale span {
	height: 3px;
	background: var(--atp-line);
}

.atp-fit__scale span.is-active {
	background: var(--atp-ink);
}

.atp-fit__ends {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	font-size: 11px;
	color: var(--atp-muted);
}

.atp .atp-fit__note {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--atp-muted);
}

/* --------------------------------------------------------------------------
   Trust lines + free delivery progress
   -------------------------------------------------------------------------- */
.atp-trust {
	display: grid;
	gap: 14px;
	margin-top: 20px;
	padding: 16px 18px;
	background: var(--atp-wash);
}

.atp .atp-ship__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

.atp .atp-ship__text .amount {
	font-weight: 600;
}

.atp-ship.is-done .atp-ship__text {
	font-weight: 600;
}

.atp-ship__bar {
	height: 2px;
	margin-top: 10px;
	background: var(--atp-line);
}

.atp-ship__bar[hidden] {
	display: none;
}

.atp-ship__bar span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--atp-ink);
	transition: width .6s cubic-bezier(.2, .7, .2, 1);
}

.atp .atp-trust__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.atp-ship + .atp-trust__list {
	padding-top: 14px;
	border-top: 1px solid var(--atp-line);
}

.atp .atp-trust__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

.atp-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--atp-ink);
}

.atp .atp-trust__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* --------------------------------------------------------------------------
   Details with icons
   -------------------------------------------------------------------------- */
.atp .atp-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
	margin: 28px 0 0;
	padding: 0;
}

.atp-details__row {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	column-gap: 10px;
	align-items: start;
}

.atp-details__row .atp-icon {
	grid-row: span 2;
	margin-top: 1px;
}

.atp .atp-details dt {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--atp-muted);
}

.atp .atp-details dd {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Below the product
   -------------------------------------------------------------------------- */
.atp-below {
	max-width: 1440px;
	margin: 0 auto clamp(80px, 9vw, 140px);
	font-family: var(--atp-font);
	color: var(--atp-ink);
}

.atp-sec {
	margin-top: clamp(72px, 8vw, 120px);
}

.atp-below .atp-sec__title {
	margin: 0 0 24px;
	font-family: var(--atp-font);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atp-muted);
}

/* Story */
.atp-story {
	display: grid;
	gap: 32px;
	align-items: center;
}

.atp-story__media {
	background: var(--atp-wash);
}

.atp-below .atp-story__media img {
	display: block;
	width: 100%;
	height: auto;
}

.atp-below .atp-story__title {
	margin: 0 0 16px;
	font-family: var(--atp-font);
	font-size: clamp(24px, 2.6vw, 36px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.015em;
	text-transform: none;
	color: var(--atp-ink);
}

.atp-story__body {
	max-width: 46ch;
	font-size: 15px;
	line-height: 1.7;
}

.atp-story__body p {
	margin: 0 0 14px;
}

@media (min-width: 1025px) {
	.atp-story {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(40px, 6vw, 112px);
	}
}

/* Reviews */
.atp-reviews {
	display: grid;
	gap: 32px;
}

@media (min-width: 1025px) {
	.atp-reviews {
		grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
		gap: clamp(40px, 6vw, 112px);
	}

	.atp-reviews__aside {
		position: sticky;
		top: var(--atp-sticky-offset, 96px);
		align-self: start;
	}
}

.atp-below .atp-reviews__avg {
	margin: 0 0 6px;
	font-size: 48px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}

.atp-stars {
	position: relative;
	display: inline-block;
	line-height: 0;
	color: var(--atp-ink);
}

.atp-stars svg {
	fill: currentColor;
}

.atp-stars__base,
.atp-stars__fill {
	display: inline-flex;
	gap: 2px;
	white-space: nowrap;
}

.atp-stars__base {
	color: var(--atp-line);
}

.atp-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
}

.atp-below .atp-reviews__count,
.atp-below .atp-reviews__empty {
	margin: 10px 0 20px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--atp-muted);
}

.atp-below .atp-reviews__dist {
	display: grid;
	gap: 6px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.atp-reviews__dist li {
	display: grid;
	grid-template-columns: 12px minmax(0, 1fr) 28px;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 12px;
	color: var(--atp-muted);
	font-variant-numeric: tabular-nums;
}

.atp-reviews__dist li span:last-child {
	text-align: right;
}

.atp-reviews__bar {
	height: 3px;
	background: var(--atp-line);
}

.atp-reviews__bar span {
	display: block;
	height: 100%;
	background: var(--atp-ink);
}

/* Outline button */
.atp-below .atp-btn-line,
.atp-below .atp-btn-line:hover,
.atp-below .atp-btn-line:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid var(--atp-ink);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--atp-ink);
	font: 600 11px/1 var(--atp-font);
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}

.atp-below .atp-btn-line:hover {
	background: var(--atp-ink);
	color: var(--atp-paper);
}

/* WooCommerce review list */
.atp-reviews #reviews .woocommerce-Reviews-title,
.atp-reviews #reviews .woocommerce-noreviews,
.atp-reviews #reviews > .clear {
	display: none;
}

.atp-reviews #reviews #comments ol.commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.atp-reviews #reviews #comments ol.commentlist li {
	margin: 0;
	padding: 24px 0;
	border-top: 1px solid var(--atp-line);
	background: none;
}

.atp-reviews #reviews #comments ol.commentlist li:first-child {
	padding-top: 0;
	border-top: 0;
}

.atp-reviews #reviews #comments ol.commentlist li img.avatar {
	display: none;
}

.atp-reviews #reviews #comments ol.commentlist li .comment-text {
	margin: 0;
	padding: 0;
	border: 0;
}

.atp-reviews #reviews .star-rating {
	float: none;
	margin: 0 0 10px;
	font-size: 12px;
	color: var(--atp-ink);
}

.atp-reviews #reviews .comment-text .meta {
	margin: 0 0 8px;
	font-size: 12px;
	color: var(--atp-muted);
}

.atp-reviews #reviews .comment-text .meta strong {
	font-weight: 600;
	color: var(--atp-ink);
}

.atp-reviews #reviews .comment-text .description {
	font-size: 14px;
	line-height: 1.65;
}

.atp-reviews #reviews .comment-text .description p {
	margin: 0 0 10px;
}

/* Review form (in drawer) */
.atp-review-drawer .comment-reply-title {
	display: none;
}

.atp-review-drawer .comment-form {
	display: grid;
	gap: 16px;
	margin: 0;
}

.atp-review-drawer .comment-form p {
	margin: 0;
	padding: 0;
}

.atp-review-drawer .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
}

.atp-review-drawer .comment-form :is(input[type="text"], input[type="email"], textarea) {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--atp-line);
	border-radius: 0;
	background: var(--atp-paper);
	box-shadow: none;
	font: 14px/1.5 var(--atp-font);
	color: var(--atp-ink);
}

.atp-review-drawer .comment-form :is(input, textarea):focus {
	border-color: var(--atp-ink);
	outline: none;
}

.atp-review-drawer .comment-form p.stars a {
	color: var(--atp-ink);
}

.atp-review-drawer .comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

.atp-review-drawer .comment-form .form-submit input[type="submit"] {
	width: 100%;
	height: 52px;
	border: 0;
	border-radius: 0;
	background: var(--atp-ink);
	color: var(--atp-paper);
	font: 600 12px/1 var(--atp-font);
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}

/* FAQ */
.atp-faq {
	display: grid;
	gap: 8px;
}

@media (min-width: 1025px) {
	.atp-faq {
		grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
		gap: clamp(40px, 6vw, 112px);
	}
}

.atp-faq__body {
	border-top: 1px solid var(--atp-line);
}

.atp-faq__body > :first-child { margin-top: 0; }

.atp-faq__body .wp-block-details {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--atp-line);
}

.atp-faq__body .wp-block-details summary {
	position: relative;
	padding: 20px 32px 20px 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.atp-faq__body .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.atp-faq__body .wp-block-details summary::before,
.atp-faq__body .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 11px;
	height: 1px;
	background: currentColor;
	transition: transform .2s ease;
}

.atp-faq__body .wp-block-details summary::after {
	transform: rotate(90deg);
}

.atp-faq__body .wp-block-details[open] summary::after {
	transform: rotate(90deg) scaleX(0);
}

.atp-faq__body .wp-block-details > :not(summary) {
	margin: 0 0 20px;
	max-width: 62ch;
	font-size: 14px;
	line-height: 1.7;
	color: #3d3a36;
}

/* Recently viewed */
.atp-recent[hidden] {
	display: none;
}

.atp-recent__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(150px, 45%);
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.atp-recent__list::-webkit-scrollbar {
	display: none;
}

@media (min-width: 768px) {
	.atp-recent__list {
		grid-auto-flow: row;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
		overflow: visible;
	}
}

.atp-below .atp-mini {
	display: grid;
	gap: 4px;
	color: var(--atp-ink);
	text-decoration: none;
	scroll-snap-align: start;
}

.atp-mini__media {
	display: block;
	aspect-ratio: 3 / 4;
	margin-bottom: 10px;
	overflow: hidden;
	background: var(--atp-wash);
}

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

.atp-mini__name {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.atp-below .atp-mini:hover .atp-mini__name {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.atp-mini__price {
	font-size: 12.5px;
	color: var(--atp-muted);
	font-variant-numeric: tabular-nums;
}

.atp-mini__price del {
	margin-right: 6px;
}

.atp-mini__price ins {
	color: var(--atp-sale);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Sticky add-to-cart bar
   -------------------------------------------------------------------------- */
.atp-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	background: var(--atp-paper);
	border-top: 1px solid var(--atp-line);
	transform: translateY(100%);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1);
	font-family: var(--atp-font);
	color: var(--atp-ink);
}

.atp-bar.is-visible {
	transform: none;
}

.atp-bar__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 10px clamp(16px, 2.5vw, 32px);
	padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.atp-bar__thumb {
	flex: 0 0 auto;
	width: 40px;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--atp-wash);
}

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

.atp-bar__info {
	display: grid;
	min-width: 0;
	margin-right: auto;
}

.atp-bar__name {
	overflow: hidden;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.atp-bar__price {
	font-size: 12.5px;
	color: var(--atp-muted);
	font-variant-numeric: tabular-nums;
}

.atp-bar__price del {
	margin-right: 6px;
}

.atp-bar__price ins {
	color: var(--atp-sale);
	text-decoration: none;
}

.atp-bar__size {
	font-size: 12px;
	color: var(--atp-muted);
	white-space: nowrap;
}

.atp-bar__size:empty {
	display: none;
}

.atp-bar .atp-bar__btn,
.atp-bar .atp-bar__btn:hover,
.atp-bar .atp-bar__btn:focus {
	flex: 0 0 auto;
	height: 44px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 0;
	background: var(--atp-ink);
	box-shadow: none;
	color: var(--atp-paper);
	font: 600 11px/1 var(--atp-font);
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}

@media (max-width: 767px) {
	.atp-bar__thumb,
	.atp-bar__size {
		display: none;
	}

	.atp-bar .atp-bar__btn {
		padding: 0 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atp-bar,
	.atp-ship__bar span {
		transition: none;
	}
}
