/* Brzi pregled (Lumello). Paleta: tamna #2f2a25, zlatna #dc9814, tamna zlatna (tekst) #8a5f0c, krem #f6efe4 */

/* Dugme na kartici: desktop traka na vrhu slike (hover/fokus; dno pokriva Shoptimizer zaglavlje kartice), dodir/uži ekran kružić gore desno */
li.product .woocommerce-image__wrapper { position: relative; }
.itlion-bp { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 6px; background: rgba(246, 239, 228, .94); color: #2f2a25; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(47, 42, 37, .12); opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, background-color .2s, color .2s; }
li.product:hover .itlion-bp, .itlion-bp:focus-visible { opacity: 1; transform: none; }
.itlion-bp:hover { background: #2f2a25; color: #f6efe4; }
.itlion-bp span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.itlion-bp span::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (hover: none), (max-width: 992px) {
	.itlion-bp { opacity: 1; transform: none; left: auto; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; }
	.itlion-bp span { font-size: 0; gap: 0; }
}

/* Modal */
html.bp-lock { overflow: hidden; }
.bp { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; display: none; align-items: center; justify-content: center; color: #2f2a25; }
.bp[open] { display: flex; }
.bp::backdrop { background: rgba(47, 42, 37, .55); }
.bp__panel { position: relative; width: min(940px, 100%); max-height: min(88vh, 760px); display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 24px 64px rgba(47, 42, 37, .3); overflow: hidden; transition: transform .25s cubic-bezier(.22, 1, .36, 1), opacity .25s; }
.bp__panel.is-drag { transition: none; }
.bp__panel:focus { outline: none; }
@starting-style { .bp[open] .bp__panel { opacity: 0; transform: scale(.96); } }
.bp__bar { position: relative; display: flex; align-items: center; justify-content: space-between; flex: none; padding: 8px 10px 8px 24px; border-bottom: 1px solid #eee4d4; }
.bp__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8a5f0c; }
.bp .bp__x { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #2f2a25; cursor: pointer; }
.bp .bp__x:hover { background: #f6efe4; }
.bp__grip { display: none; }
.bp__body { overflow-y: auto; padding: 28px; overscroll-behavior: contain; }
.bp__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }

.bp__track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 8px; background: #f6efe4; }
.bp__track::-webkit-scrollbar { display: none; }
.bp__track li { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.bp__track img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.bp__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bp .bp__thumbs button { width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #f6efe4; cursor: pointer; }
.bp .bp__thumbs button[aria-current="true"] { border-color: #dc9814; }
.bp__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

.bp__naslov { margin: 0 0 8px; font-family: "Roboto Slab", Georgia, serif; font-size: 26px; font-weight: 700; line-height: 1.2; color: #2f2a25; }
.bp__naslov a { color: inherit; text-decoration: none; }
.bp__naslov a:hover { color: #8a5f0c; }
.bp__cena { margin-bottom: 14px; font-size: 20px; font-weight: 600; }
.bp__cena del { font-weight: 400; }
.bp__opis { margin-bottom: 18px; font-size: 15px; line-height: 1.55; color: #4a433c; }
.bp__opis p { margin: 0 0 8px; }

/* Forma za korpu (Woo šablon + CommerceKit kružići) */
.bp form.cart { margin: 0; }
.bp table.variations { width: 100%; margin: 0 0 12px; border: 0; }
.bp table.variations th, .bp table.variations td { display: block; padding: 0; border: 0; background: none; text-align: left; }
.bp table.variations th label { font-weight: 600; font-size: 14px; }
.bp table.variations td { padding-bottom: 12px; }
.bp table.variations select { width: 100%; max-width: 320px; }
.bp .reset_variations { font-size: 13px; }
.bp .cgkit-swatch:disabled { opacity: .35; pointer-events: none; position: relative; }
.bp .cgkit-swatch:disabled::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #2f2a25; transform: rotate(45deg); }
.bp .woocommerce-variation-add-to-cart, .bp form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.bp .quantity { margin: 0; }
/* boje dugmeta i količine nasleđuje od teme (isto kao na strani proizvoda) */
.bp .quantity .qty { width: 72px; height: 52px; text-align: center; }
.bp .single_add_to_cart_button { flex: 1; min-width: 180px; height: 52px; margin: 0; }
.bp .single_add_to_cart_button.loading { opacity: .7; pointer-events: none; }
.bp .woocommerce-variation-price, .bp .woocommerce-variation-availability { margin-bottom: 8px; }
.bp .itlion_nema { margin: 0 0 8px; }
.bp__greska { flex-basis: 100%; margin: 10px 0 0; padding: 10px 14px; border-radius: 6px; background: #fbeee6; color: #a2561f; font-size: 14px; }
.bp__vise { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 11px 22px; border: 2px solid #2f2a25; border-radius: 6px; color: #2f2a25; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.bp__vise:hover { background: #2f2a25; color: #fff; }

.bp__ucitava { display: grid; gap: 14px; }
.bp__ucitava span { display: block; height: 20px; border-radius: 6px; background: linear-gradient(90deg, #f6efe4 25%, #fbf8f2 50%, #f6efe4 75%); background-size: 200% 100%; animation: bp-sjaj 1.2s linear infinite; }
.bp__ucitava span:first-child { height: 280px; }
@keyframes bp-sjaj { to { background-position: -200% 0; } }

/* Mobilni: donji sheet */
@media (max-width: 767px) {
	.bp { padding: 0; align-items: flex-end; }
	.bp__panel { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
	@starting-style { .bp[open] .bp__panel { opacity: 1; transform: translateY(100%); } }
	.bp__bar { padding: 18px 8px 6px 16px; touch-action: none; }
	.bp__grip { display: block; position: absolute; top: 7px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #d9cdb9; }
	.bp__body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
	.bp__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.bp__naslov { font-size: 22px; }
	.bp__thumbs { flex-wrap: nowrap; overflow-x: auto; }
	.bp .bp__thumbs button { flex: none; width: 48px; height: 48px; }
	/* iz karusela bočne korpe: ceo ekran */
	.bp--dodatno .bp__panel { height: 100%; max-height: none; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.bp__panel, .itlion-bp { transition: none; }
	.bp__ucitava span { animation: none; }
}
