/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* overflow-x: hidden; */
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: #FAFAFA;
  overflow-x: hidden;
}

/* HEADER */

.header {
  background-color: hsl(0, 0%, 0%);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 120px 0 120px;
}

/* NAV */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  /* border-bottom: 1px solid hsl(0, 0%, 50%); */
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

#cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: orange;
  color: white;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 50%;
  display: none;
}

/* LOGO */

.logo img {
  height: 25px;
}

/* NAV LINKS */

.nav-links {
  display: flex;
  gap: 34px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #D87D4A;
}

/* CART */

.cart-icon img {
  width: 23px;
  cursor: pointer;
}

/* HAMBURGER */

.hamburger {
  display: none;
}

.headings {
    display: flex;
    justify-content: space-between;
    /* max-width: 1110px; */
    width: 100%;
    padding: 20px 120px;
    background-color: hsl(0, 0%, 0%);
}

.first-div {
    color: white;
    margin-top: 5em;
    
    > h4 {
        color: hsl(0, 0%, 50%);
        font-size: 14px;
        letter-spacing: 7px;
        margin-bottom: 20px;
    }

    > h1 {
        Font-size: 48px;
        Line-height: 58px;
        Letter-spacing: 2px;
        Font-weight: 700;
        margin-bottom: 20px;
    }

    > p {
        color: white;
        margin-bottom: 20px;
        width: 24em;
        font-size: 16px;
        line-height: 25px;
        font-weight: 300;
    }

    > a {
        > button {
            background-color: hsl(22, 65%, 57%);
            color: white;
            padding: 15px 25px;
            border: none;
            font-weight: 400;
            &:hover {
                background-color: hsl(21, 94%, 75%);
            }
        }
    }
}

.second-div {
    margin-top: -2.5em;
    margin-right: -3em;
    > img {
        width: 700px;
    }
}

.section1 {
    display: flex;
    justify-content: space-between;
    padding: 150px 120px;
    /* margin-top: 20px; */

    > div {
        width: 31%;
        background-color: hsl(0, 12%, 90%);
        border-radius: 7px;
        height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        > img {
            width: 100px;
            height: 100px;
            margin-top: -6em;
            z-index: 999;
            /* object-fit: contain; */
        }

        > h1 {
            margin: 30px 0 10px 0;
            text-transform: uppercase;
            color: hsl(0, 0%, 6%);
            font-weight: 800;
            font-size: 18px;
        }
        
        > a {
            text-decoration: none;
            color: hsl(0, 0%, 50%);
            font-size: 12px;
            margin-top: 10px;
            font-weight: 700;
            display: flex;
            /* flex-direction: column; */
            justify-content: center;
            align-items: center;
            gap: 15px;

            &:hover {
                color: hsl(22, 65%, 57%);
                scale: 1.1;
            }

        }
    }
    
}

.section2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px 120px;
    min-height: 450px;
    margin-bottom: 40px;
    background-color: hsl(22, 65%, 57%);
    border-radius: 7px;
    padding: 80px 100px 0 100px ;
    overflow: hidden;

    > div:last-child {
        margin-top: -5.5em;
    }

    > div {
        width: 45%;
        overflow: hidden;
        /* display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start; */

        > img {
            width: 350px;
            /* margin-top: -3em; */
        }
        
        > h1 {
            color: white;
            font-size: 48px;
            letter-spacing: 2px;
            font-weight: 600;
        }

        > p {
            color: white;
            margin: 20px 0;
            font-size: 15px;
            line-height: 20px;
            width: 18em;
            font-weight: 400;
        }
        
        > a {
            > button {
                background-color: hsl(0, 0%, 0%);
                color: white;
                padding: 15px 25px;
                border: none;
                font-weight: 400;

                &:hover {
                    color: white;
                    background-color: hsl(0, 0%, 6%);
                }
            }
        }
    }
}

.section3 {
    display: flex;
    justify-content: space-between;
    padding: 130px 120px;
    margin-left: 7em;
    background-image: url("images/headphone_files/cta-small-desktop.webp");
    background-repeat: no-repeat;

    > div {
        /* width: 50%; */
        

        > h1 {
           color: hsl(0, 0%, 6%);
            font-size: 28px;
            font-weight: 400;
            margin-bottom: 30px;
        }

        > a {
            > button {
                color: black;
                padding: 15px 5px;
                width: 12em;
                border: 2px solid black;
                font-weight: 700;
                font-size: 12px;

                &:hover {
                    color: white;
                    background-color: hsl(0, 0%, 0%);
                }
            }
        }
    }
}

