html {
	margin: 0;
	padding: 0;
}
body {
	background-color: #ffffff;
	color: #000000;
	font-family: Arial, Helvetica, sans-serif;
	margin: 0px;
	padding: 0px;
}
body, td, th, input, textarea, select, a {
	font-size: 12px;
}

/* layout */
#container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
	text-align: left;
}
/* header */
#header {
	min-height: 90px;
	margin-bottom: 5px;
	padding-bottom: 6px;
	position: relative;
	z-index: 99;
}
#header #logo {
	position: absolute;
	top: 10px;
	left: 0px;
}

/* Journal3 header logo — force correct display size */
#logo a > img.header-logo {
	height: 75px !important;
	width: auto !important;
	max-height: 75px !important;
	max-width: none !important;
}

#header-actions {
	position: absolute;
	top: 10px;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	text-align: right;
}
#header-actions .contact-links {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
#header-actions .contact-links a {
	color: #0b3e5c;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
}
#header-actions .contact-links a:hover {
	color: #0079c1;
}
#header-actions .catalog-download {
	font-size: 12px;
	padding: 6px 10px;
}

/* content */
#content {
	/*
	margin-bottom: 25px;
	overflow: auto;
	*/
}

#catalog-toolbar {
	position: sticky;
	top: 0;
	z-index: 200;
	background: #fff;
	padding: 10px 0 8px;
	border-bottom: 1px solid #e6eef5;
}
.catalog-download {
	background: #0079c1;
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.catalog-download::before {
	content: "PDF";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 18px;
	border-radius: 3px;
	background: #ffffff;
	color: #0079c1;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.4px;
}
.catalog-download:hover {
	background: #006bb3;
}

/*
.item-box { float: left; width: 166px; height: 225px; border: 1px solid #0079c1;
	padding: 5px 10px; margin: 5px 5px; line-height: 15px; position: relative; border-radius: 5px; }
.item-box .prod-image { text-align: center; padding: 0; }
.item-box .prod-name { font-weight: bold; margin-top: 3px; }
.item-box .prod-descr { margin-top: 5px; font-size: 11px; line-height: 11px; font-weight: normal; }
.item-box .prod-options { padding: 4px; font-size: 11px; border: 1px dashed blue; position: relative; margin-top: 10px; }
.item-box .prod-options div { line-height: 11px; }
.item-box .prod-options label { position: absolute; right: 5px; top: -8px; font-weight: bold; background-color: #fff; padding: 0px 6px; }
.item-box .prod-price { background: url("../image/price-label.png") no-repeat center right; color: #fff; width: 70px; height: 35px; font-weight: bold; position: absolute; right: -5px; bottom: 5px; line-height: 28px; padding-right: 5px; text-align: right; }
.item-box .prod-call { background-color: #38b0e3; width: 35px; position: absolute; right: 5px; top: 5px; padding: 3px 2px; color: #fff;
	font-weight: bold; font-size: 10px; text-align: center; border-radius: 5px; border: 2px solid #0079c1; }


.item-box { float: left; width: 273px; height: 113px; border: 1px solid #0079c1; page-break-inside: avoid;
	padding: 5px 5px 5px 10px; margin: 5px 5px; line-height: 15px; position: relative; border-radius: 5px; }
.item-box .prod-image { text-align: center; padding: 0; float: right; }
.item-box .prod-name { font-weight: bold; margin-top: 1px; }
.item-box .prod-descr { margin-top: 5px; font-size: 11px; line-height: 11px; font-weight: normal; padding-right: 5px; }
.item-box .prod-options { padding: 2px 4px 4px 4px; width: 140px; font-size: 11px; border: 1px dashed #dbdbdb; border-radius: 5px; position: relative; margin-top: 10px; }
.item-box .prod-options div { line-height: 11px; }
.item-box .prod-options label { position: absolute; right: 5px; top: -10px; font-weight: bold; background-color: #fff; padding: 0px 6px; font-size: 10px; }
.item-box .prod-price { background: url("../image/price-label.png") no-repeat center right; color: #fff; width: 70px; height: 35px; font-weight: bold; position: absolute; right: -5px; bottom: 5px; line-height: 28px; padding-right: 5px; text-align: right; }
.item-box .prod-call { background-color: #38b0e3; position: absolute; right: 2px; top: 2px; padding: 0px 2px 2px; color: #fff;
	font-weight: bold; font-size: 10px; text-align: center; border-radius: 5px; border: 2px solid #0079c1; }
*/

.item-box { min-height: 113px; border: 1px solid #0079c1; page-break-inside: avoid; clear: both;
	margin: 5px 0px; line-height: 15px; position: relative; border-radius: 5px; }
.item-box .prod-descr { margin: 4px 10px 2px; }
.item-box .prod-image { text-align: center; padding: 0; float: right; margin-left: 10px; }
.item-box .prod-image img { padding: 15px 5px 0 0; }
.item-box .prod-name { font-weight: bold; background-color: #0079c1; padding: 2px 10px 3px; color: #fff; border-radius: 3px 0 5px 0; margin-right: 115px; }
.item-box .prod-sku { margin: 3px 115px 0 10px; font-size: 11px; color: #555; }
.item-box .prod-descr { font-size: 12px; line-height: 16px; font-weight: normal; padding-right: 5px; margin-right: 115px; }
.item-box .prod-descr p { margin: 4px 0; }
.item-box .prod-descr h4 { margin: 8px 0 4px; font-size: 11px; color: #0079c1; letter-spacing: 0.4px; text-transform: uppercase; }
.item-box .prod-descr ul,
.item-box .prod-descr ol { margin: 6px 0 6px 18px; padding: 0; background: none; list-style-position: outside; column-count: 1; column-gap: 0; }
.item-box .prod-descr ol { list-style: decimal; }
.item-box .prod-descr ul ul,
.item-box .prod-descr ul ol,
.item-box .prod-descr ol ul,
.item-box .prod-descr ol ol { margin: 4px 0 4px 18px; }
.item-box .prod-descr li { margin: 3px 0; padding: 0; background: none; line-height: 16px; float: none !important; width: auto !important; clear: both; display: list-item; }
.item-box .prod-descr:after { content: ""; display: block; clear: both; }
.item-box .prod-descr table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 11px; }
.item-box .prod-descr th,
.item-box .prod-descr td { border: 1px solid #d0d7de; padding: 4px 6px; text-align: left; }
.item-box .prod-descr th { background: #f0f4f7; font-weight: bold; }
.item-box .prod-descr-short { display: block; }
.item-box .prod-descr-full { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #ccc; }
.item-box .prod-descr-full.show { display: block; }
.item-box .btn-expand { background: #38b0e3; color: white; border: none; padding: 4px 10px; border-radius: 3px; cursor: pointer; font-size: 11px; margin: 0; }
.item-box .btn-expand:hover { background: #0079c1; }
.item-box .prod-options-wrapper { margin: 6px 115px 10px 10px; clear: both; }
.item-box .prod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.item-box .prod-options-toggle { background: #f0f0f0; border: 1px solid #ccc; padding: 5px 12px; border-radius: 3px; cursor: pointer; font-size: 11px; color: #333; }
.item-box .prod-options-toggle:hover { background: #e0e0e0; }
.item-box .prod-options-toggle .arrow { display: inline-block; margin-left: 5px; transition: transform 0.2s; }
.item-box .prod-options-toggle.open .arrow { transform: rotate(180deg); }
.item-box .prod-options { margin: 6px 0 0; padding-top: 8px; max-width: none; width: auto; font-size: 11px; position: relative; overflow: hidden; max-height: 0; transition: max-height 0.3s ease; background: white; border-radius: 3px; }
.item-box .prod-options.show { max-height: 500px; overflow: auto; padding: 8px; border: 1px solid #ccc; margin-top: 5px; }
.item-box .prod-options .option { line-height: 11px; border: 1px solid #0079c1; margin: 6px 0 0; float: none; border-radius: 3px; }
.item-box .prod-options label { background-color: #0079c1; display: block; padding: 2px 8px 4px 8px; color: white; font-size: 10px; }
.item-box .prod-options .option div { white-space: normal; margin: 2px 0; float: none; border: 1px dashed #dbdbdb; padding: 2px 6px; min-width: 0; text-align: left; }
.item-box .prod-price { background: url("../image/price-label.png") no-repeat center right; color: #fff; width: 70px; height: 35px; font-weight: bold; position: absolute; right: -5px; bottom: 5px; line-height: 28px; padding-right: 5px; text-align: right; }
.item-box .prod-call { background-color: #38b0e3; position: absolute; right: 2px; top: 2px; padding: 0px 2px 2px; color: #fff;
	font-weight: bold; font-size: 10px; text-align: center; border-radius: 5px; border: 2px solid #0079c1; }

.category-index { background: linear-gradient(90deg, #e9f1f8 0%, #d9e7f3 100%); position: relative; page-break-inside: avoid; clear: both; border: 2px solid #0079c1; padding: 12px 16px; margin-top: 22px; border-radius: 12px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }
.category-index img { width: 96px; height: 96px; object-fit: cover; object-position: center; padding: 0; border-radius: 10px; background: #ffffff; display: block; border: 1px solid #c9d7e4; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.category-index h2, .category-index h3 { font-size: 22px; color: #0b5f9e; display: inline; font-weight: 600; letter-spacing: 0.4px; margin: 0; }

.category-index.subcat { background: #f3f7fb; border: 1px solid #c6d7e6; margin: 10px 0 6px 0; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; float: none; text-align: left; }
.category-index.subcat img { width: 48px; height: 48px; border-radius: 8px; margin: 0; }
.category-index.subcat h3 { font-size: 14px; font-weight: 600; color: #0b5f9e; letter-spacing: 0.2px; }

#catalog-ad-page { height: 16cm; width: 100%; float: left; text-align: center; }

#pdf-print-button a { background-image: url("../image/download-catalog.png"); width: 100px; height: 32px; display: block; position: fixed; top: 30px; right: 50px; }

@media print {
	#pdf-print-button { display: none; }
	#catalog-toc-wrapper { display: none; }
	#catalog-search-wrapper { display: none; }
	#catalog-toolbar { display: none; }
}

@media (max-width: 768px) {
	/* Scale logo down to fit beside hamburger menu — overrides the desktop max-width:none rule */
	img.header-logo,
	img.header-logo-alternate {
		max-width: 150px !important;
		height: auto !important;
		max-height: 40px !important;
		width: auto !important;
	}

	#header {
		min-height: 0;
		padding-top: 10px;
	}
	#header #logo {
		position: static;
		margin-bottom: 8px;
	}
	#header-actions {
		position: static;
		align-items: flex-start;
		text-align: left;
	}
	#header-actions .contact-links {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px 12px;
	}
	#catalog-toc ul {
		column-count: 1;
	}
	#catalog-search-wrapper {
		flex-direction: column;
		align-items: stretch;
	}
	#catalog-toolbar-actions {
		margin-left: 0;
		flex-basis: 100%;
		justify-content: flex-start;
	}
	#catalog-search,
	#catalog-sku {
		max-width: 100%;
	}
	.item-box .prod-name,
	.item-box .prod-sku,
	.item-box .prod-descr,
	.item-box .prod-options-wrapper {
		margin-right: 10px;
	}
	.category-index {
		padding: 10px 12px;
		gap: 10px;
	}
	.category-index img {
		width: 72px;
		height: 72px;
	}
	.category-index h2,
	.category-index h3 {
		font-size: 18px;
	}
	.category-index.subcat {
		border-radius: 10px;
	}
}

/* Table of Contents */
#catalog-toc-wrapper {
	background: #f5f7fa;
	border: 2px solid #0079c1;
	border-radius: 8px;
	margin-bottom: 20px;
	overflow: hidden;
}
#catalog-toc-header {
	background: #0079c1;
	color: white;
	padding: 12px 15px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
	font-size: 14px;
}
#catalog-toc-header:hover {
	background: #006bb3;
}
#catalog-toc-toggle {
	font-size: 18px;
	transition: transform 0.3s ease;
}
#catalog-toc-toggle.open {
	transform: rotate(180deg);
}
#catalog-toc {
	padding: 0;
	margin: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.3s ease;
}
#catalog-toc.open {
	max-height: 2000px;
	padding: 15px;
}
#catalog-toc ul {
	list-style: none;
	padding: 0;
	margin: 0;
	column-count: 3;
	column-gap: 20px;
}
#catalog-toc li {
	break-inside: avoid;
	margin-bottom: 5px;
}
#catalog-toc li a {
	color: #0079c1;
	text-decoration: none;
	font-size: 13px;
	display: block;
	padding: 4px 8px;
	border-radius: 3px;
}
#catalog-toc li a:hover {
	background: #e8f4fc;
}
#catalog-toc li.toc-parent > a {
	font-weight: bold;
	font-size: 14px;
	color: #333;
}
#catalog-toc li.toc-child {
	padding-left: 15px;
}
#catalog-toc li.toc-child a {
	font-size: 12px;
}

