/* X007 主题 - 商品详情样式 */

/* Breadcrumb */
.breadcrumb {
    background: var(--bg);
    padding: 15px 0;
}
.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.breadcrumb a {
    color: var(--text-muted);
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb-sep {
    color: var(--text-light);
}
.breadcrumb span {
    color: var(--primary);
}

/* Product Detail Grid */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}
.product-main-image {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}
.product-main-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.product-thumbnails {
    display: flex;
    gap: 10px;
}
.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.product-thumbnails img:hover,
.product-thumbnails img.active {
    border-color: var(--accent);
}

/* Product Info */
.product-detail-info h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
}
.product-detail-model {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.product-price-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
}
.product-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
}
.product-detail-stock {
    color: var(--success);
    font-size: 14px;
}
.product-detail-stock i {
    margin-right: 5px;
}
.product-detail-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Specs */
.product-specs {
    margin-bottom: 25px;
}
.product-specs h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 15px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table td {
    padding: 10px 15px;
    border: 1px solid var(--border);
}
.specs-table td:first-child {
    background: var(--bg);
    font-weight: 500;
    color: var(--primary);
    width: 40%;
}

/* Actions */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    padding: 8px 15px;
    border-radius: var(--radius);
}
.quantity-selector label {
    font-size: 14px;
    color: var(--text);
}
.quantity-selector button {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    color: var(--primary);
}
.quantity-selector button:hover {
    background: var(--primary);
    color: var(--white);
}
.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
}

/* Tabs */
.product-tabs {
    margin-top: 60px;
}
.product-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
}
.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.tab-btn:hover {
    color: var(--primary);
}
.tab-btn.active {
    color: var(--accent);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}
.product-tabs-content {
    min-height: 200px;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-content p {
    line-height: 1.8;
    color: var(--text-muted);
}

/* Related Products */
.related-products {
    margin-top: 60px;
}
.related-products h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-gallery {
        position: static;
    }
}
