/**
 * ZoeSophie theme — custom styles beyond style.css
 */

/* Single Product Bottega-style template — top gallery: first 2 images, full-bleed, no gap.
   Each photo is 2:3, so two side by side make a 4:3 frame. The frame owns the height;
   images are positioned inside it so they cannot spill out. One photo stays 2:3. */
.zs-pdp-top-gallery {
	display: flex;
	width: 100%;
	max-width: 1600px;
	margin-inline: auto;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.zs-pdp-top-gallery:not(:has(.zs-pdp-top-gallery__item:nth-child(2))) {
	aspect-ratio: 2 / 3;
}

.zs-pdp-top-gallery__item {
	display: block;
	position: relative;
	flex: 1 1 50%;
	min-width: 0;
	overflow: hidden;
}

.zs-pdp-top-gallery__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	box-shadow: none !important; /* overrides Astra's default .ast-article-single img shadow */
}

/* Single Product Bottega-style template — remaining images: 2-up rows + trailing full-width */
.zs-pdp-rest-gallery__row {
	display: flex;
	flex-wrap: wrap;
}

.zs-pdp-rest-gallery__item {
	display: block;
	flex: 1 1 50%;
	aspect-ratio: 955 / 1125;
	overflow: hidden;
	padding-right: .5rem;
	padding-left: .5rem;
	padding-bottom: 1rem;
	box-sizing: border-box;
}

.zs-pdp-rest-gallery__item--full {
	flex: 1 1 100%;
	aspect-ratio: auto;
	height: auto;
}

.zs-pdp-rest-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	box-shadow: none !important; /* overrides Astra's default .ast-article-single img shadow */
}

.zs-pdp-rest-gallery__item--full .zs-pdp-rest-gallery__img {
	height: auto;
}

/* The real add-to-cart button renders with the variations (after the tabs) but stays
   hidden — the early .zs-pdp-add-to-cart-trigger button forwards clicks to it so WooCommerce's
   native variation validation/AJAX logic keeps working untouched. */
.zs-pdp-variations button.single_add_to_cart_button {
	display: none !important;
}

/* Matches the real .single_add_to_cart_button's look (normally scoped to the Elementor
   Add To Cart widget wrapper, which this shortcode-rendered button sits outside of). */
.elementor-shortcode:has(> .zs-pdp-add-to-cart-trigger) {
	display: flex;
	align-items: stretch;
	gap: .75rem;
}

.zs-pdp-add-to-cart-trigger {
	display: block !important;
	flex: 1 1 auto;
	width: auto !important;
	background-color: #000 !important;
	color: #fff !important;
	border: 1px solid #131313 !important;
	padding: 18.2px 28px !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	text-transform: uppercase !important;
	letter-spacing: 2px !important;
	text-align: center !important;
	cursor: pointer;
}

/* Woo injects this beside the hidden real button. Hide it there; once the
   script parks it next to the visible trigger it shares that button's height. */
.zs-pdp-variations a.added_to_cart {
	display: none !important;
}

.zs-pdp-add-to-cart-trigger + a.added_to_cart {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto !important;
	margin: 0 !important;
	padding: 18.2px 28px !important;
	background: #fff !important;
	color: #000 !important;
	border: 1px solid #131313 !important;
	border-radius: 0 !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: 2px !important;
	text-transform: uppercase !important;
	text-align: center;
	white-space: nowrap;
	box-sizing: border-box;
}

.zs-pdp-add-to-cart-trigger + a.added_to_cart:hover {
	background: #000 !important;
	color: #fff !important;
}

/* "Product details" row + slide-in panel */
.zs-pdp-details__row {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 1rem 0;
	margin: 0;
	font-size: 13px;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	color: #131313 !important;
	cursor: pointer;
	text-align: left;
}

.zs-pdp-details__chevron {
	flex: 0 0 auto;
	color: #131313;
}

.zs-pdp-details__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .3);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
	z-index: 9998;
}

