/* Product Page Container */
.product-detail-page {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: 80vh;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}
.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb .separator { margin: 0 10px; color: #ccc; }
.breadcrumb .current { color: var(--primary-color); font-weight: 500; }

/* Layout Grid */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

/* Gallery */
.main-image-container {
    width: 100%;
    height: 500px;
    background: #f4f4f4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
}
.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or contain, depending on image style */
}
.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}
.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.2s;
}
.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}
.thumbnail:hover { opacity: 1; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info Column */
.product-header { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
.category-badge {
    background: rgba(42, 157, 143, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-header h1 {
    margin: 10px 0;
    font-size: 2rem;
    color: #264653;
}
.product-meta { display: flex; gap: 20px; font-size: 0.9rem; color: #666; }
.stock-status i { font-size: 0.6rem; vertical-align: middle; margin-right: 5px; }
.stock-status.in-stock { color: #2a9d8f; }
.stock-status.out-of-stock { color: #e76f51; }

/* Price Section */
.product-price-section { margin-bottom: 20px; }
.product-price-section .label { display: block; font-size: 0.9rem; color: #888; margin-bottom: 5px; }
.product-price-section .price { font-size: 2.2rem; color: var(--accent-color); font-weight: 700; margin: 0; }

.product-short-desc { font-size: 1rem; color: #555; line-height: 1.6; margin-bottom: 30px; }

/* Actions */
.product-actions { margin-bottom: 30px; }
.btn-block { display: block; width: 100%; text-align: center; padding: 15px; font-size: 1.1rem; }
.login-hint { text-align: center; margin-top: 10px; font-size: 0.9rem; color: #666; }
.login-hint a { color: var(--primary-color); text-decoration: none; font-weight: 600; }

/* Specs */
.product-specs { background: #f8f9fa; padding: 20px; border-radius: 6px; }
.product-specs h3 { font-size: 1.1rem; margin-bottom: 10px; color: #333; }
.product-specs ul { list-style: none; padding: 0; margin: 0; }
.product-specs li { margin-bottom: 8px; color: #555; font-size: 0.95rem; }
.product-specs li strong { color: #333; min-width: 100px; display: inline-block; }

/* Full Description Tabs */
.product-full-description { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 40px; }
.tabs { border-bottom: 2px solid #eee; margin-bottom: 20px; }
.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.tab-content p { line-height: 1.8; color: #444; }

/* Related Products */
.related-products h3 { margin-bottom: 20px; color: #264653; }

/* Responsive */
@media (max-width: 768px) {
    .product-detail-grid { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    .main-image-container { height: 300px; }
}