/**
 * Basic layout for "Kupite v kompletu"
 * Barve / border / max širina se prepišejo z inline CSS iz nastavitev.
 */

/* Wrapper sledi content širini teme */
.sbp-bundle-wrapper {
	max-width: 100%;
	margin: 60px auto 0 auto;
	padding: 0 15px;
}

/* Glavni box */
.sbp-bundle-box {
	border: 1px solid #eeeeee;
	padding: 24px;
	border-radius: 10px;
	background: #fafafa;
	color: #444444;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* GRID – levo kartice, desno panel (popust + total + gumb) */
.sbp-bundle-box.sbp-layout-horizontal {
	display: grid;
	grid-template-columns: minmax(0, 3.5fr) minmax(0, 2fr);
	gap: 24px;
	background: #ffffff;
	align-items: stretch;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.sbp-bundle-box.sbp-layout-horizontal > h3,
.sbp-bundle-box.sbp-layout-horizontal > .sbp-bundle-intro {
	grid-column: 1 / -1;
}

.sbp-bundle-box.sbp-layout-horizontal > .sbp-bundle-products-list {
	grid-column: 1;
}

/* desni panel – vertikalno centriran */
.sbp-bundle-box.sbp-layout-horizontal > .sbp-bundle-right-panel {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	text-align: center;
	gap: 8px;
}

.sbp-bundle-box h3 {
	margin-top: 0;
	font-size: 1.2em;
	margin-bottom: 10px;
	color: #111111;
	font-weight: 600;
}

.sbp-bundle-intro {
	margin-top: 0;
	margin-bottom: 6px;
	font-size: 0.95em;
}

.sbp-bundle-discount {
	margin: 0 0 4px;
	font-size: 0.9em;
	font-weight: 500;
	color: #ff2b68;
}

/* total cena kompleta */
.sbp-bundle-total {
	margin: 0 0 10px;
	font-size: 0.95em;
	font-weight: 500;
}

.sbp-bundle-total .sbp-total-label {
	opacity: 0.85;
	margin-right: 4px;
}

.sbp-bundle-total .sbp-total-price {
	font-weight: 700;
	color: #111111;
}

/* seznam kartic */
.sbp-bundle-products-list {
	list-style: none;
	margin: 0 0 16px 0;
	padding: 0;
}

.sbp-layout-horizontal .sbp-bundle-products-list {
	display: flex;
	align-items: stretch;
	gap: 16px;
	margin-top: 4px;
	margin-bottom: 0;
	flex-wrap: nowrap;
	overflow-x: visible;
	justify-content: flex-start;
}

/* kartice – Blocksy-like card */
.sbp-bundle-item,
.sbp-bundle-item-main {
	display: block;
	margin-bottom: 12px;
	border-top: 1px solid #f0f0f0;
	padding-top: 10px;
}

.sbp-layout-horizontal .sbp-bundle-item,
.sbp-layout-horizontal .sbp-bundle-item-main {
	border-top: none;
	padding-top: 0;
	margin-bottom: 0;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.05);
	padding: 22px;
	min-width: 220px;
	max-width: 220px;
	flex: 0 0 auto;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sbp-layout-horizontal .sbp-bundle-item:hover,
.sbp-layout-horizontal .sbp-bundle-item-main:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}

/* header v kartici */
.sbp-bundle-header,
.sbp-bundle-header-main {
	display: flex;
	align-items: center;
	width: 100%;
}

.sbp-layout-horizontal .sbp-bundle-header,
.sbp-layout-horizontal .sbp-bundle-header-main {
	flex-direction: column;
	align-items: flex-start;
}

.sbp-bundle-header input[type="checkbox"] {
	margin-right: 8px;
	margin-left: 2px;
}

.sbp-layout-horizontal .sbp-bundle-header input[type="checkbox"] {
	margin-bottom: 6px;
}

/* 1:1 kvadrat za slike */
.sbp-layout-horizontal .sbp-bundle-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background-color: #f7f7f7;
	position: relative;
	margin-bottom: 18px;
}

