/*
 * NF-tel catalog theme
 *
 * Component styles for markup in layouts/default.inc.php, pages/*.inc.php,
 * and views/*.inc.php. LiteCart framework primitives remain in framework.css
 * and app.css.
 */

/* Layout */
#content-wrapper {
	margin: 1rem 0.5rem 4rem;
}
.fourteen-forty {
	max-width: 1440px;
}

/* Header and primary navigation
 * Markup: views/box_site_menu.inc.php
 */
#site-menu {
	position: relative;
	z-index: 100;
	background: transparent;
}
#site-menu .navbar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin: 1rem 0 1.25rem;
	padding: 0;
	background: transparent;
	border-radius: 0.75rem;
	box-shadow: 0 14px 34px rgba(16, 47, 85, 0.12);
	overflow: visible;
}
#site-menu .navbar-header {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	display: grid;
	grid-template-columns: minmax(170px, 240px) minmax(260px, 620px) auto;
	align-items: center;
	gap: 1rem;
	width: 100%;
	margin-bottom: 0;
	padding: 1.2rem 1.25rem;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 0.75rem 0.75rem 0 0;
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
}
#site-menu .logotype {
	display: block;
	line-height: 0;
}
#site-menu .logotype img {
	width: auto;
	max-width: 220px;
	max-height: 56px;
	object-fit: contain;
}
#site-menu .logotype-light {
	display: none;
}
#site-menu .navbar-search {
	width: 100%;
	max-width: 620px;
	margin: 0;
}
#site-menu .navbar-search .input-group {
	min-height: 46px;
	background: #f8fafc;
	border: 1px solid #d8e2ee;
	border-radius: 0.55rem;
	box-shadow: none;
}
#site-menu .navbar-search .input-group:focus-within {
	background: #fff;
	border-color: #98acc4;
	box-shadow: 0 0 0 3px rgba(19, 138, 67, 0.12);
}
#site-menu .quick-access {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	margin-left: auto;
	white-space: nowrap;
}
#site-menu .quick-access a,
#site-menu #cart {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	padding: 0.35rem 0.45rem;
	color: #102f55;
	border-radius: 0.45rem;
	line-height: 1.1;
	transition: background-color 120ms ease, color 120ms ease;
}
#site-menu .quick-access a:hover,
#site-menu .quick-access a:focus,
#site-menu #cart:hover,
#site-menu #cart:focus {
	background: #f1f5f9;
	color: #138a43;
	text-decoration: none;
}
#site-menu .navbar-icon {
	font-size: 1.25rem;
}
#site-menu .quick-access small {
	margin-top: 0.15rem;
	font-size: 0.72rem;
}
#cart .badge {
	top: 0;
	right: 0;
	min-width: 1.15rem;
	width: auto;
	padding: 0 0.25rem;
	background: #ef4444;
	box-shadow: none;
	animation: none;
	font-size: 0.66rem;
	line-height: 1.15rem;
}
#site-menu .offcanvas {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	visibility: visible;
	transform: none;
	background: #102f55;
	background-color: #102f55 !important;
	color: #f8fafc;
	border-radius: 0 0 0.75rem 0.75rem;
	overflow: visible;
}
#site-menu .offcanvas-header {
	display: none;
}
#site-menu .offcanvas-body {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	min-height: 3.05rem;
	padding: 0;
	overflow: visible;
}
#site-menu .navbar-nav {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	margin: 0;
	padding: 0;
}
#site-menu .navbar-nav > .nav-item {
	position: relative;
	display: flex;
	align-items: stretch;
}
#site-menu .navbar-nav > .nav-item > .nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 3.05rem;
	padding: 0 1rem;
	margin: 0;
	background: transparent;
	color: #f8fafc;
	border-radius: 0;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
