/* ============================================================
   3D Sub-page — Laser Profile Scanner Styles
   ============================================================ */

/* ---- Page Header ---- */

.scan-page-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--ox-border);
}

.scan-page-header h1 {
    font-size: 1.4rem;
    margin: 0;
}

.scan-brand {
    font-weight: 400;
    font-size: 0.6em;
    color: var(--ox-muted);
    margin-left: 0.5rem;
}

/* ---- Product Section ---- */

.scanner-section {
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--ox-border);
}

.scanner-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.scanner-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(52, 211, 153, 0.12);
    color: var(--ox-success);
    margin-bottom: 0.75rem;
}

.badge-value {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
}

.scanner-header h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.scanner-tagline {
    color: var(--ox-muted);
    font-size: 1rem;
    margin: 0;
}

/* ---- Product Layout (image + info) ---- */

.scanner-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.scanner-visual {
    position: sticky;
    top: 80px;
}

.scanner-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: var(--ox-radius);
    background: var(--ox-bg);
    border: 1px solid var(--ox-border);
}

.scanner-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.scanner-thumbs img {
    width: calc(33.33% - 5.33px);
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: var(--ox-radius-sm);
    background: var(--ox-bg);
    border: 1px solid var(--ox-border);
    cursor: pointer;
    transition: border-color 0.2s;
}

.scanner-thumbs img:hover {
    border-color: var(--ox-gold);
}

/* ---- Highlights ---- */

.scanner-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.highlight {
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--ox-radius-sm);
    padding: 0.75rem;
    text-align: center;
}

.highlight-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ox-heading);
}

.highlight-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ox-muted);
    margin-top: 2px;
}

/* ---- Quote Box (configure + request, no checkout) ---- */

.quote-box {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ox-border);
}

.select-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ox-muted);
    margin-bottom: 4px;
}

.select-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--ox-border);
    border-radius: var(--ox-radius-sm);
    background: var(--ox-bg);
    color: var(--ox-heading);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23707070' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.select-group select:focus {
    outline: none;
    border-color: var(--ox-gold);
}

.quote-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
    background: var(--ox-surface);
    border: 1px solid var(--ox-border);
    border-radius: var(--ox-radius-sm);
    padding: 0.75rem;
}

.quote-sum-item {
    text-align: center;
}

.quote-sum-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ox-gold);
}

.quote-sum-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ox-muted);
    margin-top: 2px;
}

.quote-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ox-border);
}

.quote-price-note {
    font-size: 0.8rem;
    color: var(--ox-muted);
    line-height: 1.4;
    flex: 1;
    margin: 0;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.includes-note {
    font-size: 0.8rem;
    color: var(--ox-muted);
    margin: 0.75rem 0 0;
    line-height: 1.4;
}

.datasheet-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ox-gold);
    text-decoration: none;
}

.datasheet-link:hover {
    color: var(--ox-gold-light);
    text-decoration: underline;
}

/* ---- Model Table ---- */

.models-section {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.models-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.models-note {
    font-size: 0.8rem;
    color: var(--ox-muted);
    margin: 0 0 1rem;
    line-height: 1.4;
}

.models-note strong { color: var(--ox-body); }

.model-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ox-border);
    border-radius: var(--ox-radius-sm);
}

.model-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 560px;
}

.model-table th,
.model-table td {
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--ox-border);
    white-space: nowrap;
}

.model-table thead th {
    background: var(--ox-surface);
    color: var(--ox-muted);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.model-table tbody tr:last-child td { border-bottom: none; }

.model-table td { color: var(--ox-heading); }

.model-name {
    font-weight: 700;
    color: var(--ox-gold) !important;
}

/* ---- Application Gallery ---- */

.app-gallery {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.app-gallery h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.app-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--ox-border) transparent;
}

.app-scroll::-webkit-scrollbar { height: 4px; }
.app-scroll::-webkit-scrollbar-track { background: transparent; }
.app-scroll::-webkit-scrollbar-thumb {
    background: var(--ox-border);
    border-radius: 2px;
}

.app-thumb {
    flex: 0 0 220px;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--ox-radius);
    overflow: hidden;
}

.app-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.app-thumb:hover img { transform: scale(1.05); }

.app-thumb span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ---- Application Cards (detail) ---- */

.app-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.app-card {
    background: var(--ox-surface);
    border: 1px solid var(--ox-border);
    border-radius: var(--ox-radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.app-card:hover { border-color: rgba(201, 168, 76, 0.25); }

.app-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--ox-border);
}

.app-card-body { padding: 1rem 1.25rem 1.25rem; }

.app-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.app-card p {
    font-size: 0.82rem;
    color: var(--ox-muted);
    line-height: 1.55;
    margin: 0;
}

/* ---- Feature Grid (Green Laser / SMART / 4K) ---- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.feature-card {
    padding: 1.5rem;
    background: var(--ox-surface);
    border: 1px solid var(--ox-border);
    border-radius: var(--ox-radius);
}

.feature-card svg { margin-bottom: 0.75rem; }

.feature-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--ox-muted);
    line-height: 1.55;
    margin: 0;
}

/* ---- Software Section ---- */

