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

body {
background: #282828;
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: 0px 16px;
max-width: 1536px;
word-wrap: break-word;
overflow-wrap: break-word;
line-height: 1.6;
}

.header-banner {
border: none;
margin-bottom: 1.5rem;
background-color: #3c3836;
width: 100%;
text-align: center;
font-size: 2rem;
color: #fbf1c7;
padding: 1rem;
}

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

.banner-img {
width: 100%;
}

.header-strip {
background-color: #3c3836;
color: #fbf1c7;
text-align: center;
padding: 0.5rem 0;
font-size: 1.1rem;
border-bottom: 1px solid #665c54;
}

.header-strip h1 {
margin: 0;
}

#navbar {
display: flex;
min-height: 60px;
background-color: #1d2021;
align-items: center;
justify-content: space-around;
border: none;
border-top: 1px solid #665c54;
border-left: none;
position: sticky;
top: 0;
left: 0;
padding: 0 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: #ebdbb2;
font-weight: bold;
}

#navbar li a:hover {
color: #fbf1c7;
background-color: #504945;
border-radius: 4px;
}

#navbar a.active {
color: #282828;
background-color: #b8bb26;
border-radius: 4px;
padding: 0.5rem 1rem;
}

#navbar.hidden {
display: none;
}

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

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

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

.container {
background-color: #282828;
max-width: 1200px;
margin: 2rem auto;
padding: 1rem;
}

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

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

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

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

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

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

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

button {
background-color: #458588;
color: #ebdbb2;
border: none;
padding: 0.75rem 1.25rem;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.2s;
font-size: 1rem;
}

button:hover {
background-color: #689d6a;
}

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

.error {
color: #fb4934;
}

.filter-sidebar {
position: absolute;
top: 100px;
left: 0;
z-index: 1;
background-color: #3c3836;
padding: 0.5rem 1rem;
box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
border-bottom: 1px solid #665c54;
border-right: 1px solid #665c54;
}

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

#type-filter {
color: #ebdbb2;
background-color: #504945;
border-color: #ebdbb2;
background-repeat: no-repeat;
background-position: right center;
background-size: 0.5em;
padding: 0.5rem;
}

#type-filter:focus {
outline: none;
border-color: #b8bb26;
box-shadow: 0 0 0 3px rgba(184, 187, 38, 0.4);
}

.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: 8px;
padding: 0;
font-size: 1.5rem;
background: #504945;
color: #ebdbb2;
border: none;
cursor: pointer;
z-index: 999;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

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

.navbar-btn {
left: 58px;
}

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

.hidden {
display: none;
}

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

.pagination button {
margin: 0 0.25rem;
padding: 0.5rem 1rem;
border: none;
border-radius: 4px;
background: #504945;
color: #ebdbb2;
font-size: 1rem;
cursor: pointer;
}

.pagination button.active {
background-color: #b8bb26;
color: #282828;
}

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

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

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

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

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

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

.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: 250px;
object-fit: cover;
}

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

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

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

.modal-product-price {
font-size: 1.3rem;
font-weight: bold;
color: #b8bb26;
margin-bottom: 1rem;
}

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

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

.modal-content.wide {
background: #3c3836;
padding: 1rem;
border-radius: 8px;
text-align: center;
max-width: 800px;
width: 100%;
box-shadow: 0 4px 8px 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: 100px;
border-radius: 8px;
box-shadow: 0 2px 4px 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.75rem 1.5rem;
font-size: 1rem;
cursor: pointer;
}

.cart-ui {
position: fixed;
bottom: 16px;
right: 16px;
width: 280px;
background: #3c3836;
border: 1px solid #504945;
border-top: none;
border-left: none;
padding: 1rem;
font-size: 0.9rem;
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
z-index: 999;
}

.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: 40px;
height: 40px;
}

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

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

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

.cart-ui .remove-from-cart {
top: 8px;
background: #fb4934;
color: #ebdbb2;
padding: 0.25rem 0.5rem;
border-radius: 4px;
cursor: pointer;
width: 24px;
height: 24px;
}

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

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

.checkout-container {
min-width: 320px;
max-width: 800px;
margin: 2rem auto;
background: #3c3836;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.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: 0.5rem;
display: flex;
justify-content: space-between;
}

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

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

.checkout-actions button {
background: #b8bb26;
color: #282828;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 8px;
cursor: pointer;
}

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

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

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
border-color: #b8bb26;
box-shadow: 0 0 0 3px rgba(184,187,38,0.2);
outline: none;
}

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

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: calc(50% - 0.5rem);
}

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

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

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

.info {
margin: 2rem auto;
padding: 1rem;
background-color: #3c3836;
color: #ebdbb2;
line-height: 1.6;
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.info h2 {
font-size: 1.4rem;
color: #fbf1c7;
margin-bottom: 0.5rem;
}

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

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

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

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

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

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

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

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

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

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

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

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