.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
    align-items: start;
}

#table-media-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.main-image-view {
    width: 100%;
    max-width: 500px; 
    aspect-ratio: 1 / 1; 
    background: #f7f9fa;
    border: 1px solid #eef0f2;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.main-image-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.thumbnail-list::-webkit-scrollbar {
    display: none;
}
.thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid #eef0f2;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.thumb-item.active, .thumb-item:hover {
    border-color: #2ecc71;
}
.nav-arrow {
    background: rgba(0,0,0,0.05);
    border: none;
    width: 30px;
    height: 80px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.info-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.p-title { font-size: 26px; font-weight: 700; color: #333; line-height: 1.3; }
.p-brand { font-size: 14px; color: #7f8c8d; }
.p-brand span { font-weight: 700; color: #555; }
.p-desc-title { font-size: 16px; font-weight: 700; margin-top: 10px; }
.p-desc-text { font-size: 14px; color: #555; line-height: 1.6; white-space: pre-line; }
.variant-section {
    border-top: 1px solid #eef0f2;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.variant-title { font-size: 14px; font-weight: 700; color: #333; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-badge {
    padding: 6px 14px;
    border: 1px solid #dcdde1;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
}
.variant-badge:hover, .variant-badge.active {
    border-color: #2ecc71;
    color: #2ecc71;
    background: #f4fbf7;
}
.quantity-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    font-size: 14px;
}
.qty-control { display: flex; border: 1px solid #dcdde1; border-radius: 4px; overflow: hidden; }
.qty-btn { padding: 6px 12px; background: #f5f6fa; border: none; cursor: pointer; font-weight: bold; }
.qty-input { width: 45px; text-align: center; border: none; border-left: 1px solid #dcdde1; border-right: 1px solid #dcdde1; }
.action-buttons { display: flex; gap: 15px; margin-top: 20px; }
.btn-buy, .btn-cart {
    flex: 1; padding: 12px; border: none; border-radius: 4px; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center; transition: opacity 0.2s;
}
.btn-buy { background: #27ae60; color: white; }
.btn-cart { background: #2ecc71; color: white; }
.btn-buy:hover, .btn-cart:hover { opacity: 0.9; }

@media (max-width: 768px) {
    .product-detail-layout { grid-template-columns: 1fr; gap: 25px; }
}