/* ================================================================
KW Omni Deals Component - BEM Structure (CSS)
================================================================ */

.kw-omni-deals {
	margin-top: 25px;
	margin-bottom: 25px;
}

.kw-omni-deals .added_to_cart {
	display: none!important;
}

/* Title Element */
.kw-omni-deals__title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #333;
	text-align: left;
}

@media (max-width: 768px) {
	.kw-omni-deals__title {
		font-size: 1.25rem;
		text-align: center;
	}
}

/* Shipping Section */
.kw-omni-deals__shipping {
	margin-bottom: 1.5rem;
	text-align: center;
}

.kw-omni-deals__shipping-notice {
	padding: 0.75rem 1rem;
	background: #e3f2fd;
	border: 1px solid #2196f3;
	border-radius: 4px;
	color: #1976d2;
	font-weight: 500;
}

/* Modifier: Achieved state */
.kw-omni-deals__shipping-notice--achieved {
	background: #e8f5e8;
	border-color: #4caf50;
	color: #2e7d32;
}

/* Carousel Elements */
.kw-omni-deals__carousel {
	position: relative;
	overflow: hidden;
	margin: 0;
}

.kw-omni-deals__carousel .swiper-wrapper {
	padding: 0;
}


/* Minimum order notice styling */
.kw-omni-deals__minimum-notice {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	text-align: center;
	font-size: 14px;
}

/* Disabled carousel styling */
.kw-omni-deals__carousel--disabled {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.kw-omni-deals__carousel--disabled::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.3);
	z-index: 10;
}

/* Disabled button styling */
.kw-omni-deals__add-btn:disabled,
.kw-omni-deals__add-btn.disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Disabled select styling */
.kw-omni-deals__variation-select:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background-color: #f5f5f5;
}

/* Product card when disabled */
.kw-omni-deals__carousel--disabled .kw-omni-deals__product {
	filter: grayscale(30%);
}

/* For grid layout on larger screens */
@media (min-width: 768px) {
	.kw-omni-deals__carousel .swiper-wrapper {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 1rem;
		transform: none !important;
	}

	.kw-omni-deals__carousel .swiper-slide {
		transform: none !important;
		width: auto !important;
	}
}

.kw-omni-deals__carousel-wrapper {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.kw-omni-deals__slide {
	height: auto;
	padding: 0;
	box-sizing: border-box;
	margin-bottom: 1rem;
}

@media (min-width: 768px) {
	.kw-omni-deals__slide {
		margin-bottom: 0;
	}
}



/* Product Card */
.kw-omni-deals__product {
	background: #fff;
	border-radius: 12px;
	padding: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
	border: 1px solid #f0f0f0;
	position: relative;
}


.kw-omni-deals__product-image {
	flex-shrink: 0;
}

.kw-omni-deals__product-img {
	width: 80px;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}


.kw-omni-deals__product-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: left;
	min-height: 80px;
}

.kw-omni-deals__product-title {
	font-size: 0.95rem;
	margin-bottom: 0;
	color: #333;
	line-height: 1.3;
}


.kw-omni-deals__product-title-wrapper {
	margin-bottom: 0.75rem;
}

.kw-omni-deals__product-sub-title {
    font-weight: 500;
    font-size: 13px;
    color: #868686;
}


.kw-omni-deals__product-price {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
}

.kw-omni-deals__product-price .original-price {
	font-size: 0.9rem;
	color: #999;
	text-decoration: line-through;
	font-weight: 400;
}

.kw-omni-deals__product-price .current-price {
	font-size: 1rem;
	font-weight: 600;
	color: #e74c3c;
}

.kw-omni-deals__product-price .discount-badge {
	background: #e74c3c;
	color: #fff;
	padding: 0.15rem 0.4rem;
	border-radius: 3px;
	font-size: 0.7rem;
	font-weight: 600;
	margin-left: auto;
}

/* WooCommerce price styling */
.kw-omni-deals__product-price del {
	color: #999;
	font-weight: 400;
}

.kw-omni-deals__product-price del .woocommerce-Price-amount {
	font-size: 0.85rem;
}

.kw-omni-deals__product-price ins {
	text-decoration: none;
	font-weight: 600;
	color: #e74c3c;
}

