/* --- PRODUCTS LAYOUT --- */
.products-container {
    display: grid;
    /* Changed to specific column sizes to accommodate fixed element */
    grid-template-columns: 50% 50%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0; 
    opacity: 1; /* Static visibility */
}

/* --- VISUALIZER SECTION (FIXED LEFT) --- */
.visualizer-section {
    position: fixed;
    top: 50%;
    left: 25%; /* Centers in the left half (50% / 2) */
    transform: translate(-50%, -50%);
    width: 50%; /* Takes up left half */
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none; 
}

#product-canvas {
    width: 400px;
    height: 400px;
    pointer-events: auto; 
}

/* --- SPECS SECTION (SCROLLABLE RIGHT) --- */
.specs-section {
    grid-column: 2; 
    padding: 120px 40px 40px 0; /* Added top padding */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to start */
    align-items: flex-start; 
    text-align: left; 
    overflow-y: auto; /* Enable scrolling */
    scrollbar-width: none; /* Firefox: Hide scrollbar */
    -ms-overflow-style: none; /* IE/Edge: Hide scrollbar */
}

.specs-section::-webkit-scrollbar {
    display: none; /* Chrome/Safari: Hide scrollbar */
}

.title-container {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    justify-content: flex-start; /* Restore left alignment */
    gap: 12px; 
    margin-bottom: 15px; /* Reduced from 30px */
    border-bottom: 1px solid #080808;
    padding-bottom: 12px;
    width: 100%;
    flex-wrap: nowrap;
}

.specs-title {
    font-size: 1.4rem; 
    font-weight: 300;
    margin: 0;
    padding: 0;
    letter-spacing: -0.5px;
    line-height: 1;
    white-space: nowrap;
}

/* Unified Action Box Style */
.action-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px; 
    padding: 0 10px;
    border: 1px solid var(--active-color);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;
    color: var(--active-color);
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Hover effects for links */
a.action-box:hover {
    background-color: var(--active-color);
    color: #fff;
}

/* Green theme for active manual (optional, but keeping red if same as batch) */
.action-box.manual-active {
    border-color: #006400;
    color: #006400;
}
a.action-box.manual-active:hover {
    background-color: #006400;
}

/* Grey style for disabled/TBA */
.action-box.disabled {
    border-color: #080808;
    color: #080808;
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* Hide legacy order section */
.order-section {
    display: none;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr; 
    row-gap: 15px;
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 30px;
    width: 100%;
}

.spec-item {
    display: flex;
    flex-direction: column; 
    align-items: flex-start; /* Restore left alignment */
    gap: 2px;
}

.spec-label {
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.8px;
}

.spec-value {
    font-weight: 300;
    color: #080808;
    border-bottom: 1px solid rgba(8, 8, 8, 0.05);
    padding-bottom: 2px;
    font-size: 0.95rem;
    white-space: nowrap; 
}

/* --- FEATURES & MODULES --- */
.features-section {
    margin-top: 5px;
    margin-bottom: 30px;
    width: 100%;
}

.features-section h3 {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--active-color);
}

.modules-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Restore left alignment */
}

.modules-list li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 15px; /* Restore left padding for dash */
    font-size: 0.85rem;
    color: #333;
    line-height: 1.2;
}

.modules-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--active-color);
    display: block; /* Restore dash */
}

/* --- ORDER & BATCH SECTION --- */
.order-section {
    margin-top: auto; /* Push to bottom of flex container */
    padding-top: 20px;
    border-top: 1px solid rgba(8, 8, 8, 0.05);
}

.batch-box {
    border: 1px solid var(--active-color);
    padding: 12px 15px;
    margin-bottom: 20px;
    display: inline-block;
}

.batch-label {
    display: block;
    font-size: 0.75rem;
    color: var(--active-color);
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- CALL TO ACTION --- */
.cta-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-bottom: 40px;
}

.btn-buy {
    display: inline-block;
    padding: 6px 18px; /* Very compact button */
    background-color: transparent;
    border: 1px solid #080808;
    color: #080808;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem; /* Smaller font */
    font-weight: 500;
    transition: all 0.4s ease;
    cursor: none; 
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-buy:hover {
    background-color: var(--active-color);
    border-color: var(--active-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(150, 0, 24, 0.3);
}

/* --- DISABLED BUTTON --- */
.disabled-btn {
    opacity: 0.3 !important;
    cursor: default !important;
    pointer-events: none !important;
    background: transparent !important;
    color: #080808 !important;
    border-color: #080808 !important;
    box-shadow: none !important;
}

.info-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
}

.info-link:hover {
    border-bottom-color: #080808;
}

/* Removed redundant styles */

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    /* Reset Layout for Mobile */
    .products-container {
        display: block; /* Stack vertically */
        padding: 100px 20px 120px 20px;
        mask-image: none; /* Remove complex mask on container for mobile simplicity or adjust */
        -webkit-mask-image: none;
    }

    .visualizer-section {
        display: none;
    }

    .specs-section {
        padding: 0;
        mask-image: none;
        -webkit-mask-image: none;
        margin-top: 20px; /* Separation from visualizer */
    }

    .specs-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .specs-grid {
        grid-template-columns: 1fr; /* Stack label and value */
        row-gap: 15px;
    }
    
    .spec-label {
        font-size: 0.7rem;
        color: #888;
        padding-top: 0;
    }

    .spec-value {
        font-size: 1.2rem;
        padding-bottom: 10px;
    }

    #product-canvas {
        width: 280px;
        height: 280px;
    }
    
    .specs-title {
        font-size: 1.8rem;
    }

    .specs-grid {
        font-size: 0.95rem;
    }
}
