/* Theme 2. Every rule starts with #theme2 so it wins over styles/style.css and its media queries. */
#theme2 {
	--navy: #0b2a55;
	--navy2: #123f7c;
	--red: #e31e24;
	--red2: #c2151b;
	--light: #eef4fb;
	--line: #dbe4f0;
	--text: #0f2747;
	background-color: #fff;
	color: var(--text);
}
#theme2 #bg,
#theme2 footer {
	min-width: 0;
	max-width: none;
	border: 0;
}
#theme2 #bg {
	padding-bottom: 0;
	/* base blocks (brand slider etc.) assume the old 470px minimum width */
	overflow-x: hidden;
}
#theme2 .wrap,
#theme2 #wrapb {
	max-width: 1600px;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}
#theme2 h1,
#theme2 h2,
#theme2 h3 {
	color: var(--text);
}
#theme2 .btna,
#theme2 .btnb,
#theme2 .t2-btn {
	background-color: var(--red);
}
#theme2 .btna:hover,
#theme2 .btnb:hover,
#theme2 .t2-btn:hover {
	background-color: var(--red2);
}
#theme2 .t2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	padding: 13px 26px;
	color: #fff;
	font: 600 15px Montserrat, Open Sans, arial;
	border-radius: 6px;
	text-decoration: none;
}

/* top bar ------------------------------------------------------------------*/
#theme2 .t2-top {
	background-color: var(--navy);
	color: #fff;
	font-size: 13px;
}
#theme2 .t2-top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 36px;
}
#theme2 .t2-top a {
	color: #fff;
	text-decoration: none;
}
#theme2 .t2-top i {
	margin-right: 8px;
}
#theme2 .t2-top small {
	margin-left: 14px;
	color: #b9c8de;
	font-size: 12px;
}
#theme2 #languages {
	display: block;
	position: static;
	float: none;
	margin: 0;
	color: #6f86a8;
	text-transform: uppercase;
}
#theme2 #languages a.current {
	font-weight: bold;
}

/* header -------------------------------------------------------------------*/
#theme2 header {
	height: auto;
	background-color: #fff;
}
#theme2 header .wrap {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-top: 14px;
	padding-bottom: 14px;
}
#theme2 #logo {
	position: static;
	flex: none;
	/* width follows the logo file's proportions */
	width: auto;
	height: 68px;
	aspect-ratio: 660 / 253;
	background: url("images/logo.png") left center / contain no-repeat;
}
#theme2 form.t2-search {
	display: flex;
	flex: 1;
	float: none;
	width: auto;
	margin: 0;
}
#theme2 form.t2-search input[type="text"] {
	flex: 1;
	float: none;
	min-width: 0;
	width: auto;
	height: 46px;
	box-sizing: border-box;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-right: 0;
	border-radius: 6px 0 0 6px;
	background-color: #f5f8fc;
	color: var(--text);
	font-size: 15px;
}
#theme2 form.t2-search input[type="text"]:focus {
	outline: 2px solid var(--navy2);
	outline-offset: -2px;
}
#theme2 form.t2-search button {
	flex: none;
	width: 58px;
	border: 0;
	border-radius: 0 6px 6px 0;
	background-color: var(--red);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}
#theme2 form.t2-search button:hover {
	background-color: var(--red2);
}
#theme2 .t2-icons {
	position: relative;
	display: flex;
	align-items: center;
	gap: 26px;
	flex: none;
}
#theme2 #ienakt,
#theme2 #favorite,
#theme2 #grozs {
	position: relative;
	top: auto;
	right: auto;
	display: block;
	height: auto;
	min-height: 34px;
	padding: 0 0 0 36px;
	background: none;
	color: var(--text);
	font-size: 13px;
	line-height: 17px;
	white-space: nowrap;
}
#theme2 #ienakt::before,
#theme2 #favorite::before,
#theme2 #grozs::before {
	content: "\f007";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	font: 400 24px "Font Awesome 6 Free";
}
#theme2 #favorite::before {
	content: "\f004";
}
#theme2 #grozs::before {
	content: "\f07a";
	font-weight: 900;
	font-size: 22px;
}
#theme2 #grozs_cnt,
#theme2 #favorite span {
	background-color: var(--red);
}
#theme2 #groza_saturs,
#theme2 #ienakt_saturs {
	/* jscripts.js writes inline top/left/right taken from the old absolute header layout */
	top: 100% !important;
	margin-top: 0;
}
#theme2 #ienakt_saturs {
	left: 0 !important;
}
#theme2 #groza_saturs {
	left: auto !important;
	right: 0 !important;
	/* rows inside are a fixed 350px; 370px with border-box leaves exactly that after the 10px padding */
	width: 370px;
	max-width: calc(100vw - 32px);
	box-sizing: border-box;
}
#theme2 #responsive_menu {
	display: none;
	position: static;
	width: auto;
	color: var(--navy);
	font-size: 9px;
}