/* Form */
.kw-omni-deals__form {
	margin: 0;
}

/* Add to Cart Button */

.kw-omni-deals__product-price-button-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

.kw-omni-deals__add-btn {
	margin: 0!important;
}

/* Minimum order notice styling */
.kw-omni-deals__minimum-notice {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	text-align: center;
	font-size: 14px;
}

/* Disabled carousel styling */
.kw-omni-deals__carousel--disabled {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.kw-omni-deals__carousel--disabled::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.3);
	z-index: 10;
}

/* Disabled button styling */
.kw-omni-deals__add-btn:disabled,
.kw-omni-deals__add-btn.disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Disabled select styling */
.kw-omni-deals__variation-select:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background-color: #f5f5f5;
}

/* Product card when disabled */
.kw-omni-deals__carousel--disabled .kw-omni-deals__product {
	filter: grayscale(30%);
}

/* Modifier: Loading state */
.kw-omni-deals__add-btn--loading {
	background: #81C784;
	border-color: #81C784;
	cursor: not-allowed;
	pointer-events: none;
}

.kw-omni-deals__add-btn--loading::before {
	content: "";
}

/* Loading: the label stays (transparent) so the width never changes; spinner centred over it. */
.kw-omni-deals__add-btn--loading { position: relative; color: transparent !important; }
.kw-omni-deals__add-btn--loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid transparent;
	border-top-color: #fff;
	border-radius: 50%;
	animation: kw-omni-deals-spin 1s linear infinite;
}

/* Navigation Elements - Mobile Only */
.kw-omni-deals__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50%;
	display: none; /* Hidden by default, only show on mobile */
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s ease;
}

@media (max-width: 767px) {
	.kw-omni-deals__nav {
		display: flex;
	}
}

.kw-omni-deals__nav:hover {
	background: #4CAF50;
	border-color: #4CAF50;
	color: #fff;
}

.kw-omni-deals__nav::after {
	font-size: 14px;
	font-weight: 600;
}

/* Modifier: Previous */
.kw-omni-deals__nav--prev {
	left: 10px;
}

.kw-omni-deals__nav--prev::after {
	content: "‹";
}

/* Modifier: Next */
.kw-omni-deals__nav--next {
	right: 10px;
}

.kw-omni-deals__nav--next::after {
	content: "›";
}

/* Pagination - Mobile Only */
.kw-omni-deals__pagination {
	text-align: center;
}

.kw-omni-deals__pagination .swiper-pagination {
	position: relative;
	top: unset;
}

.kw-omni-deals__pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #ddd;
	border-radius: 50%;
	opacity: 1;
	margin: 0 3px;
	transition: all 0.2s ease;
}

.kw-omni-deals__pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
	background: var(--fs-color-primary);
}


