/* Davydenko Product Card — product switcher (sizes from the Figma design) */
.dpc-switcher {
	--dpc-border: #ccb7af;
	--dpc-active: #3e2716;
	--dpc-photo-bg: #f6f6f6;
	--dpc-text: #000;
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 100%;
}

.dpc-switcher__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.dpc-switcher__label {
	font-size: 16px;
	font-weight: 300;
	line-height: 1.2;
	color: var(--dpc-text);
}

/* Dropdown */
.dpc-select {
	position: relative;
	min-width: 180px;
	max-width: 100%;
}

.dpc-switcher .dpc-select__btn,
.dpc-switcher .dpc-select__btn:hover,
.dpc-switcher .dpc-select__btn:focus {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	height: 32px;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid var(--dpc-border);
	border-radius: 8px;
	background-color: #fff;
	color: var(--dpc-text);
	font-size: 14px;
	font-family: inherit;
	font-weight: 300;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}

.dpc-switcher .dpc-select__btn:focus-visible {
	outline: 2px solid var(--dpc-active);
	outline-offset: 2px;
}

.dpc-select__text {
	flex: 1 1 auto;
	overflow: hidden;
	text-align: left;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dpc-icon--chevron {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-left: 20px;
	transition: transform .2s ease;
}

.dpc-select.is-open .dpc-icon--chevron {
	transform: rotate(180deg);
}

.dpc-select__list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	min-width: 100%;
	max-height: 320px;
	margin: 0;
	padding: 6px 0;
	overflow-y: auto;
	list-style: none;
	border: 1px solid var(--dpc-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(45, 40, 38, .12);
}

.dpc-select__list[hidden] {
	display: none;
}

.dpc-select__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dpc-select__list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	color: var(--dpc-text);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.3;
	white-space: nowrap;
	text-decoration: none;
}

.dpc-select__list a:hover,
.dpc-select__list a:focus {
	background: var(--dpc-photo-bg);
	outline: none;
}

.dpc-select__list a[aria-current="page"] {
	font-weight: 600;
}

.dpc-select__list .is-oos a {
	color: #8a8a8a;
}

.dpc-oos-note {
	margin-left: auto;
	padding-left: 12px;
	color: #6f1a00;
	font-size: 11px;
}

.dpc-dot {
	position: relative;
	display: inline-flex;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	overflow: hidden;
	border-radius: 50%;
}

.dpc-dot.is-photo {
	background: var(--dpc-photo-bg);
}

