* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f3f4f6;
    font-family: Arial, sans-serif;
    color: #222;
    min-height: 100vh;
}

main {
    width: 100%;
    min-height: 100vh;
    background: white;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5%;
    padding: 50px 6%;
    align-items: center;
}

.one {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#img1 {
    width: 100%;
    max-width: 550px;
    height: 420px;
    object-fit: contain;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.container {
    width: 100%;
    max-width: 550px;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 12px 5px;
}

.container img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.container img:hover {
    border: 2px solid #e6a126;
}

.three {
    width: 100%;
    min-width: 0;
}

.three h1 {
    font-size: clamp(23px, 2.5vw, 32px);
    line-height: 1.4;
    margin-bottom: 15px;
}

.star {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}

#s1 {
    width: 100px;
    height: 45px;
    object-fit: contain;
}

#rev {
    color: #777;
    font-size: 14px;
}

.amt {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 20px 0;
}

#am1 {
    color: #222;
    font-size: 30px;
}

#am2 {
    color: #888;
    font-size: 20px;
}

.discount {
    color: #16833c;
    font-weight: bold;
}

#con {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin: 20px 0;
    overflow-wrap: anywhere;
}

.features {
    line-height: 2;
    margin: 20px 0;
    color: #444;
}

.option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.option label {
    font-size: 16px;
    font-weight: bold;
}

#colour {
    padding: 10px;
    width: 130px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

#qty {
    width: 50px;
    height: 35px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#cart {
    width: 220px;
    max-width: 100%;
    height: 50px;
    margin-top: 20px;
    background: #f5ad32;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

#cart:hover {
    background: #e39415;
}

.delivery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    color: #555;
    font-size: 14px;
}

@media (max-width: 800px) {
    main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 30px 5%;
    }

    #img1 {
        height: 350px;
    }

    .three {
        max-width: 650px;
        margin: auto;
    }
}

@media (max-width: 480px) {
    main {
        padding: 20px 16px;
    }

    #img1 {
        height: 270px;
    }

    .three h1 {
        font-size: 23px;
    }

    #con {
        font-size: 14px;
    }

    .delivery {
        gap: 10px;
    }
}
#img1 {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

#img1:hover {
    transform: scale(1.15);
}
.container img {
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s ease;
}

.container img.active {
    border: 2px solid #222;
    transform: scale(1.05);
}
#cartMessage {
    color: green;
    font-weight: bold;
    margin-top: 12px;
}

#viewCart {
    padding: 12px 25px;
    background: #17243a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

#viewCart:hover {
    background: #a87935;
    transform: translateY(-2px);
}
#buyNow {
    padding: 12px 25px;
    background: #a87935;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 15px 0;
    transition: 0.3s ease;
}

#buyNow:hover {
    background: #805b28;
    transform: translateY(-2px);
}