.kw-omni-deals__variation-select {
	width:100%; border:1px solid #ddd; border-radius:4px; font-size:12px; background:#fff;
}
.kw-omni-deals__variation-select:focus {
	outline:none; border-color:#007cba; box-shadow:0 0 0 1px #007cba;
}
.kw-omni-deals__add-btn:disabled { opacity:.6; cursor:not-allowed; }
.kw-omni-deals__product-price del { opacity:.7; margin-right:5px; }
.kw-omni-deals__product-price ins { text-decoration:none; font-weight:700; color:#e74c3c; }
.kw-omni-deals.kw-omni-deals--hidden { display:none !important; }


/* Keyframes for loading animation */
@keyframes kw-omni-deals-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive Design */


@media (max-width: 768px) {
	.kw-omni-deals {
		padding: 0;
		margin: 1rem 0;
	}

	.kw-omni-deals__title {
		text-align: center;
		margin-bottom: 1rem;
	}

	.kw-omni-deals__carousel {
		margin: 0;
	}

	.kw-omni-deals__slide {
		margin-bottom: 1rem;
	}

	.kw-omni-deals__product {
		padding: 1rem;
		flex-direction: row;
		gap: 0.75rem;
	}


	.kw-omni-deals__product-content {
		min-height: 60px;
	}
}

@media (max-width: 480px) {
	.kw-omni-deals__product {
		padding: 0.75rem;
		gap: 0.5rem;
	}

	.kw-omni-deals__add-btn {
		font-size: 0.75rem;
		padding: 0.5rem 0.6rem;
	}

	.kw-omni-deals__product-price .current-price {
		font-size: 0.9rem;
	}

	.kw-omni-deals__product-price .original-price {
		font-size: 0.75rem;
	}


	.kw-omni-deals__product-content {
		min-height: 50px;
	}
}




/* ================================================================
Style 1 (side cart "Posebna ponudba"): compact rows, same family as the
product-page style 2 rows — thumb | title + price | button. 2026-10-05.
================================================================ */
.kw-omni-deals:has(.kw-omni-deals__layout--style1) .kw-omni-deals__title { margin: 0 0 10px; font-size: 16px; font-weight: 700; line-height: 1.3; color: #222; text-align: left; text-transform: none; letter-spacing: 0; }
.kw-omni-deals__layout--style1 { margin-bottom: 8px; }
.kw-omni-deals__carousel-wrapper:has(.kw-omni-deals__layout--style1),
.kw-omni-deals__carousel .swiper-wrapper:has(.kw-omni-deals__layout--style1) { gap: 8px; }

.kw-omni-deals__product--style1 { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 10px; border: 1px solid #e7e7e7; border-radius: 10px; background: #fff; }
.kw-omni-deals__product--style1 .kw-omni-deals__product-image { position: relative; flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #f1f1f1; }
.kw-omni-deals__product--style1 .kw-omni-deals__product-img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; border-radius: 0; }

.kw-omni-deals__product--style1 .kw-omni-deals__product-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; width: 100%; min-width: 0; min-height: 0; }
.kw-omni-deals .kw-omni-deals__product--style1 h3.kw-omni-deals__product-title { grid-column: 1; grid-row: 1; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.3; color: #222; text-transform: none; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kw-omni-deals__product--style1 .kw-omni-deals__variations { grid-column: 1; grid-row: 3; margin-top: 6px; }
.kw-omni-deals__product--style1 .kw-omni-deals__variations.hidden { display: none; }
.kw-omni-deals__product--style1 .kw-omni-deals__product-price-button-wrapper { display: contents; }
.kw-omni-deals__product--style1 .kw-omni-deals__product-price { grid-column: 1; grid-row: 2; margin: 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.kw-omni-deals__product--style1 .kw-omni-deals__product-price .original-price { font-size: 13px; color: #6b6b6b; font-weight: 400; opacity: 1; margin: 0; }
.kw-omni-deals__product--style1 .kw-omni-deals__product-price .current-price { border: 0; padding: 0; font-size: 15px; font-weight: 700; color: #d4007a; text-decoration: none; }
.kw-omni-deals__product--style1 .kw-omni-deals__product-price .price-percentage { order: 3; display: inline; background: none; color: #6b6b6b; padding: 0; margin: 0; font-size: 12px; font-weight: 500; }
.kw-omni-deals__product--style1 .kw-omni-deals__product-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }
.kw-omni-deals__product--style1 .kw-omni-deals__add-btn,
.kw-omni-deals__product--style1 .kw-omni-deals__add-btn.button { grid-column: 2; grid-row: 1 / -1; align-self: center; display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 0; height: 36px; min-height: 0; margin: 0; padding: 0 14px; border: 1.5px solid #1f1f1f; border-radius: 8px; background: #1f1f1f; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; box-shadow: none; white-space: nowrap; }
.kw-omni-deals__product--style1 .kw-omni-deals__add-btn:hover { background: #000; border-color: #000; color: #fff; }
.kw-omni-deals__product--style1 .kw-omni-deals__add-btn--success,
.kw-omni-deals__product--style1 .kw-omni-deals__add-btn--success:disabled,
.kw-omni-deals__product--style1 .kw-omni-deals__add-btn--success:hover { background: #fff; border-color: #e4e4e4; color: #222; opacity: 1; cursor: default; }
.kw-omni-deals__product--style1 .kw-omni-deals__add-btn--loading { background: #1f1f1f; border-color: #1f1f1f; }
@media (max-width: 767px) { .kw-omni-deals__product--style1 .kw-omni-deals__product-image { width: 77px; height: 77px; } }
