.dormytop-3d-gallery-slide,
.dormytop-info-card,
.dormytop-catalog-card,
.dormytop-delivery-card,
.dormytop-details {
	--dormytop-red: #e30613;
	--dormytop-black: #111;
	--dormytop-white: #fff;
	--dormytop-muted: #686868;
	--dormytop-surface: #f7f7f7;
	--dormytop-border: rgba(17, 17, 17, 0.14);
}

.single-product .summary.entry-summary a:not(.button):hover,
.single-product .woocommerce-tabs a:hover,
.single-product .woocommerce-breadcrumb a:hover {
	color: #e30613 !important;
	background-color: transparent;
}

.single-product form.variations_form .reset_variations {
	display: none !important;
}

.single-product .summary .dormytop-product-price {
	margin: 8px 0 22px;
}

.single-product .summary > .price,
.single-product .summary .dormytop-product-price .price {
	margin: 0;
	color: var(--dormytop-red, #e30613);
	font-weight: 700;
}

.single-product .summary.dormytop-has-relocated-price > .price,
.single-product .summary.dormytop-has-relocated-price .single_variation .woocommerce-variation-price {
	display: none !important;
}

.dormytop-3d-gallery-slide {
	width: 100%;
	margin: 0;
	color: var(--dormytop-black);
}

.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image.dormytop-3d-gallery-slide {
	width: 100%;
}

.dormytop-viewer-column {
	width: 100%;
	min-width: 0;
	aspect-ratio: var(--dormytop-gallery-aspect, 1 / 1);
}

.dormytop-viewer-shell {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	background: radial-gradient(circle at 50% 43%, var(--dormytop-white) 0, #f0f0f0 78%);
}

.dormytop-model-viewer {
	display: block;
	width: 100%;
	height: 100%;
	background: transparent;
	--progress-bar-color: var(--dormytop-red);
	--progress-bar-height: 3px;
}

.dormytop-load-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	background:
		linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
		var(--dormytop-poster, radial-gradient(circle at 50% 43%, var(--dormytop-white) 0, #f0f0f0 78%));
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	transition: opacity 220ms ease, visibility 220ms ease;
}

.dormytop-load-overlay.is-hidden {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.dormytop-load-button {
	width: 124px;
	height: 124px;
	display: grid;
	place-content: center;
	gap: 7px;
	padding: 16px;
	border: 3px solid var(--dormytop-red);
	border-radius: 50%;
	color: var(--dormytop-white);
	background: var(--dormytop-black);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	font: inherit;
}

.dormytop-load-button:focus-visible,
.dormytop-color-swatch:focus-visible,
.dormytop-fullscreen-button:focus-visible {
	outline: 3px solid rgba(227, 6, 19, 0.42);
	outline-offset: 3px;
}

.dormytop-load-button:disabled {
	cursor: wait;
	opacity: 0.75;
}

.dormytop-load-button__icon {
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1;
}

.dormytop-load-button__label {
	font-size: 0.88rem;
	font-weight: 650;
}

.dormytop-fullscreen-button {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 4;
	display: grid;
	width: 44px;
	height: 44px;
	padding: 10px;
	place-items: center;
	border: 1px solid var(--dormytop-border);
	border-radius: 50%;
	color: var(--dormytop-black);
	background: var(--dormytop-white);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	cursor: pointer;
}

.dormytop-fullscreen-button:hover {
	border-color: var(--dormytop-red);
	color: var(--dormytop-red);
}

.dormytop-fullscreen-button svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.dormytop-fullscreen-button__collapse,
.dormytop-fullscreen-button[aria-pressed="true"] .dormytop-fullscreen-button__expand {
	display: none;
}

.dormytop-fullscreen-button[aria-pressed="true"] .dormytop-fullscreen-button__collapse {
	display: block;
}

.dormytop-drag-hint {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 1;
	margin: 0;
	padding: 7px 12px;
	border: 1px solid var(--dormytop-border);
	border-radius: 999px;
	color: var(--dormytop-muted);
	background: rgba(255, 255, 255, 0.9);
	font-size: 0.78rem;
	pointer-events: none;
	transform: translateX(-50%);
	backdrop-filter: blur(8px);
}

.dormytop-viewer-status {
	position: absolute;
	left: 18px;
	top: 18px;
	z-index: 3;
	margin: 0;
	color: var(--dormytop-red);
	font-size: 0.82rem;
}

.dormytop-color-picker {
	align-items: center;
	gap: 14px;
	padding: 16px 4px 0;
}

.dormytop-color-picker--fullscreen {
	display: none;
}

.dormytop-color-picker__label {
	color: var(--dormytop-black);
	font-size: 0.88rem;
	font-weight: 700;
}

.dormytop-color-picker__swatches {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
}

.dormytop-color-swatch {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 3px solid var(--dormytop-white);
	border-radius: 50%;
	background: var(--dormytop-color);
	box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.25);
	cursor: pointer;
}

.dormytop-color-swatch[aria-pressed="true"] {
	box-shadow: 0 0 0 2px var(--dormytop-red);
}

.woocommerce-product-gallery.dormytop-3d-is-active .woocommerce-product-gallery__trigger {
	display: none;
}

.woocommerce-product-gallery .flex-control-thumbs .dormytop-3d-thumbnail-control img {
	box-sizing: border-box;
	border: 1px solid rgba(17, 17, 17, 0.16);
	background: #fff;
	opacity: 1;
}

.woocommerce-product-gallery .flex-control-thumbs .dormytop-3d-thumbnail-control img.flex-active {
	border: 2px solid #e30613;
}

.dormytop-info-card {
	position: relative;
	display: block;
	clear: both;
	float: none;
	box-sizing: border-box;
	width: 100%;
	margin: 14px 0 4px;
	padding: 12px 14px;
	border: 1px solid #d8ebe0;
	border-radius: 9px;
	color: var(--dormytop-black);
	background: #f7fcf8;
}

form.variations_form .dormytop-info-card {
	max-width: none;
}

.dormytop-info-card__eyebrow {
	margin: 0 0 1px;
	color: #32845b;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.3;
	text-transform: uppercase;
}

.dormytop-info-card h2 {
	margin: 0 0 6px;
	color: var(--dormytop-black);
	font-size: 0.94rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
}

.dormytop-info-card ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dormytop-info-card li {
	position: relative;
	margin: 0;
	padding-left: 14px;
	color: #333;
	font-size: 0.8rem;
	line-height: 1.4;
}

.dormytop-info-card li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #2f9963;
	font-weight: 800;
}

.dormytop-catalog-card,
.dormytop-delivery-card {
	box-sizing: border-box;
	width: 100%;
	margin: 12px 0 18px;
	border-radius: 12px;
	color: var(--dormytop-black);
}

.dormytop-catalog-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 14px;
	border: 1px dashed rgba(17, 17, 17, 0.22);
	background: #f7f8f8;
}

.dormytop-catalog-card__icon {
	display: grid;
	width: 38px;
	height: 42px;
	flex: 0 0 38px;
	place-items: center;
	border-radius: 6px;
	color: var(--dormytop-white);
	background: var(--dormytop-red);
	font-size: 0.62rem;
	font-weight: 800;
}

.dormytop-catalog-card__content {
	display: grid;
	min-width: 0;
	gap: 2px;
	line-height: 1.3;
}

.dormytop-catalog-card__content strong,
.dormytop-delivery-card strong {
	font-size: 0.93rem;
	font-weight: 700;
}

.dormytop-catalog-card__content span,
.dormytop-delivery-card p {
	color: #555;
	font-size: 0.8rem;
}

.dormytop-catalog-card__button {
	margin-left: auto;
	padding: 9px 12px;
	border: 1px solid var(--dormytop-black);
	border-radius: 8px;
	color: var(--dormytop-black);
	background: var(--dormytop-white) !important;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.dormytop-catalog-card__button:hover,
.dormytop-catalog-card__button:focus-visible {
	border-color: var(--dormytop-red);
	color: var(--dormytop-red);
	background: var(--dormytop-white) !important;
}

.dormytop-delivery-card {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 14px 16px;
	border: 1px solid #f2dfba;
	background: #fff8eb;
}

.dormytop-delivery-card__dot {
	width: 11px;
	height: 11px;
	flex: 0 0 11px;
	margin-top: 4px;
	border-radius: 50%;
	background: #27c879;
	box-shadow: 0 0 0 4px rgba(39, 200, 121, 0.12);
}

.dormytop-delivery-card p {
	margin: 4px 0 0;
	line-height: 1.45;
}

.dormytop-delivery-card a {
	color: var(--dormytop-black);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dormytop-pdf-lightbox[hidden] {
	display: none;
}

.dormytop-pdf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: clamp(12px, 3vw, 40px);
}

.dormytop-pdf-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.dormytop-pdf-lightbox__dialog {
	position: relative;
	width: min(100%, 980px);
	height: min(86vh, 780px);
	overflow: hidden;
	border-radius: 12px;
	background: var(--dormytop-white);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.dormytop-pdf-lightbox__frame {
	width: 100%;
	height: 100%;
	border: 0;
}

body.dormytop-pdf-lightbox-open {
	overflow: hidden;
}

.dormytop-details {
	max-width: 100%;
}

.dormytop-details > h2 {
	position: relative;
	margin: 0 0 22px;
	padding-left: 18px;
	color: var(--dormytop-black);
	font-size: clamp(1.55rem, 3vw, 2.25rem);
	font-weight: 600;
	line-height: 1.2;
}

.dormytop-details > h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.08em;
	bottom: 0.08em;
	width: 6px;
	background: var(--dormytop-red);
}

.dormytop-details__cards {
	border-top: 1px solid var(--dormytop-border);
}

.dormytop-details-card {
	margin: 0;
	border-bottom: 1px solid var(--dormytop-border);
}

.dormytop-details-card summary {
	display: flex;
	min-height: 54px;
	box-sizing: border-box;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	color: var(--dormytop-black);
	font-size: 0.95rem;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.dormytop-details-card summary::-webkit-details-marker {
	display: none;
}

.dormytop-details-card[open] summary {
	color: var(--dormytop-red);
}

.dormytop-details-card__icon {
	position: relative;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

.dormytop-details-card__icon::before,
.dormytop-details-card__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.dormytop-details-card__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.dormytop-details-card[open] .dormytop-details-card__icon::after {
	display: none;
}

.dormytop-details-card ul {
	margin: 0;
	padding: 2px 34px 20px;
}

.dormytop-details-card li {
	margin-bottom: 5px;
	color: #333;
	line-height: 1.45;
}

.dormytop-viewer-column:fullscreen,
.dormytop-viewer-column:-webkit-full-screen {
	display: flex;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	flex-direction: column;
	padding: clamp(12px, 2vw, 24px);
	aspect-ratio: auto;
	background: var(--dormytop-white);
}

.dormytop-viewer-column:fullscreen .dormytop-viewer-shell,
.dormytop-viewer-column:-webkit-full-screen .dormytop-viewer-shell {
	flex: 1 1 auto;
	min-height: 0;
	border-radius: 12px;
}

.dormytop-viewer-column:fullscreen .dormytop-model-viewer,
.dormytop-viewer-column:-webkit-full-screen .dormytop-model-viewer {
	height: 100%;
	min-height: 0;
}

.dormytop-viewer-column:fullscreen .dormytop-color-picker--fullscreen,
.dormytop-viewer-column:-webkit-full-screen .dormytop-color-picker--fullscreen {
	display: flex;
	flex: 0 0 auto;
	justify-content: center;
	padding: 16px 4px 2px;
}

@media (max-width: 768px) {
	.dormytop-load-button {
		width: 108px;
		height: 108px;
	}

	.dormytop-load-button__icon {
		font-size: 1.5rem;
	}

	.dormytop-fullscreen-button {
		top: 12px;
		right: 12px;
		width: 42px;
		height: 42px;
	}

	.dormytop-viewer-column:fullscreen,
	.dormytop-viewer-column:-webkit-full-screen {
		padding: 8px;
	}

	.dormytop-viewer-column:fullscreen .dormytop-color-picker--fullscreen,
	.dormytop-viewer-column:-webkit-full-screen .dormytop-color-picker--fullscreen {
		align-items: center;
		flex-direction: column;
		gap: 9px;
		padding-bottom: max(8px, env(safe-area-inset-bottom));
	}
}

@media (min-width: 769px) {
	.woocommerce-product-gallery.dormytop-3d-has-viewer {
		display: grid !important;
		grid-template-columns: clamp(68px, 8vw, 96px) minmax(0, 1fr);
		grid-template-rows: auto;
		column-gap: 16px;
		align-items: start;
	}

	.woocommerce-product-gallery.dormytop-3d-has-viewer > .flex-viewport,
	.woocommerce-product-gallery.dormytop-3d-has-viewer > .woocommerce-product-gallery__wrapper {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
		width: 100% !important;
	}

	.woocommerce-product-gallery.dormytop-3d-has-viewer > .flex-control-thumbs {
		display: flex !important;
		grid-column: 1;
		grid-row: 1;
		flex-direction: column;
		gap: 10px;
		width: 100%;
		margin: 0 !important;
		padding: 0;
	}

	.woocommerce-product-gallery.dormytop-3d-has-viewer > .flex-control-thumbs li {
		float: none !important;
		width: 100% !important;
		margin: 0 !important;
	}

	.woocommerce-product-gallery.dormytop-3d-has-viewer > .flex-control-thumbs img {
		display: block;
		width: 100%;
		height: auto;
	}

	.woocommerce-product-gallery.dormytop-3d-has-viewer > .woocommerce-product-gallery__trigger {
		grid-column: 2;
		grid-row: 1;
	}
}

@media (max-width: 480px) {
	.dormytop-load-button {
		width: 96px;
		height: 96px;
		border-width: 2px;
	}

	.dormytop-load-button__label {
		font-size: 0.78rem;
	}

	.dormytop-color-swatch {
		width: 30px;
		height: 30px;
	}

	.dormytop-info-card {
		padding: 12px 14px 12px 17px;
	}

	.dormytop-catalog-card {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.dormytop-catalog-card__content {
		width: calc(100% - 50px);
	}

	.dormytop-catalog-card__button {
		width: 100%;
		margin-left: 50px;
	}

	.dormytop-pdf-lightbox {
		padding: 8px;
	}

	.dormytop-pdf-lightbox__dialog {
		height: 88vh;
		border-radius: 8px;
	}
}
