.product-detail {
    padding: 160px 0 100px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.detail-gallery {
    display: grid;
    gap: 0.75rem;
}

.detail-gallery-main {
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--bg-alt);
}

.detail-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.75rem;
}

.detail-gallery-thumb {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-alt);
    padding: 0;
    cursor: pointer;
}

.detail-gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-yellow);
}

.detail-gallery-thumb img,
.detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    margin-bottom: 0.5rem;
}

.detail-info .category-tag {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.detail-info .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
}

.detail-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.7;
}

.product-description p,
.product-description ul,
.product-description ol,
.product-description blockquote,
.product-description pre {
    margin: 0 0 1rem;
}

.product-description ul,
.product-description ol {
    padding-left: 1.5rem;
}

.product-description blockquote {
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--primary);
    background: var(--bg-alt);
}

.product-description pre {
    overflow: auto;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-alt);
}

.product-description table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.product-description th,
.product-description td {
    padding: 0.75rem;
    border: 1px solid var(--border);
}

.product-description iframe {
    max-width: 100%;
    margin: 1rem 0;
}

.actions-row {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail {
        padding-top: 100px;
    }

    .actions-row {
        flex-direction: column;
    }
}
