@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-blue: #3b82f6;
    --dark-blue: #1e3a8a;
    --hover-blue: #2563eb;
    --success-green: #10b981;
    --hover-green: #059669;
    --error-red: #ef4444;
    --hover-red: #dc2626;
    --warning-orange: #f97316;
    --hover-orange: #ea580c;
    --background-light: #f8f9fa;
    --card-background: #ffffff;
    --text-black: #000000;
    --text-dark: #2d3436;
    --text-gray: #6b7280;
    --border-light: #e5e7eb;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.25);
    --font-primary: "Montserrat", sans-serif;
    --font-admin: "Comfortaa", sans-serif;
    --font-price: font-family: "Exo 2", sans-serif;
}

/* General styles */
body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    background: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    zoom: 0.9;
}

/* Index.html styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--background-light);
    color: var(--text-black);
    box-shadow: 0 4px 12px var(--shadow-medium);
    border-bottom: var(--border-light) 3px solid;
    position: sticky;
    top: 0;
    z-index: 100;
}

section > h2{
    color: var(--dark-blue);
    font-size: 35px;
    margin-bottom: 20px;
    font-weight: 600;
}

section {
    margin-top: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-black);
    text-decoration: none;
}

.logo img {
    width: 50px;
    height: 50px;
}

.search-nav ul {
    display: flex;
    align-items: center;
    gap: 65px;
    list-style: none;
}

.search-nav ul li {
    margin-left: -35px;
}

.search-nav ul li a{
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--text-black);
    transition: all 0.2s ease-in-out;
}

.search-nav ul li a:hover {
    color: var(--primary-blue);
}

.search-nav ul li a img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}




#searchBar {
    padding: 15px 15px;
    border: 3px solid var(--primary-blue);
    border-radius: 15px 0 0 15px;
    width: 100%;
    font-size: 18px;
    background: var(--card-background);
    transition: box-shadow 0.3s ease;
}

#searchBar:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-content {
    display: flex;
}

#searchButton {
    padding: 5px;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    background: var(--primary-blue);
    color: var(--background-light);
    border: 3px solid var(--primary-blue);
    width: 70px;
    transition: all 0.5s ease;
}

#searchButton:hover {
    background: var(--background-light);
    color: var(--primary-blue);
}

#searchButton i {
    font-size: 30px;
    font-weight: 600;
}

#cartBtn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    gap: 5px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#cartBtn:hover {
    color: var(--primary-blue);
}



main {
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

.category-menu {
    display: flex;
    height: 590px;
    background: var(--background-light);
    position: sticky;
    top: 145px;
}

main>section {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    margin-top: 25px;
}

.category-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 0px;
}

.category-menu li, #subcategoryList li {
    width: 200px;
    font-size: 20px;
    padding: 15px;
    border-right: 3px solid var(--border-light);
    border-bottom: 3px solid var(--border-light);
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#subcategoryList {
    margin-top: 65px;
    margin-left: -10px;
}

#subcategoryList li {
    width: 230px;
    padding-left: 30px;
}

.category-menu li.selected, #subcategoryList .selected {
    background: var(--primary-blue);
    color: var(--background-light);
    border-radius: 15px;
    transform: translateX(15px);
}

.category-menu li:hover, #subcategoryList li:hover {
    background: var(--primary-blue);
    transform: translateX(15px);
    color: var(--background-light);
    border-radius: 15px;
}

#subcategoryList .selected {
    transform: translateX(25px);
}

.category-menu li a {
    color: var(--card-background);
    text-decoration: none;
    font-size: 0.95em;
}


.view-all {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-blue);
    color: var(--card-background);
    padding: 15px 20px;
    border: none;
    gap: 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

.view-all:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
}

.product-button-order {
    display: flex;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.slides {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); /* Збільшуємо з 0.5s до 0.7s */
    width: 100%;
}