.section4 {
    display: flex;
    justify-content: space-between;
    padding: 20px 120px 100px 120px;

    > div {
        width: 48%;
    }

    > .text {
        display: flex;
        flex-direction: column;
        /* align-items: center; */
        justify-content: center;
        background-color: hsl(0, 0%, 95%);
        border-radius: 10px;
        padding: 0 100px;

        > h1 {
            color: hsl(0, 0%, 6%);
            font-size: 28px;
            font-weight: 400;
            margin-bottom: 30px;
        }

        > a {
            > button {
                color: black;
                padding: 15px 5px;
                width: 12em;
                border: 2px solid black;
                font-weight: 700;
                font-size: 12px;

                &:hover {
                    background-color: hsl(0, 0%, 0%);
                    color: white;
                }
            }
        }
    }
}


.section5 {
    display: flex;
    justify-content: space-between;
    padding: 20px 120px 150px 120px;

    > div {
        width: 50%;

        > h1 {
            width: 10em;
            font-size: 48px;
            font-weight: 600;

            > span {
                color: hsl(22, 65%, 57%);
            }
        }
        
        > p {
            width: 30em;
            font-size: 14px;
            margin-top: 20px;
            color: hsl(0, 0%, 50%);
        }
    }

}

footer {
    display: flex;
    justify-content: space-between;
    padding: 50px 120px;
    background-color: hsl(0, 0%, 0%);
    color: hsl(0, 0%, 95%);

    > div {
        display: flex;
        flex-direction: column;
        align-items: start;

        > p {
            width: 35em;
            margin: 30px 0;
            font-size: 13px;
        }

        > nav:last-child {
            margin-top: 100px;
            margin-left: 22em;
        }
    }
}

summary {
    background-color: hsl(0, 0%, 0%);
    text-align: center;
    padding: 40px;
    
    > h1 {
        color: white;
        text-transform: uppercase;
        font-weight: 600;
        font-size: 38px;
    }
}

.section6 {
    display: flex;
    justify-content: space-between;
    padding: 100px 120px;

    > div {
        width: 45%;
        /* padding: 50px; */

        > h1 {
            color: hsl(0, 0%, 6%);
            font-size: 48px;
            line-height: 55px;
            font-weight: 500;
            margin-bottom: 20px;
            margin-top: 70px;
        }

        > .new {
            list-style-type: none;
            color: hsl(22, 65%, 57%);
            font-weight: 400;
            font-size: 18px;
            letter-spacing: 10px;
            margin-bottom: -60px;
            margin-top: 50px;
        }

        > p {
            width: 23em;
            margin: 20px 0;
            font-size: 16px;
            color: hsl(0, 0%, 50%);
            line-height: 25px;
        }

        > a {
            > button {
                background-color: hsl(22, 65%, 57%);
                color: white;
                padding: 15px 5px;
                width: 12em;
                border: none;
                font-weight: 700;
                font-size: 12px;

                &:hover {
                    background-color: hsl(21, 94%, 75%);
                }
            }
        }

        > img {
            /* object-fit: cover; */
            width: 100%;
            background-color: hsl(0, 0%, 95%);
            border-radius: 10px;
            padding: 100px;
        }

        > label {
                font-size: 18px;
                font-weight: 700;
        }

        > div {
            display: flex;
            /* justify-content: space-between; */
            align-items: center;
            gap: 20px;
            margin-top: 30px;

            > button {
                background-color: hsl(22, 65%, 57%);
                color: white;
                padding: 15px 5px;
                width: 12em;
                border: none;
                font-weight: 700;
                font-size: 12px;
                cursor: pointer;
                
                &:hover {
                    background-color: hsl(21, 94%, 75%);
                }
            }

            > nav {
                display: flex;
                justify-content: space-evenly;
                align-items: center;
                background-color: hsl(0, 0%, 95%);
                color: black;
                width: 10em;
                padding: 10px 5px;
                width: 10em;
                border: none;
                > span {
                    font-size: 20px;
                    font-weight: 700;

                    &:hover {
                        color: hsl(22, 65%, 57%);
                        cursor: pointer;
                    }
                }
            }

        }
    }
}

