/* Robot Cards Alignment and Consistency Fixes */

/* Ensure grid is properly aligned */
.catalog-section {
    padding: 60px 0;
    background: #f9fafb;
}

.catalog-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fix robots grid container */
.robots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Ensure all cards have equal height */
.robot-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 650px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Robot info should flex properly */
.robot-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title and category alignment */
.robot-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.robot-category {
    display: inline-block;
    color: #5E2BFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
}

.robot-desc {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 20px 0;
    min-height: 48px;
}

/* Specs grid alignment */
.robot-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 0 20px 0;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}

.spec i {
    font-size: 20px;
    color: #5E2BFF;
    height: 24px;
    display: flex;
    align-items: center;
}

.spec span {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.2;
}

/* Pricing section alignment */
.robot-pricing {
    margin: 0 0 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(94, 43, 255, 0.03), rgba(200, 48, 204, 0.03));
    border-radius: 12px;
    border: 1px solid rgba(94, 43, 255, 0.1);
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.price-option:not(:last-child) {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(94, 43, 255, 0.05);
}

.price-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.price-value {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5E2BFF, #C830CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Actions alignment */
.robot-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.robot-actions .btn-block {
    flex: 1;
    min-height: 48px;
}

.robot-actions .btn-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Badge positioning fix */
.robot-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.robot-badge.hot {
    background: linear-gradient(135deg, #FF3CAC, #FF8A00);
    color: white;
}

.robot-badge.premium {
    background: linear-gradient(135deg, #5E2BFF, #C830CC);
    color: white;
}

.robot-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.robot-badge.eco {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

/* Robot image container fix */
.robot-image {
    height: 220px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.robot-image i {
    font-size: 80px;
    color: white;
    opacity: 0.9;
}

/* Overlay for quick view */
.robot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.robot-item:hover .robot-overlay {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .robots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .robots-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .robot-item {
        min-height: auto;
    }
    
    .robot-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .robot-info {
        padding: 20px;
    }
    
    .robot-info h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .robot-actions {
        flex-direction: column;
    }
    
    .robot-actions .btn-icon {
        width: 100%;
    }
    
    .robot-badge {
        top: 12px;
        right: 12px;
        padding: 4px 10px;
        font-size: 10px;
    }
}