.software-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.software-shot {
    width: 100%;
    border-radius: var(--ox-radius);
    border: 1px solid var(--ox-border);
    background: #fff;
    display: block;
}

.software-copy h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.software-copy p {
    font-size: 0.88rem;
    color: var(--ox-muted);
    line-height: 1.65;
    margin: 0 0 1rem;
}

.software-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.software-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    color: var(--ox-body);
}

.software-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ox-gold);
    font-weight: 700;
}

/* ---- Specs Accordion ---- */

.specs-accordion {
    max-width: 900px;
    margin: 0 auto;
    background: var(--ox-surface);
    border: 1px solid var(--ox-border);
    border-radius: var(--ox-radius-sm);
}

.specs-accordion summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ox-heading);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.specs-accordion summary::-webkit-details-marker { display: none; }

.specs-accordion summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--ox-muted);
}

.specs-accordion[open] summary::after { content: '−'; }

.specs-grid { padding: 0 1.25rem 1rem; }

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
    font-size: 0.85rem;
}

.spec-row:last-child { border-bottom: none; }

.spec-key { color: var(--ox-muted); flex-shrink: 0; }

.spec-val {
    color: var(--ox-heading);
    font-weight: 500;
    text-align: right;
}

/* ---- Comparison Table ---- */

.compare-table-wrap {
    max-width: 800px;
    margin: 0 auto 2rem;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.compare-table th,
.compare-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--ox-border);
}

.compare-table th {
    background: var(--ox-surface);
    color: var(--ox-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compare-table td:first-child {
    color: var(--ox-muted);
    font-weight: 500;
}

.compare-table td { color: var(--ox-heading); }

.compare-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.guide-card {
    background: var(--ox-surface);
    border: 1px solid var(--ox-border);
    border-radius: var(--ox-radius);
    padding: 1.5rem;
}

.guide-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--ox-gold);
}

.guide-card ul { list-style: none; padding: 0; margin: 0; }

.guide-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--ox-body);
}

.guide-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ox-gold);
    font-weight: 700;
}

/* ---- Accessories ---- */

.acc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.acc-card {
    background: var(--ox-surface);
    border: 1px solid var(--ox-border);
    border-radius: var(--ox-radius-sm);
    padding: 1.25rem;
}

.acc-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.acc-compat {
    font-size: 0.7rem;
    color: var(--ox-muted);
    margin: 0 0 0.6rem;
}

.acc-card p:last-child {
    font-size: 0.8rem;
    color: var(--ox-body);
    margin: 0;
    line-height: 1.5;
}

/* ---- Quote CTA band ---- */

.quote-cta {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--ox-radius);
    padding: 2.5rem 2rem;
}

.quote-cta h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.quote-cta p {
    color: var(--ox-muted);
    font-size: 0.9rem;
    margin: 0 auto 1.5rem;
    max-width: 520px;
    line-height: 1.6;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .scan-page-header { padding: 1rem; }
    .scan-page-header h1 { font-size: 1.1rem; }

    .scanner-section { padding: 1.5rem 1rem; }
    .scanner-header h2 { font-size: 1.3rem; }
    .scanner-layout { grid-template-columns: 1fr; gap: 1rem; }
    .scanner-visual { position: static; }
    .scanner-thumbs img { width: calc(33.33% - 5px); }

    .scanner-highlights { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .highlight { padding: 0.5rem; }
    .highlight-value { font-size: 0.85rem; }

    .quote-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .quote-actions .btn { text-align: center; }
    .quote-summary { padding: 0.6rem; gap: 0.3rem; }
    .quote-sum-value { font-size: 0.75rem; }
    .quote-sum-label { font-size: 0.6rem; }

    .models-section { margin: 0 0 2rem; padding: 0 1rem; }
    .app-gallery { margin: 0 0 1.5rem; padding: 0 1rem; }
    .app-thumb { flex: 0 0 160px; }

    .app-cards { grid-template-columns: 1fr; padding: 0 1rem; }
    .feature-grid { grid-template-columns: 1fr; padding: 0 1rem; margin-bottom: 2rem; }
    .software-layout { grid-template-columns: 1fr; gap: 1.25rem; padding: 0 1rem; }
    .acc-grid { grid-template-columns: 1fr; padding: 0 1rem; }

    .compare-table-wrap { padding: 0 1rem; }
    .compare-table { font-size: 0.75rem; }
    .compare-table th, .compare-table td { padding: 0.5rem; }
    .compare-guide { grid-template-columns: 1fr; padding: 0 1rem; }

    .specs-accordion { margin: 0 1rem; }
    .quote-cta { margin: 0 1rem; padding: 1.75rem 1.25rem; }
}

@media (max-width: 480px) {
    .app-thumb { flex: 0 0 140px; }
    .quote-summary { grid-template-columns: 1fr; }
    .quote-sum-item { display: flex; justify-content: space-between; align-items: baseline; }
}
