* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: sans-serif;
}

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	color: #333;
	line-height: 1.5;
}

body {
	background: conic-gradient(
		from 45deg,
		#222222 0,
		#222222 90deg,
		#262626 90deg,
		#262626 180deg,
		#303030 180deg,
		#303030 270deg,
		#363636 270deg,
		#363636 360deg
	);
	background-size: 1em 1em;
	height: 100vh;
}

body > #container {
	flex: 1;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

#container {
	width: 100%;
	min-width: 320px;
	margin: 0 auto;
	padding: 10px;
	max-width: 1200px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	line-height: 1.6;
}

.header-banner {
	border: 1px solid #ccc;
	margin-bottom: 20px;
	background-color: #fff;
	width: 100%;
	text-align: center;
	font-size: 24px;
	color: #222;
	padding: 20px;
}

.header-banner h2 {
	font-size: 32px;
	font-weight: 600;
}

.banner-img {
	width: 100%;
}

.header-strip {
	background-color: #e0e0e0;
	color: #111;
	text-align: center;
	padding: 10px 0;
	font-size: 16px;
	border-bottom: 1px solid #ccc;
}

.header-strip h1 {
	margin: 0;
}

#navbar {
	display: flex;
	min-height: 60px;
	background-color: #fff;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-top: none;
	border-left: none;
	position: sticky;
	top: 0;
	left: 0;
	padding: 0 20px;
	z-index: 999;
}

#navbar ul {
	display: flex;
	flex-direction: row;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

#navbar li a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
}

#navbar li a:hover {
	color: #007bff;
	background-color: #f0f0f0;
	border-radius: 5px;
}

#navbar a.active {
	color: #fff;
	background-color: #007bff;
	border-radius: 5px;
	padding: 5px 10px;
}

#navbar.hidden {
	display: none;
}

#info-stripe {
	background-color: #333;
	color: #fff;
	padding: 10px 20px;
	font-size: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#info-stripe button {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	padding: 5px 10px;
	margin-left: 10px;
}

#info-stripe button:hover {
	color: #ddd;
}

.container {
	background-color: #fff;
	max-width: 100%;
	margin: 0 auto;
	padding: 20px;
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.product-card {
	background-color: #fff;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s;
}

.product-card:hover {
	transform: scale(1.05);
}

.product-image {
	width: 100%;
	height: 200px;
	background-color: #e8e8e8;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.product-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
}

.product-title {
	width: 100%;
	font-size: 18px;
	margin-bottom: 10px;
	text-align: center;
}

.product-info {
	padding: 10px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}

.product-price {
	order: 1;
}

.status-available,
.status-unavailable,
.status-unknown {
	order: 2;
	white-space: nowrap;
}

.status-unavailable {
	color: #ff4c4c;
	font-weight: bold;
}

.status-available {
	color: #28a745;
	font-weight: bold;
}

.status-unknown {
	color: #6c757d;
	font-style: italic;
}

button {
	background-color: #007bff;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
	font-size: 16px;
}

button:hover {
	background-color: #0056b3;
}

.loading,
.error {
	text-align: center;
	padding: 20px;
	font-size: 18px;
}

.error {
	color: #ff4c4c;
}

.filter-sidebar {
	position: sticky;
	top: 0px;
	left: 0;
	z-index: 998;
	background-color: #dadada;
	padding: 20px;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
	border-bottom: 2px solid #444;
	border-right: 2px solid #444;
}

.filter-sidebar label {
	display: block;
	margin-bottom: 10px;
	font-size: 16px;
	color: #333;
}

#type-filter {
	color: #333;
	background-color: #f5f5f5;
	border-color: #ddd;
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px;
}

#type-filter:focus {
	outline: none;
	border-color: #007bff;
	box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.toggle-cart-btn,
.toggle-filter-btn,
.navbar-btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: fixed;
	top: 10px;
	/* transform: translateX(-50%); */
	padding: 10px;
	font-size: 16px;
	background: #fff;
	color: #333;
	border: 1px solid #ddd;
	/* border-radius: 50%; */
	cursor: pointer;
	z-index: 1000;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle-cart-btn:hover,
.toggle-filter-btn:hover {
	background-color: #60abff;
	color: #fff;
	transform: scale(1.1);
}

/* .toggle-cart-btn:hover img { */
/* } */
/**/
/* .toggle-filter-btn:hover img { */
/* } */

.toggle-filter-btn {
	left: 1%;
	/* border-radius: 50%; */
}

.navbar-btn {
	left: 5%;
	/* border-radius: 50%; */
}

.toggle-cart-btn {
	left: 9%;
	/* border-radius: 50%; */
}

.hidden {
	display: none;
}

.pagination {
	text-align: center;
	margin-top: 20px;
}

.pagination button {
	margin: 0 5px;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background: #fff;
	color: #007bff;
	font-size: 14px;
	cursor: pointer;
}

.pagination button.active {
	background-color: #007bff;
	color: #fff;
}

.pagination button:hover {
	background-color: #f0f0f0;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1050;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	color: #000;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
	padding: 20px;
	overflow: auto;
}

.modal-content {
	background-color: #fff;
	margin: auto;
	width: 100%;
	max-height: 90%;
	max-width: 500px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	animation: fadeIn 0.3s;
	position: relative;
	overflow-y: auto;
	padding: 20px;
}

.modal-content button {
	margin-top: 20px;
	background: #007bff;
}

.close-button {
	position: absolute;
	right: 15px;
	top: 10px;
	color: #333;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
}

.close-button:hover {
	color: #007bff;
}

.modal-body {
	padding: 20px;
}

.modal-product {
	display: flex;
	flex-direction: column;
}

