* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'MPLUSRounded1c', Arial, sans-serif;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
color: #e0e0e0;
line-height: 1.6;
}

body {
background: linear-gradient(135deg, #1e1e1e, #282c34);
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 2rem;
max-width: 1280px;
word-wrap: break-word;
overflow-wrap: break-word;
line-height: 1.6;
}

.header-banner {
border: 1px solid #444;
margin-bottom: 2rem;
background-color: #1c1c1c;
width: 100%;
text-align: center;
font-size: 1.5rem;
color: #e0e0e0;
padding: 2rem 0;
}

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

.banner-img {
width: 100%;
}

.header-strip {
background-color: #333;
color: #e0e0e0;
text-align: center;
padding: 0.5rem 0;
font-size: 1rem;
border-bottom: 1px solid #444;
}

.header-strip h1 {
margin: 0;
}

#navbar {
display: flex;
min-height: 3rem;
background-color: #1c1c1c;
align-items: center;
justify-content: space-between;
border: 1px solid #444;
border-top: none;
border-left: none;
position: sticky;
top: 0;
left: 0;
padding: 0.5rem 1rem;
z-index: 100;
}

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

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

#navbar li a:hover {
color: #61dafb;
background-color: #282c34;
border-radius: 5px;
}

#navbar a.active {
color: #282c34;
background-color: #61dafb;
border-radius: 5px;
padding: 0.5rem;
}

#navbar.hidden {
display: none;
}

#info-stripe {
background-color: #222;
color: #e0e0e0;
padding: 1rem;
font-size: 0.9rem;
display: flex;
justify-content: space-between;
align-items: center;
}

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

#info-stripe button:hover {
color: #61dafb;
}

.container {
background-color: #1e1e1e;
max-width: 100%;
margin: 0 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: #282c34;
border-radius: 5px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
}

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

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

.product-info {
padding: 1rem;
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: #e57373;
font-weight: bold;
}

.status-available {
color: #81c784;
font-weight: bold;
}

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

button {
background-color: #61dafb;
color: #1e1e1e;
border: none;
padding: 0.5rem 1rem;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
font-size: 1rem;
}

button:hover {
background-color: #21a1f1;
}

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

.error {
color: #e57373;
}

.filter-sidebar {
position: fixed;
top: 4rem;
left: 0;
z-index: 99;
background-color: #1c1c1c;
padding: 1rem;
box-shadow: 2px 0 5px rgba(0,0,0,0.1);
border-bottom: 1px solid #444;
border-right: 1px solid #444;
}

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

#type-filter {
color: #e0e0e0;
background-color: #333;
border-color: #555;
background-repeat: no-repeat;
background-position: right center;
background-size: 0.8rem;
}

#type-filter:focus {
outline: none;
border-color: #61dafb;
box-shadow: 0 0 5px rgba(97, 218, 251, 0.5);
}

.toggle-cart-btn, .toggle-filter-btn, .navbar-btn {
width: 50px;
height: 50px;
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;
padding: 0;
font-size: 1rem;
background: #282c34;
color: #e0e0e0;
border: none;
cursor: pointer;
z-index: 100;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-cart-btn:hover, .toggle-filter-btn:hover {
background-color: #61dafb;
color: #1e1e1e;
transform: scale(1.1);
}

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

.navbar-btn {
left: 70px;
}

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

.hidden {
display: none;
}

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

.pagination button {
margin: 0 0.5rem;
padding: 0.5rem 1rem;
border: none;
border-radius: 5px;
background: #333;
color: #e0e0e0;
font-size: 1rem;
cursor: pointer;
}

.pagination button.active {
background-color: #61dafb;
color: #1e1e1e;
}

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

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

.modal-content {
background-color: #1e1e1e;
margin: auto;
width: 90%;
max-height: 80%;
max-width: 600px;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
animation: fadeIn 0.3s;
position: relative;
overflow-y: auto;
padding: 2rem;
}

.modal-content button {
margin-top: 1rem;
background: #61dafb;
}

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

.close-button:hover {
color: #61dafb;
}

.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: 1rem;
}

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

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

.modal-product-price {
font-size: 1.5rem;
font-weight: bold;
color: #81c784;
margin-bottom: 1rem;
}

.add-to-cart-modal {
padding: 1rem;
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: #1e1e1e;
padding: 2rem;
border-radius: 10px;
text-align: center;
max-width: 800px;
width: 90%;
box-shadow: 0 8px 12px rgba(0,0,0,0.3);
}

.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: 100%;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

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

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

.cart-ui {
position: fixed;
bottom: 10px;
right: 10px;
width: 320px;
background: #1e1e1e;
border: 1px solid #444;
border-top: none;
border-left: none;
padding: 1rem;
font-size: 1rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.2);
z-index: 100;
}

.cart-ui ul {
display: flex;
flex-wrap: wrap;
gap: 1rem;
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: 40px;
height: 40px;
}

.cart-ui a {
font-size: 1rem;
color: #61dafb;
}

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

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

.cart-ui .remove-from-cart {
top: 0;
background: #e57373;
color: #fff;
padding: 0.5rem;
border-radius: 50%;
cursor: pointer;
width: 30px;
height: 30px;
}

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

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

.checkout-container {
min-width: 320px;
max-width: 600px;
margin: 2rem auto;
background: #1e1e1e;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

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

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

.checkout-summary li {
margin-bottom: 0.5rem;
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: #61dafb;
color: #1e1e1e;
border: none;
padding: 0.5rem 1rem;
border-radius: 8px;
cursor: pointer;
}

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

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

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
border-color: #61dafb;
box-shadow: 0 0 5px rgba(97, 218, 251, 0.5);
outline: none;
}

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

fieldset {
border: none;
padding: 0;
margin-bottom: 1rem;
}

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

.name-row {
border: none;
margin-bottom: 1rem;
}

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

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

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

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

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

.info {
margin: 2rem 0;
padding: 2rem;
background-color: #282c34;
color: #e0e0e0;
line-height: 1.6;
box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.info h2 {
font-size: 1.5rem;
color: #81c784;
margin-bottom: 1rem;
}

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

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

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

footer.bottom-bar {
margin-top: 2rem;
background-color: #1c1c1c;
padding: 1rem;
font-size: 0.9rem;
color: #e0e0e0;
border-top: 1px solid #444;
width: 100%;
bottom: 0;
}

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

.bottom-bar-content a {
color: #61dafb;
margin-left: 1rem;
}

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

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

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

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

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

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