/**
 * AGORA MARKETPLACE - Product Detail Styles
 */

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-medium);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 10px;
}

/* Product Detail */
.product-detail {
    padding: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    position: relative;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: contain;
}

.boosted-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.thumbnail {
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.negotiable-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-medium);
}

.meta-item i {
    color: var(--primary-color);
    width: 16px;
}

.product-condition,
.product-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.condition-label,
.brand-label {
    font-size: 14px;
    color: var(--text-light);
}

.condition-value {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.condition-value.new {
    background: #d4edda;
    color: #155724;
}

.condition-value.used {
    background: #fff3cd;
    color: #856404;
}

.condition-value.refurbished {
    background: #d1ecf1;
    color: #0c5460;
}

.brand-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    flex: 1;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.btn-favorite {
    width: 52px;
    height: 52px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-light);
}

.btn-favorite:hover,
.btn-favorite.active {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.btn-favorite.active {
    background: #f8d7da;
}

.btn-share {
    width: 52px;
    height: 52px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-light);
}

.btn-share:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Safety Tips Box */
.safety-tips-box {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
}

.safety-tips-box h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.safety-tips-box h4 i {
    color: var(--primary-color);
}

.safety-tips-box ul {
    list-style: none;
}

.safety-tips-box ul li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-medium);
    padding-left: 20px;
    position: relative;
}

.safety-tips-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Description Section */
.product-description-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.product-description-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.description-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-medium);
}

.description-content p {
    margin-bottom: 16px;
}

/* Seller Section */
.seller-section {
    margin-bottom: 40px;
}

.seller-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.seller-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--border-color);
}

.seller-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-color);
    flex-shrink: 0;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 600;
}

.seller-details {
    flex: 1;
}

.seller-details h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.seller-details p {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.seller-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.verified-badge {
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.verified-badge i {
    margin-right: 4px;
}

.member-since {
    font-size: 13px;
    color: var(--text-light);
}

.seller-actions {
    display: flex;
    gap: 12px;
}

/* Related Products */
.related-products {
    margin-top: 40px;
}

.related-products h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.related-products .products-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-images {
        position: static;
    }
    
    .main-image img {
        height: 400px;
    }
    
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-image img {
        height: 300px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .product-price {
        font-size: 24px;
    }
    
    .seller-card {
        flex-direction: column;
        text-align: center;
    }
    
    .seller-actions {
        width: 100%;
        justify-content: center;
    }
    
    .related-products .products-grid {
        grid-template-columns: 1fr;
    }
}
