/* ==========================================================================
   Shadow box — Premium Black UI  (ZASTĄP CAŁY PLIK)
   Ładowany tylko na karcie produktu shadow-box (class="shadowbox-ui-restore" na body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tło strony + globalne korekty
   -------------------------------------------------------------------------- */

body.shadowbox-ui-restore {
	background:
		radial-gradient(ellipse 80% 50% at 10% 0%, rgba(201, 170, 106, 0.04) 0%, transparent 55%),
		linear-gradient(160deg, #111111 0%, #0a0a0a 50%, #060606 100%) !important;
	color: #efe7d6;
}

body.shadowbox-ui-restore .site-main {
	padding-top: 2.5rem;
	padding-bottom: 5rem;
}

/* Breadcrumb */
body.shadowbox-ui-restore .woocommerce-breadcrumb {
	color: rgba(239, 231, 214, 0.45);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
}
body.shadowbox-ui-restore .woocommerce-breadcrumb a {
	color: rgba(239, 231, 214, 0.45);
	text-decoration: none;
}
body.shadowbox-ui-restore .woocommerce-breadcrumb a:hover {
	color: #c9aa6a;
}

/* --------------------------------------------------------------------------
   2. Dwukolumnowy layout produktu
   -------------------------------------------------------------------------- */

.single-product.shadowbox-ui-restore .product.type-product {
	display: grid !important;
	grid-template-columns: 1fr 520px !important;
	gap: 2rem !important;
	align-items: start !important;
}

.single-product.shadowbox-ui-restore .product.type-product .images,
.single-product.shadowbox-ui-restore .product.type-product .summary {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.single-product.shadowbox-ui-restore .product.type-product .summary {
	max-width: none !important;
}

/* --------------------------------------------------------------------------
   3. Galeria produktu — ukryj natywną
   -------------------------------------------------------------------------- */

body.shadowbox-ui-restore .woocommerce-product-gallery {
	display: none !important;
}

/* --------------------------------------------------------------------------
   3b. Lewa kolumna — tło gradientowe
   WAŻNE: ścieżka używa nazwy bez polskich znaków (tlo- nie tło-)
   -------------------------------------------------------------------------- */

body.shadowbox-ui-restore .shadowbox-preview-column {
	grid-column: 1;
	position: sticky;
	top: 52px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	align-self: stretch;

	/* Kafelek tła powtarzany, z ciemną nakładką przez pseudo-element */
	background-image: url('../images/frames/tlo-podglad-ramka.png');
	background-size: 420px 420px;
	background-repeat: repeat;
	background-position: center center;
	background-color: #e8e4dc;

	border-radius: 8px;
	/* Padding-top liczony tak, aby ramka (55vh) była pionowo wyśrodkowana
	   w widoku pod paskiem menu (top:52px). Min. 4rem na krótkich ekranach. */
	padding: max(4rem, calc((100vh - 52px - 55vh) / 2)) 32px 40px;
	min-height: 100%;
	overflow: hidden;
}

/* Ciemna nakładka na tło — bez edycji pliku PNG */
body.shadowbox-ui-restore .shadowbox-preview-column::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.72);
	z-index: 0;
	border-radius: 8px;
}

body.shadowbox-ui-restore .shadowbox-preview-column > * {
	position: relative;
	z-index: 1;
}

/* --------------------------------------------------------------------------
   3c. Wrapper podglądu ramki — wymiary napędzane przez JS (aspect-ratio + max-width)
   -------------------------------------------------------------------------- */

.shadowbox-frame-preview-wrap {
	position: relative;
	width: auto;
	/* Domyślny aspect-ratio (pion 30×40) — JS nadpisuje inline po wyborze */
	aspect-ratio: 3 / 4;
	height: 55vh;
	max-width: none;
	margin: 0 auto;
	transition: aspect-ratio 0.3s ease, height 0.3s ease;
}

.shadowbox-frame-preview-wrap img.shadowbox-frame-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
	filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55));
	transition: opacity 0.25s ease, transform 0.3s ease;
}

.shadowbox-frame-preview-wrap.is-loading img.shadowbox-frame-img {
	opacity: 0;
	transform: scale(0.96);
}

