/* ===== Product Detail Page – Product Styling ===== */
/* Load after style.css – uses :root variables (--font-title, --primary, --ease-out-expo, etc.) */

.product-detail { padding: 48px 0 64px; }

/* ===== Lined Pipes – Trending product detail layout ===== */
.product-detail-trending {
    --product-accent: #223c7a;
    --product-primary: #223c7a;
    --product-surface: #f8fafc;
    --product-card-bg: #ffffff;
    --product-border: rgba(34, 60, 122, 0.12);
    --product-radius: 16px;
    --product-radius-lg: 24px;
}

.product-hero-modern {
    padding: 72px 0 88px;
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 45%, #334155 100%);
    position: relative;
    overflow: hidden;
}
.product-hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(34, 60, 122, 0.25) 0%, transparent 65%);
    pointer-events: none;
}
.product-hero-modern .container { position: relative; z-index: 1; }
.product-hero-modern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.product-hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(34, 60, 122, 0.2);
    color: #93b5e8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 20px;
    border: 1px solid rgba(34, 60, 122, 0.35);
}
.product-hero-modern-title {
    font-family: var(--font-title);
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.product-hero-modern-title::before {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--product-accent);
    border-radius: 2px;
    margin-bottom: 16px;
}
.product-hero-modern-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 32px;
    max-width: 520px;
}
.product-hero-modern-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-product {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-title);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn-product-primary {
    background: var(--product-accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(34, 60, 122, 0.4);
}
.btn-product-primary:hover {
    background: #223c7a;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(34, 60, 122, 0.45);
}
.btn-product-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-product-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}
.product-hero-modern-right { position: relative; }
.product-hero-modern-images {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 20px;
    align-items: end;
}
.product-hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--product-radius-lg);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.45s var(--ease-out-expo);
}
.product-hero-img-1 { aspect-ratio: 4/3; object-fit: cover; }
.product-hero-img-2 {
    aspect-ratio: 4/3;
    object-fit: cover;
    max-height: 240px;
    object-position: center top;
    transform: translateY(24px);
}
.product-hero-modern-images:hover .product-hero-img-1 { transform: translateY(-8px) scale(1.02); }
.product-hero-modern-images:hover .product-hero-img-2 { transform: translateY(16px) scale(1.02); }

/* Specs – trending cards */
.product-specs-cards { background: var(--product-surface); padding: 80px 0 88px; }
.product-detail-trending .product-section-title {
    margin-bottom: 44px;
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.product-detail-trending .product-section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--product-accent);
    border-radius: 2px;
    margin-top: 12px;
}
.spec-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.spec-card {
    background: var(--product-card-bg);
    border-radius: var(--product-radius);
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--product-border);
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--product-primary), var(--product-accent));
    opacity: 0;
    transition: opacity 0.35s ease;
}
.spec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(34, 60, 122, 0.12);
    border-color: rgba(34, 60, 122, 0.15);
}
.spec-card:hover::before { opacity: 1; }
.spec-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--product-primary), #2d4a8f);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(34, 60, 122, 0.25);
}
.spec-card-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--product-primary);
    margin: 0 0 16px;
    line-height: 1.3;
}
.spec-card-list { margin: 0; padding: 0; list-style: none; font-size: 0.95rem; line-height: 1.7; color: #475569; }
.spec-card-list li { margin-bottom: 12px; padding-left: 22px; position: relative; }
.spec-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--product-accent);
    border-radius: 50%;
}

/* Technical drawing – trending card */
.technical-drawing-section {
    background: var(--product-card-bg);
    padding: 80px 0 88px;
    border-top: 1px solid var(--product-border);
}
.technical-drawing-wrap {
    max-width: 920px;
    margin: 0 auto;
    border-radius: var(--product-radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--product-border);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}
.technical-drawing-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(34, 60, 122, 0.1), 0 0 0 1px rgba(34, 60, 122, 0.1);
}
.technical-drawing-img { width: 100%; height: auto; display: block; }
.technical-drawing-figure { margin: 0; }
.technical-drawing-caption {
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 20px;
    padding: 0 24px;
    line-height: 1.6;
}

