
* {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #e2e7e6;
}

/* =========================
   NAVBAR
   ========================= */

.navbar {
    min-height: 60px;
    background-color: #0F1111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
    padding: 5px 10px;
}

.nav-logo {
    height: 50px;
    width: 100px;
    flex-shrink: 0;
}

.logo {
    background-image: url(logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 50px;
    width: 100px;
}

.border {
    border: 1.5px solid transparent;
}

.border:hover {
    border: 1.5px solid white;
}

/* =========================
   ADDRESS
   ========================= */

.add-first {
    color: #cccccc;
    font-size: 0.85rem;
    margin-left: 15px;
}

.add-second {
    font-size: 1rem;
    margin-left: 3px;
}

.add-icon {
    display: flex;
    align-items: center;
}

/* =========================
   SEARCH BAR
   ========================= */

.nav-search {
    display: flex;
    align-items: stretch;
    background-color: pink;
    width: min(620px, 45vw);
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
}

.search-select {
    background-color: #f3f3f3;
    width: 50px;
    min-width: 50px;
    text-align: center;
    border: none;
    color: #111;
}

.search-input {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    border: none;
    outline: none;
    padding: 0 8px;
}

.search-icon {
    width: 45px;
    min-width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    background-color: #febd68;
    color: #111;
}

.nav-search:hover {
    outline: 2px solid orange;
}

/* =========================
   NAV TEXT
   ========================= */

span {
    font-size: 0.7rem;
}

.nav-second {
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-cart {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-cart i {
    font-size: 30px;
}

/* =========================
   PANEL
   ========================= */

.panel {
    min-height: 40px;
    background-color: #222f3d;
    display: flex;
    color: white;
    align-items: center;
    justify-content: space-evenly;
}

.panel-ops {
    width: 70%;
    font-size: 0.85rem;
    white-space: nowrap;
}

.panel-ops p {
    display: inline;
    margin-left: 15px;
}

.panel-deals {
    font-size: 0.91rem;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================
   HERO SECTION
   ========================= */

.hero-section {
    background-image: url(hero-section.jpeg);
    background-size: cover;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-msg {
    background-color: white;
    color: black;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    width: 80%;
    margin-bottom: 25px;
    padding: 8px 10px;
}

.hero-msg a {
    color: #007185;
}

/* =========================
   SHOP SECTION
   ========================= */

.shop-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 10px;
    background-color: #e2e7e6;
    padding: 5px;
}

.box {
    min-height: 400px;
    width: calc(25% - 10px);
    background-color: white;
    padding: 20px 15px 15px;
    margin-top: 10px;
}

.box-content {
    width: 100%;
}

.box-content h2 {
    font-size: 1.3rem;
    line-height: 1.3;
}

.box-img {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.box-content p {
    color: #007185;
    cursor: pointer;
}

/* =========================
   FOOTER
   ========================= */

footer {
    margin-top: 15px;
}

.foot-panel1 {
    background-color: #37475a;
    color: white;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
}

.foot-panel2 {
    background-color: #222f3d;
    color: white;
    min-height: 500px;
    display: flex;
    justify-content: space-evenly;
    gap: 30px;
    padding: 20px;
}

.foot-panel2 ul {
    margin-top: 20px;
    list-style: none;
}

.foot-panel2 ul a {
    display: block;
    font-size: 0.85rem;
    margin-top: 10px;
    color: #dddddd;
    text-decoration: none;
}

.foot-panel2 ul a:hover {
    text-decoration: underline;
}

.foot-panel3 {
    background-color: #222f3d;
    color: white;
    border-top: 0.5px solid white;
    min-height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foot-panel3 .logo {
    height: 50px;
    width: 100px;
}

.foot-panel4 {
    background-color: #0F1111;
    color: white;
    font-size: 0.7rem;
    text-align: center;
    padding-bottom: 20px;
}

.pages {
    padding-top: 25px;
}

.pages a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

.copyright {
    padding-top: 8px;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1000px) {

    .nav-address {
        display: none;
    }

    .nav-search {
        width: 45vw;
    }

    .box {
        width: calc(33.33% - 10px);
    }

    .panel-ops {
        width: 85%;
    }

    .panel-deals {
        display: none;
    }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .navbar {
        min-height: 110px;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 5px;
        gap: 5px;
    }

    .nav-logo {
        width: 80px;
        height: 45px;
    }

    .logo {
        width: 80px;
        height: 45px;
    }

    .nav-address {
        display: none;
    }

    .nav-search {
        order: 5;
        width: 100%;
        height: 40px;
        margin-top: 3px;
    }

    .search-select {
        width: 45px;
        min-width: 45px;
        font-size: 0.75rem;
    }

    .search-input {
        font-size: 0.9rem;
    }

    .search-icon {
        width: 45px;
        min-width: 45px;
    }

    .nav-signin {
        font-size: 0.75rem;
    }

    .nav-second {
        font-size: 0.72rem;
    }

    .nav-cart {
        font-size: 0.7rem;
    }

    .nav-cart i {
        font-size: 24px;
    }

    /* Mobile panel */
    .panel {
        min-height: 45px;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }

    .panel-ops {
        width: auto;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .panel-ops p {
        margin-left: 15px;
        font-size: 0.78rem;
    }

    .panel-deals {
        display: none;
    }

    /* Mobile hero */
    .hero-section {
        min-height: 280px;
        background-position: center;
    }

    .hero-msg {
        width: 92%;
        min-height: 55px;
        margin-bottom: 15px;
        padding: 8px;
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* Mobile product boxes */
    .shop-section {
        padding: 5px;
        gap: 8px;
    }

    .box {
        width: calc(50% - 4px);
        min-height: 330px;
        padding: 10px;
        margin-top: 5px;
    }

    .box-content h2 {
        font-size: 1rem;
    }

    .box-img {
        height: 220px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .box-content p {
        font-size: 0.78rem;
    }

    /* Footer */
    .foot-panel1 {
        min-height: 45px;
        font-size: 0.75rem;
    }

    .foot-panel2 {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 10px;
    }

    .foot-panel2 ul {
        margin-top: 10px;
    }

    .foot-panel2 h3 {
        font-size: 0.9rem;
    }

    .foot-panel2 ul a {
        font-size: 0.72rem;
        margin-top: 8px;
    }

    .foot-panel3 {
        min-height: 60px;
    }

    .foot-panel4 {
        padding-bottom: 20px;
    }

    .pages {
        padding-top: 20px;
        font-size: 0.72rem;
    }

    .copyright {
        font-size: 0.68rem;
    }
}

/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {

    .navbar {
        min-height: 105px;
    }

    .nav-logo {
        width: 75px;
    }

    .logo {
        width: 75px;
    }

    .nav-signin {
        display: none;
    }

    .nav-cart {
        margin-right: 5px;
    }

    .hero-section {
        min-height: 250px;
    }

    .hero-msg {
        width: 94%;
        font-size: 0.7rem;
    }

    .box {
        width: calc(50% - 4px);
        min-height: 310px;
        padding: 8px;
    }

    .box-content h2 {
        font-size: 0.9rem;
    }

    .box-img {
        height: 200px;
    }

    .box-content p {
        font-size: 0.72rem;
    }

    .foot-panel2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

