.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 0;
}
.product-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 0.95rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.product-actions .btn-primary {
    background: var(--secondary-color);
    color: #fff;
}
.product-actions .btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.product-actions .btn-secondary:hover,
.product-actions .btn-primary:hover {
    background: var(--secondary-dark);
    color: #fff;
    border-color: var(--secondary-dark);
}
.product-details-text {
    display: block;
    color: #4b5563;
    margin-top: 1rem;
    line-height: 1.8;
    font-size: 1rem;
    max-width: 700px;
}

/* Page-only hero height override for oc-2j.html */
.products-hero {
    min-height: 140px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ================== Product photo gallery (uniform across all pages) ================== */
.prod-gallery {
    position: sticky;
    top: 100px;
}
.prod-gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f7f9fb;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    padding: 14px;
}
.small-img-group {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.small-img-col {
    flex: 0 0 auto;
    width: 84px;
    cursor: pointer;
}
.small-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f7f9fb;
    border: 1px solid #eef1f4;
    border-radius: 8px;
    padding: 6px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.small-img:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}
@media (max-width: 991.98px) {
    .prod-gallery { position: static; margin-bottom: 1.5rem; }
}

/* Sub-table caption (e.g. Soft Jaw variants, dimension tables) */
.table-caption {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin: 24px 0 8px;
}

/* Per-model 2D drawing download buttons */
.downloads-note {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 4px 0 8px;
}
.drawing-link {
    display: inline-block;
    line-height: 0;
}
.drawing-link img {
    width: 34px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.drawing-link:hover img {
    transform: scale(1.12);
}

/* Placeholder cell shown when no spec/dimension data is available yet */
.table-placeholder {
    text-align: center !important;
    color: #6b7280;
    font-style: italic;
    padding: 28px 16px !important;
    background: #f9fafb;
}
.table-placeholder a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ================== Responsive ================== */
@media (max-width: 768px) {
    .sproduct {
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
    }
    .sproduct h3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .related-products {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
    }
    .product-actions .btn {
        width: 100%;
        min-width: 0;
    }
}