#site-menu .navbar-nav > .nav-item > .nav-link:hover,
#site-menu .navbar-nav > .nav-item > .nav-link:focus,
#site-menu .navbar-nav > .nav-item.open > .nav-link {
	background: #173d6b;
	color: #fff;
}
#site-menu .navbar-nav > .nav-item.dropdown > .nav-link::after {
	content: "";
	display: inline-block;
	width: 0.42rem;
	height: 0.42rem;
	margin-left: 0.12rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	opacity: 0.86;
}
#site-menu .navbar-nav > .nav-item.dropdown > [data-toggle="dropdown"] {
	background-image: none;
	padding-inline-end: 1rem !important;
}
#site-menu .dropdown-menu {
	display: block;
	top: calc(100% + 0.45rem);
	min-width: 15.5rem;
	max-width: min(22rem, calc(100vw - 2rem));
	max-height: min(72vh, 34rem);
	padding: 0.45rem;
	margin: 0;
	background: rgba(255, 255, 255, 0.94);
	border: 0;
	border-radius: 0.7rem;
	box-shadow: 0 14px 34px rgba(16, 47, 85, 0.13);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
	-webkit-backdrop-filter: blur(12px) saturate(130%);
	backdrop-filter: blur(12px) saturate(130%);
	overflow: auto;
}
#site-menu .dropdown-menu.dropdown-menu-end,
#site-menu .navbar-nav > .nav-item:last-child .dropdown-menu {
	left: auto;
	right: 0;
}
#site-menu .dropdown.open > .dropdown-menu,
#site-menu .dropdown:hover > .dropdown-menu,
#site-menu .dropdown:focus-within > .dropdown-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}
#site-menu .dropdown .dropdown-menu::before {
	display: none;
}
#site-menu .dropdown .dropdown-menu li {
	display: block;
	width: 100%;
}
#site-menu .dropdown .dropdown-menu li + li {
	margin-top: 0.15rem;
}
#site-menu .dropdown .dropdown-menu .nav-link,
#site-menu .dropdown .dropdown-menu a {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 2.45rem;
	padding: 0.64rem 0.75rem;
	background: transparent;
	color: #12365e;
	border-radius: 0.5rem;
	font-size: 0.92rem;
	font-weight: 400;
	line-height: 1.25;
	white-space: normal;
}
#site-menu .dropdown .dropdown-menu .nav-link:hover,
#site-menu .dropdown .dropdown-menu .nav-link:focus,
#site-menu .dropdown .dropdown-menu a:hover,
#site-menu .dropdown .dropdown-menu a:focus {
	background: #eef6ff;
	color: #0f7a3a;
	text-decoration: none;
}
#site-menu .account .dropdown-menu {
	min-width: 20rem;
}
#site-menu .account .navbar-form {
	width: auto;
	min-width: 0;
	margin: 0.8rem;
}
#site-menu .account .navbar-form .form-group,
#site-menu .account .navbar-form .input-group {
	width: 100%;
	box-sizing: border-box;
}

/* Cards and section boxes
 * Markup: views/box_*.inc.php and card-based pages
 */
.card,
section.box:not(#box-slides),
#box-category-tree,
#box-categories,
#box-popular-products,
#box-latest-products,
#box-featured-products,
#box-similar-products,
#box-recommended-products {
	background: #fff;
	border: 0;
	border-radius: 0.7rem;
	box-shadow: none;
	overflow: hidden;
}
ul.breadcrumb {
	padding: 0.75rem 1rem;
	background: #fff;
	border: 0;
	border-radius: 0.7rem;
	box-shadow: none;
}
.box > .card-header,
section.box > .card-header,
.card .card-header {
	padding: 1.15rem 1.25rem 0.85rem;
	background: #fff;
	border: 0;
}
.box > .card-body,
section.box > .card-body,
.card .card-body {
	padding: 1.25rem;
	background: #fff;
	border: 0;
}
.card .card-header .card-title {
	color: #0f172a;
	font-weight: 750;
	letter-spacing: -0.025em;
}

/* Category and product listings
 * Markup: views/listing_category.inc.php and views/listing_product.inc.php
 */
.listing {
	gap: 1rem;
	grid-gap: 1rem;
}
.listing .category,
.listing .manufacturer,
.listing .product {
	background: #fff;
	border: 1px solid #e7edf5;
	border-radius: 0.55rem;
	box-shadow: none;
	transform: none;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}