.zs-pdp-details__panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 480px;
	max-width: 100%;
	height: 100vh;
	background: #fff;
	box-shadow: -2px 0 12px rgba(0, 0, 0, .1);
	transform: translateX(100%);
	transition: transform .3s ease;
	z-index: 9999;
	overflow-y: auto;
	box-sizing: border-box;
}

.zs-pdp-details.is-open .zs-pdp-details__overlay {
	opacity: 1;
	pointer-events: auto;
}

.zs-pdp-details.is-open .zs-pdp-details__panel {
	transform: translateX(0);
}

body.zs-pdp-details-lock,
body.zs-pdp-lightbox-lock {
	overflow: hidden;
}

/* keep the panel below the WP admin toolbar so its close button stays clickable while logged in */
body.admin-bar .zs-pdp-details__panel,
body.admin-bar .zs-pdp-details__overlay {
	top: 32px;
}

body.admin-bar .zs-pdp-details__panel {
	height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .zs-pdp-details__panel,
	body.admin-bar .zs-pdp-details__overlay {
		top: 0px;
	}

	body.admin-bar .zs-pdp-details__panel {
		height: 100vh;
	}
}

.zs-pdp-details__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
}

.zs-pdp-details__header h3 {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #131313;
}

.zs-pdp-details__close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #131313;
	cursor: pointer;
	padding: 0;
}

.zs-pdp-details__body {
	padding: 0 1.5rem 1.5rem;
	font-size: 13px;
	color: #131313;
}

.zs-pdp-details__desc {
	margin: 0 0 1rem;
}

.zs-pdp-details__desc p {
	margin: 0 0 .75rem;
}

.zs-pdp-details__desc p:last-child {
	margin-bottom: 0;
}

.zs-pdp-details__specs {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.zs-pdp-details__specs li {
	position: relative;
	padding-left: 1rem;
	margin-bottom: .4rem;
}

.zs-pdp-details__specs li::before {
	content: '\00b7';
	position: absolute;
	left: 0;
}

.zs-pdp-details__accordion {
	border-top: 1px solid #e5e5e5;
}

.zs-pdp-details-acc__trigger {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	background: none !important;
	border: none;
	border-bottom: 1px solid #e5e5e5;
	padding: 1rem 0;
	margin: 0;
	font-size: 13px;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	color: #131313 !important;
	cursor: pointer;
	text-align: left;
}

.zs-pdp-details-acc__chevron {
	flex: 0 0 auto;
	color: #131313;
	transition: transform .2s ease;
}

.zs-pdp-details-acc.is-open .zs-pdp-details-acc__chevron {
	transform: rotate(180deg);
}

.zs-pdp-details-acc__content {
	display: none;
	padding: 1rem 0;
	border-bottom: 1px solid #e5e5e5;
}

.zs-pdp-details-acc__content p {
	margin: 0;
}

.zs-pdp-details-acc.is-open .zs-pdp-details-acc__content {
	display: block;
}

/* "Other size" / "Other color" variation tabs (plain product attributes, not
   WooCommerce variations). Tab chrome (nav/tab/panel) reuses .zs-pdp-related-tabs__*
   as-is when there are two groups; .zs-pdp-variation-tabs__label is the plain-text
   heading used instead when there's only one group (no tab switcher needed). */
.zs-pdp-variation-tabs {
	width: 100%;
}

.zs-pdp-variation-tabs__label {
	display: block;
	font-size: 13px;
	color: #767676;
	margin-bottom: .75rem;
}

.zs-pdp-variation-tabs__label-value {
	color: #131313;
}

.zs-pdp-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

.zs-pdp-swatches__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 63px;
	height: 72px;
	flex: 0 0 auto;
	box-sizing: border-box;
	cursor: pointer;
}

.zs-pdp-swatches__item--color {
	border: 1px solid rgba(0, 0, 0, .15);
}

.zs-pdp-swatches__item--color.is-selected {
	outline: 1px solid #131313;
	outline-offset: 3px;
}

