:root {
	--winery-pdp-gap: var(--winery-shop-space-4);
	--winery-pdp-control-gap: var(--winery-shop-space-2);
	--winery-pdp-border-color: var(--winery-shop-color-border);
	--winery-pdp-surface: var(--winery-shop-color-surface);
	--winery-pdp-muted-color: var(--winery-shop-color-muted);
	--winery-pdp-radius: var(--winery-shop-radius-md);
	--winery-pdp-gallery-aspect-ratio: 4 / 5;
	--winery-pdp-gallery-background: var(--winery-shop-color-surface-subtle);
	--winery-pdp-thumb-size: 4rem;
	--winery-price-size: var(--winery-shop-font-size-xl);
	--winery-pdp-button-background: var(--winery-shop-color-accent);
	--winery-pdp-button-background-hover: var(--winery-shop-color-accent-hover);
	--winery-pdp-button-color: var(--winery-shop-color-accent-contrast);
}

.winery-product-gallery,
.winery-product-price,
.winery-add-to-cart,
.winery-variant-selector,
.winery-product-attributes,
.winery-product-security {
	box-sizing: border-box;
	color: var(--winery-shop-color-text);
	font-family: var(--winery-shop-font-family-body);
	font-size: var(--winery-shop-font-size-base);
	line-height: var(--winery-shop-line-height-base);
}

.winery-product-gallery {
	display: grid;
	gap: var(--winery-pdp-gap);
}

.winery-product-gallery__main {
	display: grid;
	box-sizing: border-box;
	aspect-ratio: var(--winery-pdp-gallery-aspect-ratio);
	place-items: center;
	overflow: hidden;
	background: var(--winery-pdp-gallery-background);
	border-radius: var(--winery-pdp-radius);
}

.winery-product-gallery__main img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.winery-product-gallery__rail {
	display: flex;
	flex-wrap: wrap;
	gap: var(--winery-pdp-control-gap);
	padding: 0;
	margin: 0;
	list-style: none;
}

.winery-product-gallery__thumb {
	display: grid;
	width: var(--winery-pdp-thumb-size);
	height: var(--winery-pdp-thumb-size);
	padding: var(--winery-shop-space-1);
	place-items: center;
	cursor: pointer;
	background: var(--winery-pdp-surface);
	border: var(--winery-shop-border-width) solid var(--winery-pdp-border-color);
	border-radius: var(--winery-pdp-radius);
}

.winery-product-gallery__thumb[aria-current="true"] {
	border-color: var(--winery-shop-color-focus);
}

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

.winery-product-price {
	display: grid;
	gap: var(--winery-pdp-control-gap);
}

.winery-product-price__row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var(--winery-pdp-control-gap);
}

.winery-product-price__now,
.winery-product-price__price-now {
	font-size: var(--winery-price-size);
	font-weight: var(--winery-shop-font-weight-semibold);
}

.winery-product-price__was-label,
.winery-product-price__was,
.winery-product-price__prefix,
.winery-product-price__member-preview,
.winery-product-price__member,
.winery-product-price__unit,
.winery-product-price__member-eyebrow,
.winery-product-price__reg {
	color: var(--winery-pdp-muted-color);
}

.winery-product-price__was,
.winery-product-price__price-was {
	position: relative;
}

.winery-product-price__was::after,
.winery-product-price__price-was::after {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: var(--winery-sale-was-strike-thickness);
	content: "";
	background: var(--winery-sale-was-strike-color);
	transform: translateY(-50%);
}

.winery-product-price__badge,
.winery-product-price__savings,
.winery-product-price__member-savings {
	width: fit-content;
	font-size: var(--winery-shop-font-size-sm);
	font-weight: var(--winery-shop-font-weight-semibold);
}

.winery-product-price__badge--sale,
.winery-product-price__savings,
.winery-product-price__member-savings {
	color: var(--winery-shop-color-sale);
}

.winery-product-price__member-preview {
	margin: 0;
}

.winery-product-price__member-preview--estimate span,
.winery-product-price__member-preview-note,
.winery-product-price__unit {
	font-size: var(--winery-shop-font-size-sm);
}

.winery-product-price__member-preview-note {
	display: block;
}

.winery-add-to-cart {
	display: grid;
	gap: var(--winery-pdp-control-gap);
}

.winery-add-to-cart__button {
	min-height: var(--winery-shop-control-min-height);
	padding: var(--winery-shop-button-padding);
	color: var(--winery-pdp-button-color);
	cursor: pointer;
	background: var(--winery-pdp-button-background);
	border: 0;
	border-radius: var(--winery-pdp-radius);
}

.winery-add-to-cart__button:hover:not(:disabled) {
	background: var(--winery-pdp-button-background-hover);
}

.winery-add-to-cart__button:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.winery-add-to-cart__gate-hint {
	margin: 0;
	color: var(--winery-pdp-muted-color);
	font-size: var(--winery-shop-font-size-sm);
}

.winery-variant-selector {
	display: grid;
	gap: var(--winery-pdp-control-gap);
}

.winery-variant-selector__option {
	min-height: var(--winery-shop-control-min-height);
	padding: var(--winery-shop-button-padding);
	color: inherit;
	cursor: pointer;
	background: var(--winery-pdp-surface);
	border: var(--winery-shop-border-width) solid var(--winery-pdp-border-color);
	border-radius: var(--winery-pdp-radius);
}

.winery-variant-selector__option[aria-checked="true"] {
	border-color: var(--winery-shop-color-focus);
}

.winery-variant-selector__option[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.65;
}

.winery-product-attributes {
	display: grid;
	gap: var(--winery-pdp-control-gap);
	margin-block: 0;
}

.winery-product-attributes__row {
	display: grid;
	grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr);
	gap: var(--winery-pdp-gap);
	padding-block: var(--winery-shop-space-2);
	border-bottom: var(--winery-shop-border-width) solid var(--winery-pdp-border-color);
}

.winery-product-attributes__label {
	font-weight: var(--winery-shop-font-weight-semibold);
}

.winery-product-attributes__value {
	margin: 0;
}

.winery-product-attributes__unit {
	color: var(--winery-pdp-muted-color);
}

.winery-product-security {
	padding: var(--winery-shop-space-3);
	background: var(--winery-pdp-gallery-background);
	border: var(--winery-shop-border-width) solid var(--winery-pdp-border-color);
	border-radius: var(--winery-pdp-radius);
}

.winery-product-security__notice {
	margin: 0;
}

[data-winery-c7-customer-state="club-member"] .winery-product-security__notice--gate--club {
	display: none;
}

.winery-product-price [hidden],
.winery-add-to-cart [hidden],
.winery-product-security [hidden] {
	display: none;
}

.winery-product-price:has(.winery-product-price__reg:not([hidden])) .winery-product-price__now {
	display: none;
}

.winery-product-price:has(.winery-product-price__member-eyebrow:not([hidden])) .winery-product-price__member {
	font-size: var(--winery-price-size);
	font-weight: var(--winery-shop-font-weight-semibold);
	color: inherit;
}

.winery-product-gallery__thumb:focus-visible,
.winery-add-to-cart__button:focus-visible,
.winery-variant-selector__option:focus-visible {
	outline: var(--winery-shop-focus-ring);
	outline-offset: var(--winery-shop-space-1);
}
