/*Product Selection Styles for Preorder Page*/

.product-selection {
    padding: 3rem 0;
}

.product-option-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
    margin-bottom: 2rem;
}

.product-option-card:hover {
    border-color: rgba(84, 129, 167, 0.5);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(84, 129, 167, 0.2);
}

.product-option-card.selected {
    border-color: #5481a7;
    background: rgba(84, 129, 167, 0.1);
    box-shadow: 0 0 20px rgba(84, 129, 167, 0.3);
}

.product-option-card.featured {
    border-color: #5481a7;
    position: relative;
    background: rgba(84, 129, 167, 0.08);
}

.product-option-card.featured::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #5481a7 0%, #3b5998 100%);
    border-radius: 18px;
    z-index: -1;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #5481a7 0%, #3b5998 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(84, 129, 167, 0.4);
    z-index: 1;
}

.early-bird-badge {
    display: inline-block;
    background: rgba(84, 129, 167, 0.2);
    color: #ff6b35;
    padding: 0.25rem 0.75rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(84, 129, 167, 0.3);
}

/* Enhanced styling for featured card early bird badge */
.product-option-card.featured .early-bird-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1.75rem;
    font-weight: 700;
}

.option-header {
    margin-bottom: 2rem;
}

.option-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.option-subtitle {
    color: #cbd5e0;
    margin-bottom: 0;
}

/* Enhanced subtitle for featured card */
.product-option-card.featured .option-subtitle {
    color: #e2e8f0;
}

.option-pricing {
    margin-bottom: 2rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.early-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5481a7;
}

/* Enhanced price color for featured card */
.product-option-card.featured .early-price {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.regular-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Enhanced regular price for featured card */
.product-option-card.featured .regular-price {
    color: #cbd5e0;
}

.savings-info {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Enhanced savings info for featured card */
.product-option-card.featured .savings-info {
    color: #34d399;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.option-features {
    margin-bottom: 2rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
}

.feature-item i {
    color: #10b981;
    font-size: 1.125rem;
    min-width: 1.25rem;
}

.feature-item.bundle-exclusive i {
    color: #5481a7;
}

/* Enhanced bundle exclusive icons for featured card */
.product-option-card.featured .feature-item.bundle-exclusive i {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 0.2rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Enhanced feature text for featured card */
.product-option-card.featured .feature-item {
    color: #f1f5f9;
}

.select-option-btn {
    background: linear-gradient(135deg, #5481a7 0%, #3b5998 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(84, 129, 167, 0.3);
}

.select-option-btn:hover {
    background: linear-gradient(135deg, #406a8b 0%, #2d4373 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84, 129, 167, 0.4);
}

.select-option-btn.featured {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    font-weight: 700;
}

.select-option-btn.featured:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Bundle Features Toggle */
.bundle-feature {
    display: none;
}

/* Selected Product Details */
.selected-product-details {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Feature Grid Updates for Bundle */
.features-grid .terminal-feature {
    display: block;
}

.features-grid .bundle-feature {
    display: none;
}

/* When bundle is selected, show bundle features */
.bundle-selected .features-grid .bundle-feature {
    display: block;
}

/* Price formatting */
.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.price-row .early-price,
.price-row .regular-price {
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #5481a7;
}

.price-amount.strikethrough {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.5rem;
}

.savings-info {
    text-align: center;
    color: #10b981;
    font-weight: 600;
}

/* Bundle Add-On Section */
.bundle-addon-section {
    margin-bottom: 2rem;
}

.addon-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.addon-card:hover {
    border-color: rgba(84, 129, 167, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.addon-card.selected {
    border-color: #5481a7;
    background: rgba(84, 129, 167, 0.1);
    box-shadow: 0 0 15px rgba(84, 129, 167, 0.2);
}

.addon-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.addon-checkbox-wrapper {
    position: relative;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.addon-checkbox {
    width: 20px;
    height: 20px;
    opacity: 0;
    position: absolute;
    z-index: -1;
    cursor: pointer;
}

.addon-checkbox-label {
    display: block;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkmark {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s ease;
    position: relative;
}

.addon-checkbox:checked + .addon-checkbox-label .checkmark {
    background: #5481a7;
    border-color: #5481a7;
}

.addon-checkbox:checked + .addon-checkbox-label .checkmark::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: block;
}

.addon-checkbox:hover + .addon-checkbox-label .checkmark {
    border-color: rgba(84, 129, 167, 0.5);
}

.addon-content {
    flex: 1;
    cursor: pointer;
}

.addon-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.addon-subtitle {
    color: #cbd5e0;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.addon-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.addon-price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5481a7;
}

.addon-price-note {
    color: #94a3b8;
    font-size: 0.875rem;
}

.addon-features {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    animation: fadeIn 0.3s ease;
}

.addon-features[style*="block"] {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.addon-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.addon-feature:last-child {
    margin-bottom: 0;
}

.addon-feature i {
    color: #5481a7;
    font-size: 1rem;
    min-width: 1.25rem;
}

/* Order Summary Updates */
.summary-item.addon-item {
    color: #ffffff;
    font-weight: 500;
    order: 2; /* Place it after the main terminal item */
}

.summary-item.addon-item span:first-child {
    color: #ffffff;
}

.summary-item.addon-item span:last-child {
    color: #ffffff;
    text-align: right;
    margin-left: auto;
}

/* Ensure all summary items have proper flexbox layout for right alignment */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.summary-item span:last-child {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-option-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .option-title {
        font-size: 1.25rem;
    }
    
    .early-price {
        font-size: 2rem;
    }
    
    .regular-price {
        font-size: 1.25rem;
    }
    
    .price-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .select-option-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .price-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .early-bird-badge {
        margin-bottom: 1.25rem;
    }
    
    .product-option-card.featured .early-bird-badge {
        margin-bottom: 1.5rem;
    }

    .addon-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .addon-checkbox-wrapper {
        margin-top: 0;
        align-self: flex-start;
    }

    .addon-price {
        flex-direction: column;
        gap: 0.25rem;
    }

    .addon-price-amount {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .product-selection {
        padding: 2rem 0;
    }
    
    .product-option-card {
        padding: 1rem;
    }
    
    .early-price {
        font-size: 1.75rem;
    }
    
    .option-features {
        font-size: 0.9rem;
    }
    
    .feature-item {
        margin-bottom: 0.5rem;
    }
    
    .early-bird-badge {
        margin-bottom: 1rem;
    }
    
    .product-option-card.featured .early-bird-badge {
        margin-bottom: 1.25rem;
    }

    .addon-card {
        padding: 1rem;
    }

    .addon-title {
        font-size: 1.125rem;
    }

    .addon-features {
        font-size: 0.85rem;
    }
}