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

body {
background: #282c34;
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 1rem;
max-width: 1200px;
word-wrap: break-word;
overflow-wrap: break-word;
line-height: 1.5;
}

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

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

.banner-img {
width: 100%;
}

.header-strip {
background-color: #434c5e;
color: #eceff4;
text-align: center;
padding: 1rem;
font-size: 1.25rem;
border-bottom: 1px solid #3b4252;
}

.header-strip h1 {
margin: 0;
}

#navbar {
display: flex;
min-height: 3rem;
background-color: #3b4252;
align-items: center;
justify-content: space-around;
border: 0;
border-top: 0;
border-left: 0;
position: sticky;
top: 0;
left: 0;
padding: 0.5rem;
z-index: 1000;
}

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

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

#navbar li a:hover {
color: #88c0d0;
background-color: #434c5e;
border-radius: 0.5rem;
}

#navbar a.active {
color: #d8dee9;
background-color: #4c566a;
border-radius: 0.5rem;
padding: 0.5rem 1rem;
}

#navbar.hidden {
display: none;
}

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

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

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

.container {
background-color: transparent;
max-width: 100%;
margin: 0 auto;
padding: 1rem;
}

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

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

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

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

.product-info {
padding: 1rem;
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: #4c566a;
color: #eceff4;
border: none;
padding: 0.7rem 1.5rem;
border-radius: 0.5rem;
cursor: pointer;
transition: background-color 0.3s;
font-size: 1rem;
}

button:hover {
background-color: #434c5e;
}

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

.error {
color: #bf616a;
}

.filter-sidebar {
position: sticky;
top: 3.5rem;
left: 0;
z-index: 990;
background-color: #3b4252;
padding: 1rem;
box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
border-bottom: 1px solid #434c5e;
border-right: 1px solid #434c5e;
}

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

#type-filter {
color: #d8dee9;
background-color: #434c5e;
border-color: #4c566a;
background-repeat: no-repeat;
background-position: right 0.7em top 50%;
background-size: 0.65rem auto;
}

#type-filter:focus {
outline: none;
border-color: #88c0d0;
box-shadow: 0 0 0 3px rgba(136, 192, 208, 0.3);
}

.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: 1rem;
padding: 0;
font-size: 1.5rem;
background: #88c0d0;
color: #2e3440;
border: none;
cursor: pointer;
z-index: 1001;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

.navbar-btn {
left: 16px;
}

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

.hidden {
display: none;
}

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

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

.pagination button.active {
background-color: #5e81ac;
color: #eceff4;
}

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

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

.modal-content {
background-color: #3b4252;
margin: auto;
width: 90%;
max-height: 80vh;
max-width: 600px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
animation: fadeIn 0.3s ease;
position: relative;
overflow-y: auto;
padding: 1.5rem;
}

.modal-content button {
margin-top: 1rem;
background: #5e81ac;
}

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

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

.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: 100%;
object-fit: cover;
}

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

.modal-product-details h2 {
margin-bottom: 1rem;
color: #eceff4;
font-size: 1.8rem;
}

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

.modal-product-price {
font-size: 1.3rem;
font-weight: bold;
color: #a3be8c;
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(46, 52, 64, 0.5);
backdrop-filter: blur(5px);
display: flex;
justify-content: center;
align-items: center;
z-index: 999;
}

.modal-content.wide {
background: #3b4252;
padding: 1rem;
border-radius: 0.5rem;
text-align: center;
max-width: 720px;
width: 90%;
box-shadow: 0 5px 15px 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: 150px;
border-radius: 0.5rem;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.cart-ui {
position: fixed;
bottom: 0;
right: 0;
width: 300px;
background: #3b4252;
border: 1px solid #434c5e;
border-top: none;
border-left: none;
padding: 1rem;
font-size: 1rem;
box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.1);
z-index: 1000;
}

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

.cart-ui li {
margin-bottom: 1rem;
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: #88c0d0;
}

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

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

.cart-ui .remove-from-cart {
top: 0;
background: #bf616a;
color: #eceff4;
padding: 0.2rem 0.5rem;
border-radius: 0.2rem;
cursor: pointer;
width: 30px;
height: 30px;
}

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

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

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

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

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

.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: #5e81ac;
color: #eceff4;
border: none;
padding: 1rem 2rem;
border-radius: 0.5rem;
cursor: pointer;
}

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

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

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
border-color: #88c0d0;
box-shadow: 0 0 0 3px rgba(136, 192, 208, 0.3);
outline: none;
}

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

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

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

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

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

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

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

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

.invoice {
background-color: #2e3440;
padding: 1rem;
border-radius: 0.5rem;
margin-top: 2rem;
}

.info {
margin: 1rem 0;
padding: 1rem;
background-color: #3b4252;
color: #d8dee9;
line-height: 1.6;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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