/* Dimensional table – trending */
.dimensional-table-section { padding: 80px 0 88px; background: var(--product-surface); }
.dimensional-table-subtitle {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--product-primary);
    margin: -28px 0 28px;
}
.dimensional-table-wrapper {
    overflow-x: auto;
    border-radius: var(--product-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--product-border);
}
.dimensional-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.dimensional-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, var(--product-primary), #2d4a8f);
    color: #fff;
}
.dimensional-table th {
    padding: 18px 16px;
    text-align: center;
    font-weight: 700;
    font-family: var(--font-title);
}
.dimensional-table tr:first-child th:first-child { border-radius: var(--product-radius) 0 0 0; }
.dimensional-table tr:first-child th:last-child { border-radius: 0 var(--product-radius) 0 0; }
.dimensional-table-subhead th {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.15);
}
.dimensional-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--product-border);
    color: #334155;
}
.dimensional-table tbody tr:nth-child(even) { background: rgba(248, 250, 252, 0.8); }
.dimensional-table tbody tr:hover { background: #e2e8f0; }
.dimensional-table tbody tr:last-child td { border-bottom: 0; }

/* Related content – trending pills */
.related-content-section { padding: 80px 0 88px; background: var(--product-card-bg); border-top: 1px solid var(--product-border); }
.related-content-subtitle { text-align: center; font-size: 0.95rem; color: #64748b; margin: -24px 0 28px; font-weight: 500; }
.related-content-subtitle-2 { margin-top: 40px; margin-bottom: 24px; }
.related-pills { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.related-pill {
    display: inline-block;
    padding: 14px 26px;
    background: var(--product-surface);
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--product-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.related-pill:hover {
    background: var(--product-primary);
    color: #fff;
    border-color: var(--product-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(34, 60, 122, 0.25);
}
.product-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.product-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.product-specs-cards .product-reveal,
.technical-drawing-section .product-reveal,
.dimensional-table-section .product-reveal,
.related-content-section .product-reveal {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 992px) {
    .product-hero-modern-grid { grid-template-columns: 1fr; gap: 48px; }
    .product-hero-modern-images { max-width: 520px; margin: 0 auto; }
    .product-hero-modern-desc { max-width: none; }
    .spec-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .product-hero-modern { padding: 48px 0 64px; }
    .product-hero-modern-title { font-size: 2rem; }
    .product-hero-modern-images { grid-template-columns: 1fr; max-width: 100%; }
    .product-hero-img-2 { transform: none; max-height: none; }
    .product-hero-modern-images:hover .product-hero-img-2 { transform: none; }
    .spec-cards-grid { grid-template-columns: 1fr; }
    .product-detail-trending .product-section-title { font-size: 1.65rem; }
    .product-specs-cards, .technical-drawing-section, .dimensional-table-section, .related-content-section { padding: 48px 0 56px; }
}

/* ===== Product Detail – Professional layout ===== */
.product-detail-pro {
    --pro-primary: #223c7a;
    --pro-accent: #223c7a;
    --pro-text: #1e293b;
    --pro-text-muted: #64748b;
    --pro-bg: #ffffff;
    --pro-bg-alt: #f8fafc;
    --pro-border: #e2e8f0;
    --pro-radius: 12px;
}

/* ===== Product detail – First section (new layout & styling) ===== */
.product-hero-new {
    position: relative;
    padding: 40px 0 64px;
    overflow: hidden;
}
.product-hero-new-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #eef2fa 0%, #f8fafc 50%, #f1f5f9 100%);
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.product-hero-new-bg::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 60, 122, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.product-hero-new-container { position: relative; z-index: 1; }
.product-hero-new-breadcrumb {
    font-size: 0.8125rem;
    margin-bottom: 24px;
    color: #64748b;
}
.product-hero-new-breadcrumb a {
    color: var(--pro-primary);
    text-decoration: none;
    font-weight: 500;
}
.product-hero-new-breadcrumb a:hover { text-decoration: underline; }
.product-hero-new-sep { margin: 0 6px; color: #cbd5e1; }
.product-hero-new-breadcrumb [aria-current="page"] { color: #334155; font-weight: 600; }
.product-hero-new-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 22px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}
.product-hero-new-content {
    background: #fff;
    padding: 40px 36px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(34, 60, 122, 0.08), 0 0 0 1px rgba(34, 60, 122, 0.06);
}
.product-hero-new-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pro-accent);
    margin-bottom: 12px;
}
.product-hero-new-title {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    padding-left: 20px;
    border-left: 4px solid var(--pro-accent);
}
.product-hero-new-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 24px;
}
.product-hero-new-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.product-hero-new-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #eef2fa;
    color: var(--pro-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(34, 60, 122, 0.2);
}
.product-hero-new-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-hero-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-title);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.product-hero-new-btn-primary {
    background: var(--pro-accent);
    color: #fff;
    border: 2px solid var(--pro-accent);
}
.product-hero-new-btn-primary:hover {
    background: #223c7a;
    border-color: #223c7a;
    box-shadow: 0 6px 20px rgba(34, 60, 122, 0.35);
}
.product-hero-new-btn-outline {
    background: #fff;
    color: var(--pro-primary);
    border: 2px solid var(--pro-primary);
}
.product-hero-new-btn-outline:hover {
    background: var(--pro-primary);
    color: #fff;
}

/* Remove Product Overview section globally from product pages */
.product-overview-pro {
    display: none !important;
}

.product-hero-new-media,
.product-hero-new-gallery {
    width: 100%;
}
.product-hero-new-media { position: relative; }
.product-hero-new-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-hero-new-main-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #eef3f9;
    border: 1px solid #d9e2ee;
    min-height: 420px;
    box-shadow: none;
}
.product-hero-new-main-img {
    width: 100%;
    height: 420px;
    background: #f7f9fc;
    display: block;
    object-fit: contain;
    object-position: center;
}
.product-hero-new-thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: 10px;
    margin-top: 12px;
    padding-bottom: 4px;
}
.product-hero-new-thumb {
    flex: 0 0 122px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-hero-new-thumb:hover {
    transform: none;
}
.product-hero-new-thumb.active {
    border-color: #1a78bf;
    box-shadow: 0 6px 14px rgba(18, 80, 128, 0.2);
}
.product-hero-new-thumb img {
    display: block;
    width: 100%;
    height: 84px;
    object-fit: cover;
    object-position: center;
}

.product-hero-new-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(14, 44, 72, 0.68);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-hero-new-nav:hover {
    background: rgba(10, 35, 58, 0.85);
    transform: translateY(-50%);
}

.product-hero-new-nav.prev { left: 12px; }
.product-hero-new-nav.next { right: 12px; }

/* Shared single-image section sizing used in product pages */
.after-hero-single-image {
    padding: 0;
}

.after-hero-single-image-wrap {
    max-width: none;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    padding: 0;
}

.after-hero-single-image-wrap img {
    width: auto;
    max-width: none;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    background: #f7f9fc;
    border-radius: 10px;
}
@media (max-width: 992px) {
    .product-hero-new-grid { grid-template-columns: 1fr; gap: 16px; }
    .product-hero-new-media { order: -1; }
    .product-hero-new-content { order: 1; }
    .product-hero-new-main-img { height: 320px; }
    .product-hero-new-main-wrap { min-height: 320px; }
    .product-hero-new-thumb img { height: 72px; }
    .product-hero-new-thumb { flex-basis: 98px; }
}

@media (max-width: 767px) {
    .product-hero-new-nav {
        width: 34px;
        height: 34px;
    }

    .product-hero-new-nav.prev { left: 8px; }
    .product-hero-new-nav.next { right: 8px; }
}
@media (max-width: 768px) {
    .product-hero-new { padding: 24px 0 48px; }
    .product-hero-new-content { padding: 28px 24px; }
    .product-hero-new-title { font-size: 1.75rem; }
    .after-hero-single-image-wrap img { width: 100%; height: auto; }
}

/* Hero – clean, light, corporate (legacy) */
.product-hero-pro {
    padding: 32px 0 56px;
    background: var(--pro-bg);
    border-bottom: 1px solid var(--pro-border);
}
.product-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 28px;
    color: var(--pro-text-muted);
}
.product-breadcrumb a {
    color: var(--pro-primary);
    text-decoration: none;
    font-weight: 500;
}
.product-breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep {
    margin: 0 8px;
    color: var(--pro-border);
}
.product-breadcrumb [aria-current="page"] { color: var(--pro-text); font-weight: 600; }
.product-hero-pro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.product-hero-pro-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pro-text);
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.product-hero-pro-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--pro-text-muted);
    margin: 0 0 24px;
    max-width: 520px;
}
.product-hero-highlights {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.product-hero-highlights li {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pro-primary);
    padding-left: 24px;
    position: relative;
}
.product-hero-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--pro-accent);
    border-radius: 50%;
}
.product-hero-pro-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-title);
    border-radius: var(--pro-radius);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn-pro-primary {
    background: var(--pro-accent);
    color: #fff;
    border: 2px solid var(--pro-accent);
}
.btn-pro-primary:hover {
    background: #223c7a;
    border-color: #223c7a;
    box-shadow: 0 4px 16px rgba(34, 60, 122, 0.3);
}
.btn-pro-secondary {
    background: var(--pro-bg);
    color: var(--pro-primary);
    border: 2px solid var(--pro-primary);
}
.btn-pro-secondary:hover {
    background: var(--pro-primary);
    color: #fff;
}
.product-hero-pro-media { position: relative; }
.product-hero-gallery {
    display: flex;
    gap: 16px;
    align-items: stretch;
}
.product-hero-pro-image-wrap {
    flex: 1;
    min-width: 0;
    border-radius: var(--pro-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(34, 60, 122, 0.12), 0 0 0 1px var(--pro-border);
    aspect-ratio: 4/3;
}
.product-hero-pro-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.product-hero-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100px;
    flex-shrink: 0;
}
.product-hero-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 2px solid var(--pro-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--pro-bg);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 1;
}
.product-hero-thumb:hover {
    border-color: var(--pro-primary);
    box-shadow: 0 4px 12px rgba(34, 60, 122, 0.15);
}
.product-hero-thumb.active {
    border-color: var(--pro-accent);
    box-shadow: 0 4px 16px rgba(109, 67, 74, 0.25);
}
.product-hero-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}

