/**
 * Winter26 PDP — designer HTML 1:1 (03-shop-product-leandra.html).
 * Authority: designer-source HTML (not PDF-derived v2).
 * Consumes --w26-* tokens. Handle: winter26-pdp (deps: winter26-tokens, product-detail).
 */

/* ---- Page shell ---- */
body.single-product.w26-pdp-body,
body.single-product.w26-pdp-body .site-main.w26-pdp {
	background: var(--w26-cream, #FAF7F2);
	color: var(--w26-ink, #2E2620);
	font-family: var(--w26-font-sans);
}

body.single-product.w26-pdp-body main.product-detail-page.w26-pdp,
body.single-product.w26-pdp-body .site-main.w26-pdp {
	border: 0 !important;
	background: var(--w26-cream, #FAF7F2) !important;
	box-shadow: none;
}

.w26-pdp__wrap {
	max-width: var(--w26-container, 1320px);
	margin: 0 auto;
	padding: 28px var(--w26-gutter, 24px) 64px;
}

/* Hide PDF-absent chrome */
.w26-pdp .social-sharing,
.w26-pdp .share-insta,
.w26-pdp .wishlist,
.w26-pdp .addto-wishlist,
.w26-pdp .mb25:has(.wishlist),
.w26-pdp .carmela-delivery-estimate,
.w26-pdp .quantity_msg,
.w26-pdp .form-notice,
.w26-pdp .psingleMaterial,
.w26-pdp .product-tabs-wrapper,
.w26-pdp #productTabs,
.w26-pdp .related-products-slider,
.w26-pdp .woocommerce-product-gallery__trigger {
	display: none !important;
}

/* Breadcrumb */
.w26-pdp .bredcrumbWrap,
.w26-pdp .woocommerce-breadcrumb,
.w26-pdp .cqw-breadcrumbs {
	font-size: 13px;
	color: var(--w26-muted, #6B5847);
	padding: 0 0 24px;
	margin: 0;
	background: transparent;
	border: 0;
}
.w26-pdp .bredcrumbWrap a,
.w26-pdp .woocommerce-breadcrumb a,
.w26-pdp .cqw-breadcrumbs a {
	color: var(--w26-chocolate, #5A3E2B);
	text-decoration: none;
}
.w26-pdp .bredcrumbWrap a:hover,
.w26-pdp .woocommerce-breadcrumb a:hover {
	color: var(--w26-ink, #2E2620);
}

/* ---- Two-column (designer: flex gap 48px) ---- */
.w26-pdp__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}

.w26-pdp__gallery {
	flex: 1 1 560px;
	min-width: 0;
	position: sticky;
	top: calc(var(--w26-header-h, 72px) + 1rem);
}

.w26-pdp__summary {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-top: 0;
}

/* ---- Gallery: 92px thumbs 3/4 + main 3/4 ---- */
.w26-pdp__gallery .product-gallery {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.w26-pdp .product-gallery__thumbnails {
	width: 92px;
	flex: 0 0 92px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
}

.w26-pdp .product-gallery__thumb-track {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.w26-pdp .product-gallery__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	height: auto;
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	cursor: pointer;
	overflow: hidden;
	outline: none;
	box-shadow: none;
}

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

.w26-pdp .product-gallery__thumb.is-active {
	outline: 2px solid var(--w26-chocolate, #5A3E2B);
	outline-offset: 0;
}

.w26-pdp .product-gallery__thumb-arrow {
	display: none;
}

.w26-pdp .product-gallery__viewer {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	background: transparent;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

.w26-pdp .product-gallery__track,
.w26-pdp .product-gallery__slide {
	width: 100%;
	height: 100%;
}

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

/* ---- Summary typography ---- */
.w26-pdp .w26-season-badge {
	align-self: flex-start;
	display: inline-block;
	background: var(--w26-white, #FFFFFF);
	border: 1px solid var(--w26-border, #E5DCCB);
	color: var(--w26-ink, #2E2620);
	font-family: var(--w26-font-sans);
	font-size: 11px;
	letter-spacing: 0.14em;
	font-weight: 600;
	text-transform: uppercase;
	padding: 5px 10px;
	margin: 0;
}

.w26-pdp__title,
.w26-pdp h1.product_title {
	font-family: var(--w26-font-serif);
	font-weight: 600;
	font-size: clamp(2rem, 4vw, 52px);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--w26-ink, #2E2620);
	margin: 0;
	line-height: 1.1;
}

.w26-pdp .w26-product-subtitle {
	font-family: var(--w26-font-sans);
	font-size: 17px;
	color: var(--w26-body-soft, #4A3D33);
	margin: 0;
	font-weight: 400;
	text-transform: none;
}

.w26-pdp__summary > .w26-season-badge + .w26-pdp__title,
.w26-pdp__summary > .w26-pdp__title {
	margin-top: 0;
}

/* Group badge/title/subtitle spacing like designer gap:8px block */
.w26-pdp__summary .w26-season-badge {
	margin-bottom: 0;
}
.w26-pdp__summary .w26-pdp__title {
	margin-top: 8px;
}
.w26-pdp__summary .w26-product-subtitle {
	margin-top: 8px;
}

/* ---- Price block (border-top/bottom) ---- */
.w26-pdp .w26-price-block {
	margin: 0;
	border-top: 1px solid var(--w26-border, #E5DCCB);
	border-bottom: 1px solid var(--w26-border, #E5DCCB);
	padding: 16px 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	text-align: left;
	gap: 4px;
}

.w26-pdp .w26-price-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-start;
	width: 100%;
	text-align: left;
	gap: 0.35rem;
}

.w26-pdp .w26-price-amount,
.w26-pdp .w26-price-block .price--current {
	font-family: var(--w26-font-sans);
	font-size: 28px;
	font-weight: 600;
	color: var(--w26-ink, #2E2620);
	line-height: 1.2;
}

.w26-pdp .w26-price-ht-suffix {
	font-size: 15px;
	font-weight: 500;
	color: var(--w26-muted, #6B5847);
}

.w26-pdp .w26-pro-price-hint {
	display: block;
	margin: 0;
	font-size: 14px;
	color: var(--w26-muted, #6B5847);
}

.w26-pdp .w26-price-line--gate .carmela-login-link,
.w26-pdp .w26-price-line--gate a,
.w26-pdp .carmela-login-link,
.w26-pdp .w26-price-block a {
	color: var(--w26-chocolate, #5A3E2B);
	text-decoration: underline;
}

/* ---- Color swatches 32px + double-ring selected ---- */
.w26-pdp .swatch__header {
	width: 100%;
	margin-bottom: 10px;
	font-size: 15px;
	color: var(--w26-ink, #2E2620);
}
.w26-pdp .swatch__header .selected-value {
	color: var(--w26-ink, #2E2620);
	font-weight: 400;
}
.w26-pdp .swatch__header strong,
.w26-pdp .color-swatch .swatch__header {
	font-weight: 600;
}

.w26-pdp .color-swatch,
.w26-pdp fieldset.color-swatch {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.w26-pdp .color-swatch .swatch__header {
	flex: 0 0 100%;
}

.w26-pdp .swatchLbl.color {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #CDBFA9;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	cursor: pointer;
	display: inline-block;
	position: relative;
	box-shadow: none;
}
.w26-pdp input.swatchInput.color:checked + .swatchLbl.color,
.w26-pdp .swatchLbl.color.active {
	border-color: transparent;
	box-shadow: 0 0 0 2px var(--w26-cream, #FAF7F2), 0 0 0 4px var(--w26-chocolate, #5A3E2B);
}
.w26-pdp .swatchLbl.color .tooltip-label {
	display: none;
}

/* ---- Size TU pill ---- */
.w26-pdp .size-swatch,
.w26-pdp fieldset.size-swatch {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.w26-pdp .size-swatch .swatch__header {
	flex: 0 0 100%;
}

.w26-pdp .swatchLbl.size-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: auto;
	padding: 9px 18px;
	border: 1.5px solid var(--w26-chocolate, #5A3E2B);
	border-radius: 0;
	background: transparent;
	color: var(--w26-ink, #2E2620);
	font-family: var(--w26-font-sans);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin: 0;
	box-shadow: none;
}
.w26-pdp input.swatchInput:checked + .swatchLbl.size-pill,
.w26-pdp .swatchLbl.size-pill.active,
.w26-pdp .swatchLbl.size-pill.is-static {
	background: var(--w26-brown, #5A3E2B);
	border-color: var(--w26-brown, #5A3E2B);
	color: var(--w26-white, #fff);
	box-shadow: none;
}

/* ---- ATC row: qty stepper + brown CTA ---- */
.w26-pdp .w26-atc-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	margin: 0;
}

.w26-pdp .w26-atc-row .qtyField {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--w26-taupe, #C2B09C);
	background: var(--w26-white, #fff);
	margin: 0;
	height: 52px;
	flex: 0 0 auto;
}
.w26-pdp .w26-atc-row .qtyBtn {
	width: 48px;
	height: 52px;
	border: 0;
	background: transparent;
	color: var(--w26-ink, #2E2620);
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
}
.w26-pdp .w26-atc-row .pr_input.qty {
	width: 48px;
	border: 0;
	text-align: center;
	font-family: var(--w26-font-sans);
	font-size: 16px;
	font-weight: 600;
	color: var(--w26-ink, #2E2620);
	background: transparent;
	-moz-appearance: textfield;
}
.w26-pdp .w26-atc-row .pr_input.qty::-webkit-outer-spin-button,
.w26-pdp .w26-atc-row .pr_input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.w26-pdp .w26-atc-row .pr_btn,
.w26-pdp .w26-atc-row .single_add_to_cart_button {
	flex: 1 1 220px;
	height: 54px;
	min-height: 54px;
	background: var(--w26-chocolate, #5A3E2B) !important;
	color: var(--w26-white, #fff) !important;
	border: none !important;
	border-radius: 0;
	font-family: var(--w26-font-sans);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0 1.25rem;
	cursor: pointer;
	font-size: 15px;
}
.w26-pdp .w26-atc-row .single_add_to_cart_button:hover:not(:disabled) {
	background: var(--w26-chocolate-hover, #2E2620) !important;
}
.w26-pdp .w26-atc-row .single_add_to_cart_button:disabled,
.w26-pdp .w26-atc-row .single_add_to_cart_button.disabled {
	opacity: 0.45;
}
body:not(.logged-in) .w26-pdp .w26-atc-row .pr_btn.disabled,
body:not(.logged-in) .w26-pdp .w26-atc-row .single_add_to_cart_button.disabled {
	background: var(--w26-chocolate, #5A3E2B) !important;
	color: var(--w26-white, #fff) !important;
	opacity: 1;
	cursor: pointer;
	pointer-events: auto;
}

.w26-pdp .w26-mix-tip {
	font-style: normal;
	font-size: 13px;
	color: var(--w26-muted, #6B5847);
	margin: 0;
}

/* ---- Meta blocks (designer rows) ---- */
.w26-pdp .w26-meta-blocks {
	border-top: 1px solid var(--w26-border, #E5DCCB);
	margin-top: 0;
	display: flex;
	flex-direction: column;
}
.w26-pdp .w26-meta-block {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--w26-border, #E5DCCB);
	font-size: 15px;
}
.w26-pdp .w26-meta-block__label {
	font-weight: 600;
	color: var(--w26-ink, #2E2620);
	flex: 0 0 auto;
}
.w26-pdp .w26-meta-block__value {
	color: var(--w26-body-soft, #4A3D33);
	text-align: right;
	font-size: 15px;
	line-height: 1.6;
}
.w26-pdp .w26-meta-block--stack {
	flex-direction: column;
	gap: 8px;
}
.w26-pdp .w26-meta-block--stack .w26-meta-block__value {
	text-align: left;
	margin-top: 0;
}
.w26-pdp .w26-meta-block__value a {
	color: var(--w26-chocolate, #5A3E2B);
	text-decoration: none;
	font-size: 15px;
}
.w26-pdp .w26-meta-block__value a:hover {
	color: var(--w26-ink, #2E2620);
}

/* ---- Complete the look ---- */
.w26-complete-look {
	margin-top: 40px;
	padding-top: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: 100%;
}
.w26-complete-look__title {
	font-family: var(--w26-font-serif);
	font-size: clamp(1.75rem, 3vw, 38px);
	font-weight: 600;
	color: var(--w26-ink, #2E2620);
	margin: 0;
	text-align: left;
}
.w26-complete-look__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--w26-card-min, 220px)), 1fr));
	gap: 20px;
}
.w26-look-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}
.w26-look-card__media {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--w26-cream-soft, #F4F1EA);
	margin-bottom: 0;
}
.w26-look-card__media img,
.w26-look-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.w26-look-card__name {
	font-family: var(--w26-font-sans);
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0;
	color: var(--w26-ink, #2E2620);
}
.w26-look-card__sub {
	font-size: 14px;
	color: var(--w26-muted, #6B5847);
	margin: 0;
}
.w26-look-card__price {
	font-size: 1rem;
	font-weight: 600;
	color: var(--w26-ink, #2E2620);
}
.w26-look-card__ht {
	font-weight: 400;
	font-size: 14px;
	color: var(--w26-muted, #6B5847);
	margin-left: 0.2rem;
}

.w26-pdp .dn { display: none !important; }

/* Form fieldsets reset */
.w26-pdp .w26-variations-form,
.w26-pdp .w26-simple-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 0;
}
.w26-pdp .single_variation_wrap {
	margin: 0;
}
.w26-pdp .woocommerce-variation-description,
.w26-pdp .woocommerce-variation-price,
.w26-pdp .woocommerce-variation-availability {
	display: none;
}

@media (max-width: 1024px) {
	.w26-pdp__gallery,
	.w26-pdp__summary { flex: 1 1 100%; }
	.w26-pdp__gallery { position: static; }
	.w26-pdp .w26-meta-block { flex-wrap: wrap; }
	.w26-pdp .w26-meta-block__value { text-align: left; }
}

/* ---- Beat product-detail.css gallery defaults (higher specificity) ---- */
.w26-pdp .product-gallery {
	gap: 14px !important;
}
.w26-pdp .product-gallery__thumbnails {
	width: 92px !important;
	flex: 0 0 92px !important;
	overflow: visible !important;
	gap: 12px !important;
}
.w26-pdp .product-gallery__thumb-track {
	gap: 12px !important;
}
.w26-pdp .product-gallery__thumb {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 3 / 4 !important;
	opacity: 1 !important;
	border: 0 !important;
	outline: none;
}
.w26-pdp .product-gallery__thumb.is-active {
	outline: 2px solid var(--w26-chocolate, #5A3E2B) !important;
	border-color: transparent !important;
	opacity: 1 !important;
}
.w26-pdp .product-gallery__viewer {
	width: auto !important;
	flex: 1 1 auto !important;
	aspect-ratio: 3 / 4 !important;
	overflow: hidden !important;
}
.w26-pdp .product-gallery__slide {
	aspect-ratio: 3 / 4 !important;
}
.w26-pdp .product-gallery__thumb-arrow {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
}


/* Force square controls (beat theme radius) */
.w26-pdp .swatchLbl.size-pill,
.w26-pdp .w26-atc-row .qtyField,
.w26-pdp .w26-atc-row .pr_btn,
.w26-pdp .w26-atc-row .single_add_to_cart_button,
.w26-pdp .w26-season-badge {
	border-radius: 0 !important;
}

/* Replica (.product-detail-page …) loads later and paints the title at 25px
   and the ATC at #111. These selectors outrank that layer. */
body.w26-chrome .w26-pdp .product-single__meta h1.product_title.w26-pdp__title {
	font-family: var(--w26-font-serif);
	font-weight: 600;
	font-size: clamp(36px, 4vw, 52px);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.05;
	color: var(--w26-ink, #2E2620);
	margin: 8px 0 0;
}

body.w26-chrome .w26-pdp form.cart .single_add_to_cart_button,
body.w26-chrome .w26-pdp form.cart .cqw-pdp-guest-atc {
	background: var(--w26-brown, #5A3E2B) !important;
	color: var(--w26-white, #fff) !important;
	border: none !important;
}
body.w26-chrome .w26-pdp form.cart .single_add_to_cart_button:hover:not(:disabled),
body.w26-chrome .w26-pdp form.cart .cqw-pdp-guest-atc:hover {
	background: var(--w26-dark, #2E2620) !important;
	color: var(--w26-white, #fff) !important;
	border-color: var(--w26-dark, #2E2620) !important;
}

/* Price row is a column. Replica .psinglePriceWr { align-items: center }
   centers that column on the cross axis. Keep the amount on the left. */
body.w26-chrome .w26-pdp .w26-price-block.psinglePriceWr,
body.w26-chrome .w26-pdp .w26-price-line,
body.w26-chrome .w26-pdp .w26-pro-price-hint {
	align-items: flex-start;
	justify-content: flex-start;
	text-align: left;
}
body.w26-chrome .w26-pdp .w26-price-line,
body.w26-chrome .w26-pdp .w26-pro-price-hint {
	width: 100%;
}

/* Selected size keeps the current pill, with the add-to-cart brown fill.
   White text is required on #5A3E2B. Unselected pills stay outlined. */
body.w26-chrome .w26-pdp input.swatchInput:checked + .swatchLbl.size-pill,
body.w26-chrome .w26-pdp .swatchLbl.size-pill.active,
body.w26-chrome .w26-pdp .swatchLbl.size-pill.is-static {
	background: var(--w26-brown, #5A3E2B);
	border-color: var(--w26-brown, #5A3E2B);
	color: var(--w26-white, #fff);
}

/* Phone gallery + ATC. These follow the !important gallery block above
   so the 56px thumbs actually win on a 375–430 viewport. */
@media (max-width: 768px) {
	.w26-pdp__wrap { padding: 16px var(--w26-gutter) 96px; }
	.w26-pdp__grid { gap: 20px; }
	.w26-pdp .product-gallery {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 10px !important;
	}
	.w26-pdp .product-gallery__viewer {
		width: 100% !important;
		flex: 0 0 auto !important;
		order: 1;
	}
	.w26-pdp .product-gallery__thumbnails {
		width: 100% !important;
		flex: 0 0 auto !important;
		flex-direction: row !important;
		order: 2;
		overflow-x: auto !important;
		gap: 8px !important;
	}
	.w26-pdp .product-gallery__thumb-track {
		flex-direction: row !important;
		gap: 8px !important;
		width: max-content;
	}
	.w26-pdp .product-gallery__thumb {
		width: 64px !important;
		flex: 0 0 64px !important;
		height: auto !important;
	}
	.w26-pdp .swatchLbl.size-pill {
		min-height: 44px;
		min-width: 44px;
		padding: 8px 14px;
	}
	.w26-pdp .w26-look-card__name { font-size: 14px; letter-spacing: 0.06em; }
}

@media (max-width: 480px) {
	.w26-pdp .w26-atc-row .pr_btn,
	.w26-pdp .w26-atc-row .single_add_to_cart_button {
		flex: 1 1 100%;
	}
}
