/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* Form Validation Styles */
.form-control.is-invalid {
	border-color: #dc3545;
	box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
	border-color: #28a745;
	box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.text-danger {
	color: #dc3545 !important;
	font-size: 0.875em;
	margin-top: 0.25rem;
}

.checkbox-list .text-danger {
	margin-top: 0.5rem;
}

/* Math CAPTCHA Styles */
.math-captcha {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.math-question {
	font-size: 1.2em;
	font-weight: bold;
	color: #2AABE2;
	background: #f8f9fa;
	padding: 8px 12px;
	border-radius: 4px;
	border: 1px solid #dee2e6;
	min-width: 120px;
	text-align: center;
}

/* CAPTCHA Type Selector */
.captcha-type-selector {
	margin-bottom: 15px;
}

.captcha-type-selector .btn-group {
	width: 100%;
}

.captcha-type-selector .btn {
	flex: 1;
}

.captcha-container {
	margin-top: 10px;
}

:root {
	--cnvs-themecolor: #2AABE2;
	--cnvs-themecolor-rgb: 42, 171, 226;
	--cnvs-header-height: 70px;
	--cnvs-sticky-header-height: 56px;
	--cnvs-primary-color: #2AABE2;
	--cnvs-primary-color-rgb: 42, 171, 226;
}

.btn.btn-primary {
	background-color: var(--cnvs-primary-color);
	border-color: var(--cnvs-primary-color);
}

.badge.bg-brand {
	background-color: var(--cnvs-primary-color);
	color: white;
}

#header-wrap #logo img {
	width: auto;
}

.grid-item img {
	width: 100%;
	height: 100%;
	scale: 0.8;
	object-fit: cover;
}

.text-img {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	padding-bottom: 2%;
	color: white;
}

.img-wrapper {
	aspect-ratio: 4 / 3;
	width: 100%;
}

.img-title-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.img-fit {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.footer-logo {
	width: 40%;
	height: auto;
}

.footer-logo.size-100 {
	width: 100%;
	height: auto;
}

.footer-logo.size-50 {
	width: 50%;
	height: auto;
}

.category-img {
	background-size: cover;
	background-position: center 20%;
}

.gradient-overlay {
	background: #000000;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.46) 50%, rgba(0, 0, 0, 0) 100%);
	height: 50%;
	/* text algin bottom, center */
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.footer-widgets-wrap ul li {
	list-style: none;
	margin-bottom: 10px;
}

h1 {
	font-size: 1.3rem;
	color: var(--cnvs-primary-color);
	font-weight: bold;
	margin-bottom: 1rem;
}

h2 {
	font-size: 1.25rem;
	color: var(--cnvs-primary-color);
	font-weight: bold;
	margin-bottom: 1rem;
}

h3 {
	font-size: 1.25rem;
	color: var(--cnvs-primary-color);
	font-weight: bold;
	margin-bottom: 1rem;
}

h4 {
	font-size: 1rem;
}

.color-brand {
	color: var(--cnvs-primary-color);
}

.button-brand {
	background-color: var(--cnvs-primary-color);
	color: white;
}

.btn:focus-visible,
.btn:focus,
.btn:hover {
	background-color: var(--cnvs-primary-color);
	color: white;
}

.btn-check:checked+.btn,
:not(.btn-check)+.btn:active,
.btn:first-child:active,
.btn.active,
.btn.show {
	color: var(--bs-btn-active-color);
	background-color: var(--bs-btn-active-bg);
	border-color: var(--bs-btn-active-border-color);
}

.category-grad {
	background: linear-gradient(to top, rgba(150, 177, 209, 0.1) 0%, rgba(228, 243, 247, 0.7) 70%);
}

.card-title {
	text-align: center;
	font-weight: bold;
	font-size: 1.2rem;
	margin-top: 0px;
}

.card-subtitle {
	text-align: center;
	color: #555;
	margin-bottom: 30px;
}

.category-title {
	text-align: center;
	font-weight: bold;
	font-size: 2rem;
	margin-top: 20px;
}

.category-subtitle {
	text-align: center;
	color: #555;
	margin-bottom: 30px;
}

.card {
	border: none;
	border-radius: 15px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s;
}

.card:hover {
	transform: translateY(-5px);
}

.custom-card {
	border: none;
	border-radius: 20px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	padding: 16px 0 0 0;
	background: #fff;
	margin-bottom: 24px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.card-inner-frame {
	border-radius: 16px;
	padding: 10px 0;
	margin: 0 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.card-inner-frame img {
	max-width: 100%;
	max-height: auto;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.card-body {
	flex: 1 1 auto;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.card-category-frame {
	border-radius: 16px;
	margin: 0 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex-wrap: nowrap;
	/* Prevent wrapping */
	min-height: 220px;
}

.card-category-img {
	max-width: 30%;
	min-width: 80px;
	height: auto;
	object-fit: contain;
	display: block;
}


.search-container {
	background-color: white;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transition: all 0.3s ease;
	width: 50%;
	position: relative;
	z-index: 2;
}

.search-container:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.search-input {
	border: none;
	background: transparent;
	padding-left: 20px;
	font-size: 1rem;
	height: 50px;
}

.search-input:focus {
	box-shadow: none;
	outline: none;
}

.btn-search {
	background-color: #007bff;
	color: white;
	border-radius: 50px;
	padding: 10px 20px;
	border: none;
	transition: all 0.3s ease;
}

.btn-search:hover {
	background-color: #0056b3;
	transform: scale(1.05);
}

.search-icon {
	color: #6c757d;
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
}

.search-results {
	position: absolute;
	top: 49px;
	left: 0;
	width: 100%;
	height: auto;
	background-color: white;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	z-index: 1;
	max-height: 300px;
	overflow-y: auto;
	display: none;
}

.search-list {
	display: flex;
	flex-direction: column;
}

.search-item {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #efefef;
	padding: 3px;
}

.search-list a {
	text-decoration: none;
	color: black;
}

.search-list a:hover {
	color: var(--cnvs-primary-color);
}

.search-item:hover {
	background-color: #f4f4f4;
}

.search-item-title {
	font-size: 1rem;
}

.search-item img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	margin-right: 6px;
}

.search-item-category {
	font-size: 0.8rem;
	color: #666;
}

@media (max-width: 768px) {
	.search-container {
		width: 100%;
	}
}

#top-bar a,
.bottom-links a {
	color: var(--cnvs-link-hover-color);
}

#top-bar a:hover,
.bottom-links a:hover {
	color: var(--cnvs-link-color);
}

#copyrights {
	position: relative !important;
	padding-top: 0.5rem !important;
	padding-bottom: 1rem !important;
}

.category-card {
	padding-left: 8px;
	padding-right: 8px;
}

.category-card a,
.product-card a {
	text-decoration: none;
	color: black;
}

.category-card a:hover,
.product-card a:hover {
	color: var(--cnvs-primary-color);
}

.category-card img {
	border: 8px solid #fff;
}

.categoty-title {
	font-size: 1.4rem;
	font-weight: bold;
}

h5.card-title {
	font-size: 1.2rem;
	font-weight: 500 !important;
	display: block;
}

.card-subtitle a {
	color: #555;
}

.btn.btn-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	display: none;
}

.search-container.searching {
	/* box bottom radius 0px */
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;
}

.page-content-text h3 {
	color: var(--cnvs-primary-color);
	font-weight: bold;
	/* bold */
}

.container.text-pages {
	padding-top: 20px;
	margin-top: 20px;

	ul {
		li {
			margin-left: 34px;
		}
	}

	p {
		margin-bottom: 10px;
	}
}


/* media screen uz mob ierīces */

.content-wrap {
	padding: 2rem 0;
}

@media (max-width: 768px) {

	#top-bar {
		.col-md-auto {
			margin-top: 6px;
		}
	}

	.widget {
		p {
			margin-bottom: 1rem;
		}
	}

	p,
	li {
		font-size: 1rem;
	}

	.breadcrumb {
		display: none;
	}
}



.muted {
	color: var(--muted);
}

.list {
	padding-left: 1.25rem
}

.meta {
	font-size: .9rem
}

.widget {
	margin-top: 1rem;

	p {
		margin-bottom: 0.8rem;
		line-height: 1.3 !important;
	}

	line-height: 1.3 !important;
}

p,
li {
	font-size: 1rem;
}

#productModalForm {
	margin: 0px !important;
}

.content-wrap {
	.container {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}

.br-0 {
	border-radius: 0px !important;
}