/* ================= Product Detail — screenshot-faithful product sheet ================= */
:root {
    --pd-primary: #0E7C61;
    --pd-primary-hover: #0c6b54;
    --pd-navy: #0B2545;
    --pd-navy-deep: #081A30;
    --pd-blue: #1B4F91;
    --pd-badge-bg: #EEF2FF;
    --pd-badge-text: #3730A3;
    --pd-text: #0F172A;
    --pd-muted: #64748B;
    --pd-border: #E2E8F0;
    --pd-bg: #F8FAFC;
    --pd-card: #F1F5F9;
    --pd-radius: 14px;
    --pd-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.page-wrapper {
    padding: 112px 0 88px;
    background: #fff;
    min-height: 100vh;
}
.page-wrapper .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Gallery + info ----- */
.detail-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
}
.gallery-main {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--pd-border);
    border-radius: var(--pd-radius);
    overflow: hidden;
    box-shadow: var(--pd-shadow);
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.gallery-thumbs div {
    aspect-ratio: 1;
    background: var(--pd-border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}
.gallery-thumbs div.is-active,
.gallery-thumbs div:hover {
    border-color: var(--pd-primary);
    transform: translateY(-1px);
}
.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----- Info ----- */
.detail-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.badge-outline {
    font-size: 11px;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    background: var(--pd-badge-bg);
    color: var(--pd-badge-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-display, 'Manrope', sans-serif);
}
.badge-outline.badge-muted {
    background: #F1F5F9;
    color: #475569;
}
.detail-info h1 {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--pd-navy);
    margin-bottom: 14px;
    line-height: 1.15;
    font-family: var(--font-display, 'Manrope', sans-serif);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.detail-info > p {
    font-size: 15.5px;
    color: var(--pd-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}
.detail-actions .btn-solid,
.detail-actions .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    box-sizing: border-box;
    font-family: var(--font-display, 'Manrope', sans-serif);
}
.detail-actions .btn-solid {
    background: var(--pd-primary);
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(14, 124, 97, 0.28);
}
.detail-actions .btn-solid:hover {
    background: var(--pd-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}
.detail-actions .btn-outline {
    background: #fff;
    color: var(--pd-navy);
    border: 1.5px solid #CBD5E1;
}
.detail-actions .btn-outline:hover {
    border-color: var(--pd-navy);
    background: var(--pd-bg);
}

/* ----- Features 2x2 ----- */
.detail-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 8px;
}
.d-feature {
    background: var(--pd-card);
    border: 1px solid var(--pd-border);
    padding: 20px 18px;
    border-radius: var(--pd-radius);
}
.d-feature svg {
    width: 22px;
    height: 22px;
    color: var(--pd-blue);
    margin-bottom: 12px;
}
.d-feature h5 {
    font-size: 15px;
    color: var(--pd-navy);
    margin-bottom: 6px;
    font-family: var(--font-display, 'Manrope', sans-serif);
    font-weight: 800;
}
.d-feature p {
    font-size: 13px;
    color: var(--pd-muted);
    line-height: 1.5;
    margin: 0;
}

/* ----- Specs ----- */
.pd-section-title {
    font-family: var(--font-display, 'Manrope', sans-serif);
    font-size: 24px;
    font-weight: 800;
    color: var(--pd-navy);
    margin: 36px 0 18px;
    letter-spacing: -0.02em;
}
.tech-table-wrap {
    background: #fff;
    border-radius: var(--pd-radius);
    overflow: hidden;
    border: 1px solid var(--pd-border);
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.tech-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.tech-table th {
    background: var(--pd-navy);
    color: #fff;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-display, 'Manrope', sans-serif);
}
.tech-table td {
    padding: 14px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--pd-border);
    color: #334155;
}
.tech-table tbody tr:nth-child(even) { background: #F8FAFC; }
.tech-table tbody tr:hover { background: #F1F5F9; }
.tech-table tr:last-child td { border-bottom: none; }

/* ----- Methodology + QA ----- */
.methodology {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
    align-items: start;
}
.methodology .section-title {
    font-family: var(--font-display, 'Manrope', sans-serif);
    font-size: 24px;
    font-weight: 800;
    color: var(--pd-navy);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.methodology .section-subtitle {
    font-size: 14.5px;
    color: var(--pd-muted);
    margin-bottom: 22px;
    max-width: none;
    line-height: 1.6;
}
.step {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.step-num {
    width: 36px;
    height: 36px;
    background: var(--pd-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 14px;
    font-family: var(--font-display, 'Manrope', sans-serif);
}
.step h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--pd-navy);
    font-family: var(--font-display, 'Manrope', sans-serif);
    font-weight: 800;
}
.step p {
    font-size: 14px;
    color: var(--pd-muted);
    line-height: 1.55;
    margin: 0;
}

.qa-card {
    background: var(--pd-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 22px;
}
.qa-card .head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--pd-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--font-display, 'Manrope', sans-serif);
}
.qa-card .head svg { width: 18px; height: 18px; }
.qa-card p {
    font-style: normal;
    font-size: 14px;
    color: #334155;
    margin-bottom: 16px;
    line-height: 1.6;
}
.qa-card img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* ----- Bottom CTA ----- */
.page-wrapper .tech-support-cta {
    background: var(--pd-navy-deep);
    border-radius: 16px;
    padding: 44px 32px;
    color: #fff;
    margin-top: 8px;
    text-align: center;
    align-items: center;
}
.page-wrapper .tech-support-cta h2 {
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 10px;
    color: #fff;
    font-family: var(--font-display, 'Manrope', sans-serif);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.page-wrapper .tech-support-cta p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 24px;
    line-height: 1.65;
}
.tech-support-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.tech-support-actions .btn-solid {
    background: var(--pd-primary);
    color: #fff;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    font-family: var(--font-display, 'Manrope', sans-serif);
    box-shadow: 0 8px 20px rgba(14, 124, 97, 0.28);
}
.tech-support-actions .btn-solid:hover {
    background: var(--pd-primary-hover);
    color: #fff;
}
.tech-support-actions .btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    font-family: var(--font-display, 'Manrope', sans-serif);
}
.tech-support-actions .btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ----- Desktop: two-column product sheet ----- */
@media (min-width: 900px) {
    .page-wrapper .container {
        max-width: 1180px;
        padding: 0 32px;
    }
    .detail-top {
        grid-template-columns: 1.08fr 0.92fr;
        gap: 52px;
        align-items: start;
        margin-bottom: 48px;
    }
    .gallery-main {
        aspect-ratio: 16 / 11;
    }
    .detail-actions {
        flex-direction: row;
    }
    .detail-actions .btn-solid,
    .detail-actions .btn-outline {
        width: auto;
        flex: 1;
    }
    .methodology {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 40px;
        align-items: start;
    }
    .page-wrapper .tech-support-cta {
        padding: 52px 48px;
    }
}

@media (max-width: 760px) {
    .page-wrapper { padding: 96px 0 56px; }
    .page-wrapper .container { padding: 0 18px; }
    .detail-features { grid-template-columns: 1fr 1fr; gap: 10px; }
    .d-feature { padding: 16px 14px; }
    .gallery-thumbs { gap: 8px; }
    .tech-table-wrap { overflow-x: auto; }
    .tech-table { min-width: 520px; }
}

@media (max-width: 480px) {
    .detail-features { grid-template-columns: 1fr; }
}
