/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #e3e6e6;
}

/* ================= HEADER TOP ================= */
.amazon-header {
    height: 60px;
    background: #0f5f4a;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    color: #fff;
    flex-wrap: wrap;
}

.amazon-header>div {
    padding: 6px 8px;
    cursor: pointer;
}

.amazon-header>div:hover {
    outline: 1px solid #fff;
    outline-offset: -1px;
}

.nav-logo img {
    width: 110px;
}

.small-text {
    font-size: 12px;
    color: #ddd;
}

.bold-text {
    font-size: 14px;
    font-weight: 700;
}

/* location */
.nav-location {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ================= SEARCH BAR ================= */
.nav-search {
    flex: 1;
    min-width: 200px;
    max-width: 720px;
    height: 42px;
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 2px solid transparent;
}

.nav-search:focus-within {
    border-color: #f3a847;
}

.nav-search select {
    border: 0;
    background: #f3f3f3;
    padding: 0 10px;
    width: 60px;
}

.nav-search input {
    flex: 1;
    border: 0;
    padding: 0 12px;
    font-size: 15px;
}

.nav-search button {
    width: 50px;
    border: 0;
    background: #b81d6b;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* language */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ================= CART ================= */
.nav-cart {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    font-weight: 700;
    white-space: nowrap;
}

.cart-count {
    position: absolute;
    top: -2px;
    left: 18px;
    color: #f08804;
    font-size: 16px;
    font-weight: bold;
}

/* ================= SECOND NAV ================= */
.header2 {
    height: 40px;
    background: #0b4f3c;
    display: flex;
    align-items: center;
    padding: 0 14px;
    overflow-x: auto;
}

.nav-bar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.nav-bar li {
    color: #fff;
    font-size: 14px;
    padding: 6px 8px;
    cursor: pointer;
    white-space: nowrap;
}

.nav-bar li:hover {
    outline: 1px solid #fff;
    outline-offset: -1px;
}

.nav-bar .all {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================= HERO ================= */
.hero {
    position: relative;
    height: 520px;
    background: url("https://m.media-amazon.com/images/I/71SRwYaVx3L._SX2000_.jpg") center top / cover no-repeat;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    background: linear-gradient(to bottom,
            rgba(227, 230, 230, 0),
            #e3e6e6);
}

/* ================= CARDS SECTION ================= */
.cards-section {
    background: #e3e6e6;
    margin-top: -220px;
    padding: 0 14px 40px;
    position: relative;
    z-index: 1;
}

.cards-container {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* ================= CARD STYLES ================= */
.main-card {
    background: #ffffff;
    padding: 18px;
    display: flex;
    flex-direction: column;
    height: 420px;
    border-radius: 2px;
}

.img-heading {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.img-div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.img {
    display: flex;
    flex-direction: column;
    width: 48%;
}

.img img {
    width: 100%;
    height: 115px;
    object-fit: cover;
    cursor: pointer;
}

.img img:hover {
    opacity: 0.95;
}

.img span {
    margin-top: 6px;
    font-size: 12px;
    color: #0f1111;
}

.img-a {
    margin-top: auto;
    font-size: 13px;
    text-decoration: none;
    color: #002aff;
}

.img-a:hover {
    text-decoration: underline;
    color: #c7511f;
}

.img-div-big {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-big img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ================= PRODUCT STRIPS ================= */
.product-strip {
    background: #ffffff;
    padding: 16px;
    margin: 20px 0;
    border-radius: 4px;
}

.product-strip h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-row::-webkit-scrollbar {
    display: none;
}

.product-row img {
    height: 180px;
    object-fit: contain;
    cursor: pointer;
    min-width: 160px;
}

/* ================= PRE FOOTER ================= */
.pre-footer {
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.pre-footer-box {
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.pre-footer h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.sign-in-btn {
    background: #ffd814;
    border: none;
    padding: 10px 80px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.pre-footer p {
    margin-top: 8px;
    font-size: 13px;
}

.pre-footer a {
    color: #007185;
    text-decoration: none;
}

.pre-footer a:hover {
    text-decoration: underline;
    color: #c7511f;
}

/* ================= BACK TO TOP ================= */
.back-to-top {
    background: #37475a;
    color: #fff;
    text-align: center;
    padding: 14px;
    font-size: 14px;
    cursor: pointer;
}

.back-to-top:hover {
    background: #485769;
}

/* ================= MAIN FOOTER ================= */
.footer {
    background: #232f3e;
    color: #fff;
    padding: 40px 0;
}

.footer-links {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: #ddd;
    font-size: 14px;
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

/* ================= FOOTER BOTTOM ================= */
.footer-bottom {
    background: #232f3e;
    border-top: 1px solid #3a4553;
    padding: 20px 0;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    width: 70px;
}

.footer-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-options button {
    background: transparent;
    border: 1px solid #848688;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
}

.footer-options button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ================= COPYRIGHT SECTION ================= */
.copyright-section {
    background-color: #131a22;
    padding: 22px 12px;
    text-align: center;
    border-top: 1px solid #3a4553;
}

.copyright-text {
    color: #e6e6e6;
    font-size: 13px;
    line-height: 1.7;
    margin: 6px 0;
}

.copyright-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        height: 400px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .amazon-header {
        gap: 8px;
        padding: 0 8px;
    }
}

@media (max-width: 768px) {
    .amazon-header {
        height: auto;
        padding: 10px;
        justify-content: space-between;
    }

    .nav-search {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    .nav-logo {
        order: 1;
    }

    .nav-location,
    .nav-lang,
    .nav-account,
    .nav-orders {
        order: 2;
    }

    .nav-cart {
        order: 4;
    }

    .hero {
        height: 300px;
    }

    .cards-section {
        margin-top: -180px;
        padding: 0 10px 30px;
    }

    .main-card {
        height: auto;
        min-height: 380px;
    }

    .footer-options {
        flex-direction: column;
        align-items: center;
    }

    .footer-options button {
        width: 200px;
    }
}

@media (max-width: 600px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero {
        height: 250px;
    }

    .hero::after {
        height: 150px;
    }

    .cards-section {
        margin-top: -150px;
    }

    .img-div {
        flex-wrap: wrap;
        gap: 10px;
    }

    .img {
        width: 48%;
    }

    .img img {
        height: 100px;
    }

    .img-big img {
        height: 250px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .header2 {
        padding: 0 5px;
    }

    .nav-bar ul {
        gap: 8px;
    }

    .nav-bar li {
        font-size: 12px;
        padding: 4px 6px;
    }

    .sign-in-btn {
        padding: 10px 40px;
    }
}

@media (max-width: 400px) {
    .amazon-header>div:not(.nav-logo):not(.nav-search):not(.nav-cart) {
        display: none;
    }

    .nav-logo img {
        width: 90px;
    }

    .hero {
        height: 200px;
    }

    .img {
        width: 100%;
    }

    .img-div {
        flex-direction: column;
    }

    .main-card {
        height: auto;
    }

    .copyright-text {
        font-size: 12px;
    }
}