* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: black;
    color: white;
    padding: 10px;


}

.heading {
    display: flex;
    align-items: center;
    margin-left: 50px;
}

.heading h1 {
    text-transform: uppercase;
    font-size: 40px;
    font-weight: bold;
    font-style: italic;
    margin-top: 5px;
    margin-right: 20px;

}

.heading input {
    padding: 10px;
    width: 250px;
    /* Fixed width instead of percentage overflow */
    margin-left: 20px;
    border-radius: 5px;
    border: none;
    outline: none;
}

.items ul {
    margin-right: 60px;
    list-style: none;
    display: flex;
    align-items: center;
    margin-top: 10px;
    text-transform: capitalize;


}

li {
    margin-right: 40px;
}

main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    /* Allow wrapping for responsiveness */
}

.first-img {
    width: 40%;
    height: 100vh;
}

.first-img img {
    width: 100%;
    /* Changed from 70% to fill container */
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.images {
    display: flex;
    gap: 20px;


}

.images img {
    width: 100px;
    height: 100px;

}

.right-box {
    padding: 20px;
}

.right-box {
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    width: 30%;
    min-height: 78vh;
    margin-bottom: 40px;
}

.right-box h2 {
    text-transform: uppercase;
    font-size: 40px;
    font-weight: bolder;
    padding: 10px;
}

.right-box h6 {
    font-size: x-large;
    font-weight: bold;
    padding: 10px;

}

.numbers {
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
}

.first-num h1 {
    font-weight: bolder;
    font-size: x-large;

}

.second-num h4 {
    font-weight: bold;
    font-size: large;
    text-decoration: line-through;
    color: silver;
    text-shadow: 2px 2px 2px black;

}

.third-num h4 {
    font-weight: bold;
    font-size: x-large;
    color: black;
}

.icons {
    display: flex;
    gap: 10px;
    padding: 30px 0px;
}

.icons i {
    font-size: x-large;
    color: yellow;
}

.icons p {
    font-size: large;
    text-transform: capitalize;
    font-weight: bold;
}

.quantity {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.quantity button {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: black;
    color: white;
}

.quantity input {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: 0.5px solid rgb(110, 110, 110);
    color: black;
    text-align: center;
}

.quantity button:hover {
    cursor: pointer;
    background-color: gray;
}

.quantity input:hover {
    cursor: pointer;
    background-color: gray;
}

.add-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.add-button button {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #00379c;
    color: white;
    width: 80%;
}

.add-button button:hover {
    cursor: pointer;
    background-color: gray;
}

.lastpart {
    text-align: center;
    margin-top: 20px;
}

.lastpart h6 {
    font-size: x-large;
    font-weight: bold;
    padding: 10px;
    color: #00379c;
}

.lastpart p {
    font-size: large;
    font-weight: bold;
    padding: 10px;
    color: rgb(141, 141, 141);
}

.lastpart button {
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    border: none;
    background-color: #00379c;
    color: white;
    width: 40%;
}

.lastpart button:hover {
    cursor: pointer;
    background-color: gray;
}

/* Responsiveness */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .heading {
        margin-left: 20px;
    }

    .first-img {
        width: 45%;
    }

    .right-box {
        width: 45%;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 20px;
    }

    .heading {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
    }

    .heading h1 {
        margin-right: 0;
        font-size: 30px;
    }

    .heading input {
        width: 80%;
        margin-left: 0;
        margin-top: 15px;
    }

    .items ul {
        margin-right: 0;
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .items ul li {
        margin: 5px 15px;
    }

    main {
        flex-direction: column;
        align-items: center;
    }

    .first-img {
        width: 90%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .first-img img {
        width: 100%;
        height: auto;
        max-height: 400px;
    }

    .images {
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .images img {
        width: 80px;
        height: 80px;
    }

    .right-box {
        width: 90%;
        height: auto;
        margin-top: 30px;
    }

    .right-box h2 {
        font-size: 30px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .heading h1 {
        font-size: 24px;
    }

    .numbers {
        flex-direction: column;
        gap: 5px;
    }

    .add-button button {
        width: 100%;
    }

    .lastpart button {
        width: 80%;
    }

    .images img {
        width: 60px;
        height: 60px;
    }
}