/* ===========================
   Product Page Styles
   =========================== */

/* Product Capabilities Grid */
.product-capabilities {
    padding: calc(var(--section-padding) * 1.5) 0;
}

.product-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-spec-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    border-color: var(--accent);
}

.spec-icon {
    color: var(--accent);
    margin: 0 auto 1.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-icon svg,
.spec-icon img {
    width: 48px;
    height: 48px;
    filter: brightness(0) saturate(100%) invert(79%) sepia(100%) saturate(400%) hue-rotate(160deg);
}

.spec-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.spec-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
}

.spec-value .num {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-feature-settings: 'tnum' 1;
    line-height: 1;
}

.spec-value .unit {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Product Promise Section */
.product-promise .section-text {
    max-width: 700px;
}

.promise-bullets {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    text-align: left;
}

.promise-bullets li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.promise-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Product Towing Section */
.towing-callouts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.callout {
    background: rgba(91, 214, 255, 0.05);
    border: 1px solid rgba(91, 214, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.callout-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.callout-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.callout-value .unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Technical Specifications Table */
.product-specs .section-text {
    max-width: 1000px;
}

.section-kicker {
        font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.specs-table-wrap {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border); /* subtle border around entire table */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Elevate and accent the wrapper when any row is hovered (matches product-spec-card vibe) */
.specs-table-wrap:has(tbody tr:hover) {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.specs-table thead {
    background: rgba(91, 214, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.specs-table th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--accent);
}

.specs-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.specs-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.specs-table tbody tr:hover {
    background: rgba(91, 214, 255, 0.05);
}

.specs-table tbody tr:hover td[data-label="Category"] {
    background: transparent; /* avoid sub-row highlight inside category column */
}

.specs-table tbody td {
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

/* Highlight the specific cell being hovered (subtle) */
.specs-table tbody td:not([data-label="Category"]):hover {
    background: rgba(91, 214, 255, 0.08);
    color: var(--text-primary);
}

/* Do not draw left/right borders; focus on top/bottom lines only */

/* Category cell hover sync with grouped rows (rowspan category highlight) */
.specs-category-cell {
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-left: 1px solid transparent; /* keep structural consistency */
    position: relative; /* allow absolute-positioned pseudo elements for per-row lines */
}

.specs-category-cell.category-hover {
    background: rgba(91, 214, 255, 0.08); /* highlight entire merged cell */
    box-shadow: inset 0 0 0 1px var(--accent-contrast); /* subtle full outline */
}

/* Draw per-row top/bottom lines inside a row-spanned category cell using CSS variables set by JS */
.specs-category-cell.category-rowline::before,
.specs-category-cell.category-rowline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-contrast);
    pointer-events: none;
    z-index: 1;
}

.specs-category-cell.category-rowline::before {
    top: var(--hover-line-top, 0px);
}

.specs-category-cell.category-rowline::after {
    top: calc(var(--hover-line-bottom, 0px) - 1px);
}

/* Ensure top/bottom edges are visible across all columns on row hover */
.specs-table tbody tr:hover td:not([data-label="Category"]) {
    box-shadow: inset 0 1px 0 var(--accent-contrast), inset 0 -1px 0 var(--accent-contrast);
}

.specs-table td {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
}

.specs-table td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.specs-table .num {
    font-feature-settings: 'tnum' 1;
    font-weight: 600;
    color: var(--text-primary);
}

.specs-notes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 100, 100, 0.05);
    border-left: 3px solid rgba(255, 100, 100, 0.5);
    border-radius: var(--border-radius);
}

.specs-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Mobile Responsive for Specs Table */
@media (max-width: 768px) {
    .product-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .product-spec-card {
        padding: 2.5rem 1.5rem;
        min-height: 220px;
    }
    
    .spec-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1.25rem;
    }
    
    .spec-icon svg,
    .spec-icon img {
        width: 40px;
        height: 40px;
    }
    
    .spec-label {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }
    
    .spec-value .num {
        font-size: 3rem;
    }
    
    .spec-value .unit {
        font-size: 1.1rem;
    }
    
    .towing-callouts {
        grid-template-columns: 1fr;
    }
    
    .specs-table {
        font-size: 0.85rem;
    }
    
    .specs-table thead {
        display: none;
    }
    
    .specs-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--border-radius);
        background: rgba(0, 0, 0, 0.2);
    }
    
    .specs-table td {
        display: block;
        text-align: right;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .specs-table td:last-child {
        border-bottom: none;
    }
    
    .specs-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--accent);
        text-transform: uppercase;
        font-size: 0.75rem;
    }
    
    .promise-bullets li {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }
    
    .specs-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .specs-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-spec-card {
        padding: 2rem 1.5rem;
        min-height: 200px;
    }
    
    .spec-value .num {
        font-size: 2.5rem;
    }
    
    .specs-table td {
        padding: 0.4rem 0.75rem;
    }
}