.listing .category .link,
.listing .manufacturer .link,
.listing .product .link {
	border-radius: inherit;
	overflow: hidden;
}
.listing .category .link > img,
.listing .manufacturer .link > img {
	width: 100%;
	padding: 1.1rem 1.1rem 0.35rem;
	background: #fff;
	object-fit: contain;
}
.listing .product .image-wrapper {
	padding: 0.85rem;
	background: #fff;
}
.listing .product .image {
	object-fit: contain;
}
.listing .category .caption,
.listing .manufacturer .caption,
.listing .product .info {
	padding: 0.8rem 0.9rem 1rem;
	background: #fff;
}
.listing .category .caption .name,
.listing .manufacturer .caption .name,
.listing .product .name {
	color: #0f172a;
	font-weight: 700;
	letter-spacing: -0.015em;
}
.listing .category .caption .short-description,
.listing .product .manufacturer-name,
.listing .product .description {
	color: #65758b;
}
.listing .product .price,
.price-wrapper .price {
	color: #138a43;
	font-weight: 800;
}

/* Sidebar and product page */
#box-category-tree {
	background: #fff;
	border: 0;
	border-radius: 0.7rem;
	box-shadow: none;
	overflow: hidden;
}
#box-category-tree > .card-header {
	padding-bottom: 0.65rem;
}
#box-category-tree > .card-body {
	padding-top: 0;
}
#box-manufacturer-links > .card-header {
	padding-bottom: 0.45rem;
}
#box-manufacturer-links > .card-body {
	padding-top: 0.25rem;
}
#box-category-tree .nav a,
.nav.nav-pills a {
	border: 0;
	border-radius: 0.45rem;
	color: #334155;
}
#box-category-tree .nav a:hover,
.nav.nav-pills a:hover {
	background: #eef6ff;
	color: #102f55;
	text-decoration: none;
}
#box-category-tree li.active > a,
.nav.nav-pills li.active > a {
	background: #102f55;
	color: #fff;
}
#box-category-tree .nav a,
#box-manufacturer-links .nav a {
	display: flex;
	align-items: center;
	min-height: 2.55rem;
	padding: 0.48rem 0.68rem;
	font-size: 0.94rem;
	line-height: 1.28;
}
#box-category-tree .category-tree-icon {
	flex: 0 0 1rem;
	width: 1rem;
	text-align: center;
}
#box-category-tree .category-tree-name {
	flex: 1 1 auto;
	min-width: 0;
}
#box-category-tree .category-tree-count {
	flex: 0 0 auto;
	margin-inline-start: 0.65rem;
	font-size: 0.78rem;
	white-space: nowrap;
	opacity: 0.9;
}
#box-category-tree .nav .nav a {
	padding-inline-start: 1.25rem;
}
#box-category-tree .nav .nav .nav a {
	padding-inline-start: 1.75rem;
}
#box-category-tree .nav a:focus-visible,
#box-manufacturer-links .nav a:focus-visible {
	outline: 2px solid #16a34a;
	outline-offset: -2px;
	box-shadow: none;
}
#box-manufacturer-links li.active > a[aria-current="page"] {
	background: #102f55;
	color: #fff;
}
#box-manufacturer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
}
#box-manufacturer > .card-header,
#box-manufacturer > .card-body,
#box-manufacturer > .card-footer {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
}
#box-manufacturer > .manufacturer-sort {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	justify-self: end;
	z-index: 1;
	margin: 0 1.25rem 0 0;
}
#box-manufacturer .listing.products.columns {
	width: 100%;
	min-width: 0;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.category-hero {
	align-items: flex-start;
}
.category-hero-image .thumbnail {
	max-width: 190px;
	margin: 0 0 var(--gutter-y);
	padding: 0.55rem;
}
.category-hero-image .thumbnail img {
	width: 100%;
	object-fit: contain;
}
#box-recently-viewed-products {
	margin-top: 1rem;
	background: transparent;
}
#box-recently-viewed-products .card-header,
#box-recently-viewed-products .card-body {
	padding: 0 0 0.65rem;
	background: transparent;
}
#box-recently-viewed-products .listing {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}
#box-recently-viewed-products .link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0.3rem;
	background: #fff;
	border: 1px solid #e7edf5;
	border-radius: 0.45rem;
}
#box-recently-viewed-products .link img {
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	object-fit: contain;
}
#box-product > .card > .card-body {
	padding-top: 1.25rem;
}
#box-product .main-image.thumbnail {
	padding: 0.85rem;
}
#box-product .thumbnail {
	background: #fff;
	border: 0;
	border-radius: 0.55rem;
}
#box-product .buy_now {
	background: transparent;
	border: 0;
	border-radius: 0;
}
#box-product form[name="buy_now_form"] {
	margin: 1em 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}