.zs-pdp-swatches__box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 32px;
	padding: 0 .5rem;
	border: 1px solid rgba(0, 0, 0, .25);
	box-sizing: border-box;
	font-size: 11px;
	color: #131313;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.zs-pdp-swatches__item.is-selected .zs-pdp-swatches__box {
	border-color: #131313;
}

.zs-pdp-swatches__box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 32px;
	padding: 0 .5rem;
	border: 1px solid rgba(0, 0, 0, .25);
	box-sizing: border-box;
	font-size: 11px;
	color: #131313;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Product info column */
@media (min-width: 1024px) {
    .zs-pdp-info {
        max-width: 50% !important;
    }
}


.zs-pdp-info > .e-con-inner > .elementor-element {
	margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .zs-pdp-info > .e-con-inner > .elementor-element {
        margin-bottom: 0.7rem;
    }
}

/* Category meta row: "Category" -> "Category:", drop Astra's default divider line.
   One flex line: SKU + Category on the left, the selected-colour indicator
   (appended by JS) pushed to the right. */
.zs-pdp-info .product_meta {
	border-top: none !important;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .25rem 1rem;
}

/* Selected-colour indicator on the SKU row: a small square + the colour name.
   `!important` on display because the theme's `.product_meta span` rules are more
   specific and would otherwise flatten it. */
.zs-pdp-selected-color {
	display: inline-flex !important;
	align-items: center;
	gap: .4rem;
	margin-left: auto;
	font-size: 12px;
	line-height: 1;
	color: #131313;
}

.zs-pdp-selected-color[hidden] {
	display: none !important;
}

.zs-pdp-selected-color__dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
	border: 1px solid rgba(0, 0, 0, .3);
	box-sizing: border-box;
}

.zs-pdp-selected-color__name {
	text-transform: capitalize;
}

.zs-pdp-info .detail-label::after {
	content: ':';
}

/* "You may also like" / "Recently viewed" tab switcher */
.zs-pdp-related-tabs__nav {
	display: flex;
    justify-content: center;
	gap: 2rem;
	margin-bottom: 2rem;
}

.zs-pdp-related-tabs__tab {
	background-color: transparent;
	background-image: linear-gradient(#131313, #131313);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: left bottom 0;
	border: none;
	padding: 0 0 1rem;
	margin-bottom: -1px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #767676;
	cursor: pointer;
	text-decoration: none;
	animation: none;
    box-shadow: none;
}

.zs-pdp-related-tabs__tab:hover,
.zs-pdp-related-tabs__tab:focus,
.zs-pdp-related-tabs__tab:focus-visible,
.zs-pdp-related-tabs__tab:active,
.zs-pdp-related-tabs__tab.is-active {
	background-color: transparent !important;
	border-color: transparent !important;
}

.zs-pdp-related-tabs__tab:hover,
.zs-pdp-related-tabs__tab:focus-visible {
	animation: zs-grow-underline .46s linear forwards;
	outline: none;
	color: #000 !important;
}

.zs-pdp-related-tabs__tab.is-active {
	color: #131313 !important;
	font-weight: 700;
	background-size: 100% 1px;
	cursor: unset;
	pointer-events: none;
}

@keyframes zs-grow-underline {
	from { background-size: 0 1px; }
	to { background-size: 100% 1px; }
}

.zs-pdp-related-tabs__panel {
	display: none;
}

.zs-pdp-related-tabs__panel.is-active {
	display: block;
}

.zs-pdp-related-tabs__panel h2 {
	display: none;
}

.zs-pdp-related-wrap {
	width: 100%;
	padding-right: .5rem;
	padding-left: .5rem;
	padding-bottom: 1rem;
	margin: 6rem 0 0;
	box-sizing: border-box;
}

/* Mobile gallery: one swipeable full-width scroller, replaces the desktop split gallery */
.zs-pdp-mobile-gallery {
	display: none;
}

@media (max-width: 767px) {
	.zs-pdp-top-gallery,
	.zs-pdp-rest-gallery {
		display: none;
	}

	.zs-pdp-mobile-gallery {
		display: block;
		position: relative;
	}

	.zs-pdp-mobile-gallery__track {
		display: flex;
		flex-direction: column;
		width: 100%;
		aspect-ratio: 955 / 1125;
		overflow-x: hidden;
		overflow-y: auto;
		scroll-snap-type: y mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		touch-action: pan-y;
	}

	.zs-pdp-mobile-gallery__track::-webkit-scrollbar {
		display: none;
	}

	.zs-pdp-mobile-gallery__slide {
		flex: 0 0 100%;
		height: 100%;
		overflow: hidden;
		scroll-snap-align: start;
	}

	.zs-pdp-mobile-gallery__img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
		box-shadow: none !important;
	}

	.zs-pdp-mobile-gallery__dots {
		position: absolute;
		top: 8%;
		right: 1rem;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 14px;
		z-index: 2;
	}

	.zs-pdp-mobile-gallery__dot {
		width: 3px;
		height: 3px;
		border-radius: 50%;
		background: #8b95a0;
	}

	.zs-pdp-mobile-gallery__dot.is-active {
		width: 6px;
		height: 6px;
		background: #000;
	}

	.zs-pdp-mobile-gallery__progress {
		width: 60px;
		height: 2px;
		background: #e5e5e5;
		margin: 1rem auto 0;
		position: relative;
		overflow: hidden;
	}

	.zs-pdp-mobile-gallery__progress-bar {
		position: absolute;
		top: 0;
		left: 0;
		height: 100%;
		width: calc(100% / var(--zs-slides, 1));
		background: #131313;
		transition: transform .2s ease;
	}
}