/* Combined Hardware & Software Specs Responsive */
@media (max-width: 992px) {
    #product-specs-combined [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* ===========================
   Attachment Options Section
   =========================== */
.attachment-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.attachment-btn {
    padding: 0.75rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--pill-radius);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
}

.attachment-btn:hover {
    background: var(--glass-bg-strong);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.attachment-btn.active {
    background: rgba(91, 214, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(91, 214, 255, 0.2);
}

.attachment-description {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.attachment-description.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .attachment-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .attachment-btn {
        width: 100%;
    }
}

/* ===========================
   Capabilities Grid Section
   =========================== */
.capabilities-grid-section {
    margin: 0;
    padding: 0;
    width: 100%;
}

.capabilities-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    height: 100vh;
    width: 100%;
}

.capability-panel {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: all 0.3s ease;
}

.capability-overlay {
    padding: 0;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.capability-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
        text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.capability-panel:hover .capability-title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .capabilities-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 50vh);
        height: auto;
    }
    
    .capability-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .capability-panel {
        padding: 1.5rem;
    }
    
    .capability-title {
        font-size: 1.5rem;
    }
}

/* ===========================
   Upgrade Experience Section
   =========================== */
.upgrade-experience-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.upgrade-panels-container {
    width: 100%;
}

.upgrade-panel {
    transition: transform 0.3s ease;
}

.upgrade-panel:hover {
    transform: scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .upgrade-experience-section {
        min-height: auto !important;
    }
    
    .upgrade-panels-container {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    
    .upgrade-panel {
        min-height: 50vh;
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .upgrade-panel {
        min-height: 45vh;
        padding: 1.5rem 1rem !important;
    }
}

/* ===========================
   Time Operations Section
   =========================== */
.weather-operations-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.time-panels-container {
    width: 100%;
}

.time-panel {
    transition: transform 0.3s ease;
}

.time-panel:hover {
    transform: scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .weather-operations-section {
        min-height: auto !important;
    }
    
    .time-panels-container {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    
    .time-panel {
        min-height: 50vh;
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .time-panel {
        min-height: 45vh;
        padding: 1.5rem 1rem !important;
    }
}

/* ===========================
   Fleet Control Section
   =========================== */
.fleet-control-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 6px 22px rgba(0,0,0,0.35);
    padding: 4rem 2rem;
}

.fleet-control-section .container {
    max-width: 1800px;
    margin: 0 auto;
}

.fleet-control-title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 3;
}

.fleet-control-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    margin: 0;
    line-height: 1.2;
}

.fleet-video-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    min-height: 70vh;
    position: relative;
}

.fleet-video-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.fleet-video-card-left {
    transform: perspective(1000px) rotateY(-2deg);
}

.fleet-video-card-right {
    transform: perspective(1000px) rotateY(2deg) translateY(5%);
}

.fleet-video-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.fleet-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.fleet-video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.fleet-video-accent-bar {
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent, #00d4ff), transparent);
    margin-bottom: 1rem;
    border-radius: 2px;
}

.fleet-video-caption-text {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text-primary);
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    margin: 0;
}

.fleet-decorative-circle {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.fleet-decorative-circle-top {
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
}

.fleet-decorative-circle-bottom {
    bottom: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .fleet-video-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .fleet-video-card-left,
    .fleet-video-card-right {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .fleet-control-section {
        padding: 2rem 1rem;
    }
    
    .fleet-control-title-wrapper {
        margin-bottom: 2rem;
    }
    
    .fleet-video-grid {
        min-height: auto;
    }
    
    .fleet-video-card {
        min-height: 50vh;
    }
}

@media (max-width: 480px) {
    .fleet-control-section {
        padding: 1.5rem 1rem;
    }
    
    .fleet-video-caption {
        padding: 1.5rem;
    }
    
    .fleet-decorative-circle-top,
    .fleet-decorative-circle-bottom {
        display: none;
    }
}
