@import url('https://fonts.googleapis.com/css2?family=Birthstone&family=Carattere&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

header,
.wrapper,
.woocommerce-checkout .col-full {
	max-width: 1380px !important;
	margin: 0 auto !important;
	padding: 2rem 16px !important;
}

#content {
	width: 100% !important;
}

.col-full {
	padding: 0 !important;
}

.site-title {
	font-family: 'Carattere', cursive;
}

@media (min-width: 1440px) {
	header,
	.wrapper,
	.woocommerce-checkout .col-full {
		padding: 0;
	}
}

.button.menu-toggle,
button.menu-toggle:hover {
	border-color: transparent;
}

.col-full {
	max-width: none !important;
	margin: 0 !important;
}

.footer-element ul {
	list-style: none;
	margin: 0;
}

a {
	color: #1e1e1e !important;
}

body {
	font-family: 'Inter', 'sans-serif' !important;
	line-height: 1.6;
	color: #1e1e1e !important;
	/* background-color: #faf9f6; */
	background-color: white;
	padding-top: 0 !important;
}

.site-search {
	display: none !important;
}

/* ========== PRODUCT ADD-ONS HIGH QUALITY IMAGES ========== */

/* Wysokiej jakości obrazki w konfiguratorze */
.wc-pao-addon-image-swatch img,
.addon-image-wrapper img,
.addon-image-card img {
	image-rendering: -webkit-optimize-contrast !important;
	image-rendering: crisp-edges !important;
	image-rendering: pixelated !important;
	image-rendering: auto !important;

	/* Wyłącz kompresję przeglądarki */
	image-rendering: high-quality !important;

	/* Zapobiega rozmazywaniu przy skalowaniu */
	-ms-interpolation-mode: bicubic !important;

	/* Zachowaj proporcje bez rozciągania */
	object-fit: cover !important;
	object-position: center !important;

	/* Maksymalna jakość wyświetlania */
	max-width: none !important;
	height: auto !important;

	/* Anty-aliasing dla ostrych krawędzi */
	-webkit-font-smoothing: antialiased !important;
	-moz-osx-font-smoothing: grayscale !important;

	/* Wyłącz automatyczną kompresję */
	filter: none !important;

	/* Wysoka jakość przy transformacjach */
	will-change: transform !important;
	transform: translateZ(0) !important;
}

/* Wrapper dla obrazków addon - bez ograniczeń rozmiaru */
.addon-image-wrapper {
	overflow: visible !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	cursor: pointer !important;
}

/* Kontener addon-option - lepsze wyświetlanie i klikalność */
.addon-option-wrapper {
	image-rendering: -webkit-optimize-contrast !important;
	cursor: pointer !important;
	position: relative !important;
}

