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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #e3e6e6;
    color: #0f1111;
    font-family: Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navbar {
    min-height: 60px;
    background-color: #0f1111;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px;
}

.border {
    border: 1.5px solid transparent;
    border-radius: 2px;
}

.border:hover,
.border:focus-visible {
    border-color: #ffffff;
}

.nav-logo {
    width: 110px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo {
    width: 100px;
    height: 50px;
    display: block;
    background-image: url("../images/amazon_logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.nav-address {
    min-width: 88px;
    padding: 8px 8px;
    flex-shrink: 0;
}

.add-first {
    color: #cccccc;
    font-size: 0.75rem;
    margin-left: 18px;
}

.add-icon {
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-second {
    font-size: 0.9rem;
    font-weight: 700;
}

.nav-search {
    display: flex;
    height: 40px;
    max-width: 680px;
    flex: 1;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
}

.nav-search:focus-within,
.nav-search:hover {
    border-color: #febd68;
}

.search-select {
    width: 58px;
    background-color: #f3f3f3;
    border: 0;
    color: #0f1111;
    text-align: center;
}

.search-input {
    width: 100%;
    min-width: 120px;
    border: 0;
    padding: 0 12px;
    outline: 0;
}

.search-icon {
    width: 48px;
    border: 0;
    background-color: #febd68;
    color: #0f1111;
    cursor: pointer;
}

.search-icon:hover,
.search-icon:focus-visible {
    background-color: #f3a847;
}

.nav-signin,
.nav-return,
.nav-cart {
    min-height: 50px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.nav-signin span,
.nav-return span {
    font-size: 0.75rem;
}

.nav-signin strong,
.nav-return strong,
.nav-cart strong {
    font-size: 0.85rem;
}

.nav-cart {
    align-items: center;
    flex-direction: row;
    gap: 6px;
}

.nav-cart i {
    font-size: 1.8rem;
}

.panel {
    min-height: 40px;
    background-color: #232f3e;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 16px;
}

.panel-all,
.panel-deals {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.panel-ops {
    display: flex;
    gap: 18px;
    flex: 1;
    font-size: 0.85rem;
}

.panel a:hover,
.panel a:focus-visible {
    text-decoration: underline;
}

.hero-section {
    min-height: 360px;
    background-image: url("../images/hero_image.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px 26px;
}

.hero-msg {
    width: min(100%, 1120px);
    background-color: #ffffff;
    color: #0f1111;
    padding: 12px 18px;
    text-align: center;
    font-size: 0.88rem;
}

.hero-msg a,
.box-content a {
    color: #007185;
}

.hero-msg a:hover,
.box-content a:hover {
    color: #c7511f;
    text-decoration: underline;
}

.shop-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 20px;
    background-color: #e3e6e6;
}

.box {
    min-height: 390px;
    background-color: #ffffff;
    padding: 20px;
}

.box-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.box-content h2 {
    min-height: 52px;
    font-size: 1.28rem;
    line-height: 1.25;
}

.box-img {
    flex: 1;
    min-height: 250px;
    margin: 12px 0 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.box-content a {
    font-size: 0.9rem;
    font-weight: 500;
}

footer {
    margin-top: 10px;
}

.foot-panel1 {
    height: 50px;
    background-color: #37475a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
}

.foot-panel1:hover,
.foot-panel1:focus-visible {
    background-color: #485769;
}

.foot-panel2 {
    background-color: #232f3e;
    color: #ffffff;
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 32px;
    padding: 38px 8%;
}

.footer-list h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-list a {
    display: block;
    color: #dddddd;
    font-size: 0.86rem;
    margin-top: 9px;
}

.footer-list a:hover,
.footer-list a:focus-visible,
.pages a:hover,
.pages a:focus-visible {
    text-decoration: underline;
}

.foot-panel3 {
    min-height: 74px;
    background-color: #232f3e;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.foot-panel4 {
    min-height: 82px;
    background-color: #131a22;
    color: #ffffff;
    text-align: center;
    font-size: 0.76rem;
    padding: 20px 12px;
}

.pages {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

@media (max-width: 1024px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-search {
        order: 2;
        flex-basis: 100%;
        max-width: none;
    }

    .shop-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .foot-panel2 {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 8px;
        gap: 6px;
    }

    .nav-address,
    .nav-signin,
    .nav-return {
        display: none;
    }

    .panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 10px 16px;
    }

    .panel-ops {
        width: 100%;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero-section {
        min-height: 280px;
    }

    .hero-msg {
        font-size: 0.8rem;
    }

    .shop-section {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .box {
        min-height: 340px;
    }

    .box-img {
        min-height: 220px;
    }

    .foot-panel2 {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }
}
