/* TW Prodavnica – stranica proizvoda (Razzi) */

/* Količina + Dodaj u korpu + srce u jednom redu */
.single-product div.product .summary form.cart .product-button-wrapper {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	margin: 0;
}

.single-product div.product .summary form.cart .product-button-wrapper .quantity {
	flex: 0 0 120px;
	width: 120px;
	max-width: 120px;
	height: 52px;
	margin: 0;
}

.single-product div.product .summary form.cart .product-button-wrapper .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	line-height: 52px;
	text-transform: none;
	white-space: nowrap;
}

.single-product div.product .summary form.cart .product-button-wrapper .quantity .razzi-qty-button {
	flex: 0 0 34px;
	width: 34px;
	padding: 0;
	justify-content: center;
}

.single-product div.product .summary form.cart .product-button-wrapper .quantity .qty {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

/* Manji razmak između cene i izbora boje/veličine */
.single-product div.product .summary form.cart {
	margin-top: 24px;
}

/* Lista želja: okrugla ikonica, srce se popuni kada je proizvod na listi */
.single-product div.product .summary form.cart .product-button-wrapper .rz-wishlist-button {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.single-product div.product .summary .rz-wishlist-button .wcboost-wishlist-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 1px solid #d9d9d9;
	border-radius: 50%;
	background: #fff;
	color: #111;
	line-height: 0;
	box-shadow: none;
	transition: border-color 0.2s;
}

.single-product div.product .summary .rz-wishlist-button .wcboost-wishlist-button:hover,
.single-product div.product .summary .rz-wishlist-button .wcboost-wishlist-button:focus-visible {
	border-color: #111;
	background: #fff;
	color: #111;
}

.single-product div.product .summary .rz-wishlist-button .wcboost-wishlist-button__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.single-product div.product .summary .rz-wishlist-button .wcboost-wishlist-button__icon,
.single-product div.product .summary .rz-wishlist-button .wcboost-wishlist-button__icon .razzi-svg-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	line-height: 0;
}

.single-product div.product .summary .rz-wishlist-button .wcboost-wishlist-button svg {
	width: 22px;
	height: 22px;
	fill: none;
	transition: fill 0.2s;
}

.single-product div.product .summary .rz-wishlist-button .wcboost-wishlist-button.added svg {
	fill: currentColor;
}

/* Kratak opis ispod dugmeta za korpu */
.single-product div.product .summary .woocommerce-product-details__short-description {
	margin-top: 28px;
}

@media (max-width: 767px) {
	.single-product div.product .summary form.cart .product-button-wrapper .quantity {
		flex-basis: 104px;
		width: 104px;
		max-width: 104px;
	}
}

/* Mali telefoni (do 400px): mesto za ceo tekst „Dodaj u korpu“ */
@media (max-width: 400px) {
	.single-product div.product .summary form.cart .product-button-wrapper .quantity {
		flex-basis: 96px;
		width: 96px;
		max-width: 96px;
	}

	.single-product div.product .summary form.cart .product-button-wrapper .quantity .razzi-qty-button {
		flex-basis: 30px;
		width: 30px;
	}

	.single-product div.product .summary form.cart .product-button-wrapper .single_add_to_cart_button {
		padding: 0 8px;
	}

	.single-product div.product .summary form.cart .product-button-wrapper .single_add_to_cart_button .razzi-svg-icon {
		display: none;
	}
}

/* Boje: svaka boja je zaseban artikal (klik otvara taj artikal) */
.single-product div.product .summary .tw-boje {
	margin: 24px 0 0;
}

.single-product div.product .summary .tw-boje + form.cart {
	margin-top: 22px;
}

.single-product div.product .summary .tw-boje__label {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 500;
	color: #111;
}

.single-product div.product .summary .tw-boje__label span {
	font-weight: 400;
	color: #6b6b6b;
}

.single-product div.product .summary .tw-boje__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-product div.product .summary .tw-boje__list li {
	margin: 0;
	padding: 0;
}

.single-product div.product .summary .tw-boje__item {
	display: block;
	width: 38px;
	height: 38px;
	padding: 4px;
	border-radius: 50%;
	background: var(--tw-boja) content-box;
	box-shadow: 0 0 0 1px #d9d9d9;
	transition: box-shadow 0.2s;
}

.single-product div.product .summary .tw-boje__item:hover,
.single-product div.product .summary .tw-boje__item:focus-visible {
	box-shadow: 0 0 0 1px #111;
}

.single-product div.product .summary .tw-boje__item.is-current {
	box-shadow: 0 0 0 1.5px #111;
}

/* Tabela veličina – dugme ispod izbora veličine i iskačući prozor */
.tw-size-chart {
	margin: 14px 0 18px;
}

.single-product div.product .summary .tw-size-chart .tw-sc-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid #1f1f1f;
	border-radius: 0;
	background: #fff;
	color: #1f1f1f;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .2px;
	text-transform: none;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}

.single-product div.product .summary .tw-size-chart .tw-sc-button:hover,
.single-product div.product .summary .tw-size-chart .tw-sc-button:focus-visible {
	background: #1f1f1f;
	color: #fff;
}

.tw-size-chart .tw-sc-icon {
	flex: 0 0 auto;
}

html.tw-sc-open {
	overflow: hidden;
}

.tw-sc-dialog {
	width: fit-content;
	max-width: 96vw;
	max-height: 92vh;
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.tw-sc-dialog::backdrop {
	background: rgba(17, 17, 17, .78);
}

.tw-sc-dialog .tw-sc-inner {
	position: relative;
	width: fit-content;
	max-height: 92vh;
	overflow: auto;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
	-webkit-overflow-scrolling: touch;
}

/* Cela tabela staje na ekran: ograničena i širinom i visinom prozora. */
.tw-sc-dialog img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(96vw, 1100px);
	max-height: 92vh;
}

.tw-sc-dialog .tw-sc-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #1f1f1f;
	color: #fff;
	font-size: 26px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
}

.tw-sc-dialog .tw-sc-close:hover {
	background: #000;
}

@media (max-width: 767px) {
	.single-product div.product .summary .tw-size-chart .tw-sc-button {
		width: 100%;
		justify-content: center;
	}


	.tw-sc-dialog .tw-sc-close {
		width: 36px;
		height: 36px;
		font-size: 24px;
		line-height: 36px;
	}
}