#box-product .price-wrapper {
	color: #138a43;
}

/* Homepage and footer */
#content-wrapper:has(.homepage-content) {
	margin-top: 0;
}
.homepage-content #box-slides {
	margin-top: 0;
	margin-bottom: 1.25rem;
}
#box-slides {
	border-radius: 0.75rem;
	overflow: hidden;
}
#content > #box-newsletter-subscribe.card,
#content > #box-newsletter-subscribe.card > .card-body {
	background: #168a47;
	color: #fff;
}
#content > #box-newsletter-subscribe.card h2,
#content > #box-newsletter-subscribe.card p {
	color: inherit;
}
.site-footer {
	margin-top: 3rem;
	background: #0f2749;
	color: var(--footer-text-color);
}
.site-footer a {
	color: #dbeafe;
}
.site-footer a:hover {
	color: #fff;
}
.site-footer .columns h3.title {
	font-weight: 500;
	text-transform: uppercase;
}
#copyright {
	background: var(--copyright-background-color);
	color: var(--copyright-text-color);
}

/* Desktop refinements */
@media (min-width: 768px) {
	.listing .category:hover,
	.listing .manufacturer:hover,
	.listing .product:hover {
		border-color: #d7e2ee;
		box-shadow: 0 10px 22px rgba(15, 35, 65, 0.08);
		transform: none;
	}
}
@media (min-width: 992px) {
	#site-menu .navbar-nav > .dropdown::after {
		content: "";
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		height: 0.55rem;
	}
}
@media (min-width: 992px) and (max-width: 1180px) {
	#site-menu .navbar-header {
		grid-template-columns: minmax(150px, 190px) minmax(220px, 1fr) auto;
		gap: 0.7rem;
		padding-inline: 1rem;
	}
	#site-menu .logotype img {
		max-width: 180px;
	}
	#site-menu .quick-access small {
		display: none;
	}
	#site-menu .quick-access a,
	#site-menu #cart {
		min-width: 38px;
		padding-inline: 0.3rem;
	}
	#site-menu .navbar-nav > .nav-item > .nav-link {
		padding-inline: 0.75rem;
	}
}

