.product-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* ← 핵심: 세로 중간 정렬 */
    gap: 2rem;
}

.product-img {
    flex: 0 0 35%;
    max-width: 35%;
	
}

.product-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 0.5rem;
}

.product-desc {
    flex: 1 1 60%;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
    border: 1px solid #ccc;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.spec-table th {
    background-color: #f0f0f0;
    font-weight: 600;
    width: 35%;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    justify-content: center;
	margin-top: 1.5rem;
	margin-bottom: 10rem;
}

.product-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background-color: #fff; /* 여백이 생길 수 있으니 백색 배경 */
    border-radius: 0.375rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	border: 1px solid gray;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

@media (max-width: 345px) {
    .product-row {
        flex-direction: column;
        align-items: stretch;
    }

    .product-img,
    .product-desc {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .spec-table {
        overflow-x: auto;
        display: block;
    }

  
}

