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

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

body {
background: linear-gradient(135deg, #f2f2f2, #e6e6e6);
background-size: cover;
height: 100%;
}

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

main {
flex: 1;
}

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

.header-banner {
border: none;
margin-bottom: 1rem;
background-color: #fff;
width: 100%;
text-align: center;
font-size: 1.2rem;
color: #222;
padding: 2rem 0;
}

.header-banner h2 {
font-size: 1.5rem;
font-weight: bold;
}

.banner-img {
width: 100%;
height: auto;
}

.header-strip {
background-color: #007bff;
color: #fff;
text-align: center;
padding: 0.5rem 0;
font-size: 0.9rem;
border-bottom: 2px solid #0056b3;
}

.header-strip h1 {
margin: 0;
}

#navbar {
display: flex;
min-height: 50px;
background-color: #fff;
align-items: center;
justify-content: space-around;
border: 1px solid #ddd;
border-top: none;
border-left: none;
position: sticky;
top: 0;
left: 0;
padding: 0.5rem;
z-index: 9;
}

#navbar ul {
display: flex;
flex-direction: row;
gap: 1.5rem;
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: 0.5rem 1rem;
}

#navbar.hidden {
display: none;
}

#info-stripe {
background-color: #f9f9f9;
color: #333;
padding: 0.5rem 1rem;
font-size: 0.85rem;
display: flex;
justify-content: space-between;
align-items: center;
}

#info-stripe button {
background: none;
border: none;
color: #007bff;
font-size: 1.2rem;
cursor: pointer;
padding: 0;
margin-left: 0.5rem;
}

#info-stripe button:hover {
color: #0056b3;
}

.container {
background-color: #fff;
max-width: 100%;
margin: auto;
padding: 1rem;
}

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

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

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

.product-image {
width: 100%;
height: 200px;
background-color: #f3f3f3;
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: 1rem;
margin-bottom: 0.5rem;
text-align: center;
}

.product-info {
padding: 0.5rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.product-price {
order: 2;
}

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

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

.status-available {
color: #27ae60;
font-weight: bold;
}

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

button {
background-color: #007bff;
color: #fff;
border: none;
padding: 0.5rem 1rem;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
font-size: 0.95rem;
}

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

.loading, .error {
text-align: center;
padding: 1rem;
font-size: 1.1rem;
}

.error {
color: #e74c3c;
}

.filter-sidebar {
position: absolute;
top: 100px;
left: 0;
z-index: 1;
background-color: #fff;
padding: 1rem;
box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
border-bottom: 1px solid #ddd;
border-right: 1px solid #ddd;
}

.filter-sidebar label {
display: block;
margin-bottom: 0.5rem;
font-size: 0.85rem;
color: #555;
}

#type-filter {
color: #333;
background-color: #fff;
border-color: #ddd;
background-repeat: no-repeat;
background-position: right 0.5rem center;
background-size: auto 1.5em;
}

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

.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: absolute;
top: 10px;
padding: 0;
font-size: 1.5rem;
background: #007bff;
color: #fff;
border: none;
cursor: pointer;
z-index: 10;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-cart-btn:hover, .toggle-filter-btn:hover {
background-color: #0056b3;
color: #fff;
transform: scale(1.05);
}

.toggle-filter-btn {
left: 60px;
}

.navbar-btn {
left: 10px;
}

.toggle-cart-btn {
left: 110px;
}

.hidden {
display: none;
}

.pagination {
text-align: center;
margin-top: 2rem;
}

.pagination button {
margin: 0 0.25rem;
padding: 0.5rem 0.75rem;
border: 1px solid #ddd;
border-radius: 4px;
background: #f9f9f9;
color: #333;
font-size: 0.9rem;
cursor: pointer;
}

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

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

.modal {
display: none;
position: fixed;
z-index: 11;
left: 0;
top: 0;
width: 100%;
height: 100%;
color: #333;
background-color: rgba(0, 0, 0, 0.7);
justify-content: center;
align-items: center;
padding: 1rem;
overflow: auto;
}

.modal-content {
background-color: #fff;
margin: 1rem;
width: 90%;
max-height: 90%;
max-width: 800px;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
animation: fadeIn 0.3s ease;
position: relative;
overflow-y: auto;
padding: 2rem;
}

.modal-content button {
margin-top: 1rem;
background: #007bff;
}

.close-button {
position: absolute;
right: 1rem;
top: 1rem;
color: #333;
font-size: 1.5rem;
font-weight: bold;
cursor: pointer;
}

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

