* {
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: #fdfaf6;
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 16px;
max-width: 1440px;
word-wrap: break-word;
overflow-wrap: break-word;
line-height: 1.6;
}

.header-banner {
border: none;
margin-bottom: 1rem;
background-color: rgba(255, 255, 255, 0.8);
width: 100%;
text-align: center;
font-size: 1.5rem;
color: #0a0a0a;
padding: 1rem 0;
}

.header-banner h2 {
font-size: 2rem;
font-weight: 700;
}

.banner-img {
width: 100%;
}

.header-strip {
background-color: #f8d7da;
color: #721c24;
text-align: center;
padding: 8px 16px;
font-size: 1.1rem;
border-bottom: 1px solid #f5c6cb;
}

.header-strip h1 {
margin: 0;
}

#navbar {
display: flex;
min-height: 60px;
background-color: #f9f9fb;
align-items: center;
justify-content: center;
border: 1px solid #e1e1e1;
border-top: none;
border-left: none;
position: sticky;
top: 0;
left: 0;
padding: 8px 16px;
z-index: 10;
}

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

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

#navbar li a:hover {
color: #003e7a;
background-color: #e2e6ea;
border-radius: 8px;
}

#navbar a.active {
color: #fff;
background-color: #0056b3;
border-radius: 8px;
padding: 4px 8px;
}

#navbar.hidden {
display: none;
}

#info-stripe {
background-color: #fff3cd;
color: #856404;
padding: 10px 20px;
font-size: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}

#info-stripe button {
background: none;
border: none;
color: #856404;
font-size: 1.2rem;
cursor: pointer;
padding: 0;
margin-left: 10px;
}

#info-stripe button:hover {
color: #5a3d00;
}

.container {
background-color: #ffffff;
max-width: 1280px;
margin: auto;
padding: 20px;
}

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

.product-card {
background-color: #f7f7f7;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease-in-out;
}

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

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

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

.product-title {
width: 100%;
font-size: 1.2rem;
margin-bottom: 8px;
text-align: center;
}

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

.product-price {
order: 1;
}

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

.status-unavailable {
color: #dc3545;
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: 8px 16px;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
font-size: 1rem;
}

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

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

.error {
color: #dc3545;
}

.filter-sidebar {
position: sticky;
top: 60px;
left: 0;
z-index: 1;
background-color: #f8f9fa;
padding: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
border-bottom: 1px solid #e1e1e1;
border-right: 1px solid #e1e1e1;
}

.filter-sidebar label {
display: block;
margin-bottom: 8px;
font-size: 1rem;
color: #333;
}

#type-filter {
color: #333;
background-color: #fff;
border-color: #ced4da;
background-repeat: no-repeat;
background-position: right 0.75rem center;
background-size: 8px 10px;
}

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

.toggle-cart-btn, .toggle-filter-btn, .navbar-btn {
width: 48px;
height: 48px;
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: 16px;
padding: 8px;
font-size: 18px;
background: #fff;
color: #007bff;
border: 1px solid #edeef0;
cursor: pointer;
z-index: 2;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

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

.navbar-btn {
left: 72px;
}

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

.hidden {
display: none;
}

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

.pagination button {
margin: 0 4px;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
background: #f8f9fa;
color: #007bff;
font-size: 1rem;
cursor: pointer;
}

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

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

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

.modal-content {
background-color: #fff;
margin: 32px auto;
width: 80%;
max-height: 90%;
max-width: 600px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
animation: fadeIn 0.3s ease-in-out;
position: relative;
overflow-y: auto;
padding: 20px;
}

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

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

.close-button:hover {
color: #0056b3;
}

.modal-body {
padding: 20px;
}

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

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

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

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

.modal-product-details h2 {
margin-bottom: 16px;
color: #333;
font-size: 1.5rem;
}

.modal-product-description {
margin-bottom: 16px;
color: #666;
line-height: 1.5;
}

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

.add-to-cart-modal {
padding: 12px;
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: 999;
}

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

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

.modal-image-block p {
margin-top: 8px;
font-weight: 500;
font-size: 1rem;
}

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

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

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

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

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

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

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

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

.cart-ui .remove-from-cart {
top: 0;
background: #dc3545;
color: #fff;
padding: 4px 8px;
border-radius: 4px;
cursor: pointer;
width: 24px;
height: 24px;
}

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

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

.checkout-container {
min-width: 320px;
max-width: 800px;
margin: auto;
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 8px 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: 8px;
display: flex;
justify-content: space-between;
}

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

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

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

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

input[type="text"], input[type="email"], textarea {
color: #495057;
width: 100%;
padding: 8px;
margin-top: 8px;
margin-bottom: 16px;
border: 1px solid #ced4da;
font-size: 1rem;
background-color: #fff;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
border-color: #80bdff;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
outline: none;
}

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

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

label {
display: block;
margin-top: 8px;
font-weight: 500;
}

.name-row {
border: none;
margin-bottom: 16px;
}

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

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

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

.name-inputs input {
width: 100%;
padding: 8px;
border: 1px solid #ced4da;
border-radius: 4px;
}

.invoice {
background-color: #fff;
padding: 16px;
border-radius: 8px;
margin-top: 20px;
}

.info {
margin: 20px 0;
padding: 16px;
background-color: #f8f9fa;
color: #333;
line-height: 1.6;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info h2 {
font-size: 1.8rem;
color: #333;
margin-bottom: 12px;
}

.info h3 {
font-size: 1.5rem;
margin-top: 16px;
color: #007bff;
}

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

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

footer.bottom-bar {
margin-top: 40px;
background-color: #f1f3f5;
padding: 20px;
font-size: 1rem;
color: #333;
border-top: 1px solid #e1e1e1;
width: 100%;
bottom: 0;
}

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

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

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

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

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

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

@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: 16px;
top: 80px;
}
max_width__1200px___.toggle-cart-btn {
left: 72px;
top: 80px;
}
max_width__800px___.products-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
max_width__800px___#header {
height: 80px;
}

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