/* Specs – dark section + glass cards (applies to all product pages) */
.product-specs-pro {
    position: relative;
    padding: 64px 0 72px;
    /* Use image background globally; can be overridden per page with --specs-bg-image */
    --specs-bg-image: url("../Image/07.jpg");
    background-image: var(--specs-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.product-specs-pro::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(7, 18, 34, 0.78) 0%, rgba(9, 39, 72, 0.68) 45%, rgba(18, 85, 136, 0.56) 100%),
        radial-gradient(circle at 84% 18%, rgba(173, 211, 255, 0.2) 0%, transparent 38%),
        radial-gradient(circle at 16% 82%, rgba(126, 177, 238, 0.12) 0%, transparent 42%);
}

.product-specs-pro .container {
    position: relative;
    z-index: 1;
}
.product-pro-heading {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pro-text);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.product-pro-subheading {
    font-size: 0.9375rem;
    color: var(--pro-text-muted);
    margin: 0 0 40px;
}
.product-specs-pro .product-pro-heading {
    color: #f7fbff;
}
.product-specs-pro .product-pro-subheading {
    color: rgba(230, 239, 252, 0.86);
}
.spec-cards-pro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.spec-card-pro {
    background: rgba(223, 238, 255, 0.09);
    border-radius: 14px;
    padding: 28px 24px;
    border: 1px solid rgba(190, 217, 248, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 16px 32px rgba(2, 11, 26, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.spec-card-pro:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 20px 38px rgba(2, 11, 26, 0.36);
    border-color: rgba(212, 230, 252, 0.58);
}
.spec-card-pro-title {
    font-family: var(--font-title);
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(215, 230, 250, 0.34);
}
.spec-card-pro-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(238, 246, 255, 0.95);
}
.spec-card-pro p {
    margin: 0;
    color: rgba(238, 246, 255, 0.95);
    font-size: 0.9375rem;
    line-height: 1.65;
}
.spec-card-pro-list li {
    margin-bottom: 10px;
    padding-left: 16px;
    position: relative;
}
.spec-card-pro-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(204, 228, 255, 0.95);
}