.slide {
    min-width: 100%;
    width: 100%; /* Гарантуємо, що кожен слайд займає повну ширину */
    height: clamp(200px, 50vw, 450px);
    object-fit: cover;
    border-radius: 50px;
    margin: 0; /* Прибираємо відступи */
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: var(--primary-blue);
    background: var(--background-light);
    width: 50px;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 35px;
    border-radius: 25px 0 0 25px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.prev {
    left: 0px;
    border-radius: 0 25px 25px 0;
}

.next {
    right: 0px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.dot {
    width: 10px;
    height: 10px;
    background: var(--text-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}
.dot.active {
    background: var(--primary-blue);
}





.why-us__container {
    display: flex;
    justify-content: space-between;
}

.fact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 200px;
    border-radius: 25px;
    padding: 15px;
    box-sizing: border-box;
    border: 5px solid var(--primary-blue);
}

.fact__icon i {
    font-size: 35px;
    color: var(--primary-blue);
}

.fact-title {
    font-size: 18px;
    font-weight: 700;
}

.fact__desc {
    color: var(--text-gray);
    font-size: 14px;
    text-align: center;
}

.products-by-room ul {
    list-style: none;
    padding: 0;
}

.products-by-room ul li {
    width: 200px;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
}

.products-by-room ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 25px;
    font-weight: 800;
    position: absolute;
    padding: 0 20px;
    box-sizing: border-box;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.171);
    backdrop-filter: blur(14.5px);
    -webkit-backdrop-filter: blur(14.5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--background-light);
    list-style: none;
    text-decoration: none;
}


.products-by-room .product-room-top {
    display: flex;
    gap: 25px;
}

.products-by-room .product-room-bottom {
    display: flex;
    gap: 25px;
    margin-top: 25px;
}

.products-by-room .living-room {
    background-image: url(./img/rooms/living-room.webp);
    width: 25%;
}

.products-by-room .bedroom {
    background-image: url(./img/rooms/bed-room.jpg);
    width: 50%;
}

.products-by-room .baby-room {
    background-image: url(./img/rooms/baby-room.webp);
    width: 25%;
}

.products-by-room .kitchen {
    background-image: url(./img/rooms/kitchen.webp);
    width: 40%;
}

.products-by-room .hallway {
    background-image: url(./img/rooms/hallway.webp);
    width: 20%;
}

.products-by-room .office {
    background-image: url(./img/rooms/office.webp);
    width: 40%;
}




.sale-products,
.clearance-products{
    margin: 40px 0;
    width: 100%;
}

.products {
    display: flex;
    animation: fadeIn 0.5s ease-out;
}

.product {
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    width: 300px;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    border-right: 3px solid var(--border-light);
}

.product:last-child {
    border-right: none;
}





.product:hover {
    transform: translateY(-1px);
    border-right: none;
    box-shadow: 0 8px 20px var(--shadow-medium);
    width: 300px;
}

.product-first, .product-second {
    width: 30%;
}

.product-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
}

.product-button button {
    height: 50%;
    margin-bottom: 0;
}

.product img {
    aspect-ratio: 1 / 1;
    height: 250px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product h3 {
    font-size: clamp(1.2em, 3vw, 1.4em);
    margin: 10px 0;
    color: var(--dark-blue);
    font-weight: 600;
}

.product p {
    font-size: 0.95em;
    color: var(--text-gray);
    margin: 5px 0;
    flex-grow: 1;
}

.sizes {
    margin: 15px 0;
}

.size-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--background-light);
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.2s, border-color 0.2s;
}

.size-select:hover,
.size-select:focus {
    background: var(--border-light);
    border-color: var(--primary-blue);
    outline: none;
}

.addToCart,
.buyNow{
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    margin: 8px 0;
    transition: background 0.3s ease, transform 0.2s ease;
}

.addToCart {
    background: none;
    color: var(--primary-blue);
    border: 3px solid var(--primary-blue);
    width: 70px;
}

.addToCart:hover {
    background: var(--primary-blue);
    color: var(--card-background);
    transform: translateY(-2px);
}

.buyNow {
    background: var(--primary-blue);
    color: var(--card-background);
    margin-left: 10px;
}

.buyNow:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.remove-from-cart {
    background: var(--error-red);
    color: var(--card-background);
    width: 200px;
    height: 50px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
}

.remove-from-cart:hover {
    background: var(--hover-red);
    transform: translateY(-2px);
}

.promo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-blue);
    color: var(--card-background);
    padding: 5px 10px;
    font-size: 20px;
    border-radius: 25px 5px 25px 25px;
    font-weight: bold;
    user-select: none;
}

.promo.clearance {
    left: 10px;
    background: var(--error-red);
    border-radius: 5px 25px 25px 25px;
    width: 125px;
    user-select: none;
}