/* ========== PRZYCISK "WYBIERAM" ========== */
/* Domyślnie ukryty na desktop */
.addon-select-btn {
	display: none;
	width: 100%;
	padding: 10px 16px;
	margin-top: 10px;
	background: #9d2235;
	color: white !important;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.addon-select-btn:hover {
	background: #7a1a2a;
	transform: translateY(-1px);
}

.addon-select-btn:active {
	background: #5c1420;
	transform: translateY(0);
}

/* Zaznaczony wariant - zmień tekst przycisku */
.addon-option-wrapper.selected .addon-select-btn {
	background: #2e7d32;
	margin: 5px 16px !important;
}

/* Widoczny na mobile */
@media (max-width: 768px) {
	.addon-select-btn {
		display: block;
	}

	/* Na mobile wyłącz klikalność całego elementu */
	.addon-option-wrapper,
	.addon-image-card,
	.addon-image-wrapper,
	.wc-pao-addon-image-swatch.custom-styled {
		cursor: default !important;
		pointer-events: none !important;
	}

	/* Ale przycisk i inne elementy interaktywne mają mieć pointer-events */
	.addon-select-btn,
	.expand-description-btn,
	.custom-select,
	.custom-textarea,
	.addon-option-wrapper button,
	.addon-option-wrapper select,
	.addon-option-wrapper input {
		pointer-events: auto !important;
		cursor: pointer !important;
	}
}

/* Upewnij się że obrazki i karty są klikalne */
.addon-image-card,
.addon-image-card img,
.addon-image-wrapper img,
.wc-pao-addon-image-swatch.custom-styled,
.wc-pao-addon-image-swatch.custom-styled img {
	cursor: pointer !important;
	pointer-events: auto !important;
	-webkit-tap-highlight-color: transparent !important;
	touch-action: manipulation !important;
	-webkit-touch-callout: none !important;
	-webkit-user-select: none !important;
	user-select: none !important;
}

/* Dodatkowo dla wszystkich obrazków produktowych */
.wc-pao-addon-container img,
.product-configurator img {
	image-rendering: high-quality !important;
	-webkit-backface-visibility: hidden !important;
	backface-visibility: hidden !important;
	-webkit-transform: translateZ(0) scale(1, 1) !important;
	transform: translateZ(0) scale(1, 1) !important;
}

.widget-area,
.storefront-breadcrumb {
	display: none !important;
}

.content-area {
	width: 100% !important;
}

/* ========== RESPONSIVE REMOVE BUTTON BEHAVIOR ========== */

/* Na mobile (do 1023px) - przycisk widoczny statycznie */
@media (max-width: 1023px) {
	.checkout-remove-item-fallback {
		display: flex !important;
	}
}
.primary-menu {
	display: none;
}

/* Wymuszenie pokazania ikony koszyka na WSZYSTKICH rozmiarach ekranu */
.site-header-cart,
.primary-menu .site-header-cart,
.primary-navigation .site-header-cart,
nav .site-header-cart {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: auto !important;
	height: auto !important;
	min-width: 40px !important;
	min-height: 40px !important;
}

/* Mobile koszyk - tylko ikona i kwota */
@media (max-width: 767px) {
	.site-header-cart,
	.primary-menu .site-header-cart,
	.primary-navigation .site-header-cart,
	nav .site-header-cart {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: auto !important;
		height: auto !important;
		min-width: 40px !important;
		min-height: 40px !important;
	}

	/* Ukryj teksty na mobile */
	.site-header-cart .cart-contents .amount {
		display: inline !important;
		font-size: 14px !important;
		font-weight: bold !important;
		margin-left: 5px !important;
	}

	.site-header-cart .cart-contents .count {
		display: none !important;
	}

	.site-header-cart .cart-contents::before {
		display: inline-block !important;
		content: '' !important;
		width: 20px !important;
		height: 20px !important;
		background-image: url('../images/cart.svg') !important;
		background-size: contain !important;
		background-repeat: no-repeat !important;
		background-position: center !important;
		vertical-align: top !important;
	}

	/* Ukryj cały tekst węzła, zostaw tylko ikonę i kwotę */
	.site-header-cart .cart-contents {
		font-size: 0 !important;
		display: flex !important;
	}
}

/* Na desktop (1024px+) - przycisk widoczny tylko na hover */
@media (min-width: 1024px) {
	.checkout-remove-item-fallback {
		display: none !important;
	}

	.primary-menu {
		display: block;
	}

	.wc-block-components-order-summary-item:hover .checkout-remove-item-fallback {
		display: flex !important;
	}
}

a:focus,
a:focus-visible {
	outline: transparent !important;
}

.woocommerce-mini-cart__buttons .button.wc-forward {
	display: none !important;
}

.woocommerce-mini-cart__buttons .button.checkout.wc-forward {
	display: block !important;
	color: white !important;
}

/* Pokaż podsumowanie Product Add-Ons */
.product-addon-totals,
.wc-pao-addon-totals,
.wc-pao-totals {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin: 20px 0 !important;
	background: #f9f9f9 !important;
	border-radius: 8px !important;
	border: 1px solid #ddd !important;
	padding-top: 10px !important;
}

.product-addon-totals ul,
.wc-pao-addon-totals ul,
.wc-pao-totals ul {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.product-addon-totals li,
.wc-pao-addon-totals li,
.wc-pao-totals li {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding: 8px 16px !important;
	border-bottom: 1px solid #eee !important;
}

.product-addon-totals ul li:nth-child(2) .wc-pao-col2,
.product-addon-totals ul li:nth-child(4) .wc-pao-col2 {
	display: inline !important;
}

ul.primary-menu li {
	font-size: 14px !important;
	font-weight: 300 !important;
}

/* ========== RESPONSIVE CUSTOM TEXT FIELDS ========== */

/* Podstawowe style dla addon-option-wrapper */
.addon-option-wrapper {
	position: relative;
	transition: all 0.3s ease;
}

/* Style dla pól tekstowych */
.custom-text-field {
	z-index: 10;
	background: white;
	border-radius: 8px;
	padding: 15px;
	display: none; /* Domyślnie ukryte */
}

/* Pokaż tylko dla zaznaczonych opcji */
.addon-option-wrapper.selected .custom-text-field {
	display: block !important;
}

.custom-field-label {
	color: #333;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 8px;
}

.custom-field-description {
	color: #666;
	font-size: 13px;
	line-height: 1.5;
	font-style: italic;
}

.custom-field-footer {
	margin-top: 15px;
	padding-top: 15px;
	font-size: 12px;
	color: #000000;
	font-weight: 300;
	border-top: 1px solid black;
}

/* Kontener dla wszystkich pól select */
.select-fields-container {
	margin-top: 10px;
}

/* Style dla pól select */
.select-field-group {
	margin-bottom: 15px;
}

.select-field-group:last-child {
	margin-bottom: 0;
}

.select-field-group label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
	color: #333;
	font-size: 13px;
}

.custom-select {
	width: 100% !important;
	padding: 10px 12px !important;
	border: 2px solid #f0f0f0 !important;
	border-radius: 6px !important;
	background: #fafafa !important;
	font-size: 14px !important;
	color: #333 !important;
	transition: all 0.3s ease !important;
	appearance: none !important;
	background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 12px !important;
}

.select-fields-container {
	display: flex !important;
	justify-content: space-between;
}

.select-field-group {
	width: 48% !important;
}

.custom-select:focus {
	border-color: #bf1511 !important;
	background: white !important;
	box-shadow: 0 0 0 3px rgba(191, 21, 17, 0.1) !important;
	outline: none !important;
}

.custom-select:hover {
	border-color: #ddd !important;
}

.custom-textarea {
	width: 100% !important;
	padding: 12px !important;
	border: 2px solid #f0f0f0 !important;
	border-radius: 6px !important;
	background: #fafafa !important;
	font-size: 14px !important;
	color: #333 !important;
	transition: all 0.3s ease !important;
	resize: vertical !important;
	min-height: 80px !important;
	font-family: inherit !important;
}

.custom-textarea:focus {
	border-color: #bf1511 !important;
	background: white !important;
	box-shadow: 0 0 0 3px rgba(191, 21, 17, 0.1) !important;
	outline: none !important;
}

/* MOBILE (do 767px) - pole tekstowe zawsze widoczne */
@media (max-width: 767px) {
	.addon-option-wrapper {
		display: block !important;
	}

	.addon-option-wrapper .wc-pao-addon-image-swatch {
		max-width: 100% !important;
	}

	.custom-text-field {
		position: static !important;
		display: block !important;
		margin-top: 15px !important;
		padding: 12px !important;
	}

	.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block {
		display: none !important;
	}
}

/* DESKTOP (768px+) - pole tekstowe normalnie pod opcją, bez absolute */
@media (min-width: 768px) {
	.addon-option-wrapper {
		display: block !important;
		padding: 5px !important;
	}

	.custom-text-field {
		position: static !important;
		display: none !important;
		margin-top: 15px !important;
		padding: 18px !important;
	}

	.addon-option-wrapper.selected .custom-text-field {
		display: block !important;
	}
}

/* Zapewnij, że zaznaczona opcja zawsze pokazuje pole tekstowe */
.addon-option-wrapper.selected .custom-text-field {
	display: block !important;
}

/* ========== CUSTOM FIELDS SUMMARY ========== */
.custom-fields-summary {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
	max-width: 100%;
}

.custom-fields-summary h4 {
	margin: 0 0 15px 0 !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #333 !important;
	border-bottom: 1px solid #dee2e6;
	padding-bottom: 8px;
}

.custom-field-summary-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #f0f1f2;
}