.modal-product-image {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.modal-product-image img {
	max-width: 100%;
	max-height: 800px;
	object-fit: cover;
}

.modal-product-details {
	padding: 10px;
}

.modal-product-details h2 {
	margin-bottom: 10px;
	color: #333;
	font-size: 24px;
}

.modal-product-description {
	margin-bottom: 20px;
	color: #555;
	line-height: 1.6;
}

.modal-product-price {
	font-size: 20px;
	font-weight: bold;
	color: #007bff;
	margin-bottom: 20px;
}

.add-to-cart-modal {
	padding: 10px;
	font-size: 16px;
	width: 100%;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.modal-content.wide {
	background: #fff;
	padding: 20px;
	border-radius: 10px;
	text-align: center;
	max-width: 80%;
	width: 30%;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.modal-images {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.modal-image-block {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.modal-image-block img {
	cursor: pointer;
	max-width: 100px;
	border-radius: 3px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-image-block p {
	margin-top: 5px;
	font-weight: bold;
	font-size: 14px;
}

#close-image-modal {
	margin-top: 20px;
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
}

.cart-ui {
	position: fixed;
	bottom: 0;
	right: 0;
	width: 300px;
	background: #fff;
	border: 1px solid #ddd;
	border-top: none;
	border-left: none;
	padding: 20px;
	font-size: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index: 1000;
}

.cart-ui ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	overflow-x: hidden;
	overflow-y: auto;
	list-style: none;
	scroll-behavior: smooth;
	padding: 0;
}

.cart-ui li {
	margin-bottom: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

.cart-ui img {
	width: 50px;
	height: 50px;
}

.cart-ui a {
	font-size: 14px;
	color: #007bff;
}

.cart-ui h3 {
	text-align: center;
	font-size: 18px;
}

.cart-ui .cart-thumb-btns {
	display: flex;
	flex-direction: column;
	margin: 10px 0;
	font-size: 12px;
	gap: 5px;
}

.cart-ui .remove-from-cart {
	top: 5px;
	background: #ff4c4c;
	color: #fff;
	padding: 5px 10px;
	border-radius: 5px;
	cursor: pointer;
	width: 30px;
	height: 30px;
}

.cart-ui .remove-from-cart:hover {
	background: #c9302c;
}

.cart-ui .total {
	margin-top: 15px;
	font-weight: bold;
	text-align: right;
}

.checkout-container {
	min-width: 300px;
	max-width: 800px;
	margin: 20px auto;
	background: #fff;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.checkout-container h1 {
	text-align: center;
	margin-bottom: 20px;
}

.checkout-summary,
.checkout-form {
	margin-bottom: 20px;
}

.checkout-summary ul {
	list-style: none;
	padding: 0;
}

.checkout-summary li {
	margin-bottom: 10px;
	display: flex;
	justify-content: space-between;
}

.checkout-total {
	font-weight: bold;
	text-align: right;
	margin-top: 20px;
}

.checkout-actions {
	text-align: center;
	margin-top: 30px;
}

.checkout-actions button {
	background: #28a745;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
}

.checkout-actions button:disabled {
	background: #cccccc;
	cursor: not-allowed;
}

input[type="text"],
input[type="email"],
textarea {
	color: #333;
	width: 100%;
	padding: 10px;
	margin-top: 10px;
	margin-bottom: 20px;
	border: 1px solid #ddd;
	font-size: 14px;
	background-color: #f9f9f9;
	transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
	border-color: #007bff;
	box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
	outline: none;
}

textarea {
	resize: vertical;
	min-height: 100px;
}

fieldset {
	border: 1px solid #ddd;
	padding: 10px;
	margin-bottom: 20px;
}

label {
	display: block;
	margin-top: 5px;
	font-weight: bold;
}

.name-row {
	border: 1px solid #ddd;
	margin-bottom: 20px;
}

.name-inputs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.name-inputs div {
	flex: 1;
	min-width: 120px;
}

.name-inputs label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.name-inputs input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.invoice {
	background-color: #f6f6f6;
	padding: 20px;
	border-radius: 10px;
	margin-top: 30px;
}

.info {
	margin: 20px 0;
	padding: 20px;
	background-color: #e0e0e0;
	color: #333;
	line-height: 1.6;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info h2 {
	font-size: 24px;
	color: #333;
	margin-bottom: 10px;
}

.info h3 {
	font-size: 20px;
	margin-top: 20px;
	color: #333;
}

.info ul {
	list-style: disc;
	padding-left: 20px;
	margin-top: 10px;
}

.info p {
	margin-bottom: 10px;
}

footer.bottom-bar {
	margin-top: 20px;
	background-color: #2c2c2c;
	padding: 20px;
	font-size: 14px;
	color: #777;
	border-top: 1px solid #333;
	width: 100%;
	bottom: 0;
}

.bottom-bar-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.bottom-bar-content a {
	color: #007bff;
	margin-left: 10px;
}

.bottom-bar-content a:hover {
	text-decoration: underline;
}

.footer-table {
	width: 100%;
	color: #aaa;
}

.footer-table td {
	vertical-align: top;
	padding: 10px;
	width: 50%;
}

.footer-table img {
	width: 150px;
}

@media (max-width: 1200px) {
	body {
		flex-direction: row;
		justify-content: flex-start;
		align-items: flex-start;
		padding-left: 0;
	}

	.footer-table td {
		width: 100%;
	}

	.footer-table img {
		display: none;
	}

	.navbar-btn {
		left: 1%;
		top: 5%;
	}

	.toggle-cart-btn {
		left: 1%;
		top: 9%;
	}
}

@media (max-width: 800px) {
	.products-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}

	#header {
		height: auto;
	}
}