.sbp-layout-horizontal .sbp-bundle-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 12px;
	margin: 0;
	transition: transform 0.35s ease;
}

.sbp-layout-horizontal .sbp-bundle-item:hover .sbp-bundle-thumb img,
.sbp-layout-horizontal .sbp-bundle-item-main:hover .sbp-bundle-thumb img {
	transform: scale(1.06);
}

/* vertikalni layout – manjša slika levo */
.sbp-layout-vertical .sbp-bundle-thumb img {
	width: 56px;
	height: auto;
	margin-right: 12px;
	border-radius: 6px;
}

.sbp-bundle-info {
	display: flex;
	flex-direction: column;
	font-size: 0.9em;
}

.sbp-bundle-title,
.sbp-bundle-title a {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #111111;
	margin-bottom: 6px;
}

.sbp-bundle-title a {
	text-decoration: none;
}

.sbp-bundle-title a:hover {
	text-decoration: underline;
	color: #ff2b68;
}

.sbp-bundle-price {
	color: #666;
	font-size: 15px;
	font-weight: 600;
	margin-top: 3px;
	margin-bottom: 10px;
}

/* ATRIBUTI – WRAP pod kartico */
.sbp-bundle-attrs {
	margin-left: 32px;
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
}

.sbp-layout-horizontal .sbp-bundle-attrs {
	margin-left: 0;
	margin-top: 12px;
}

.sbp-bundle-attr-row {
	display: flex;
	flex-direction: column;
	min-width: 160px;
}

.sbp-bundle-attr-row label {
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
}

/* original select – skrito, a ostane v DOM zaradi AJAX-a */
.sbp-bundle-attr-row select.sbp-select-hidden {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* SWATCH GUMBI – Blocksy stil */
.sbp-swatch-group {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sbp-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	padding: 6px 14px;
	font-size: 13px;
	line-height: 1.2;
	border-radius: 999px;
	border: 1px solid #dedede;
	background-color: #ffffff;
	color: #333;
	cursor: pointer;
	transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
	white-space: nowrap;
}

.sbp-swatch:hover {
	border-color: #cfcfcf;
	background-color: #fafafa;
}

.sbp-swatch--selected {
	border-color: #ff2b68;
	background-color: #ff2b68;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
	font-weight: 600;
}

.sbp-swatch--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* plus med karticami */
.sbp-bundle-plus {
	text-align: center;
	margin: 0;
	font-size: 18px;
	align-self: center;
	flex: 0 0 auto;
}

.sbp-bundle-plus .sbp-plus {
	display: inline-flex;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #eeeeee;
	align-items: center;
	justify-content: center;
	background: #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	font-size: 18px;
	color: #444;
}

.sbp-bundle-plus i.fa {
	font-size: 13px;
}

.sbp-layout-vertical .sbp-bundle-plus {
	display: none;
}

/* GUMB Dodaj komplet v košarico */
.sbp-add-bundle-button {
	display: inline-block;
	width: 100%;
	text-align: center;
	padding: 14px 20px;
	background: #ff2b68;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, opacity .2s ease;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	margin-top: 0;
}

.sbp-add-bundle-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
	opacity: .96;
}

.sbp-add-bundle-button:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sbp-bundle-message {
	margin-top: 4px;
	font-size: 0.9em;
	width: 100%;
	text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
	.sbp-bundle-box.sbp-layout-horizontal {
		grid-template-columns: 1fr;
		max-width: 100%;
	}

	.sbp-bundle-box.sbp-layout-horizontal > .sbp-bundle-right-panel {
		grid-column: 1;
		align-self: stretch;
		margin-top: 10px;
	}

	.sbp-layout-horizontal .sbp-bundle-products-list {
		flex-wrap: wrap;
		overflow-x: visible;
	}
}

@media (max-width: 600px) {
	.sbp-bundle-attrs {
		margin-left: 0;
		gap: 10px 0;
	}

	.sbp-bundle-attr-row {
		min-width: 100%;
	}
}
.sbp-bundle-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sbp-price-regular {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.sbp-price-discounted {
    font-weight: 600;
}
