/* ============================================================
   IR Sub-page — Thermal Imaging Styles
   ============================================================ */

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

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

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

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

/* ---- Hero Stats ---- */

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ox-border);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ox-heading);
}

.hero-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ox-muted);
    margin-top: 2px;
}

/* ---- Camera Section ---- */

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

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

.camera-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(255, 107, 43, 0.12);
    color: #ff6b2b;
    margin-bottom: 0.75rem;
}

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

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

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

/* ---- Camera Layout (image + info side by side) ---- */

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

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

.camera-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);
}

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

.camera-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;
}

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

.camera-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--ox-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Application Gallery (horizontal scroll) ---- */

.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;
    cursor: pointer;
}

.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;
}

.camera-desc {
    color: var(--ox-body);
    line-height: 1.7;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.camera-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;
}

.camera-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--ox-border);
}

.camera-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ox-gold);
}

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

/* ---- Benefits Grid ---- */

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

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

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

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

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

/* ---- Variant Tables ---- */

.variants-section {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.variants-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.variant-group {
    margin-bottom: 1.5rem;
}

.variant-group h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ox-muted);
    margin: 0 0 0.5rem;
}

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

.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;
}

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

.variant-table {
    background: var(--ox-surface);
    border: 1px solid var(--ox-border);
    border-radius: var(--ox-radius-sm);
    overflow: hidden;
}

.variant-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    padding: 0.75rem 1rem;
    align-items: center;
    font-size: 0.85rem;
}

.variant-row + .variant-row {
    border-top: 1px solid var(--ox-border);
}

.variant-name {
    font-weight: 600;
    color: var(--ox-heading);
}

.variant-desc {
    color: var(--ox-muted);
}

.variant-price {
    font-weight: 600;
    color: var(--ox-gold);
    white-space: nowrap;
}

/* ---- 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);
    transition: transform 0.2s;
}

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

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

.spec-row {
    display: flex;
    justify-content: space-between;
    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);
}

.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);
}

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

.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-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.acc-filter {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--ox-border);
    background: transparent;
    color: var(--ox-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.acc-filter:hover {
    border-color: var(--ox-gold);
    color: var(--ox-gold);
}

.acc-filter.active {
    background: var(--ox-gold);
    color: #0a0a0a;
    border-color: var(--ox-gold);
}

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

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

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

.acc-card.hidden { display: none; }

.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.75rem;
}

.acc-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ox-gold);
}

.shipping-note {
    text-align: center;
    color: var(--ox-muted);
    font-size: 0.8rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

/* ---- Trust Bar ---- */

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1rem 2rem;
    background: rgba(201, 168, 76, 0.04);
    border-bottom: 1px solid var(--ox-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ox-heading);
}

.trust-item svg {
    flex-shrink: 0;
}

.trust-item .trust-detail {
    font-weight: 400;
    color: var(--ox-muted);
    font-size: 0.7rem;
    display: block;
}

/* ---- Quick Add to Cart ---- */

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

.quick-add-selects {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.select-group {
    flex: 1;
}

.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);
}

.add-to-cart-btn {
    gap: 6px;
}

.add-to-cart-btn:active {
    transform: scale(0.97);
}

/* ---- Cart Button (navbar) ---- */

.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--ox-body);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--ox-radius-sm);
    transition: all 0.2s;
}

.cart-btn:hover {
    color: var(--ox-gold);
    background: rgba(201, 168, 76, 0.08);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--ox-gold);
    color: #0a0a0a;
    font-size: 0.65rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---- Cart Slide-out Panel ---- */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--ox-surface);
    border-left: 1px solid var(--ox-border);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ox-border);
}

.cart-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.cart-close {
    background: none;
    border: none;
    color: var(--ox-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

.cart-close:hover { color: var(--ox-heading); }

.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-empty {
    text-align: center;
    color: var(--ox-muted);
    padding: 3rem 0;
}

.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--ox-border);
}

.cart-item-info {
    margin-bottom: 0.5rem;
}

.cart-item-name {
    display: block;
    font-weight: 600;
    color: var(--ox-heading);
    font-size: 0.9rem;
}

.cart-item-variant {
    display: block;
    font-size: 0.75rem;
    color: var(--ox-muted);
    margin-top: 2px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--ox-border);
    border-radius: var(--ox-radius-sm);
    overflow: hidden;
}

.cart-qty button {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--ox-bg);
    color: var(--ox-heading);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty button:disabled {
    opacity: 0.3;
    cursor: default;
}

.cart-qty button:hover:not(:disabled) {
    background: rgba(201, 168, 76, 0.1);
}

.cart-qty span {
    width: 28px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ox-heading);
}

.cart-item-price {
    font-weight: 700;
    color: var(--ox-gold);
    font-size: 0.9rem;
    margin-left: auto;
}

.cart-remove {
    background: none;
    border: none;
    color: var(--ox-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px 6px;
}

.cart-remove:hover { color: var(--ox-danger); }

.cart-panel-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--ox-border);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cart-total-row span:first-child {
    font-weight: 600;
    color: var(--ox-heading);
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ox-gold);
}

.cart-shipping-note {
    font-size: 0.75rem;
    color: var(--ox-success);
    margin: 0 0 1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ---- Toast ---- */

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ox-gold);
    color: #0a0a0a;
    padding: 10px 24px;
    border-radius: var(--ox-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 3000;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

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

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

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

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

    .quick-add-selects { flex-direction: column; gap: 0.5rem; }
    .camera-price { font-size: 1.2rem; }

    .variant-row { grid-template-columns: 90px 1fr auto; gap: 0.5rem; font-size: 0.75rem; padding: 0.6rem 0.75rem; }
    .variants-section h3 { font-size: 0.95rem; }

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

    .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; }
}

@media (max-width: 480px) {
    .camera-highlights { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
    .camera-price-row { flex-direction: column; gap: 0.75rem; align-items: stretch; }
    .camera-price-row .btn { text-align: center; }
    .app-thumb { flex: 0 0 140px; }
}