/* Placeholder — gdy src pusty (przed wyborem opcji) */
.shadowbox-frame-preview-wrap img.shadowbox-frame-img[src=''],
.shadowbox-frame-preview-wrap img.shadowbox-frame-img:not([src]) {
	background: rgba(255, 255, 255, 0.04);
	border: 1px dashed rgba(201, 170, 106, 0.2);
	border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. Panel konfiguracyjny — wrapper
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore .shadowbox-ui-panel {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	color: #efe7d6;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

/* --------------------------------------------------------------------------
   5. Nagłówek — tytuł produktu + lead
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore .shadowbox-ui-panel__header {
	margin-bottom: 0.25rem;
}

.shadowbox-ui-restore .shadowbox-ui-panel__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #f7f2e7;
	line-height: 1.25;
}

.shadowbox-ui-restore .shadowbox-ui-panel__lead {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.65;
	color: rgba(239, 231, 214, 0.72);
}

/* --------------------------------------------------------------------------
   6. Cena Woo — stylowanie premium
   -------------------------------------------------------------------------- */

body.shadowbox-ui-restore .summary .price {
	display: none !important; /* ukryta cena zakresu 199-299 zł — zastąpiona ceną dynamiczną */
}

/* Przywróć widoczność ceny wewnątrz panelu shadowbox */
body.shadowbox-ui-restore .summary .shadowbox-ui-current-price .price {
	display: inline !important;
}

/* summary .price ins/del ukryte razem z ceną zakresu */

/* --------------------------------------------------------------------------
   7. Sekcje panelu
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore .shadowbox-ui-section {
	border-radius: 8px;
	background: linear-gradient(
		160deg,
		rgba(22, 22, 22, 0.95) 0%,
		rgba(12, 12, 12, 0.98) 100%
	);
	padding: 1rem 1.15rem 1.15rem;
	border: 1px solid rgba(201, 170, 106, 0.1);
	transition: border-color 0.2s ease;
}

.shadowbox-ui-restore .shadowbox-ui-section:focus-within {
	border-color: rgba(201, 170, 106, 0.25);
}

.shadowbox-ui-restore .shadowbox-ui-section__title {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(243, 234, 216, 0.7);
}

.shadowbox-ui-restore .shadowbox-ui-section__hint {
	margin: 0.3rem 0 0;
	font-size: 0.75rem;
	color: rgba(239, 231, 214, 0.45);
	line-height: 1.5;
}

/* Sekcja inline (tasiemka + bib) */
.shadowbox-ui-restore .shadowbox-ui-section--inline {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

/* Sekcja rozmiar */
.shadowbox-ui-restore .shadowbox-ui-section--size {
	background: linear-gradient(
		160deg,
		rgba(201, 170, 106, 0.06) 0%,
		rgba(12, 12, 12, 0.98) 100%
	);
	border-color: rgba(201, 170, 106, 0.18);
}

/* --------------------------------------------------------------------------
   8. Natywny formularz Woo — warianty
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore form.variations_form .variations {
	display: table !important;
	width: 100% !important;
	margin-bottom: 0 !important;
	border-collapse: collapse;
}

/* Select Woo zostaje w DOM dla ceny/wariantu, ale jest ukryty wizualnie */
.shadowbox-ui-restore .shadowbox-ui-section--size .variations {
	display: none !important;
}

.shadowbox-ui-restore .shadowbox-ui-size-options {
	display: flex;
	gap: 0.45rem;
	flex-wrap: wrap;
	margin-bottom: 0.65rem;
}

.shadowbox-ui-restore .shadowbox-ui-size-option {
	min-width: 5rem;
}

.shadowbox-ui-restore form.variations_form .variations td,
.shadowbox-ui-restore form.variations_form .variations th {
	padding: 0 !important;
	vertical-align: middle !important;
	border: none !important;
}

.shadowbox-ui-restore form.variations_form .variations label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(243, 234, 216, 0.7);
	font-family: "Montserrat", system-ui, sans-serif;
	padding-right: 0.75rem;
	white-space: nowrap;
}

/* Select rozmiaru — premium dark style */
.shadowbox-ui-restore form.variations_form select[name="attribute_pa_rozmiar"],
.shadowbox-ui-restore form.variations_form select[name="attribute_rozmiar"] {
	width: 100%;
	padding: 0.6rem 2.2rem 0.6rem 0.85rem;
	border-radius: 6px;
	border: 1px solid rgba(201, 170, 106, 0.42);
	background-color: #0d0d0d;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9aa6a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	-webkit-appearance: none;
	appearance: none;
	color: #f7f2e7;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.35;
	cursor: pointer;
	color-scheme: dark;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.shadowbox-ui-restore form.variations_form select[name="attribute_pa_rozmiar"]:hover,
.shadowbox-ui-restore form.variations_form select[name="attribute_rozmiar"]:hover {
	border-color: rgba(201, 170, 106, 0.78);
	background-color: #121212;
}

.shadowbox-ui-restore form.variations_form select[name="attribute_pa_rozmiar"]:focus,
.shadowbox-ui-restore form.variations_form select[name="attribute_rozmiar"]:focus {
	outline: none;
	border-color: #c9aa6a;
	box-shadow: 0 0 0 2px rgba(201, 170, 106, 0.15);
}

.shadowbox-ui-restore form.variations_form select[name="attribute_pa_rozmiar"] option,
.shadowbox-ui-restore form.variations_form select[name="attribute_rozmiar"] option {
	background: #111;
	color: #f5f2eb;
}

.shadowbox-ui-restore form.variations_form .reset_variations {
	display: none !important;
}

.shadowbox-ui-restore .woocommerce-variation-price {
	margin-top: 0.5rem;
}
.shadowbox-ui-restore .woocommerce-variation-price .price {
	font-size: 1.3rem !important;
	color: #c9aa6a !important;
}

.shadowbox-ui-restore .woocommerce-variation-availability {
	font-size: 0.8rem;
	color: rgba(239, 231, 214, 0.5);
}

/* --------------------------------------------------------------------------
   9. Opcje — kafelki (orientacja, medale, tasiemka, bib)
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore .shadowbox-ui-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.shadowbox-ui-restore .shadowbox-ui-option {
	min-width: 3rem;
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	border: 1px solid rgba(205, 165, 87, 0.2);
	background: transparent;
	color: rgba(239, 231, 214, 0.75);
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease,
		transform 0.12s ease;
}

.shadowbox-ui-restore .shadowbox-ui-option:hover {
	border-color: rgba(205, 165, 87, 0.5);
	color: #f5f2eb;
	transform: translateY(-1px);
}

.shadowbox-ui-restore .shadowbox-ui-option.is-active {
	background: linear-gradient(135deg, #d4b96e 0%, #c9aa6a 60%, #b8965a 100%);
	border-color: #c9aa6a;
	color: #0b0d13;
	box-shadow: 0 4px 12px rgba(201, 170, 106, 0.25);
}

.shadowbox-ui-restore .shadowbox-ui-option.is-disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. Swatche kolorów
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore .shadowbox-ui-options--swatches {
	gap: 0.55rem;
}

.shadowbox-ui-restore .shadowbox-ui-options--swatches .shadowbox-ui-option {
	min-width: auto;
	width: 2.1rem;
	height: 2.1rem;
	padding: 0;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.shadowbox-ui-restore .shadowbox-ui-swatch {
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 999px;
	display: block;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.shadowbox-ui-restore .shadowbox-ui-swatch--black {
	background: #0a0a0a;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.shadowbox-ui-restore .shadowbox-ui-swatch--silver {
	background: linear-gradient(135deg, #f0f0f0 0%, #c0c4ca 45%, #848c96 100%);
}

.shadowbox-ui-restore .shadowbox-ui-swatch--white {
	background: #f7f7f7;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.shadowbox-ui-restore .shadowbox-ui-options--swatches .shadowbox-ui-option.is-active {
	background: transparent;
	border-color: #c9aa6a;
	box-shadow: 0 0 0 2px rgba(201, 170, 106, 0.5);
}

/* --------------------------------------------------------------------------
   11. Upload zdjęć
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore .shadowbox-ui-upload {
	position: relative;
}

.shadowbox-ui-restore .shadowbox-ui-upload__dropzone {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem 0.85rem;
	border-radius: 6px;
	border: 1px dashed rgba(201, 170, 106, 0.28);
	background: rgba(5, 5, 8, 0.7);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.shadowbox-ui-restore .shadowbox-ui-upload__dropzone:hover {
	border-color: rgba(201, 170, 106, 0.55);
	background: rgba(10, 10, 15, 0.85);
}

.shadowbox-ui-restore .shadowbox-ui-upload__label {
	flex: 1;
	margin: 0;
	font-size: 0.8rem;
	color: rgba(239, 231, 214, 0.5);
	font-family: "Montserrat", system-ui, sans-serif;
}

.shadowbox-ui-restore .shadowbox-ui-upload__filename {
	flex: 1;
	margin: 0;
	font-size: 0.8rem;
	color: rgba(201, 170, 106, 0.9);
	font-family: "Montserrat", system-ui, sans-serif;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.shadowbox-ui-restore .shadowbox-ui-upload__btn {
	flex-shrink: 0;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(201, 170, 106, 0.7);
	background: transparent;
	color: #c9aa6a;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.shadowbox-ui-restore .shadowbox-ui-upload__btn:hover {
	background: #c9aa6a;
	color: #0b0d13;
	border-color: #c9aa6a;
}

.shadowbox-ui-restore .shadowbox-ui-upload__input {
	position: absolute;
	inset: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.shadowbox-ui-restore .shadowbox-ui-upload__error {
	margin: 0.3rem 0 0;
	font-size: 0.75rem;
	color: #ff9c9c;
	font-family: "Montserrat", system-ui, sans-serif;
}

.shadowbox-ui-restore .shadowbox-ui-section__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.shadowbox-ui-restore .shadowbox-ui-section__title-row .shadowbox-ui-section__title {
	margin: 0;
}

.shadowbox-ui-restore .shadowbox-ui-upload__meta {
	display: inline-flex;
	align-items: center;
	position: relative;
	flex-shrink: 0;
}

.shadowbox-ui-restore .shadowbox-ui-help-trigger {
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 999px;
	border: 1px solid rgba(201, 170, 106, 0.65);
	background: rgba(15, 15, 15, 0.9);
	color: #c9aa6a;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.1;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.shadowbox-ui-restore .shadowbox-ui-help-trigger:hover,
.shadowbox-ui-restore .shadowbox-ui-help-trigger:focus-visible {
	border-color: #c9aa6a;
	background: #c9aa6a;
	color: #0b0d13;
	outline: none;
}

.shadowbox-ui-restore .shadowbox-ui-help-popover {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: -0.1rem;
	width: min(320px, 92vw);
	padding: 0.75rem 0.85rem;
	border-radius: 8px;
	background: rgba(10, 10, 10, 0.98);
	border: 1px solid rgba(201, 170, 106, 0.35);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
	color: rgba(239, 231, 214, 0.92);
	font-size: 0.75rem;
	line-height: 1.45;
	z-index: 12;
}

.shadowbox-ui-restore .shadowbox-ui-help-popover p { margin: 0 0 0.35rem; }
.shadowbox-ui-restore .shadowbox-ui-help-popover ul { margin: 0; padding-left: 1.1rem; }

.shadowbox-ui-restore .shadowbox-ui-upload__hint {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	line-height: 1.45;
	color: rgba(239, 231, 214, 0.62);
}

.shadowbox-ui-restore .shadowbox-ui-upload__remove {
	margin-top: 0.35rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(201, 170, 106, 0.85);
	font-size: 0.72rem;
	text-decoration: underline;
	cursor: pointer;
}

.shadowbox-ui-restore .shadowbox-ui-section--bib-upload.is-hidden {
	display: none !important;
}

/* --------------------------------------------------------------------------
   12. Textarea uwagi
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore .shadowbox-ui-textarea {
	width: 100%;
	min-height: 5.5rem;
	box-sizing: border-box;
	padding: 0.7rem 0.85rem;
	border-radius: 6px;
	border: 1px solid rgba(201, 170, 106, 0.18);
	background: rgba(5, 5, 8, 0.7);
	color: rgba(239, 231, 214, 0.9);
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.83rem;
	line-height: 1.55;
	resize: vertical;
	transition: border-color 0.15s ease;
}

.shadowbox-ui-restore .shadowbox-ui-textarea:focus {
	outline: none;
	border-color: rgba(201, 170, 106, 0.45);
	box-shadow: 0 0 0 2px rgba(201, 170, 106, 0.1);
}

.shadowbox-ui-restore .shadowbox-ui-textarea::placeholder {
	color: rgba(239, 231, 214, 0.3);
}

/* --------------------------------------------------------------------------
   13. Add-to-cart button
   -------------------------------------------------------------------------- */

body.shadowbox-ui-restore .single_add_to_cart_button,
body.shadowbox-ui-restore button.single_add_to_cart_button {
	width: 100%;
	padding: 0.95rem 1.5rem !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #d4b96e 0%, #c9aa6a 60%, #b8965a 100%) !important;
	border: none !important;
	color: #0b0d13 !important;
	font-family: "Montserrat", system-ui, sans-serif !important;
	font-size: 0.9rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	box-shadow: 0 8px 24px rgba(201, 170, 106, 0.3), 0 2px 6px rgba(0, 0, 0, 0.4) !important;
	cursor: pointer !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

body.shadowbox-ui-restore .single_add_to_cart_button:hover:not(:disabled),
body.shadowbox-ui-restore button.single_add_to_cart_button:hover:not(:disabled) {
	background: linear-gradient(135deg, #e6d2a3 0%, #d4b96e 60%, #c9aa6a 100%) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 14px 32px rgba(201, 170, 106, 0.4), 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

body.shadowbox-ui-restore .single_add_to_cart_button:disabled,
body.shadowbox-ui-restore button.single_add_to_cart_button:disabled {
	background: linear-gradient(135deg, #5a5040 0%, #4a4030 100%) !important;
	color: rgba(239, 231, 214, 0.35) !important;
	box-shadow: none !important;
	cursor: not-allowed !important;
	transform: none !important;
}

body.shadowbox-ui-restore .woocommerce-variation-add-to-cart {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0.25rem;
}

body.shadowbox-ui-restore .woocommerce-variation-add-to-cart .quantity,
body.shadowbox-ui-restore .quantity {
	display: none !important;
}

/* --------------------------------------------------------------------------
   14. Ukryj zbędne sekcje Woo
   -------------------------------------------------------------------------- */

body.shadowbox-ui-restore .woocommerce-tabs,
body.shadowbox-ui-restore .related.products {
	display: none !important;
}

body.shadowbox-ui-restore .product_meta {
	display: none !important;
}

/* --------------------------------------------------------------------------
   15. Divider
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore .shadowbox-ui-divider {
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(201, 170, 106, 0.18) 30%,
		rgba(201, 170, 106, 0.18) 70%,
		transparent 100%
	);
	margin: 0.25rem 0;
}

/* --------------------------------------------------------------------------
   16. Info bar (etapy realizacji)
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore .shadowbox-ui-steps {
	display: flex;
	gap: 0;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(201, 170, 106, 0.1);
}

.shadowbox-ui-restore .shadowbox-ui-step {
	flex: 1;
	padding: 0.7rem 0.5rem;
	text-align: center;
	background: rgba(12, 12, 12, 0.95);
	border-right: 1px solid rgba(201, 170, 106, 0.1);
	font-family: "Montserrat", system-ui, sans-serif;
}

.shadowbox-ui-restore .shadowbox-ui-step:last-child {
	border-right: none;
}

.shadowbox-ui-restore .shadowbox-ui-step__num {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #c9aa6a;
	text-transform: uppercase;
	margin-bottom: 0.2rem;
}

.shadowbox-ui-restore .shadowbox-ui-step__label {
	display: block;
	font-size: 0.68rem;
	color: rgba(239, 231, 214, 0.55);
	line-height: 1.3;
}


/* --------------------------------------------------------------------------
   Cena dynamiczna — nad sekcją rozmiaru
   -------------------------------------------------------------------------- */

.shadowbox-ui-variation-price-wrap {
	margin-bottom: 0.5rem;
}

.shadowbox-ui-current-price {
	margin: 0;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: #c9aa6a;
	letter-spacing: 0.02em;
}

/* Cena po wyborze wariantu (Woo) — zsynchronizuj styl */
.shadowbox-ui-restore .woocommerce-variation-price {
	margin: 0 0 0.5rem;
}

.shadowbox-ui-restore .woocommerce-variation-price .price {
	font-size: 1.6rem !important;
	font-weight: 700 !important;
	color: #c9aa6a !important;
	font-family: "Montserrat", system-ui, sans-serif !important;
}

/* --------------------------------------------------------------------------
   Kafelki rozmiaru — nowy styl z "cm"
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore .shadowbox-ui-size-option {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	border-radius: 8px;
	min-width: 7rem;
	flex-direction: column;
	gap: 0.05rem;
}

.shadowbox-ui-restore .shadowbox-ui-size-option__main {
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: inherit;
}

/* Ukryj natywny select Woo w sekcji rozmiaru */
.shadowbox-ui-restore .shadowbox-ui-section--size .variations,
.shadowbox-ui-restore .shadowbox-ui-section--size table.variations,
.shadowbox-ui-restore .shadowbox-ui-section--size .woocommerce-variation-price,
.shadowbox-ui-restore .shadowbox-ui-section--size .reset_variations {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Tasiemka + BIB — nagłówek pytania + layout
   -------------------------------------------------------------------------- */

.shadowbox-ui-restore .shadowbox-ui-section--inline {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 1rem;
	align-items: start;
}

.shadowbox-ui-restore .shadowbox-ui-section__question {
	grid-column: 1 / -1; /* pełna szerokość */
	margin: 0 0 0.1rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(243, 234, 216, 0.5);
}

.shadowbox-ui-restore .shadowbox-ui-inline-col {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   17. Responsywność
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.single-product.shadowbox-ui-restore .product.type-product {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 2rem !important;
	}

	body.shadowbox-ui-restore .shadowbox-preview-column {
		position: static;
		align-self: auto;
		min-height: 380px;
		padding: 32px 24px;
	}

	.shadowbox-frame-preview-wrap {
		height: 46vh;
	}
}

@media (max-width: 600px) {
	.shadowbox-ui-restore .shadowbox-ui-section--inline {
		grid-template-columns: minmax(0, 1fr);
	}

	.shadowbox-ui-restore .shadowbox-ui-panel {
		gap: 0.65rem;
	}

	body.shadowbox-ui-restore .site-main {
		padding-top: 1.5rem;
	}

	.shadowbox-frame-preview-wrap {
		height: 38vh;
	}
}


/* ============================================
   SHADOWBOX UI RESTORE - POPRAWKI
   Poprawy: Dodanie ceny i zwiększenie przerwy
   ============================================ */

/* 1. ZWIĘKSZONA PRZERWA MIĘDZY BELKĄ A TYTUŁEM */
.shadowbox-ui-panel {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
}

.shadowbox-panel-header {
    margin-bottom: 2rem;
}

/* 2. SEKCJA CENY PRODUKTU */
.shadowbox-price-section {
    display: block;
    padding: 1.5rem 1.5rem;
    background: linear-gradient(160deg, rgba(22, 22, 22, 0.95) 0%, rgba(12, 12, 12, 0.98) 100%);
    border: 1px solid rgba(201, 170, 106, 0.1);
    margin-bottom: 2rem;
    border-radius: 8px;
}

.shadowbox-price-section .price {
    font-size: 1.75rem;
    font-weight: 600;
    color: #c9aa6a;
    line-height: 1.2;
}

.shadowbox-price-section .woocommerce-price-amount {
    display: inline;
    margin-right: 0.25rem;
}

.shadowbox-price-section .woocommerce-price-amount bdi {
    font-weight: 700;
}

.shadowbox-price-section .from {
    display: inline;
    margin-right: 0.5rem;
    font-size: 0.875rem;
    color: rgba(239, 231, 214, 0.62);
}

/* Wariantowa cena (dla zakresu) */
.shadowbox-price-section .woocommerce-variation-price {
    font-weight: 600;
}

/* 3. RESPONSIVE - małe ekrany */
@media (max-width: 768px) {
    .shadowbox-ui-panel {
        margin-top: 0.5rem;
        padding-top: 0.35rem;
    }

    .shadowbox-panel-header {
        margin-bottom: 1.5rem;
    }

    .shadowbox-price-section {
        padding: 1rem 1rem;
        margin-bottom: 1.5rem;
    }

    .shadowbox-price-section .price {
        font-size: 1.5rem;
    }
}

/* 4. TYTUŁ PRODUKTU - wyrównanie */
.shadowbox-panel-header h1,
.shadowbox-panel-header .product-title,
.shadowbox-ui-panel h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .shadowbox-panel-header h1,
    .shadowbox-panel-header .product-title,
    .shadowbox-ui-panel h1 {
        font-size: 1.5rem;
    }
}

/* 5. Integracja z topbarem - dodatkowy spacing */
body.shadowbox-ui-restore .shadowbox-ui-panel {
    /* Zapewnia, że panel ma wystarczającą odległość od topbara */
    margin-top: max(0.75rem, calc(var(--topbar-height, 60px) - 0.25rem));
}