/* main menu ----------------------------------------------------------------*/
#theme2 .t2-nav {
	position: relative;
	z-index: 100;
	background-color: #fff;
	border-bottom: 1px solid var(--line);
}
#theme2 .t2-nav > ul {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 auto;
	padding-top: 0;
	padding-bottom: 8px;
}
#theme2 .t2-nav li {
	position: relative;
	list-style: none;
}
#theme2 .t2-nav a {
	display: block;
	padding: 10px 18px;
	border-radius: 6px;
	color: var(--text);
	font: 600 14px Montserrat, Open Sans, arial;
	text-decoration: none;
	white-space: nowrap;
}
#theme2 .t2-nav a:hover,
#theme2 .t2-nav li.current > a {
	color: var(--red);
}
#theme2 .t2-nav .t2-catalog > a {
	margin-right: 10px;
	background-color: var(--navy);
	color: #fff;
}
#theme2 .t2-catalog > a i:first-child {
	margin-right: 12px;
}
#theme2 .t2-catalog > a i:last-child {
	margin-left: 10px;
	font-size: 10px;
}
#theme2 .t2-catalog ul {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 270px;
	margin: 0;
	padding: 8px 0;
	background-color: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(11, 42, 85, .15);
}
#theme2 .t2-catalog:hover ul,
#theme2 .t2-catalog:focus-within ul {
	display: block;
}
#theme2 .t2-catalog ul a {
	padding: 9px 18px;
	border-radius: 0;
	font-weight: 400;
}
#theme2 .t2-catalog ul a:hover {
	background-color: var(--light);
}

/* home: hero ---------------------------------------------------------------*/
#theme2 .t2-hero {
	overflow: hidden;
	/* same navy as the background of images/hero.jpg, so the photo has no visible edge */
	background: linear-gradient(#00295a, #002655);
	color: #fff;
}
#theme2 .t2-hero .wrap > div {
	position: relative;
	z-index: 1;
}
#theme2 .t2-hero .wrap > div:first-child {
	/* keeps the headline clear of the photo */
	flex: 0 1 440px;
}
#theme2 .t2-hero .wrap > .t2-hero-img {
	/* the whole photo, scaled to fit between the text and the search box and standing on the bottom edge */
	position: absolute;
	z-index: 0;
	top: 0;
	bottom: 0;
	left: 300px;
	right: 430px;
	background: right bottom / contain no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 96%, transparent);
}
#theme2 .t2-hero .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-top: 36px;
	padding-bottom: 36px;
}
#theme2 .t2-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.1;
}
#theme2 .t2-hero p {
	max-width: 420px;
	margin: 14px 0 24px;
	color: #dbe7f7;
	font-size: 18px;
	line-height: 1.4;
}
#theme2 .t2-finder {
	flex: none;
	width: 400px;
	max-width: 100%;
	box-sizing: border-box;
	padding: 22px;
	background-color: #fff;
	border-radius: 10px;
	color: var(--text);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
#theme2 .t2-finder h2 {
	margin: 0 0 14px;
	font-size: 16px;
}
#theme2 .t2-finder .t2-btn {
	width: 100%;
	margin-top: 12px;
}
#theme2 .t2-note {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	font-size: 12px;
	line-height: 1.4;
}
#theme2 .t2-note i {
	color: #2f8fe8;
	font-size: 26px;
}
#theme2 .t2-note b {
	display: block;
	font-size: 13px;
}

