.product-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-detail-intro h1 { margin: 0 0 0.5rem; }

.btn-trial {
    display: inline-block;
    background: #dc2626;
    color: #fff !important;
    font-size: 1.0625rem;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    white-space: nowrap;
}

.btn-trial:hover {
    background: #b91c1c;
    color: #fff !important;
}

.product-download-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.product-action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: min(100%, 360px);
}

.btn-buy {
    display: inline-block;
    background: #1d4ed8;
    color: #fff !important;
    font-size: 1.0625rem;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    background: #1e40af;
    color: #fff !important;
}

.product-action-buttons .product-download-buttons {
    min-width: 0;
}

.product-download-cta-heading {
    margin: 0;
    font-weight: 700;
    font-size: 1.0625rem;
    color: #dc2626;
}

.product-download-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    min-width: min(100%, 320px);
}

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
    border-bottom: 2px solid var(--color-border);
}

.product-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.75rem 1.25rem;
    font: inherit;
    font-weight: 600;
    color: var(--color-muted);
    cursor: pointer;
}

.product-tab:hover { color: var(--color-text); }

.product-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.product-tab-panels {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 2rem;
    margin-bottom: 3rem;
}

.product-tab-panel[hidden] { display: none !important; }

.product-lead {
    font-size: 1.125rem;
    color: var(--color-muted);
    margin-top: 0;
}

.pricing-block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.pricing-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pricing-block h2 {
    font-size: 1.125rem;
    margin: 0 0 0.75rem;
    color: var(--color-primary);
}

.pricing-block-aio {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.product-price-free {
    font-size: 1.25rem;
    font-weight: 700;
    color: #166534;
}

.product-price-vat {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.download-gate-card {
    max-width: 36rem;
}

.manual-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.manual-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
}

.manual-link:hover {
    border-color: var(--color-accent);
    background: #fff;
}

.manual-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 6px;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.product-gallery-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-gallery-caption {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.4;
}

.product-gallery-thumb {
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
}

.product-gallery-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.product-gallery-thumb:hover img { transform: scale(1.03); }

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-lightbox[hidden] { display: none !important; }

body.lightbox-open { overflow: hidden; }

.product-lightbox-figure {
    margin: 0;
    max-width: min(1100px, 100%);
    max-height: 90vh;
    text-align: center;
}

.product-lightbox-figure img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.product-lightbox-figure figcaption {
    color: #e2e8f0;
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

.product-lightbox-close,
.product-lightbox-prev,
.product-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
}

.product-lightbox-close { top: 1rem; right: 1rem; }
.product-lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.product-lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.product-lightbox-close:hover,
.product-lightbox-prev:hover,
.product-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 700px) {
    .product-detail-header { flex-direction: column; }
    .product-download-cta { align-items: stretch; width: 100%; }
    .btn-trial { width: 100%; text-align: center; }
    .product-tab { flex: 1 1 45%; text-align: center; padding: 0.625rem 0.5rem; font-size: 0.875rem; }
}