/* Search Feature */
#catalog-search-wrapper {
	margin-bottom: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
#catalog-toolbar-actions {
	display: none;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
#catalog-toolbar-actions.show {
	display: flex;
}
#catalog-toolbar-actions .catalog-contact {
	color: #0b3e5c;
	text-decoration: none;
	font-weight: 600;
	font-size: 12px;
	padding: 6px 10px;
	border: 1px solid #c6d7e6;
	border-radius: 4px;
	background: #f5f7fa;
	white-space: nowrap;
}
#catalog-toolbar-actions .catalog-contact:hover {
	background: #eaf2f8;
}
#catalog-search,
#catalog-sku {
	padding: 10px 15px;
	font-size: 14px;
	border: 2px solid #0079c1;
	border-radius: 5px;
	outline: none;
}
#catalog-search {
	flex: 1 1 420px;
	max-width: 420px;
}
#catalog-sku {
	flex: 0 0 180px;
	max-width: 220px;
}
#catalog-search:focus,
#catalog-sku:focus {
	border-color: #38b0e3;
	box-shadow: 0 0 5px rgba(56, 176, 227, 0.3);
}
#catalog-search-clear {
	background: #e74c3c;
	color: white;
	border: none;
	padding: 10px 15px;
	border-radius: 5px;
	cursor: pointer;
	display: none;
	font-size: 13px;
}
#catalog-search-clear:hover {
	background: #c0392b;
}
#catalog-sku-clear {
	background: #7f8c8d;
	color: white;
	border: none;
	padding: 10px 12px;
	border-radius: 5px;
	cursor: pointer;
	display: none;
	font-size: 13px;
}
#catalog-sku-clear:hover {
	background: #6c7a7b;
}
#catalog-search-results {
	font-size: 13px;
	color: #666;
	padding: 0;
	flex-basis: auto;
	width: auto;
}
#catalog-search-results:empty {
	display: none;
}
#catalog-search-results:not(:empty) {
	flex-basis: 100%;
	width: 100%;
	padding: 4px 0 0;
}
.search-highlight {
	background-color: #fff3cd;
}
.search-hidden {
	display: none !important;
}
#back-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 40px;
	height: 40px;
	border-radius: 20px;
	border: none;
	background: #0079c1;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	opacity: 0;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
	z-index: 300;
}
#back-to-top.show {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}
#back-to-top:hover {
	background: #006bb3;
}

/* Other CSS Styles */
.clear { clear: both; }
.page-break { page-break-before: always; }

/* footer */ 
#footer {
	clear: both;
	position: relative;
	border-top: 1px solid #DBDEE1;
	border-bottom: 1px solid #DBDEE1;
	background: #F8F8F8;
}
#footer h3 {
	color: #000000;
	font-size: 14px;
	margin-top: 0px;
	margin-bottom: 8px;
}
#footer .column a {
	text-decoration: none;
	color: #000;
}
