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

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

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

main {
flex: 1;
}

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

.header-banner {
border: 1px solid #4C566A;
margin-bottom: 20px;
background-color: #3B4252;
width: 100%;
text-align: center;
font-size: 1.8rem;
color: #D8DEE9;
padding: 20px;
}

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

.banner-img {
width: 100%;
}

.header-strip {
background-color: #3B4252;
color: #D8DEE9;
text-align: center;
padding: 10px 0;
font-size: 1.2rem;
border-bottom: 1px solid #4C566A;
}

.header-strip h1 {
margin: 0;
}

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

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

#navbar li a {
text-decoration: none;
color: #D8DEE9;
font-weight: 400;
}

#navbar li a:hover {
color: #EBCB8B;
background-color: #2E3440;
border-radius: 5px;
}

#navbar a.active {
color: #EBCB8B;
background-color: #2E3440;
border-radius: 5px;
padding: 5px 10px;
}

#navbar.hidden {
display: none;
}

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

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

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

.container {
background-color: #3B4252;
max-width: 100%;
margin: 0 auto;
padding: 15px;
}

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

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

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

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

.product-info {
padding: 15px;
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: #BF616A;
font-weight: bold;
}

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

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

button {
background-color: #5E81AC;
color: #ECEFF4;
border: none;
padding: 10px 15px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
font-size: 1rem;
}

button:hover {
background-color: #81A1C1;
}

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

.error {
color: #BF616A;
}

.filter-sidebar {
position: absolute;
top: 5%;
left: 5%;
z-index: 1;
background-color: #3B4252;
padding: 15px;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
border-bottom: 1px solid #4C566A;
border-right: 1px solid #4C566A;
}

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

#type-filter {
color: #D8DEE9;
background-color: #4C566A;
border-color: #4C566A;
background-repeat: no-repeat;
background-position: right 10px center;
background-size: auto;
}

#type-filter:focus {
outline: none;
border-color: #81A1C1;
box-shadow: 0 0 5px #81A1C1;
}

.toggle-cart-btn, .toggle-filter-btn, .navbar-btn {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
line-height: 1.4;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: fixed;
top: 5%;
padding: 0;
font-size: 1.5rem;
background: #4C566A;
color: #ECEFF4;
border: none;
cursor: pointer;
z-index: 2;
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
}

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

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

.navbar-btn {
left: 60px;
}

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

.hidden {
display: none;
}

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

.pagination button {
margin: 0 5px;
padding: 8px 16px;
border: 1px solid #4C566A;
border-radius: 5px;
background: #4C566A;
color: #ECEFF4;
font-size: 1rem;
cursor: pointer;
}

.pagination button.active {
background-color: #81A1C1;
color: #ECEFF4;
}

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

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

.modal-content {
background-color: #3B4252;
margin: auto;
width: 90%;
max-height: 90%;
max-width: 500px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
animation: fadeIn 0.5s ease-out;
position: relative;
overflow-y: auto;
padding: 20px;
}

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

.close-button {
position: absolute;
right: 20px;
top: 20px;
color: #D8DEE9;
font-size: 1.2rem;
font-weight: bold;
cursor: pointer;
}

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

.modal-body {
padding: 20px;
}

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

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

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

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

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

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

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

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

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

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

.modal-images {
display: flex;
gap: 20px;
justify-content: space-around;
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.3);
}

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

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

.cart-ui {
position: sticky;
bottom: 0;
right: 0;
width: 320px;
background: #4C566A;
border: 1px solid #3B4252;
border-top: none;
border-left: none;
padding: 15px;
font-size: 1rem;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
z-index: 10;
}

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

.cart-ui a {
font-size: 1.1rem;
color: #81A1C1;
}

.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.9rem;
gap: 10px;
}

.cart-ui .remove-from-cart {
top: 2%;
background: #BF616A;
color: #ECEFF4;
padding: 5px;
border-radius: 5px;
cursor: pointer;
width: 30px;
height: 30px;
}

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

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

.checkout-container {
min-width: 300px;
max-width: 800px;
margin: 0 auto;
background: #3B4252;
padding: 30px;
border-radius: 8px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.checkout-container h1 {
text-align: center;
margin-bottom: 30px;
}

.checkout-summary, .checkout-form {
margin-bottom: 30px;
}

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

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

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

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

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
border-color: #5E81AC;
box-shadow: 0 0 5px #5E81AC;
outline: none;
}

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

fieldset {
border: 1px solid #4C566A;
padding: 15px;
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: 150px;
}

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

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

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

.info {
margin: 20px 0;
padding: 20px;
background-color: #4C566A;
color: #ECEFF4;
line-height: 1.5;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

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

.info h3 {
font-size: 1.5rem;
margin-top: 20px;
color: #D8DEE9;
}

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

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

footer.bottom-bar {
margin-top: 30px;
background-color: #3B4252;
padding: 20px;
font-size: 0.9rem;
color: #ECEFF4;
border-top: 1px solid #4C566A;
width: 100%;
bottom: 0;
}

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

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

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

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

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

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

@media media {
max_width__1200px___body {
flex-direction: column;
justify-content: flex-start;
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: 20px;
top: 10px;
}
max_width__1200px___.toggle-cart-btn {
left: 70px;
top: 10px;
}
max_width__800px___.products-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
max_width__800px___#header {
height: 60px;
}

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