.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

/* --- Product Main Section --- */
.product-main {
    display: flex;
    gap: 2rem;
    margin-bottom: 40px;

    align-items: flex-start;
}

.product-image { 
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;

    border-radius: 1rem;
    border: 1px solid #e5e5e5;
    background-color: #f8fafc;

    min-width: 0;
    /* min-height: 500px; */
     overflow:hidden;
}

.image-wrapper {
    width: 100%;
    max-height: 600px;
    display: flex; 
    justify-content: center;
    align-items: center;
    overflow:hidden;
}

.main-art-img {
    /* max-width: 100%; */
    /* max-height: 600px; */

    width: 100%;
    height: 100%;

    border-radius: 0.75rem;
    object-fit: contain;

    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    display: block;

    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.08));
}

.main-art-img:hover {
    transform: scale(1.02);
}

.product-info { 
    flex: 1; 
    min-width: 0;
}

.product-info .title { 
    font-size: 2rem; 
    font-weight: 600; 
    margin-bottom: 0.25rem;
}

.author { 
    font-size: 1rem; 
    margin-bottom: 1.5rem; 
}

.author a { 
    color: var(--primary-color); 
    cursor: pointer; 
    text-decoration: none;
}

.price { 
    font-size: 1.5rem; 
    font-weight: 600; 
    margin: 1rem 0; 
}

.stock { 
    font-size: 1rem; 
    font-weight: 400; 
    margin-bottom: 0.5rem; 
}

.tags { 
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; 
    margin-bottom: 1rem; 
}

.tag {
    background-color: #f3e8ff;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
}

.description { 
    margin-bottom: 1rem; 
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.7;
    white-space: pre-line;
}

.btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #6d28d9;
}

.btn-disabled {
    background-color: #e5e5e5;
    color: #999;
    cursor: not-allowed;
}

/* --- Divider --- */
.divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* --- Reviews Section --- */
.review-header { 
    font-size: 1.5rem; 
    font-weight: 600; 
    margin-bottom: 1rem; 
}

.review-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;

    align-items: flex-start;
}

.review-item img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-content {
    flex: 1;
    min-width: 0;
}

.review-content h3 { 
    font-size: 1rem; 
    font-weight: 600; 
}

.stars { 
    color: var(--primary-color); 
    margin: 2px 0; 
    letter-spacing: 2px; 
}

.star-empty {
    color: #e5e5e5;
}

.review-comment { 
    color: #666; 
    font-size: 1rem;
    line-height: 1.5; 
}

.no-reviews {
    padding: 1rem 0;
    color: #666;
}

/* --- Recommendations --- */
.art-category{
    margin-top: 2rem;
}

.section-header{
    font-weight: 600;
    margin-bottom: 1rem;
}

.art-grid {
    display: grid;
    /* grid-template-columns: repeat(4, 1fr); */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.art-card {
    width: 100%;
    min-width: 0;
    cursor: pointer;
    transition: transform 0.3s;
}

.art-card:hover {
    transform: translateY(-5px);
}

.art-card a{
    text-decoration: none;
    color: #000;
    display: block;
}

.art-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    margin-bottom: 0.25rem;

    overflow: hidden;
    display: block;
}

.art-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 5px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.art-card-price {
    font-size: 1rem;
    color: #333;
    /* font-weight: 600; */
    margin-bottom: 0.25rem;
}

@media (max-width: 992px) {
    .product-main {
        flex-direction: column;
    }
    .product-image {
        min-height: 400px;

        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 20px auto;
    }

    .art-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-image {
        padding: 1rem;
        min-height: 300px;
        max-height: 400px
    }

    .product-info .title {
        font-size: 1.75rem;
    }
}

@media (max-width: 425px) {
    .product-image {
        min-height: 250px;
        max-height: 350px;
        padding: .75rem;
    }

    .main-art-img {
        max-height: 350px;
        /* set tinggi sesuai container */
    }

    .product-info h1 {
        font-size: 1.5rem;
    }

    .price {
        font-size: 1.25rem;
    }

    .btn {
        font-size: 1rem;
    }

    .review-item {
        gap: .75rem;
    }

    .review-item img {
        width: 40px;
        height: 40px;
    }
}