/* Desktop gallery lightbox — opened by clicking a top/rest gallery image, horizontal
   scroll-snap slider (same technique the mobile gallery uses on its own axis) with
   prev/next arrows and bottom dot navigation. Not used on mobile — its own tap-to-open
   swipe gallery already covers that, and the trigger links are hidden there anyway. */
.zs-pdp-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: #eef1f3;
}

.zs-pdp-lightbox.is-open {
	display: block;
}

.zs-pdp-lightbox__track {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	touch-action: pan-x;
}

.zs-pdp-lightbox__track::-webkit-scrollbar {
	display: none;
}

.zs-pdp-lightbox__slide {
	flex: 0 0 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	scroll-snap-align: start;
	box-sizing: border-box;
	padding: 4rem 6rem;
}

.zs-pdp-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: none !important;
}

.zs-pdp-lightbox__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #131313;
	cursor: pointer;
	padding: 0;
	z-index: 2;
}

.zs-pdp-lightbox__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #131313;
	cursor: pointer;
	padding: .5rem;
	z-index: 2;
}

.zs-pdp-lightbox__arrow--prev {
	left: 1rem;
}

.zs-pdp-lightbox__arrow--next {
	right: 1rem;
}

.zs-pdp-lightbox__dots {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 14px;
	z-index: 2;
}

.zs-pdp-lightbox__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: transparent;
	border: 1px solid #7c8790;
	box-sizing: border-box;
	cursor: pointer;
}

.zs-pdp-lightbox__dot.is-active {
	background: #000;
	border-color: #000;
}

@media (max-width: 767px) {
	.zs-pdp-lightbox {
		display: none !important;
	}
}

/* Sticky bottom add-to-bag bar — shown while the shopper is still up in the
   gallery and the real add-to-cart block is below the viewport (see the
   IntersectionObserver in shop-pdp-sticky-bar.php). */
.zs-pdp-sticky-bar {
	position: fixed;
	left: 1.5rem;
	right: 1.5rem;
	bottom: 1.5rem;
	max-width: 1400px;
	margin: 0 auto;
	z-index: 9997;
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
	transform: translateY(calc(100% + 2rem));
	transition: transform .3s ease;
}

.zs-pdp-sticky-bar.is-visible {
	transform: translateY(0);
}

