

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial;
}

/* NAVBAR */
#navbar {
    min-height: 60px;
    background: #131921;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#logo {
    width: 130px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#logo img {
    width: 100%;
    height: auto;
}

/* HAMBURGER MENU */
#hamburger {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 25px;
    cursor: pointer;
}

/* LOCATION */
#location {
    white-space: nowrap;
}

/* SEARCH */
#search {
    flex: 1;
    max-width: 850px;
    display: flex;
}

#search select {
    width: 60px;
}

#search input {
    width: 100%;
    min-width: 0;
    border: none;
    padding: 10px;
}

#search button {
    width: 50px;
    background: #febd68;
    border: none;
    cursor: pointer;
}

.nav-box {
    white-space: nowrap;
}

#cart {
    white-space: nowrap;
}

/* PANEL */
#panel {
    min-height: 40px;
    background: #232f3e;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 10px 20px;
}

#panel a {
    color: white;
    text-decoration: none;
}

/* HERO */
#hero {
    width: 100%;
    overflow: hidden;
}

#hero img {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* MESSAGE */
#msg {
    width: 95%;
    margin: auto;
    background: white;
    text-align: center;
    padding: 10px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* SHOPPING */
#shopping {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    background: #e3e6e6;
    padding: 20px;
}

.box {
    width: 23%;
    background: white;
    padding: 20px;
    margin-top: 20px;
}

.box img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin: 15px 0;
}

.box a {
    color: #007185;
    text-decoration: none;
}

/* BACK TO TOP */
#back {
    height: 50px;
    background: #37475a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* FOOTER */
footer {
    background: #232f3e;
    color: white;
}

.foot-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px;
}

.foot-panel p {
    margin-top: 10px;
    cursor: pointer;
}

/* TABLET */
@media (max-width: 900px) {
    .box {
        width: 48%;
    }

    #navbar {
        gap: 12px;
        padding: 0 12px;
    }

    #logo {
        width: 100px;
    }

    .nav-box {
        font-size: 12px;
    }

    .nav-location {
        justify-self: end;
    }

    .search-bar {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: none;
    }

    .nav-account {
        grid-column: 1;
        grid-row: 3;
    }

    .nav-orders {
        display: none;
    }

    .nav-cart {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
    }

    .nav-wishlist {
        grid-column: 1 / -1;
        grid-row: 4;
        justify-self: start;
    }

    .sub-navbar {
        overflow-x: auto;
        gap: 15px;

        padding: 0 12px;
        scrollbar-width: none;
    }

    .sub-navbar::-webkit-scrollbar {
        display: none;
    }

    .sub-navbar a {
        font-size: 12px;
    }

    .hero > img {
        min-height: 190px;
        object-fit: cover;
    }

    .hero-message {
        width: 94%;
        bottom: -45px;

        padding: 10px;
        font-size: 12px;
    }

    .shopping-section {
        padding: 65px 12px 25px;
    }

    .shopping-grid,
    .wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        padding: 14px 11px;
    }

    .product-card h2 {
        font-size: 16px;
        min-height: 42px;
    }

    .product-card img {
        height: 180px;
        margin-bottom: 12px;
    }

    .product-card a {
        font-size: 12px;
    }

    .wishlist-btn {
        font-size: 11px;
        padding: 7px 9px;
    }

    .wishlist-section {
        padding: 20px 12px 30px;
    }

    .wishlist-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }

    .wishlist-header h2 {
        font-size: 21px;
    }

    .wishlist-item {
        padding: 11px;
    }

    .wishlist-item img {
        height: 140px;
    }

    .wishlist-item h3 {
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 20px;
        padding: 35px 22px;
    }

    .footer-column h3 {
        font-size: 14px;
    }

    .footer-column a {
        font-size: 12px;
    }

}

/* MOBILE */
@media (max-width: 767px) {

    #navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
        gap: 10px;
    }

    #logo {
        width: 100px;
    }

    #hamburger {
        display: block;
    }

    #location {
        font-size: 12px;
    }

    .nav-box {
        font-size: 11px;
    }

    #cart {
        font-size: 13px;
    }

    #search {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        order: 10;
    }

    #panel {
        display: none;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 20px;
    }

    #panel.active {
        display: flex;
    }

    #hero img {
        height: 220px;
        object-fit: cover;
    }

    #msg {
        margin-top: -20px;
        font-size: 13px;
    }

    .box {
        width: 100%;
    }

    .foot-panel {
        grid-template-columns: repeat(2, 1fr);
        padding: 25px 15px;
        gap: 25px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    #logo {
        width: 85px;
    }

    #navbar {
        gap: 8px;
    }

    .nav-box {
        font-size: 10px;
    }

    #hero img {
        height: 180px;
    }

    #shopping {
        padding: 10px;
    }

    .box {
        padding: 15px;
    }

    .foot-panel {
        grid-template-columns: 1fr;
        padding: 25px;
    }

}

[hidden] {
  display: none !important;
}
