body {
    font-family: Arial, sans-serif;
    background: #f2f2f2e4;
    margin: 0;
    padding: 0;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 22px;
}


.card {
    width: 230px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    border-radius: 10px;
}

h2 {
    font-size: 18px;
    margin: 10px 0 5px;
}

.price {
    color: green;
    font-weight: bold;
}

.rating {
    color: orange;
}

.desc {
    font-size: 12px;
    color: #555;
    height: 40px;
    overflow: hidden;
}

button {
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    background: black;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #333;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: rgb(245, 241, 255);
    position: sticky;
    top: 0;
}

.one {
    display: flex;
    align-items: center;
    gap: 20px;
}

.two {
    display: flex;
    align-items: center;
    gap: 15px;
}

.imgs {
    height: 60px;
    width: 60px;
    border-radius: 50%;
}

.img {
    height: 22px;
    width: 30px;
}

.span {
    font-size: 16px;
    font-weight: 700;
}

.span:hover {
    color: rgb(14, 111, 247);
    cursor: pointer;
}

.three {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 2px solid rgb(14, 111, 247);
    padding: 5px 12px;
    border-radius: 20px;
}

.svg {
    height: 20px;
    width: 20px;
}

.serach-input {
    text-align: center;
    margin-top: 20px;
    padding: 10px 10px 10px 10px;
}

.search {
    padding: 10px 20px;
    width: 50%;
    border: none;
    background: white;
    color: rgb(11, 11, 11);
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid rgb(70, 70, 70);
}

.detail-card {
    display: flex;
    gap: 30px;
    max-width: 900px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-box {
    position: relative;
}

.image-box img {
    width: 300px;
    border-radius: 10px;
}

.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: green;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
}

.details {
    flex: 1;
    text-align: left;
}

.rating {
    color: orange;
}

.footer-one li {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    list-style: none;
    padding: 5px;
    font-size: 17px;
}

.footer-one {
    margin-top: 50px;
    margin-bottom: 50px;
}

.footer-parent {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    background-color: rgb(244, 244, 245);
    flex-wrap: wrap;
    padding: 20px;
}

.last {
    height: 70px;
    width: 100%;
    background-color: rgb(0, 47, 52);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-weight: bolder;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.lable {
    font-size: 18px;
    font-weight: bold;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .footer-parent {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-one {
        margin: 20px 0;
    }

    .footer-one h4 {
        font-size: 18px;
    }

    .footer-one li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .footer-one h4 {
        font-size: 16px;
    }

    .lable {
        text-align: left;
        font-size: 14px;
    }

    .footer-one li {
        font-size: 14px;
        padding: 3px;
    }

    .last {
        font-size: 12px;
        padding: 10px;
        height: auto;
    }

    .container {
        gap: 10px;
    }

    .card {
        width: 48%;
    }


}

@media (max-width: 768px) {

    header {
        padding: 10px;
    }

    .span {
        display: none;
    }

    .imgs {
        height: 45px;
        width: 45px;
    }

    .img {
        height: 20px;
        width: 25px;
    }

    .btn {
        font-size: 14px;
    }

    .three {
        padding: 4px 10px;
        border-radius: 15px;
    }

    .sell {
        font-size: 14px;
    }

    .svg {
        height: 16px;
        width: 16px;
    }
}

@media (max-width: 480px) {

    .one {
        gap: 10px;
    }

    .two {
        gap: 10px;
    }

    .btn {
        display: none;
    }

    .sell {
        font-size: 13px;
    }

    .lable {
        font-size: 13px;
        font-weight: bold;
    }

    .card{
       width: 38%; 
    }

    .desc{
        height: auto;
    }
}
@media (max-width: 480px) {

    .detail-card {
        display: flex;
        flex-direction: row;   /* 🔥 force side by side */
        gap: 10px;
        margin: 10px;
        padding: 10px;
        align-items: flex-start;
    }

    .image-box img {
        width: 140px;   /* 🔥 smaller image for mobile */
        height: 140px;
        object-fit: cover;
        border-radius: 10px;
    }

    .price-badge {
        font-size: 12px;
        padding: 4px 6px;
        top: 5px;
        right: 5px;
    }

    .details {
        text-align: left;
        flex: 1;
    }

    .details h2 {
        font-size: 14px;
        margin: 5px 0;
    }

    .rating {
        font-size: 12px;
    }

    .desc {
        font-size: 11px;
        height: auto;
        line-height: 1.3;
    }

    button {
        width: 100%;
        padding: 8px;
        font-size: 13px;
    }
}