.zs-pdp-sticky-bar__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .4rem .4rem .4rem 1.5rem;
	box-sizing: border-box;
    justify-content: space-between;
}

.zs-pdp-sticky-bar__meta {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
    justify-content: space-between;
}

.zs-pdp-sticky-bar__name {
    color: #000;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .1em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.zs-pdp-sticky-bar__colors {
	display: flex;
	align-items: center;
	gap: .4rem;
	flex: 0 0 auto;
}

.zs-pdp-sticky-bar__colors-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .15em;
	color: #767676;
}

.zs-pdp-sticky-bar__swatch {
	width: 14px;
	height: 14px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, .15);
	box-sizing: border-box;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.zs-pdp-sticky-bar__swatch.is-selected {
	border-color: #131313;
	box-shadow: inset 0 0 0 1px #fff;
}

.zs-pdp-sticky-bar__more {
	font-size: 10px;
	color: #767676;
}

.zs-pdp-sticky-bar__labels {
	display: flex;
	align-items: center;
	gap: .35rem;
	flex: 0 0 auto;
}

/* One size chip for the sticky bar, the mobile title row, and the variation
   form. !important beats Astra's button padding and the plugin's inline
   border-radius: 3px. Desktop sticky bar is the reference. */
.zs-pdp-sticky-bar button.zs-pdp-mobile-labels__opt,
body.zs-pdp-sheet-active button.zs-pdp-mobile-labels__opt,
.zs-pdp-variations .cfvsw-label-option {
	box-sizing: border-box !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 6px 9px !important;
	border: 1px solid rgba(0, 0, 0, .25) !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #131313 !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.zs-pdp-variations .cfvsw-label-option .cfvsw-swatch-inner {
	padding: 0 !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
	border-radius: 0 !important;
}

.zs-pdp-sticky-bar button.zs-pdp-mobile-labels__opt.is-selected,
body.zs-pdp-sheet-active button.zs-pdp-mobile-labels__opt.is-selected,
.zs-pdp-variations .cfvsw-label-option.cfvsw-selected-swatch {
	border-color: #131313 !important;
	background: #131313 !important;
	color: #fff !important;
}

.zs-pdp-sticky-bar__price {
	font-size: 11px;
	white-space: nowrap;
	flex: 0 0 auto;
}

/* Same look as the real add-to-cart button (see .zs-pdp-add-to-cart-trigger) —
   !important for the same reason it uses it: WooCommerce's `.button.alt` rules
   are more specific than a single class and would otherwise win. Just not
   full-width here. */
.zs-pdp-sticky-bar__btn {
	flex: 0 0 auto;
	background-color: #000 !important;
	color: #fff !important;
	border: 1px solid #131313 !important;
	border-radius: 0 !important;
	padding: 1rem 2.5rem !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
	letter-spacing: 2px !important;
	cursor: pointer;
}

.zs-pdp-sticky-bar__btn:hover,
.zs-pdp-add-to-cart-trigger:hover {
	background-color: #fff !important;
	color: #000 !important;
}

.zs-pdp-sticky-bar__btn.is-loading,
.zs-pdp-add-to-cart-trigger.is-loading {
	opacity: .55;
	cursor: wait;
	pointer-events: none;
}

/* Woo notices on the product page use the same bar as the sticky add-to-bag
   strip: message on the left, action on the right. Pinned just under the
   header (the 80px offset #content already uses) so it doesn't cover the
   sticky bar. */
body.single-product .woocommerce-message,
body.single-product .woocommerce-info,
body.single-product .woocommerce-error {
	position: fixed;
	left: 1.5rem;
	right: 1.5rem;
	top: calc(80px + .75rem);
	bottom: auto;
	max-width: 1400px;
	margin: 0 auto !important;
	z-index: 9998;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 1.5rem;
	box-sizing: border-box;
	padding: .4rem .4rem .4rem 1.5rem !important;
	overflow: hidden;
	background: #fff !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
	-webkit-tap-highlight-color: transparent;
	color: #000 !important;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: .1em;
	list-style: none;
}