.dpc-dot img,
.dpc-dot .dpc-fill {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dpc-dot.is-photo img {
	object-fit: contain;
}

/* Round swatches */
.dpc-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.dpc-sw {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 0.5px solid transparent;
	border-radius: 50%;
	transition: border-color .2s ease;
}

.dpc-sw__img {
	display: block;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 50%;
}

.dpc-sw__img img,
.dpc-sw__img .dpc-fill {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dpc-sw.is-photo .dpc-sw__img {
	background: var(--dpc-photo-bg);
}

.dpc-sw.is-photo .dpc-sw__img img {
	object-fit: contain;
}

.dpc-sw:hover,
.dpc-sw:focus-visible {
	border-color: var(--dpc-border);
}

.dpc-sw.is-active {
	border-color: var(--dpc-active);
}

.dpc-sw.is-oos .dpc-sw__img {
	opacity: .45;
}

.dpc-sw.is-oos::after {
	position: absolute;
	top: 50%;
	left: 8px;
	right: 8px;
	height: 1px;
	background: var(--dpc-active);
	transform: rotate(-45deg);
	content: "";
}

/* Pills (image + name) */
.dpc-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.dpc-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 8px;
	border: 0.5px solid var(--dpc-border);
	border-radius: 8px;
	background: #fff;
	color: var(--dpc-text);
	font-size: 16px;
	font-weight: 300;
	line-height: 12px;
	white-space: nowrap;
	text-decoration: none;
	overflow: hidden;
	transition: border-color .2s ease;
}

.dpc-pill:hover {
	border-color: var(--dpc-active);
	color: var(--dpc-text);
}

.dpc-pill.is-active {
	border: 1px solid var(--dpc-active);
}

.dpc-pill.is-oos {
	opacity: .55;
}

.dpc-pill__img {
	display: block;
	flex: 0 0 37px;
	align-self: stretch; /* inside the 0.5px border: a photo with a white background (Veil Collection) covered the frame line */
	width: 37px;
	height: auto;
	overflow: hidden;
}

.dpc-pill__img img,
.dpc-pill__img .dpc-fill {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dpc-pill__img .dpc-fill {
	width: 20px;
	height: 20px;
	margin: 6px auto;
	border-radius: 50%;
}

/* Bottles (volume) — Figma «brush cleaner» 3277:30258: box 956, bottles 661.6 / 803 wide, centres 224.5 apart
   (widths / overlaps come inline from PHP), radio 24 + Mulish SemiBold 24 «100 ml», 36px above the bottom of the largest photo.
   Photos overlap with transparent edges, so only the bottle itself and the radio row are clickable. */
.dpc-switcher.dpc-mode-bottles {
	gap: 0;
}

.dpc-bottles {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	max-width: 956px;
	margin: 0 auto;
	container-type: inline-size;
}

.dpc-bottle {
	position: relative;
	z-index: var(--dpc-bottle-z, 1);
	display: block;
	flex: 0 0 auto;
	width: var(--dpc-bottle-w, 50%);
	margin-left: var(--dpc-bottle-ml, 0);
	color: var(--dpc-text);
	text-decoration: none;
	pointer-events: none;
}

.dpc-bottle__img,
.dpc-bottle__img img {
	display: block;
	width: 100%;
	height: auto;
}

.dpc-bottle__hit {
	position: absolute;
	top: 14%;
	right: 40%;
	bottom: 11%;
	left: 40%;
	pointer-events: auto;
	cursor: pointer;
}

.dpc-bottle__opt {
	position: absolute;
	bottom: min(36px, 3.77cqw);
	left: 50%;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transform: translateX(-50%);
	color: #000;
	font-size: 24px;
	font-weight: 600;
	line-height: 30px;
	white-space: nowrap;
	pointer-events: auto;
	cursor: pointer;
}

.dpc-bottle__opt .dpc-icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
}

.dpc-bottle:not(.is-active):hover .dpc-bottle__opt,
.dpc-bottle:focus-visible .dpc-bottle__opt {
	opacity: .7;
}

.dpc-bottle:focus-visible {
	outline: none;
}

.dpc-bottle:focus-visible .dpc-bottle__label {
	text-decoration: underline;
}

.dpc-bottle.is-oos .dpc-bottle__img {
	opacity: .5;
}

.dpc-bottle .dpc-oos-note {
	padding-left: 4px;
	font-size: 12px;
	font-weight: 400;
}

/* Product card (catalog) */
.dpc-loop {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
}

.dpc-sw--sm {
	width: 24px;
	height: 24px;
	border: 0;
}

.dpc-sw--sm .dpc-sw__img {
	width: 24px;
	height: 24px;
}

.dpc-sw--sm.is-oos::after {
	left: 3px;
	right: 3px;
}

.dpc-loop__more {
	display: inline-flex;
	width: 24px;
	height: 24px;
	color: #000;
}

.dpc-icon--plus {
	width: 24px;
	height: 24px;
}

/* «+» in the card: the folded colours slide out over the title (Figma main «see colours» → «make up» card with all colours).
   JS (switcher.js) fixes the width of .dpc-card-swatches and adds .is-open; .dpc-loop then floats right-aligned on the card background. */
.dpc-card-swatches,
.dpc-loop-box {
	position: relative;
}

.dpc-loop .dpc-sw--sm,
.dpc-loop__more {
	transition: transform .2s ease, width .25s ease, margin .25s ease, opacity .2s ease;
}

.dpc-loop .dpc-sw--sm:hover,
.dpc-loop .dpc-sw--sm:focus-visible {
	z-index: 1;
	transform: scale(1.2);
}

.dpc-loop .dpc-sw--sm.dpc-sw--extra {
	width: 0;
	margin-left: -4px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transform: scale(.4);
}

.dpc-loop.is-open {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 4;
	padding-left: 8px;
	background: var(--dpc-loop-bg, #fff);
}

.dpc-loop.is-open::before {
	position: absolute;
	top: 0;
	right: 100%;
	bottom: 0;
	width: 24px;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--dpc-loop-bg, #fff));
	content: "";
	pointer-events: none;
}

.dpc-loop.is-open .dpc-sw--sm.dpc-sw--extra {
	width: 24px;
	margin-left: 0;
	opacity: 1;
	pointer-events: auto;
	transform: none;
	transition-delay: calc(var(--i, 0) * 30ms);
}

.dpc-loop.is-open .dpc-sw--sm.dpc-sw--extra:hover,
.dpc-loop.is-open .dpc-sw--sm.dpc-sw--extra:focus-visible {
	transform: scale(1.2);
	transition-delay: 0s;
}

.dpc-loop.is-open .dpc-loop__more {
	width: 0;
	margin-left: -4px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.dpc-loop .dpc-sw--sm,
	.dpc-loop__more {
		transition: none;
	}
}

/* Editor helper */
.dpc-editor-notice {
	padding: 10px 12px;
	border: 1px dashed var(--dpc-border, #ccb7af);
	border-radius: 8px;
	color: #6b5d57;
	font-size: 13px;
}

@media (max-width: 768.98px) {
	.dpc-swatches {
		gap: 2px;
	}

	.dpc-sw {
		width: 42px;
		height: 42px;
	}

	.dpc-sw__img {
		width: 36px;
		height: 36px;
	}

	.dpc-pills {
		gap: 8px;
	}

	.dpc-pill {
		font-size: 14px;
	}

	.dpc-pill__img {
		flex-basis: 30px;
		width: 30px;
	}

	.dpc-bottle__opt {
		gap: 6px;
		font-size: 16px;
		line-height: 20px;
	}

	.dpc-bottle__opt .dpc-icon {
		flex-basis: 20px;
		width: 20px;
		height: 20px;
	}
}