.custom-field-summary-item:last-child {
	border-bottom: none;
}

.custom-field-summary-item .field-label {
	font-weight: 500;
	color: #555;
	margin-right: 10px;
}

.wc-block-components-product-details__name .custom-field-summary-item .field-value {
	font-weight: 600;
	color: #333;
	background: #e9ecef;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 14px;
}

/* Responsive dla mobile */
@media (max-width: 767px) {
	.custom-fields-summary {
		margin: 15px 0;
		padding: 15px;
	}

	.custom-field-summary-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}
}

.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-details__name {
	font-size: 12px;
	font-weight: 700;
	padding-top: 10px;
}

.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-details__value {
	font-weight: 300;
}

/* ========== WALIDACJA CUSTOM SELECT FIELDS ========== */
.custom-select.validation-error {
	border: 2px solid #dc3545 !important;
	background-color: #fff5f5 !important;
	animation: shake 0.5s ease-in-out;
}

@keyframes shake {
	0%,
	100% {
		transform: translateX(0);
	}
	10%,
	30%,
	50%,
	70%,
	90% {
		transform: translateX(-5px);
	}
	20%,
	40%,
	60%,
	80% {
		transform: translateX(5px);
	}
}

.custom-validation-error {
	background: #f8d7da !important;
	color: #721c24 !important;
	padding: 15px !important;
	margin-bottom: 20px !important;
	border-radius: 5px !important;
	border: 1px solid #f5c6cb !important;
	font-weight: 500;
}