body.single-product .woocommerce-message:focus,
body.single-product .woocommerce-info:focus,
body.single-product .woocommerce-error:focus,
body.single-product .woocommerce-message:focus-visible,
body.single-product .woocommerce-info:focus-visible,
body.single-product .woocommerce-error:focus-visible {
	outline: none !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

body.single-product .woocommerce-message::before,
body.single-product .woocommerce-info::before,
body.single-product .woocommerce-error::before {
	display: none !important;
	content: none !important;
}

body.single-product .woocommerce-message .button,
body.single-product .woocommerce-info .button,
body.single-product .woocommerce-error .button {
	position: static !important;
	float: none !important;
	grid-column: 2;
	justify-self: end;
	align-self: center;
	margin: 0 !important;
	white-space: nowrap;
	background-color: #000 !important;
	color: #fff !important;
	border: 1px solid #131313 !important;
	border-radius: 0 !important;
	padding: 1rem 2.5rem !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
	letter-spacing: 2px !important;
}

body.single-product .woocommerce-message .button:hover,
body.single-product .woocommerce-info .button:hover,
body.single-product .woocommerce-error .button:hover {
	background-color: #fff !important;
	color: #000 !important;
}

body.single-product .woocommerce-message,
body.single-product .woocommerce-info,
body.single-product .woocommerce-error {
	transition: opacity .35s ease;
}

body.single-product .woocommerce-message.is-hiding,
body.single-product .woocommerce-info.is-hiding,
body.single-product .woocommerce-error.is-hiding {
	opacity: 0;
	pointer-events: none;
}

/* Sticky bar is desktop-only — mobile uses the drag sheet below instead.
   The notice keeps the same offset under the header as on desktop. */
@media (max-width: 767px) {
	.zs-pdp-sticky-bar {
		display: none !important;
	}
}

/* ---------- Mobile PDP drag sheet (Bottega-style) ---------- */
/* Wiring in inc/gallery.js. Position is driven by an inline `top` (px) — see the
   note there on why not `transform`. */
@media (max-width: 767px) {
	body.zs-pdp-sheet-active {
		position: fixed;
		width: 100%;
		height: 100%;
		overflow: hidden;
	}

	/* Gallery pinned below the header, behind the sheet. `top`/`height` here are a
	   pre-JS fallback (~mobile header height); inc/gallery.js sets the exact
	   values from the real header height once it runs. */
	body.zs-pdp-sheet-active .zs-pdp-mobile-gallery {
		position: fixed;
		top: 56px;
		left: 0;
		right: 0;
		height: calc(100svh - 56px);
		margin: 0;
		z-index: 1;
	}

	body.zs-pdp-sheet-active .zs-pdp-mobile-gallery__track {
		height: 100%;
		aspect-ratio: auto;
	}

	.zs-pdp-sheet {
		position: fixed;
		left: 0;
		right: 0;
		z-index: 100;
		display: flex;
		flex-direction: column;
		background: #fff;
		box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
		transition: top .32s cubic-bezier(.4, 0, .2, 1);
	}

	.zs-pdp-sheet__handle {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		justify-content: center;
		height: 26px;
		cursor: grab;
		touch-action: none;
	}

	.zs-pdp-sheet__handle span {
		display: block;
		width: 44px;
		height: 3px;
		background: #131313;
	}

	.zs-pdp-sheet__scroll {
		flex: 1 1 auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		touch-action: none;
		padding: 0 1.25rem 2rem;
	}

	/* Only live once the sheet is fully expanded and settled (see applyState in
	   inc/gallery.js) — keeps the expand swipe from also scrolling the content. */
	.zs-pdp-sheet.is-scrollable .zs-pdp-sheet__scroll {
		overflow-y: auto;
		touch-action: pan-y;
	}

	/* The related block carries a big top margin meant for the desktop layout. */
	.zs-pdp-sheet .zs-pdp-related-wrap {
		margin-top: 2.5rem;
	}

	/* The site footer is moved into the sheet's scroll so it stays reachable —
	   let it span the full width past the scroll container's side padding. */
	.zs-pdp-sheet__scroll > footer {
		margin: 2.5rem -1.25rem 0;
	}

	/* Colour swatches sit on the product-title row (moved into the title widget
	   by inc/gallery.js), aligned right — opposite the name — so the shopper can
	   switch colour without dragging the info sheet up. */
	body.zs-pdp-sheet-active .elementor-widget-woocommerce-product-title .elementor-widget-container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: .5rem .75rem;
	}

	body.zs-pdp-sheet-active .zs-pdp-mobile-colors {
		display: flex;
		align-items: center;
		gap: .5rem;
		margin-left: auto;
		margin-bottom: 5px;
	}

	.zs-pdp-mobile-colors__dots {
		display: flex;
		align-items: center;
		gap: .5rem;
	}

	.zs-pdp-mobile-colors__swatch {
		width: 20px;
		height: 20px;
		padding: 0;
		border: 1px solid rgba(0, 0, 0, .25);
		box-sizing: border-box;
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	.zs-pdp-mobile-colors__swatch.is-selected {
		border-color: #131313;
		box-shadow: inset 0 0 0 1px #fff;
	}

	/* Label attributes (size: Midi / Maxi, and anything else that isn't a colour)
	   sit in the same title-row slot as the colour dots. Chip look is shared
	   with the desktop sticky bar — see button.zs-pdp-mobile-labels__opt above. */
	.zs-pdp-mobile-labels {
		display: flex;
		align-items: center;
		gap: .35rem;
	}

	/* The native variation picker stays hidden. Colour dots and label chips on
	   the title row click its options, and Add to Bag still forwards to its
	   hidden button — both work while it's display:none. */
	.zs-pdp-sheet .zs-pdp-variations {
		display: none;
	}
}

/* Only ever visible on mobile, over the drag sheet's gallery. */
.zs-pdp-mobile-colors {
	display: none;
}

/* Hide the standalone short description on the PDP — its text now lives in the
   "Product details" panel. Keyed off WooCommerce's own class (not the Elementor
   element id, which regenerates when the template is imported on production). */
body.single-product .zs-pdp-info > .e-con-inner > .elementor-element:has(.woocommerce-product-details__short-description),
body.single-product .woocommerce-product-details__short-description {
	display: none !important;
}

/* PDP info column order — only the colour swatches sit above the "Add to Bag"
   button; category meta and everything else drop below it. Selectors key off
   widget type / inner markup rather than Elementor element ids so the order
   survives a template re-import. */
.zs-pdp-info > .e-con-inner > .elementor-widget-woocommerce-product-title       { order: 1; }
.zs-pdp-info > .e-con-inner > .elementor-widget-woocommerce-product-price       { order: 2; }
.zs-pdp-info > .e-con-inner > .elementor-element:has(.zs-pdp-variation-tabs),
.zs-pdp-info > .e-con-inner > .elementor-element:has(.zs-pdp-swatches)          { order: 3; }
.zs-pdp-info > .e-con-inner > .elementor-element:has(.zs-pdp-add-to-cart-trigger) { order: 4; }
.zs-pdp-info > .e-con-inner > .elementor-widget-woocommerce-product-meta        { order: 6; }
.zs-pdp-info > .e-con-inner > .elementor-element:has(.zs-pdp-details)           { order: 7; }

/* Variable products: WooCommerce's own variation form is the functional colour
   picker — pull it above the "Add to Bag" button (our decorative swatch
   shortcode returns nothing for variables, so there's only one set). */
.zs-pdp-info > .e-con-inner > .zs-pdp-variations:has(.variations, .cfvsw_variations_form) { order: 3; }

/* Simple products: .zs-pdp-variations only wraps the hidden real button that the
   early trigger forwards its click to — no box needed. */
.zs-pdp-info > .e-con-inner > .zs-pdp-variations:not(:has(.variations, .cfvsw_variations_form)) { display: none !important; }