/* Tablet and mobile header/offcanvas */
@media (max-width: 991px) {
	body.scrolling-down #site-menu {
		top: 0;
	}
	#site-menu {
		position: sticky;
		top: 0;
		z-index: 999;
		background: #fff;
		box-shadow: 0 8px 24px rgba(16, 47, 85, 0.12);
	}
	#site-menu .fourteen-forty,
	#site-menu .navbar {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0;
		border-radius: 0;
		box-shadow: none;
	}
	#site-menu .navbar-header {
		display: grid;
		grid-template-columns: minmax(110px, auto) 1fr;
		gap: 0.55rem 0.75rem;
		padding: 0.65rem 0.75rem 0.75rem;
		border-radius: 0;
	}
	#site-menu .logotype {
		grid-column: 1;
		grid-row: 1;
	}
	#site-menu .logotype-dark {
		display: block;
	}
	#site-menu .logotype-light {
		display: none;
	}
	#site-menu .logotype img {
		max-width: 155px;
		max-height: 42px;
	}
	#site-menu .quick-access {
		grid-column: 2;
		grid-row: 1;
		gap: 0.2rem;
	}
	#site-menu .quick-access a,
	#site-menu #cart,
	#site-menu .navbar-toggler {
		min-width: 38px;
		min-height: 36px;
		padding: 0.2rem 0.3rem;
	}
	#site-menu .quick-access small {
		font-size: 0.62rem;
	}
	#site-menu .navbar-search {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: none;
	}
	#site-menu .navbar-search .input-group {
		min-height: 38px;
	}
	#site-menu .navbar-toggler {
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background: #fff;
		border: 1px solid #d8e2ee;
		border-radius: 0.45rem;
	}
	#site-menu .navbar-toggler .icon-bar {
		width: 16px;
		height: 2px;
		margin: 2px 0;
		background: #102f55;
	}
	#site-menu .offcanvas {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(86vw, 340px);
		height: 100vh;
		visibility: hidden;
		transform: translateX(-105%);
		border-radius: 0;
		box-shadow: 18px 0 42px rgba(15, 23, 42, 0.28);
		overflow-y: auto;
		transition: transform 160ms ease, visibility 160ms ease;
	}
	#site-menu .offcanvas.show {
		visibility: visible;
		transform: translateX(0);
	}
	#site-menu .offcanvas-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0.85rem 0.9rem;
		background: #0b2444;
		color: #fff;
	}
	#site-menu .offcanvas-body,
	#site-menu .navbar-nav {
		display: block;
		width: 100%;
	}
	#site-menu .offcanvas-body {
		padding: 0.55rem;
	}
	#site-menu .navbar-nav + .navbar-nav {
		margin-top: 0.35rem;
		padding-top: 0.35rem;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}
	#site-menu .navbar-nav > .nav-item,
	#site-menu .navbar-nav > .nav-item > .nav-link {
		display: flex;
		width: 100%;
	}
	#site-menu .navbar-nav > .nav-item.dropdown {
		flex-direction: column;
		align-items: stretch;
	}
	#site-menu .navbar-nav > .nav-item > .nav-link {
		justify-content: flex-start;
		min-height: 42px;
		padding: 0.7rem 0.8rem;
		border-radius: 0.45rem;
	}
	#site-menu .navbar-nav > .dropdown > .nav-link::after {
		position: absolute;
		right: 0.85rem;
		top: 50%;
		transform: translateY(-60%) rotate(45deg);
	}
	#site-menu .dropdown-menu {
		position: static;
		display: none;
		flex: 0 0 auto;
		width: 100%;
		min-width: 0;
		max-width: none;
		max-height: none;
		margin: 0.2rem 0 0.35rem;
		padding: 0.25rem 0 0.25rem 0.45rem;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}
	#site-menu .dropdown.open > .dropdown-menu {
		display: block;
	}
	#site-menu .dropdown .dropdown-menu .nav-link,
	#site-menu .dropdown .dropdown-menu a {
		min-height: 36px;
		padding: 0.55rem 0.75rem;
		background: rgba(255, 255, 255, 0.055);
		color: #e6edf7;
		border-radius: 0.38rem;
		font-size: 0.88rem;
	}
	#site-menu .dropdown .dropdown-menu .nav-link:hover,
	#site-menu .dropdown .dropdown-menu a:hover {
		background: rgba(255, 255, 255, 0.12);
		color: #fff;
	}
	#content-wrapper {
		margin: 0.8rem 0.45rem 3rem;
	}
	#box-manufacturer .listing.products.columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 575px) {
	#site-menu .navbar-header {
		grid-template-columns: auto 1fr;
		padding-inline: 0.6rem;
	}
	#site-menu .logotype img {
		max-width: 132px;
		max-height: 36px;
	}
	#site-menu .quick-access {
		gap: 0.05rem;
	}
	#site-menu .quick-access small {
		display: none;
	}
	#site-menu .quick-access a,
	#site-menu #cart,
	#site-menu .navbar-toggler {
		min-width: 32px;
		padding-inline: 0.18rem;
	}
	.listing.products.columns,
	#box-manufacturer .listing.products.columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
	}
}
@media (max-width: 340px) {
	#site-menu .logotype img {
		max-width: 108px;
	}
}