/* home: content blocks from the block editor --------------------------------*/
#theme2 .homepage main {
	padding: 0;
}
#theme2 .homepage #wrap_content {
	/* flow-root, not the base overflow:hidden, which would clip the full-width strip below */
	display: flow-root;
	overflow: visible;
	padding-bottom: 10px;
}
/* benefits strip: background runs to both screen edges, content stays in the page width */
#theme2 .homepage ul.fixed:has(> .feature) {
	background-color: var(--light);
	box-shadow: 0 0 0 100vmax var(--light);
	clip-path: inset(0 -100vmax);
}
/* jscripts.js groups blocks of one type into ul.fixed; flex gives a row of them equal heights */
#theme2 .homepage ul.fixed {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}
/* "feature" blocks: benefits strip */
#theme2 .feature {
	box-sizing: border-box;
	margin: 0;
	padding: 16px 12px;
	background-color: var(--light);
}
#theme2 .feature + .feature {
	border-left: 1px solid #c9d8ec;
}
#theme2 .feature .thumb {
	width: 38px;
	height: 38px;
	margin: 0 auto;
	background-size: contain;
}
#theme2 .feature h2 {
	margin: 0 0 3px;
	font-size: 14px;
}
#theme2 .feature p {
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
	text-align: left;
}
/* "home" blocks: promo banners, every second one red */
#theme2 .home {
	display: flex;
	width: 33.33%;
}
#theme2 .home .home_block {
	/* top and bottom colours of the banner photos' own background, so the photos have no visible edge */
	--b1: #083869;
	--b2: #011f47;
	display: flex;
	flex: 1;
	margin: 16px 8px 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(var(--b1), var(--b2));
	overflow: hidden;
}
#theme2 .home + .home .home_block {
	--b1: #cd0220;
	--b2: #a00113;
}
#theme2 .home + .home + .home .home_block {
	--b1: #083869;
	--b2: #011f47;
}
#theme2 .home_block p:empty {
	display: none;
}
#theme2 .home a.thumb {
	display: flex;
	flex: 1;
	height: auto !important;
	min-height: 170px;
	background-color: transparent;
	background-position: right center;
	background-size: auto 100%;
	text-decoration: none;
}
#theme2 .home .htitle,
#theme2 .home:hover .htitle {
	/* in the flow (base: absolute), so a long title makes the banner taller instead of overflowing */
	position: relative;
	display: flex;
	flex: 1;
	height: auto;
	background: none;
}
#theme2 .home .htitle h2 {
	display: grid;
	flex: 1;
	grid-template-columns: auto 1fr;
	align-content: center;
	align-items: center;
	gap: 12px 16px;
	box-sizing: border-box;
	/* right side is kept free for the photo */
	padding: 18px max(38%, 165px) 18px 24px;
	color: #fff;
	font-size: clamp(18px, 1.5vw, 24px);
	line-height: 1.15;
	text-align: left;
	text-transform: none;
}
#theme2 .home .htitle h2 > img {
	width: clamp(44px, 4vw, 62px);
}
#theme2 .home .htitle h2 small {
	grid-column: 1 / -1;
	font-size: clamp(14px, 1vw, 16px);
	font-weight: 400;
}
#theme2 .home .htitle h2 small i {
	margin-left: 6px;
}
/* side menu: the base style draws only the left, right and bottom borders */
#theme2 aside .cats {
	border-top: 1px solid rgb(210, 210, 210);
}
/* list view: price and buy button at the right end, so a row uses the full width */
#theme2 .buy_item_list .price_box_wp {
	float: right;
	margin-top: 26px;
}
/* product module: four cards in a row on desktop */
#theme2 .homepage .pagef {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 12px;
	clear: both;
	margin: 0;
	padding: 10px;
	border: 0;
	border-radius: 10px;
	background-color: #fde7eb;
}
/* home product cards ("grid" type of the product block): photo left, name, price and buy button right */
#theme2 .homepage .buy_item {
	height: auto;
}
#theme2 .homepage .biw,
#theme2 .homepage .biw_hover {
	display: grid;
	grid-template-columns: 36% 1fr;
	grid-template-rows: auto 1fr;
	gap: 8px 14px;
	height: 100%;
	box-sizing: border-box;
	padding: 16px 14px 14px;
	border: 0;
	border-radius: 8px;
}
#theme2 .homepage .biw > a:not(.nosaukums) {
	grid-area: 1 / 1 / 3 / 2;
	align-self: center;
}
#theme2 .homepage .biw img.item {
	height: 110px;
}
#theme2 .homepage .biw a.nosaukums {
	grid-area: 1 / 2;
	height: auto;
	margin: 0;
	color: var(--text);
	font-size: 14px;
	line-height: 1.3;
	text-align: left;
}
#theme2 .homepage .biw .buy_item_bottom {
	grid-area: 2 / 2;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	max-width: none;
	margin: 0;
	padding: 0;
}
#theme2 .homepage .biw .wrap_price {
	height: auto;
	margin: 0;
}
#theme2 .homepage .biw .old_price {
	height: auto;
	font-size: 13px;
}
#theme2 .homepage .biw .num {
	float: none;
	font-size: 20px;
}
/* quantity stays 1 on the home page; the hidden field is still read by the buy script */
#theme2 .homepage .biw .ui.input,
#theme2 .homepage .biw .add_favorite {
	display: none;
}
#theme2 .homepage .biw .buy_button {
	float: none;
}
#theme2 .homepage .biw .submit_buy {
	height: auto;
	padding: 10px 14px 10px 40px;
	border-radius: 6px !important;
	line-height: 18px;
	text-transform: none;
}
#theme2 .buy_items h2 {
	font-size: 22px;
}
#theme2 .buy_item .num,
#theme2 .buy_item_small .num {
	color: var(--red);
}
#theme2 .discount {
	background-color: var(--red);
}