/* Przycisk checkout - usunięto display:none */

.product_meta {
	display: none;
}

.wc-block-components-radio-control__label span {
	display: flex;
	gap: 5px;
	align-items: center;
}

.img.tpay-inline {
	position: relative;
}

header.entry-header {
	font-size: 20px;
	padding-left: 0;
}

.wc-block-components-radio-control__label {
	position: relative;
}

.wc-block-components-radio-control__label .tpay-inline {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.woocommerce-active .site-header .site-branding {
	width: fit-content !important;
}

.site-header {
	padding-top: 0 !important;
}

ul.primary-menu li {
	padding-left: 10px;
}

.site-branding-nav-cart-wrapper {
	padding-bottom: 10px !important;
}

/* Valentine info bar */
#valentine-info-bar {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.info-item {
	padding: 0 15px;
	font-style: italic;
}

.info-separator {
	padding: 0 15px;
	opacity: 0.7;
}

@media (max-width: 768px) {
	#valentine-info-bar {
		font-size: 12px;
	}

	body {
		padding-top: 150px !important;
	}

	.info-item {
		padding: 0 8px;
	}

	.info-separator {
		padding: 0 8px;
	}
}

body {
	padding-top: 30px !important;
}

.site-branding {
	margin: 0 auto;
	max-height: 100px;
}

.site-header .site-branding img {
	max-width: 80px !important;
}

.site-navigation {
	display: none;
}

header {
	padding-bottom: 0 !important;
}

.site-header-cart .count {
	display: none !important;
}

.site-header-cart {
	flex: 1 !important;
}

a.cart-contents {
	display: flex !important;
	justify-content: flex-end !important;
}

.footer-icons {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

#wc-pao-addon-62-0 button.expand-description-btn,
#wc-pao-addon-62-1 fieldset > button.expand-description-btn,
#wc-pao-addon-62-2 fieldset > button.expand-description-btn:first-of-type {
	display: none !important;
}
@media (max-width: 639px) {
	.wc-pao-col1 strong {
		display: flex;
		flex-direction: column !important;
		font-size: 14px !important;
		align-items: flex-start !important;
	}
	.wc-pao-col1 strong #text {
		display: none;
	}
	.home-hero {
		padding-top: 0 !important;
	}
}

#primary-menu {
	display: none !important;
}