/* Technical drawing – document style */
.technical-drawing-pro {
    background: var(--pro-bg);
    padding: 64px 0 72px;
    border-top: 1px solid var(--pro-border);
}
.technical-figure-pro { margin: 0; }
.technical-figure-inner {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--pro-radius);
    overflow: hidden;
    border: 1px solid var(--pro-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.technical-img-pro { width: 100%; height: auto; display: block; }
.technical-caption-pro {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--pro-text-muted);
    margin-top: 16px;
    padding: 0 16px;
    line-height: 1.6;
}

/* Dimensional table – clean corporate table */
.dimensional-pro {
    background: var(--pro-bg-alt);
    padding: 64px 0 72px;
}
.dimensional-wrapper-pro {
    overflow-x: auto;
    border-radius: var(--pro-radius);
    border: 1px solid var(--pro-border);
    background: var(--pro-bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.dimensional-table-pro {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.dimensional-table-pro thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--pro-primary);
    color: #fff;
}
.dimensional-table-pro th {
    padding: 16px 14px;
    text-align: center;
    font-weight: 700;
    font-family: var(--font-title);
}
.dimensional-subhead-pro th {
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 10px 14px;
    background: #2d4a8f;
}
.dimensional-table-pro td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid var(--pro-border);
    color: var(--pro-text);
}
.dimensional-table-pro tbody tr:nth-child(even) { background: #f8fafc; }
.dimensional-table-pro tbody tr:hover { background: #f1f5f9; }
.dimensional-table-pro tbody tr:last-child td { border-bottom: 0; }

/* Jacketed pipe spool – two-panel dimensional layout (dimension + flange) */
.dimensional-pro--jacketed .product-pro-subheading {
    margin-bottom: 28px;
}
.jacketed-dim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}
.jacketed-dim-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--pro-border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    min-width: 0;
}
.jacketed-dim-panel__head {
    margin: 0;
    padding: 14px 18px;
    font-family: var(--font-title);
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: var(--pro-primary);
    letter-spacing: 0.02em;
    line-height: 1.35;
}
.jacketed-dim-panel__wrap {
    overflow-x: auto;
}
.jacketed-dim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.jacketed-dim-table--detail {
    min-width: 380px;
}
.jacketed-dim-table thead tr:first-child th {
    background: var(--pro-primary);
    color: #fff;
    padding: 12px 10px;
    text-align: center;
    font-weight: 700;
    font-family: var(--font-title);
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.jacketed-dim-table thead tr.jacketed-dim-subrow th {
    background: #e8eef7;
    color: var(--pro-primary);
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 10px 10px;
    text-align: center;
    border-bottom: 1px solid var(--pro-border);
}
.jacketed-dim-table td {
    padding: 11px 10px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    color: var(--pro-text);
}
.jacketed-dim-table tbody tr:nth-child(even) { background: #f8fafc; }
.jacketed-dim-table tbody tr:nth-child(odd) { background: #fff; }
.jacketed-dim-table tbody tr:hover { background: #f1f5f9; }
.jacketed-dim-table tbody tr:last-child td { border-bottom: none; }
.jacketed-dim-footnote {
    margin: 12px 0 0;
    padding: 0 16px 16px;
    font-size: 0.8125rem;
    color: var(--pro-text-muted);
    line-height: 1.5;
}
@media (max-width: 1100px) {
    .jacketed-dim-grid {
        grid-template-columns: 1fr;
    }
}

/* Related products */
.related-pro {
    background: var(--pro-bg);
    padding: 64px 0 72px;
    border-top: 1px solid var(--pro-border);
}
.related-pro-sub {
    font-size: 0.9375rem;
    color: var(--pro-text-muted);
    margin: -8px 0 20px;
}
.related-pro-sub-2 { margin-top: 32px; margin-bottom: 16px; }
.related-links-pro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}
.related-link-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    min-height: 44px;
    box-sizing: border-box;
    background: #f1f5f9;
    color: var(--pro-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(34, 60, 122, 0.12);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.related-link-pro:hover {
    background: var(--pro-primary);
    color: #fff;
    border-color: var(--pro-primary);
    box-shadow: 0 4px 14px rgba(34, 60, 122, 0.2);
}
@media (max-width: 992px) {
    .product-hero-pro-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-hero-pro-desc { max-width: none; }
    .product-hero-pro-media { order: -1; max-width: 100%; }
    .product-hero-gallery { flex-direction: column; }
    .product-hero-thumbs {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    .product-hero-thumb { max-width: 80px; }
    .spec-cards-pro { grid-template-columns: repeat(2, 1fr); }
    .product-specs-pro { background-attachment: scroll; }
}
@media (max-width: 768px) {
    .product-hero-pro { padding: 24px 0 40px; }
    .product-hero-pro-title { font-size: 1.875rem; }
    .spec-cards-pro { grid-template-columns: 1fr; }
    .product-specs-pro, .technical-drawing-pro, .dimensional-pro, .related-pro { padding: 48px 0 56px; }
}

/* Standard product detail layout (other products) */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.product-gallery .gallery-main {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.product-gallery .gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    transition: border-color var(--transition), opacity var(--transition);
}
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { display: block; width: 80px; height: 60px; object-fit: cover; }
.product-info h2 { margin: 0 0 12px; font-size: 1.75rem; color: var(--dark); }
.product-short { font-size: 1.1rem; color: var(--primary); margin: 0 0 16px; font-weight: 500; }
.product-full { margin: 0 0 24px; color: var(--grey); line-height: 1.7; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.product-specs h3 { margin: 0 0 16px; font-size: 1.15rem; color: var(--dark); }
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.spec-table th,
.spec-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.spec-table th {
    font-weight: 600;
    color: var(--grey);
    width: 40%;
}
.spec-table td { color: var(--dark); }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }
@media (max-width: 900px) {
    .product-detail-layout { grid-template-columns: 1fr; }
}

/* ----- Lined pipe spool & pages: dimensional card tables ----- */
.custom-dim-set {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.custom-dim-card {
    background: #fff;
    border: 1px solid #d8e2ee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(17, 51, 82, 0.06);
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-dim-card--full {
    grid-column: 1 / -1;
}

.custom-dim-card--flange .custom-dim-title {
    background: linear-gradient(135deg, #125f99 0%, #125f99 100%);
}

.custom-dim-title {
    margin: 0;
    padding: 10px 12px;
    background: linear-gradient(135deg, #125f99 0%, #1c79bc 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.custom-dim-table-wrap {
    overflow-x: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.custom-dim-table {
    width: 100%;
    min-width: 100%;
    height: 100%;
    flex: 1 1 auto;
    border-collapse: collapse;
    background: #fff;
}

.custom-dim-table th,
.custom-dim-table td {
    border: 1px solid #d8e2ee;
    text-align: center;
    padding: 8px 7px;
    color: #2f4258;
    font-size: 14px;
    line-height: 1.3;
}

.custom-dim-table th {
    background: #eef4fb;
    color: #20486d;
    font-weight: 700;
}

.custom-dim-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

@media (max-width: 991px) {
    .custom-dim-set {
        grid-template-columns: 1fr;
    }
}

/* ----- Premium specs block (product-specs-pro + section + .ps2-inner) ----- */
.product-specs-pro .ps2-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 52px));
    margin: 0 auto;
    box-sizing: border-box;
}

.product-specs-pro.section {
    --ps2-text: #e9f2ff;
    --ps2-muted: #c9d9ee;
    --ps2-line: rgba(219, 235, 255, 0.4);
    position: relative;
    width: 100%;
    margin: 46px 0;
    padding: clamp(84px, 10vw, 118px) 0;
    overflow: hidden;
    font-family: Inter, Poppins, Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
    background-image:
        linear-gradient(120deg, rgba(7, 18, 34, 0.8) 0%, rgba(9, 39, 72, 0.72) 45%, rgba(18, 85, 136, 0.6) 100%),
        var(--specs-bg-image, url("../Image/07.jpg"));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.product-specs-pro.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(113, 196, 255, 0.18) 0%, transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(140, 220, 255, 0.12) 0%, transparent 28%);
    pointer-events: none;
}

.product-specs-pro.section .ps2-inner {
    color: var(--ps2-text);
}

.product-specs-pro.section .product-pro-heading {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    text-wrap: balance;
}

.product-specs-pro.section .product-pro-subheading {
    margin: 12px 0 0;
    max-width: 760px;
    color: var(--ps2-muted);
    font-size: clamp(15px, 1.8vw, 19px);
    line-height: 1.7;
    text-wrap: pretty;
}

.product-specs-pro.section .spec-cards-pro {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.product-specs-pro.section .spec-card-pro {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--ps2-line);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 20px 18px;
    box-shadow: 0 14px 32px rgba(2, 15, 30, 0.26);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.product-specs-pro.section .spec-card-pro:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.17);
    box-shadow: 0 18px 34px rgba(2, 15, 30, 0.32);
}

.product-specs-pro.section .spec-card-pro-title {
    margin: 0 0 10px;
    padding-bottom: 0;
    border-bottom: none;
    color: #ffffff;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 700;
}

.product-specs-pro.section .spec-card-pro-list {
    margin: 0;
    padding-left: 1.25em;
    list-style: disc;
    color: #eaf3ff;
    line-height: 1.78;
}

.product-specs-pro.section .spec-card-pro-list li {
    margin-bottom: 8px;
}

.product-specs-pro.section .spec-card-pro-list li::before {
    display: none;
}

.product-specs-pro.section .spec-card-pro-list strong {
    color: #ffffff;
}

@keyframes ps2FadeUpPremium {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-specs-pro.section .product-pro-heading,
.product-specs-pro.section .product-pro-subheading,
.product-specs-pro.section .spec-card-pro {
    opacity: 0;
    animation: ps2FadeUpPremium 0.62s cubic-bezier(0.21, 0.69, 0.2, 1) forwards;
}

.product-specs-pro.section .product-pro-heading { animation-delay: 0.05s; }
.product-specs-pro.section .product-pro-subheading { animation-delay: 0.14s; }
.product-specs-pro.section .spec-card-pro:nth-child(1) { animation-delay: 0.22s; }
.product-specs-pro.section .spec-card-pro:nth-child(2) { animation-delay: 0.32s; }
.product-specs-pro.section .spec-card-pro:nth-child(3) { animation-delay: 0.42s; }

@media (max-width: 991px) {
    .product-specs-pro.section {
        margin: 34px 0;
        padding: 72px 0;
        background-position: center center;
        background-attachment: scroll;
    }

    .product-specs-pro.section .ps2-inner {
        width: min(1180px, calc(100% - 30px));
    }

    .product-specs-pro.section .spec-cards-pro {
        grid-template-columns: 1fr;
        gap: 13px;
    }
}

@media (max-width: 560px) {
    .product-specs-pro.section {
        padding: 64px 0;
    }

    .product-specs-pro.section .spec-card-pro {
        border-radius: 14px;
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-specs-pro.section .product-pro-heading,
    .product-specs-pro.section .product-pro-subheading,
    .product-specs-pro.section .spec-card-pro {
        opacity: 1;
        animation: none;
    }
}

/* Lined Pipe Spool: first section mobile-only overrides */
@media (max-width: 768px) {
    .lined-pipe-spool-page .product-hero-new-grid {
        gap: 14px;
    }

    .lined-pipe-spool-page .product-hero-new-main-wrap {
        min-height: 0;
        padding: 0;
        border-radius: 14px;
        background: #eef2f7;
    }

    .lined-pipe-spool-page .product-hero-new-main-img {
        height: auto;
        max-height: 300px;
        aspect-ratio: 4 / 3;
        object-fit: contain;
    }

    .lined-pipe-spool-page .product-hero-new-nav {
        display: inline-flex;
    }

    .lined-pipe-spool-page .product-hero-new-thumbs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        margin-top: 10px;
        overflow: visible;
    }

    .lined-pipe-spool-page .product-hero-new-thumb {
        width: 100%;
        max-width: none;
    }

    .lined-pipe-spool-page .product-hero-new-thumb img {
        height: 66px;
    }
}

@media (max-width: 600px) {
    .lined-pipe-spool-page .product-hero-new {
        padding: 18px 0 38px;
    }

    .lined-pipe-spool-page .product-hero-new-breadcrumb {
        margin-bottom: 12px;
        font-size: 0.75rem;
    }

    .lined-pipe-spool-page .product-hero-new-grid {
        gap: 12px;
    }

    .lined-pipe-spool-page .product-hero-new-main-wrap {
        border-radius: 12px;
    }

    .lined-pipe-spool-page .product-hero-new-main-img {
        max-height: 260px;
    }

    .lined-pipe-spool-page .product-hero-new-thumbs {
        margin-top: 8px;
        gap: 8px;
    }

    .lined-pipe-spool-page .product-hero-new-content {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .lined-pipe-spool-page .product-hero-new-title {
        font-size: 1.65rem;
        padding-left: 14px;
        border-left-width: 3px;
    }

    .lined-pipe-spool-page .product-hero-new-desc {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }
}

@media (max-width: 420px) {
    .lined-pipe-spool-page .product-hero-new-thumb img {
        height: 54px;
    }
}