.modal-body {
padding: 1rem;
}

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

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

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

.modal-product-details {
padding: 0.5rem 0;
}

.modal-product-details h2 {
margin-bottom: 0.5rem;
color: #333;
font-size: 1.2rem;
}

.modal-product-description {
margin-bottom: 1rem;
color: #555;
line-height: 1.5;
}

.modal-product-price {
font-size: 1.2rem;
font-weight: bold;
color: #007bff;
margin-bottom: 1rem;
}

.add-to-cart-modal {
padding: 0.5rem 0;
font-size: 1rem;
width: 100%;
}

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

.modal-content.wide {
background: #fff;
padding: 2rem;
border-radius: 8px;
text-align: center;
max-width: 600px;
width: 80%;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-images {
display: flex;
gap: 1rem;
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: 150px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal-image-block p {
margin-top: 0.5rem;
font-weight: 500;
font-size: 0.9rem;
}

#close-image-modal {
margin-top: 1rem;
padding: 0.5rem 1rem;
font-size: 1rem;
cursor: pointer;
}

.cart-ui {
position: fixed;
bottom: 20px;
right: 20px;
width: 250px;
background: #fff;
border: 1px solid #ddd;
border-top: none;
border-left: none;
padding: 1rem;
font-size: 0.85rem;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
z-index: 12;
}

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

.cart-ui li {
margin-bottom: 0.5rem;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.9rem;
}

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

.cart-ui a {
font-size: 0.95rem;
color: #007bff;
}

.cart-ui h3 {
text-align: center;
font-size: 1.1rem;
}

.cart-ui .cart-thumb-btns {
display: flex;
flex-direction: row;
margin: 0.5rem 0;
font-size: 0.9rem;
gap: 0.25rem;
}

.cart-ui .remove-from-cart {
top: 0;
background: #e74c3c;
color: #fff;
padding: 0.25rem 0.5rem;
border-radius: 5px;
cursor: pointer;
width: fit-content;
height: fit-content;
}

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

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

.checkout-container {
min-width: 300px;
max-width: 600px;
margin: auto;
background: #fff;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.checkout-container h1 {
text-align: center;
margin-bottom: 1.5rem;
}

.checkout-summary, .checkout-form {
margin-bottom: 1.5rem;
}

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

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

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

.checkout-actions {
text-align: right;
margin-top: 2rem;
}

.checkout-actions button {
background: #007bff;
color: #fff;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 5px;
cursor: pointer;
}

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

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

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

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

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

label {
display: block;
margin-top: 0.5rem;
font-weight: 500;
}

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

.name-inputs {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}

.name-inputs div {
flex: 1 0 calc(50% - 1rem);
min-width: 100px;
}

.name-inputs label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}

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

.invoice {
background-color: #f8f8f8;
padding: 1rem;
border-radius: 8px;
margin-top: 1rem;
}

.info {
margin: 1rem 0;
padding: 1rem;
background-color: #f9f9f9;
color: #333;
line-height: 1.5;
box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.info h2 {
font-size: 1.4rem;
color: #007bff;
margin-bottom: 1rem;
}

.info h3 {
font-size: 1.2rem;
margin-top: 1rem;
color: #333;
}

.info ul {
list-style: none;
padding-left: 1rem;
margin-top: 0.5rem;
}

.info p {
margin-bottom: 1rem;
}

footer.bottom-bar {
margin-top: 2rem;
background-color: #fff;
padding: 1rem 0;
font-size: 0.85rem;
color: #333;
border-top: 1px solid #ddd;
width: 100%;
bottom: 0;
}

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

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

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

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

.footer-table td {
vertical-align: top;
padding: 0.5rem;
width: 33%;
}

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

@media media {
max_width__1200px___body {
flex-direction: column;
justify-content: center;
align-items: center;
padding-left: 0;
}
max_width__1200px___.footer-table td {
width: 100%;
}
max_width__1200px___.footer-table img {
display: none;
}
max_width__1200px___.navbar-btn {
left: calc(50% - 20px);
top: 15px;
}
max_width__1200px___.toggle-cart-btn {
left: calc(50% - 20px);
top: 65px;
}
max_width__800px___.products-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
max_width__800px___#header {
height: 50vh;
}

.toggle-cart-btn, .toggle-filter-btn, .navbar-btn img {
filter:invert(1) hue-rotate(180deg);
}
}
