/* Base styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

main {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.detail {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 60%;
}

.image-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.image-item:hover {
    transform: scale(1.05);
}

.product-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Product Info */
.content {
    width: 35%;
    padding-left: 20px;
}

#title {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
}

#description {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
}

#price {
    font-size: 1.5em;
    color: #d9534f;
    margin-right: 10px;
}

/* Buttons */
.buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button {
    background-color: #d9534f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

button:hover {
    background-color: #c9302c;
}

button svg {
    fill: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .detail {
        flex-direction: column;
    }

    .image-grid {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .content {
        width: 100%;
        padding-left: 0;
        margin-top: 20px;
    }
}