.product .product-price {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-black);
    position: relative;
    margin-top: 30px;
    font-family: "Exo 2", sans-serif;

}

.original-price {
    position: absolute;
    bottom: 40px;
    left: 0;
    font-size: 20px;
    color: var(--text-gray);
}


#cartTotalPrice {
    font-size: clamp(1em, 3vw, 1.2em);
    font-weight: 600;
    color: var(--dark-blue);
    margin: 15px 0;
    text-align: right;
}

#original_price {
    background: #000;
}

footer {
    background: rgba(0, 0, 0, 0.215);
    backdrop-filter: blur(14.5px);
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 10px;
    -webkit-backdrop-filter: blur(14.5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--background-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    color: var(--text-black);
}

.footer-top h3 {
    margin-bottom: 5px;
}

.footer-category, .footer-by-room, .social-link, .contact {
    display: flex;
    flex-direction: column;
}

.footer-category a, .footer-by-room a, .social-link a, .contact a {
    color: var(--text-black);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 25px;
    padding-top: 25px;
    border-top: var(--border-light) 3px solid;
    display: flex;
    justify-content: space-between;
    color: var(--text-black);
}

.privacy-policy a, .developedBy a {
    text-decoration: none;
    color: var(--text-black);
}

.developedBy a {
    color: var(--primary-blue);
    font-size: 18px;
}

/* Room.html styles */
.room-html main {
    display: flex;
    gap: 20px;
}

.room-html .category-menu {
    width: clamp(180px, 20vw, 220px);
    background: var(--card-background);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-light);
    position: sticky;
    top: 80px;
}

.room-html aside.category-menu {
    width: clamp(150px, 15vw, 180px);
    margin-left: 20px;
    background: var(--card-background);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.room-html section {
    flex: 1;
    max-width: 960px;
}

#filterBtn {
    background: var(--primary-blue);
    color: var(--card-background);
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

#filterBtn:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
}

#filters {
    background: var(--card-background);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-light);
    margin: 20px 0;
    animation: slideIn 0.3s ease-out;
    text-align: center;
}

.price-input, .filter-inputs, .filter-select {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

#filters label {
    position: relative;
    padding: 10px 20px;
    border: 2px solid var(--text-gray);
    border-radius: 8px;
    background-color: var(--background-light);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    user-select: none;
    width: 50%;
  }
  
  #filters input[type="checkbox"] {
    display: none;
  }
  
  #filters input[type="checkbox"]:checked + label,
  #filters label:has(input[type="checkbox"]:checked) {
    background-color: #cce0ff;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
  }

#filters select,
#filters input {
    width: 100%;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95em;
    background: var(--background-light);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-light);
}

#filters select:focus,
#filters input:focus {
    border-color: var(--primary-blue);
    background: var(--card-background);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

#filters button {
    width: 20%;
    padding: 12px;
    background: var(--primary-blue);
    color: var(--card-background);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

#filters button:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
}

#roomProducts {
    margin-top: 20px;
}

#subcategoryList {
    list-style: none;
    padding: 0;
}



/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal-content {
    background: var(--card-background);
    padding: clamp(20px, 5vw, 30px);
    width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-dark);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-content h3 {
    width: 100%;
}

#orderItems {
    flex-direction: column;
}

.modal-content .product {
    flex-direction: row;
    width: 100%;
    border-right: none;
    gap: 25px;
    padding: 0;
    height: 250px;
}

.modal-content .product:hover {
    transform: none;
    box-shadow: none;
}

.modal-content .product .sizes {
    right: 0;
    bottom: 0;
}

.modal-content .order-items-content {
    display: flex;  
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.order-items-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.addToCart i.material-icons {
    pointer-events: none;
}

.modal-content .remove-from-cart {
    width: 150px;
    padding: 0px;
}

#cartItems {
    flex-direction: column;
}

#orderForm .products {
    width: 100%;
}


#cartModal,
#orderModal,
#successModal,
#editModal,
#promoModal {
    display: none;
    justify-content: center;
    align-items: center;
}

#successModal .modal-content {
    text-align: center;
    width: 300px;
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#successModal .modal-content::before {
    content: '✔';
    display: block;
    font-size: 3em;
    color: var(--success-green);
    margin-bottom: 20px;
}

#successModal button {
    background: var(--primary-blue);
    color: var(--card-background);
    padding: 15px 20px;
    font-size: 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.3s;
}