article {
    display: flex;
    /* justify-content: space-between; */
    /* align-items: center; */
    gap: 15em;
    padding: 60px 120px;
    
    > div {
        > h2 {
            color: hsl(0, 0%, 6%);
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 25px;
            text-transform: uppercase;
        }

        > p {
            color: hsl(0, 0%, 50%);
            font-size: 16px;
            font-weight: 400;
            margin-top: 20px;
            width: 33em;
            line-height: 25px;
        }

        > ul {
            > li {
                list-style-type: none;
                font-size: 18px;
                color: blak;
                margin-top: 10px;
                color: hsl(0, 0%, 50%);

                > span {
                    color: hsl(22, 65%, 57%);
                    margin-right: 15px;
                }
            }
        }
    }
}

.div1 {
    display: flex;
    justify-content: center;
    padding: 70px 120px;
    align-items: center;
    gap: 30px;

    > div {
        height: 35em;
        display: flex;
        flex-direction: column;
        gap: 30px;

        > img {
            border-radius: 10px;
        }
    }
}

.div2 {
    padding: 120px;

    > h1 {
        font-size: 38px;
        font-weight: 700;
        text-transform: uppercase;
        text-align: center;
        margin: 50px;
    }

    .div3 {
        display: flex;
        justify-content: space-evenly;
        

        > div {
            width: 30%; 
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        
        
            > img {
                width: 90%;
                height: 300px;
                background-color: hsl(0, 0%, 95%);
                padding: 50px;
            }
        
            > h2 {
                margin: 30px 0;
                font-size: 30px;
            }

            > a {
                > button {
                    background-color: hsl(22, 65%, 57%);
                    color: white;
                    padding: 15px 5px;
                    width: 12em;
                    border: none;
                    font-weight: 700;
                    font-size: 12px;
                    cursor: pointer;
                    
                    &:hover {
                        background-color: hsl(21, 94%, 75%);
                    }
                }
            }
        }
    }
}

/* ===============================
   OVERLAY
================================ */
.cart-overlay {
  position: fixed;
  top: 70px; /* match header height */
  left: 0;
  width: 100%;
  height: calc(100% - 70px);
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 10;
}

/* ===============================
   CART (TOP RIGHT)
================================ */
.cart {
  position: absolute;
  top: 90px;
  right: 40px;
  margin-top: 40px;

  width: 380px;
  max-height: 80vh;

  background: #fff;
  border-radius: 12px;
  padding: 24px;

  display: none;
  flex-direction: column;

  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  z-index: 20;
}

/* ===============================
   HEADER
================================ */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.cart-header button {
  background: none;
  border: none;
  font-size: 12px;
  color: #999;
  cursor: pointer;
  text-decoration: underline;
}

/* ===============================
   ITEMS (SCROLLABLE)
================================ */
#cart-items {
  flex: 1;
  overflow-y: auto;
  margin: 20px 0;
  padding-right: 5px;
}

/* ===============================
   CART ITEM
================================ */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

/* LEFT SIDE */
.cart-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* IMAGE */
.cart-img {
  width: 60px;
  height: 60px;
  background: #f5f5f5;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-img img {
  width: 45px;
}

/* TEXT */
.cart-text h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.cart-text p {
  font-size: 13px;
  color: #9e9e9e;
  margin-top: 4px;
}

/* RIGHT SIDE */
.cart-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* QUANTITY CONTROL */
.cart-controls {
  display: flex;
  align-items: center;
  background: #f1f1f1;
  padding: 6px 10px;
  border-radius: 6px;
  gap: 10px;
}

.cart-controls button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #999;
}

.cart-controls span {
  font-size: 13px;
  font-weight: bold;
}

/* REMOVE BUTTON */
.remove-btn {
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 6px;

  background: #f1f1f1;
  color: #999;

  font-size: 14px;
  cursor: pointer;

  transition: all 0.2s ease;
}

.remove-btn:hover {
  background: #ffe5dc;
  color: #d87d4a;
}

