* {
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: #F8F8F2;
line-height: 1.5;
}

body {
background: #272822;
background-size: cover;
height: 100vh;
}

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

main {
flex: 1;
}

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

.header-banner {
border: 1px solid #3E3D32;
margin-bottom: 20px;
background-color: #1E1E1E;
width: 100%;
text-align: center;
font-size: 1.2rem;
color: #F92672;
padding: 10px;
}

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

.banner-img {
width: 100%;
}

.header-strip {
background-color: #1E1E1E;
color: #A6E22E;
text-align: center;
padding: 10px;
font-size: 1rem;
border-bottom: 1px solid #3E3D32;
}

.header-strip h1 {
margin: 0;
}

#navbar {
display: flex;
min-height: 50px;
background-color: #3E3D32;
align-items: center;
justify-content: space-around;
border: none;
border-top: none;
border-left: none;
position: sticky;
top: 0;
left: 0;
padding: 10px 0;
z-index: 1001;
}

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

#navbar li a {
text-decoration: none;
color: #F8F8F2;
font-weight: bold;
}

#navbar li a:hover {
color: #FD971F;
background-color: #49483E;
border-radius: 5px;
}

#navbar a.active {
color: #FD971F;
background-color: #49483E;
border-radius: 5px;
padding: 5px 10px;
}

#navbar.hidden {
display: none;
}

#info-stripe {
background-color: #49483E;
color: #F8F8F2;
padding: 10px;
font-size: 0.9rem;
display: flex;
justify-content: space-between;
align-items: center;
}

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

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

.container {
background-color: #1E1E1E;
max-width: 95%;
margin: 0 auto;
padding: 20px;
}

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

.product-card {
background-color: #3E3D32;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: transform 0.3s;
}

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

.product-image {
width: 100%;
height: 150px;
background-color: #272822;
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: 1.1rem;
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: #F92672;
font-weight: bold;
}

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

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

button {
background-color: #A6E22E;
color: #272822;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
font-size: 1rem;
}

button:hover {
background-color: #66D9EF;
}

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

.error {
color: #F92672;
}

.filter-sidebar {
position: fixed;
top: 60px;
left: 0;
z-index: 1000;
background-color: #3E3D32;
padding: 20px;
box-shadow: 2px 0 5px rgba(0,0,0,0.5);
border-bottom: 1px solid #272822;
border-right: 1px solid #272822;
}

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

#type-filter {
color: #272822;
background-color: #F8F8F2;
border-color: #49483E;
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 16px;
}

#type-filter:focus {
outline: none;
border-color: #A6E22E;
box-shadow: 0 0 5px rgba(166,226,46,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;
padding: 10px;
font-size: 1rem;
background: #66D9EF;
color: #272822;
border: none;
cursor: pointer;
z-index: 1001;
box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

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

.navbar-btn {
left: 10px;
}

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

.hidden {
display: none;
}

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

.pagination button {
margin: 0 5px;
padding: 10px 15px;
border: none;
border-radius: 5px;
background: #49483E;
color: #F8F8F2;
font-size: 1rem;
cursor: pointer;
}

.pagination button.active {
background-color: #66D9EF;
color: #272822;
}

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

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

.modal-content {
background-color: #3E3D32;
margin: auto;
width: 80%;
max-height: 80vh;
max-width: 600px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
animation: fadeIn 0.5s;
position: relative;
overflow-y: auto;
padding: 20px;
}

.modal-content button {
margin-top: 10px;
background: #66D9EF;
}

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

.close-button:hover {
color: #A6E22E;
}

.modal-body {
padding: 20px;
}

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

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

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

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

.modal-product-details h2 {
margin-bottom: 10px;
color: #FD971F;
font-size: 1.8rem;
}

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

.modal-product-price {
font-size: 1.5rem;
font-weight: bold;
color: #A6E22E;
margin-bottom: 10px;
}

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

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

.modal-content.wide {
background: #49483E;
padding: 20px;
border-radius: 10px;
text-align: center;
max-width: 800px;
width: 90%;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.modal-images {
display: flex;
gap: 20px;
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: 10px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.4);
}

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

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

.cart-ui {
position: fixed;
bottom: 10px;
right: 10px;
width: 300px;
background: #49483E;
border: 1px solid #3E3D32;
border-top: none;
border-left: none;
padding: 20px;
font-size: 1rem;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
z-index: 1001;
}

.cart-ui ul {
display: flex;
flex-wrap: wrap;
gap: 10px;
overflow-x: auto;
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: 0.9rem;
}

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

.cart-ui a {
font-size: 1rem;
color: #66D9EF;
}

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

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

.cart-ui .remove-from-cart {
top: 0;
background: #F92672;
color: #F8F8F2;
padding: 5px;
border-radius: 5px;
cursor: pointer;
width: 20px;
height: 20px;
}

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

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

.checkout-container {
min-width: 300px;
max-width: 600px;
margin: 0 auto;
background: #3E3D32;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.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: center;
margin-top: 20px;
}

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

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

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

input[type="text"], input[type="email"], textarea {
color: #272822;
width: 100%;
padding: 10px;
margin-top: 10px;
margin-bottom: 10px;
border: 1px solid #49483E;
font-size: 1rem;
background-color: #F8F8F2;
transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
border-color: #A6E22E;
box-shadow: 0 0 5px rgba(166,226,46,0.5);
outline: none;
}

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

fieldset {
border: none;
padding: 0;
margin-bottom: 20px;
}

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

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

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

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

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

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

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

.info {
margin: 20px 0;
padding: 20px;
background-color: #49483E;
color: #F8F8F2;
line-height: 1.6;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.info h2 {
font-size: 1.5rem;
color: #A6E22E;
margin-bottom: 10px;
}

.info h3 {
font-size: 1.2rem;
margin-top: 10px;
color: #FD971F;
}

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

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

footer.bottom-bar {
margin-top: 20px;
background-color: #3E3D32;
padding: 20px;
font-size: 0.9rem;
color: #F8F8F2;
border-top: 1px solid #272822;
width: 100%;
bottom: 0;
}

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

.bottom-bar-content a {
color: #66D9EF;
margin-left: 5px;
}

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

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

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

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

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

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