.close:hover {
    color: var(--error-red);
}

#orderForm {
    display: flex; 
    flex-wrap: wrap;
    justify-content: space-between;
}

#addProductForm,
#editProductForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
}

#orderForm input,
#orderForm textarea,
#addProductForm input,
#editProductForm input,
#editProductForm textarea {
    width: 48%;
    height: 50px;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    background: var(--background-light);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.region-citi {
    display: flex;
    flex-direction: column;
    width: 48%;
}

#orderModal .region-citi input {
    width: 100%;
}

#orderModal #orderCountry {
    width: 100%;
}

#orderModal #orderForm textarea {
    height: 125px;
}


#orderForm input:focus,
#orderForm textarea:focus,
#addProductForm input:focus,
#addProductForm textarea:focus,
#editProductForm input:focus,
#editProductForm textarea:focus {
    border-color: var(--primary-blue);
    background: var(--card-background);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

#orderForm textarea,
#addProductForm textarea,
#editProductForm textarea {
    height: 140px;
    resize: none;
}

#orderForm button[type="submit"],
#addProductForm button[type="submit"],
#editProductForm button[type="submit"] {
    width: 100%;
    background: var(--success-green);
    color: var(--card-background);
    border: none;
    padding: 14px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

#orderForm button[type="submit"] {
    background: var(--primary-blue);
}

#orderForm button[type="submit"]:hover,
#addProductForm button[type="submit"]:hover,
#editProductForm button[type="submit"]:hover {
    background: var(--hover-green);
    transform: translateY(-2px);
}

#orderForm button[type="submit"]:hover {
    background: var(--hover-blue);
}

#checkout {
    background: var(--primary-blue);
    color: var(--card-background);
    border: none;
    padding: 14px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

#checkout:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
}

.success-message {
    text-align: center;
    font-size: clamp(1.1em, 3vw, 1.3em);
    color: var(--dark-blue);
}

.success-message button {
    margin-top: 20px;
    padding: 14px 28px;
    background: var(--primary-blue);
    color: var(--card-background);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

.success-message button:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
}

/* Notification */
#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.notification-message {
    background: var(--success-green);
    color: var(--card-background);
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px var(--shadow-medium);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

.notification-message.success {
    background: var(--success-green);
}

.notification-message.error {
    background: var(--error-red);
}

.notification-message.warning {
    background: var(--warning-orange);
    color: var(--text-dark);
}

.notification-message::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--hover-green);
    animation: progress 3s linear forwards;
}

.notification-message.success::after {
    background: var(--hover-green);
}

.notification-message.error::after {
    background: var(--hover-red);
}

.notification-message.warning::after {
    background: var(--hover-orange);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

/* Mobile-specific styles */
/* @media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    #searchBar {
        width: 100%;
        max-width: 300px;
    }

    main {
        padding: 15px;
        flex-direction: column;
    }

    .category-menu {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        position: static;
    }

    main>section {
        margin: 0;
        max-width: 100%;
    }

    .room-html .category-menu {
        width: 100%;
        margin-bottom: 20px;
    }

    .room-html aside.category-menu {
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .room-html section {
        max-width: 100%;
    }

    .category-menu ul {
        display: none;
    }

    .category-menu.active ul {
        display: block;
    }

    .category-menu h3 {
        cursor: pointer;
        padding: 10px;
        background: var(--primary-blue);
        color: var(--card-background);
        border-radius: 8px;
    }

    .category-menu h3::before {
        content: '☰ ';
    }

    .slider .slide {
        height: clamp(150px, 50vw, 250px);
    }

    .products {
        grid-template-columns: 1fr;
    }

    .product {
        min-height: 350px;
    }

    .product img {
        height: 150px;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 15px;
    }

    #bannerList,
    #productList,
    #promoList {
        grid-template-columns: 1fr;
    }

    #bannerList img {
        height: clamp(100px, 40vw, 200px);
    }

    .size-row {
        flex-direction: column;
        gap: 10px;
    }

    .admin-html .category-menu {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    #filters {
        flex-direction: column;
    }
} */

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .login-container h2,
    .products-by-room h2,
    .sale-products h2,
    .clearance-products h2 {
        font-size: clamp(1.2em, 4vw, 1.5em);
    }

    .product h3 {
        font-size: clamp(1em, 3vw, 1.2em);
    }


    .close {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }
}