/* ===============================
   FOOTER
================================ */
.cart-footer {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* TOTAL */
.total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.total p {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: #999;
}

.total h3 {
  font-size: 20px;
  font-weight: bold;
}

/* BUTTON */
.checkout-btn {
  width: 100%;
  padding: 15px;
  background: #d87d4a;
  color: #fff;
  border: none;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 6px;
}

.checkout-btn:hover {
  background: #b86435;
}

/* ===============================
   GLOBAL RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background: #f2f2f2;
}

/* ===============================
   CONTAINER
================================ */
.checkout-container {
  padding: 80px 20px;
}

/* BACK LINK */
.back {
  max-width: 1110px;
  margin: 0 auto 30px;
  display: block;
  color: #777;
  font-size: 14px;
  cursor: pointer;
}

/* ===============================
   GRID LAYOUT
================================ */
.checkout-grid {
  max-width: 1110px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* ===============================
   LEFT FORM
================================ */
.checkout-form {
  background: #fff;
  padding: 48px;
  border-radius: 10px;
}

.checkout-form h1 {
  font-size: 28px;
  margin-bottom: 32px;
}

/* SECTION TITLE */
.section-title {
  color: #d87d4a;
  font-size: 13px;
  letter-spacing: 1px;
  margin: 32px 0 16px;
}

/* FORM ROW */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.form-row div {
  flex: 1;
  min-width: 0;
}

/* SINGLE INPUT BLOCK */
.checkout-form > div {
  margin-bottom: 24px;
}

/* LABEL */
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

/* INPUT */
input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

input:focus {
  border: 1px solid #d87d4a;
}

/* ===============================
   PAYMENT SECTION
================================ */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}

.payment-label {
  font-size: 12px;
  font-weight: 700;
}

/* OPTIONS */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* RADIO BOX */
.radio-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #cfcfcf;
  padding: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.radio-box:hover {
  border: 1px solid #d87d4a;
}

.radio-box input {
  width: 18px;
  height: 18px;
  accent-color: #d87d4a;
}

.radio-box.active {
  border: 1px solid #d87d4a;
}

/* ===============================
   E-MONEY FIELDS
================================ */
.emoney-fields {
  margin-top: 8px;
}

/* ===============================
   CASH INFO
================================ */
.cash-info {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.cash-info img {
  width: 48px;
}

.cash-info p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  max-width: 500px;
}

/* HIDDEN */
.hidden {
  display: none;
}

/* ===============================
   RIGHT SUMMARY
================================ */
.summary {
  background: #fff;
  padding: 32px;
  border-radius: 10px;
  height: fit-content;
}

.summary h3 {
  margin-bottom: 24px;
  font-size: 18px;
  letter-spacing: 1px;
}

/* ITEM */
.summary-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.summary-item img {
  width: 50px;
  height: 50px;
  background: #f5f5f5;
  padding: 5px;
  border-radius: 8px;
}

.summary-item h4 {
  font-size: 14px;
}

.summary-item p {
  font-size: 13px;
  color: #777;
}

.summary-item span {
  font-size: 13px;
  color: #777;
}

/* ===============================
   TOTALS
================================ */
.totals {
  margin-top: 24px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.totals p {
  font-size: 13px;
  color: #777;
  text-transform: uppercase;
}

.totals span {
  font-weight: 700;
}

.totals .grand span {
  color: #d87d4a;
  font-size: 18px;
}

/* ===============================
   BUTTON
================================ */
.pay-btn {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  border: none;
  background: #d87d4a;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.2s;
}

.pay-btn:hover {
  background: #b86435;
}

/* Error styling */
.error {
  border: 1px solid red !important;
}

.error-text {
  color: red;
  font-size: 11px;
  margin-top: 4px;
  display: block;
}

/* ================= SUCCESS MODAL ================= */

.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; 
  background: rgba(0,0,0,0.5);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999; /* safer */
}

.hidden {
  display: none;
}

.success-box {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  width: 450px;
}

/* ICON */
.success-icon {
  width: 60px;
  margin-bottom: 20px;
}

/* TITLE */
.success-box h2 {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* TEXT */
.success-box p {
  color: #777;
  margin-bottom: 25px;
  font-size: 14px;
}

/* FLEX WRAPPER */
.success-flex {
  display: flex;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

/* ================= LEFT (ITEMS) ================= */
.success-summary {
  background: #f5f5f5;
  padding: 20px;
  width: 60%;

  display: flex;
  flex-direction: column; 
  gap: 12px;
}

/* TOP ROW (item + qty) */
.summary-flex {
  display: flex;
  align-items: center;
  justify-content: space-between; 
}

/* LEFT SIDE (image + text) */
.summary-flex > div,
.summary-flex nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* IMAGE */
.summary-flex img {
  width: 50px;
  background: #fff;
  padding: 5px;
  border-radius: 6px;
}

/* TEXT */
.summary-flex nav {
  display: block;
}

.summary-flex nav h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.summary-flex nav p {
  font-size: 13px;
  color: #777;
}

/* QTY */
.summary-flex span {
  font-size: 13px;
  font-weight: 600;
  color: #777;
}

/* ================= OTHER ITEMS ================= */
.other-items {
  font-size: 12px;
  color: #777;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  text-align: center;
}

/* ================= RIGHT (TOTAL) ================= */
.success-total {
  background: #000;
  color: #fff;
  width: 40%;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.success-total p {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 5px;
}

.success-total span {
  font-size: 16px;
  font-weight: 600;
}

/* ================= BUTTON ================= */
#back-home {
  width: 100%;
  padding: 15px;
  border: none;
  background: #d87d4a;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
}

#back-home:hover {
  background: #b86435;
}
.mobile-menu{
    display: none ;
  }



/* ===============================
   RESPONSIVE
================================ */
 @media (max-width: 900px) {
   .header {
        padding:20px ;
        margin: auto;
        /* background-color: red; */
    }
  .hamburger {
        display: flex;
        cursor: pointer;
  }

  .hamburger > img {
    height: 25px;
    width: 30px;
  }

  .nav-links, .second-div {
        display: none;
  }

  .headings {
    background-image: url("images/headphone_files/hero-headphone-v2.webp");
    background-repeat: no-repeat;
    /* background-position: center; */
    background-size: cover;
    padding: auto;
    text-align: center;
  }

  .section1 {
    flex-direction: column;
    justify-content: space-between;
    margin: 20px;
    gap: 7em;
  }
  .section1 > div {
    margin:auto;
    width: 100%;
    /* margin-bottom: 30px; */
  }
  .section2 {
    flex-direction: column;
    gap: 3em;
    margin: 20px;
    text-align: center;
    padding-bottom: 20px;
  }
  .section2 > div {
    width: 100%;
    margin: auto;
    padding: 20px;
  }
   .section2 > div:last-child {
    margin-top: 2px;
   }
  .section2 > div > img {
    width: 80%;
    /* margin-top: -3em; */
  }
  .section2 > div > p {
    width: 23em;
  }
  .section3 {
    width: 100%;
    margin: 20px;
    /* background-position:initial;
    background-size: cover; */
    padding:130px 30px;
  }
  .section3 > div {
    margin: auto;
    width: 100%;
  }
  .section4 {
    flex-direction: column;
    padding: 20px;
    gap: 3em;
  }
  .section4 > div {
    width: 100%;
    max-width: auto;
    margin-bottom: 4em;
  }
  .section4 > .text {
    background-color: hsl(0, 13%, 91%);
    width: 100%;
    padding: 100px;
  }
  .section5 {
    flex-direction: column-reverse;
    padding: 20px;
    gap: 4em;
    text-align: center;
    justify-content: center;
  }
  .section5 > div {
    margin: auto;
    width: 100%;
  } 

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

  .form-row {
    flex-direction: column;
  }

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



/* =========================================
   TABLET RESPONSIVE
========================================= */
@media (max-width: 900px) {

  .header {
    padding: 20px 40px 0;
  }

  .hamburger {
    display: flex;
    align-items: center;
  }

  .hamburger img {
    width: 24px;
  }

  .nav-links {
    display: none;
  }

  .headings {
    padding: 80px 40px;
    justify-content: center;
    text-align: center;
    background-image: url("images/headphone_files/hero-headphone-v2.webp");
    background-size: cover;
    background-position: center;
  }

  .first-div {
    margin-top: 0;
  }

  .first-div > p {
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }

  .second-div {
    display: none;
  }

  /* CATEGORY */
  .section1 {
    padding: 120px 40px;
    gap: 30px;
  }

  /* ZX9 */
  .section2 {
    flex-direction: column;
    text-align: center;
    margin: 0 40px 40px;
    padding: 60px 40px;
  }

  .section2 > div {
    width: 100%;
  }

  .section2 > div:last-child {
    margin-top: 0;
  }

  .section2 > div > img {
    width: 250px;
  }

  .section2 > div > p {
    width: 100%;
    max-width: 350px;
    margin-inline: auto;
  }

  /* ZX7 */
  .section3 {
    margin: 0 40px 40px;
    padding: 100px 50px;
    background-position: center;
    background-size: cover;
  }

  /* YX1 */
  .section4 {
    padding: 0 40px 120px;
    gap: 20px;
  }

  .section4 > .text {
    padding: 0 40px;
  }

  /* ABOUT */
  .section5 {
    flex-direction: column-reverse;
    padding: 0 40px 120px;
    text-align: center;
    gap: 50px;
  }

  .section5 > div {
    width: 100%;
  }

  .section5 > div > h1 {
    width: 100%;
  }

  .section5 > div > p {
    width: 100%;
  }

  /* FOOTER */
  footer {
    flex-direction: column;
    gap: 40px;
    padding: 60px 40px;
  }

  footer > div > p {
    width: 100%;
  }

  footer > div > nav:last-child {
    margin: 40px 0 0;
  }

  /* PRODUCT PAGE */
  .section6 {
    padding: 80px 40px;
    gap: 50px;
    flex-direction: column;
  }

  .section6 > div {
    width: 100%;
    text-align: center;
  }

  .section6 > div > p {
    width: 100%;
  }

  .section6 > div > img {
    padding: 70px;
  }

  .section6 > div > div {
    justify-content: center;
  }

  article {
    flex-direction: column;
    gap: 60px;
    padding: 0 40px 80px;
  }

  article > div > p {
    width: 100%;
  }

  .div1 {
    padding: 0 40px 100px;
    flex-direction: column;
  }

  .div1 > div {
    height: auto;
    width: 100%;
  }

  .div1 img {
    width: 100%;
  }

  .div2 {
    padding: 0 40px 120px;
  }

  .div2 .div3 {
    gap: 20px;
  }

  .div2 .div3 > div > h2 {
    font-size: 24px;
  }

  /* CHECKOUT */
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .summary {
    order: -1;
  }

  .form-row {
    flex-direction: column;
  }

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

  /* SUCCESS */
  .success-box {
    width: 90%;
  }
} 


/* =========================================
   MOBILE RESPONSIVE
========================================= */
@media (max-width: 600px) {

  body {
    overflow-x: hidden;
  }

  .header {
    padding: 15px 20px 0;
  }

  .nav {
    height: 70px;
  }

  .logo img {
    height: 22px;
  }

  /* HERO */
  .headings {
    padding: 100px 20px;
  }

  .first-div > h4 {
    font-size: 12px;
    letter-spacing: 5px;
  }

  .first-div > h1 {
    font-size: 36px;
    line-height: 40px;
  }

  .first-div > p {
    width: 100%;
    font-size: 15px;
    line-height: 24px;
  }

  /* CATEGORY */
  .section1 {
    padding: 100px 20px;
    gap: 80px;
  }

  .section1 > div {
    width: 100%;
    height: 165px;
  }

  .section1 > div > h1 {
    font-size: 16px;
  }

  /* ZX9 */
  .section2 {
    margin: 0 20px 25px;
    padding: 55px 20px;
    border-radius: 10px;
  }

  .section2 > div > img {
    width: 180px;
  }

  .section2 > div > h1 {
    font-size: 36px;
    line-height: 40px;
  }

  .section2 > div > p {
    width: 100%;
    font-size: 14px;
  }

  /* ZX7 */
  .section3 {
    margin: 0 20px 25px;
    padding: 100px 25px;
    background-position: center;
    border-radius: 10px;
  }

  .section3 > div > h1 {
    font-size: 28px;
  }

  /* YX1 */
  .section4 {
    padding: 0 20px 100px;
    flex-direction: column;
  }

  .section4 > div {
    width: 100%;
  }

  .section4 > div img {
    width: 100%;
  }

  .section4 > .text {
    padding: 40px 25px;
  }

  /* ABOUT */
  .section5 {
    padding: 0 20px 100px;
    gap: 40px;
  }

  .section5 > div > h1 {
    font-size: 30px;
    width: 100%;
    line-height: 36px;
  }

  .section5 > div > p {
    width: 100%;
    font-size: 15px;
    line-height: 25px;
  }

  .section5 img {
    width: 100%;
  }

  /* FOOTER */
  footer {
    padding: 50px 20px;
    text-align: center;
  }

  footer > div {
    align-items: center;
  }

  footer > div > p {
    width: 100%;
    font-size: 14px;
    line-height: 24px;
  }

  /* SUMMARY TITLE */
  summary {
    padding: 35px 20px;
  }

  summary > h1 {
    font-size: 28px;
  }

  /* PRODUCT PAGE */
  .section6 {
    padding: 60px 20px;
  }

  .section6 > div > h1 {
    font-size: 32px;
    line-height: 36px;
    margin-top: 90px;
  }

  .section6 > div > p {
    width: 100%;
    font-size: 15px;
  }

  .section6 > div > img {
    padding: 40px;
  }

  .section6 > div > div {
    flex-direction: column;
    width: 100%;
  }

  .section6 > div > div > button {
    width: 100%;
  }

  .section6 > div > div > nav {
    width: 100%;
  }

  /* FEATURES */
  article {
    padding: 0 20px 80px;
    gap: 50px;
  }

  article > div > h2 {
    font-size: 24px;
  }

  article > div > p {
    width: 100%;
    font-size: 15px;
  }

  /* GALLERY */
  .div1 {
    padding: 0 20px 80px;
    gap: 20px;
  }

  .div2 {
    padding: 0 20px 100px;
  }

  .div2 > h1 {
    font-size: 28px;
    margin: 30px 0;
  }

  .div2 .div3 {
    flex-direction: column;
    gap: 50px;
  }

  .div2 .div3 > div {
    width: 100%;
  }

  .div2 .div3 > div > img {
    width: 100%;
    height: auto;
  }

  .div2 .div3 > div > h2 {
    font-size: 24px;
  }

  /* CART */
  .cart {
    width: calc(100% - 40px);
    right: 20px;
    top: 80px;
    padding: 20px;
  }

  .cart-item {
    gap: 10px;
  }

  .cart-img {
    width: 50px;
    height: 50px;
  }

  .cart-img img {
    width: 35px;
  }

  .cart-controls {
    gap: 8px;
    padding: 6px 8px;
  }

  /* CHECKOUT */
  .checkout-container {
    padding: 40px 20px 100px;
  }

  .checkout-form {
    padding: 30px 24px;
  }

  .checkout-form h1 {
    font-size: 28px;
  }

  .summary {
    padding: 25px;
  }

  .cash-info {
    flex-direction: column;
    align-items: flex-start;
  }

  /* SUCCESS MODAL */
  .success-box {
    width: calc(100% - 40px);
    padding: 30px 25px;
  }

  .success-flex {
    flex-direction: column;
  }

  .success-summary,
  .success-total {
    width: 100%;
  }

  .success-total {
    padding: 25px 20px;
  }

  .summary-flex {
    gap: 10px;
  }

  .summary-flex img {
    width: 45px;
  }

  .success-box h2 {
    font-size: 24px;
  }

  #back-home {
    font-size: 13px;
  }
}

/* ================= MOBILE MENU ================= */

.mobile-menu {
  position: absolute;
  top: 90px;
  left: 0;

  width: 100%;
  background: rgba(0,0,0,0.4);

  z-index: 999;

  display: none;
}

.mobile-section {
  background: white;

  padding: 40px 20px;
  padding-top: 9em;

  display: flex;
  flex-direction: column;
  gap: 7em;

  border-radius: 0 0 10px 10px;
}

/* CARD */
.mobile-section > div {
  background: #f1f1f1;

  height: 165px;

  border-radius: 10px;
  margin-bottom: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  position: relative;
}

/* IMAGE */
.mobile-section > div > img {
  width: 120px;

  position: absolute;
  top: -5em;
}

/* TITLE */
.mobile-section > div > h1 {
  margin-top: 55px;

  font-size: 16px;
  text-transform: uppercase;
}

/* LINK */
.mobile-section > div > a {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 15px;

  text-decoration: none;

  color: #777;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.mobile-section > div > a img {
  width: 6px;
}