/* home: categories and specialist banner ------------------------------------*/
#theme2 .t2-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 30px 0 12px;
}
#theme2 .t2-head h2 {
	margin: 0;
	font-size: 22px;
}
#theme2 .t2-head a {
	color: var(--navy2);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
#theme2 .t2-head a i {
	margin-left: 8px;
	color: var(--red);
}
#theme2 .t2-cats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}
#theme2 .t2-cats a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-height: 112px;
	padding: 14px 8px;
	background-color: var(--light);
	border-top: 2px solid transparent;
	border-radius: 8px;
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
#theme2 .t2-cats a:hover {
	border-top-color: #2f8fe8;
}
#theme2 .t2-cats img {
	max-width: 100%;
	height: 64px;
	object-fit: contain;
	mix-blend-mode: multiply;
}
#theme2 .t2-cats i {
	color: var(--navy2);
	font-size: 36px;
}
#theme2 .t2-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 32px;
	position: relative;
	min-height: 100px;
	box-sizing: border-box;
	margin: 30px 0;
	padding: 18px 28px;
	background-color: #fde7eb;
	border-radius: 10px;
	overflow: hidden;
}
#theme2 .t2-cta-photo {
	padding-left: calc(max(18%, 220px) + 32px);
}
#theme2 .t2-cta-img {
	/* out of the flex flow, so the photo spans the full height even when the rest wraps to two rows */
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: max(18%, 220px);
	background: 60% 20% / cover no-repeat;
}
#theme2 .t2-cta-text {
	flex: 1 1 380px;
}
#theme2 .t2-cta h2 {
	margin: 0 0 6px;
	font-size: 20px;
}
#theme2 .t2-cta h2::before {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-bottom: 10px;
	background-color: #4eb6f1;
}
#theme2 .t2-cta p {
	margin: 0;
	font-size: 15px;
}
#theme2 .t2-cta-contact,
#theme2 .t2-cta-contact a {
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
#theme2 .t2-cta-contact {
	display: flex;
	align-items: center;
	gap: 14px;
}
#theme2 .t2-cta-contact i {
	color: #2f8fe8;
	font-size: 28px;
}
#theme2 .t2-cta-contact i.fa-phone {
	/* phone sits in an outlined circle, as in the design */
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 2px solid #2f8fe8;
	border-radius: 50%;
	font-size: 16px;
}
#theme2 .t2-cta-contact small {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	font-weight: 400;
}

/* footer -------------------------------------------------------------------*/
#theme2 footer {
	margin-top: 30px;
	background: var(--navy);
	color: #c9d6ea;
}
#theme2 footer a,
#theme2 footer .other-menu li a.tmenu {
	color: #c9d6ea;
}
#theme2 footer h2,
#theme2 footer h3 {
	color: #fff;
}
#theme2 #footer_blocks {
	flex-wrap: wrap;
	gap: 0 24px;
}
#theme2 #footer_blocks > div {
	flex: 1 1 200px;
	width: auto;
}
#theme2 #footer_blocks .kontakts {
	box-sizing: border-box;
}
#theme2 #sidr {
	/* base 450px is wider than a phone and hides the close button */
	width: min(450px, 88vw);
}
#theme2 footer .social i {
	color: #fff;
}
#theme2 #wrap_footer {
	height: auto;
	background-color: #081f40;
	line-height: 44px;
}

/*--------------------------------------------------------------------------*/
@media (max-width: 1200px) {
#theme2 .t2-hero .wrap > .t2-hero-img {
	display: none;
}
#theme2 .feature {
	width: 33.33%;
}
#theme2 .feature:nth-of-type(3n + 1) {
	border-left: 0;
}
/* banners one per row: three across would leave no room for the title beside the photo */
#theme2 .home {
	width: 100%;
}
#theme2 .home .htitle h2 {
	padding-right: 190px;
	font-size: 22px;
}
}

/*--------------------------------------------------------------------------*/
@media (max-width: 1000px) {
#theme2 .t2-cta {
	padding: 22px;
}
#theme2 .t2-cta-img {
	display: none;
}
#theme2 .t2-hide,
#theme2 #languages,
#theme2 .t2-catalog {
	display: none;
}
#theme2 header .wrap {
	flex-wrap: wrap;
	gap: 12px 18px;
}
#theme2 #logo {
	height: 56px;
	margin-right: auto;
}
#theme2 form#searchbox {
	order: 5;
	flex: 1 0 100%;
}
#theme2 #responsive_menu {
	display: block;
}
#theme2 .t2-nav > ul {
	overflow-x: auto;
	scrollbar-width: none;
	padding-top: 6px;
}
#theme2 .t2-nav > ul::-webkit-scrollbar {
	display: none;
}
#theme2 .t2-hero .wrap {
	flex-direction: column;
	align-items: stretch;
}
#theme2 .t2-finder {
	width: auto;
}
#theme2 aside {
	padding: 0;
}
}

/*--------------------------------------------------------------------------*/
@media (max-width: 640px) {
/* phone: no icon and a smaller title, so the text stays clear of the photo */
#theme2 .home .htitle h2 {
	padding-right: 150px;
	font-size: 18px;
}
#theme2 .home .htitle h2 > img {
	display: none;
}
/* icons only: hide the labels, keep the count badges */
#theme2 .t2-icons {
	gap: 14px;
}
#theme2 #ienakt,
#theme2 #favorite,
#theme2 #grozs {
	width: 30px;
	min-height: 40px;
	padding: 0;
	font-size: 0;
}
#theme2 #grozs_cnt,
#theme2 #favorite span {
	position: absolute;
	top: 0;
	left: 16px;
	margin: 0;
	font-size: 11px;
	line-height: 16px;
}
#theme2 #logo {
	height: 48px;
}
#theme2 .feature {
	width: 50%;
}
#theme2 .t2-hero .wrap > div:first-child {
	flex-basis: auto;
}
#theme2 .feature:nth-of-type(n) {
	border-left: 0;
}
#theme2 .feature h2,
#theme2 .feature p {
	text-align: center;
}
#theme2 .t2-hero p {
	font-size: 16px;
}
#theme2 .t2-cta .t2-btn {
	width: 100%;
}
}
