/* Optimized CSS for Products Page */

/* Product Cards - Main Styling */
.product-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.product-card.featured {
    border: 3px solid #0066cc;
    transform: scale(1.02);
}

.product-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.product-badge {
    position: absolute;
    top: -1px;
    right: 2rem;
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.product-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.product-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    color: #4a5568;
    line-height: 1.5;
}

.product-features li i {
    color: #38a169;
    font-size: 1rem;
    margin-top: 0.25rem;
    min-width: 16px;
}

.card-footer {
    margin-top: 2rem;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-outline {
    border: 2px solid #0066cc;
    color: #0066cc;
    background: transparent;
}

.btn-outline:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary {
    background: #0066cc;
    color: white;
    border: 2px solid #0066cc;
}

.btn-primary:hover {
    background: #004499;
    border-color: #004499;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 68, 153, 0.3);
}

/* Grid layout */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Content Cards for Sensor Kits */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.content-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0066cc, #004499);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.card-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-features {
    margin-bottom: 1.5rem;
}

.card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-features li i {
    color: #38a169;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Sensor specification details */
.card-features li span {
    display: block;
    color: #64748b;
    font-size: 0.85em;
    margin-top: 0.25rem;
    line-height: 1.4;
    font-style: italic;
}

/* Page Section Styling */
.page-section {
    padding: 4rem 0;
}

.page-section .content-grid {
    opacity: 1;
    visibility: visible;
}

.page-section .stagger-animation {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FAQ Section */
.content-grid .content-card h3 {
    color: #1a202c;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.content-grid .content-card p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .product-card,
    .content-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .page-section {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .product-card,
    .content-card {
        padding: 1.25rem !important;
    }
    
    .card-features li {
        font-size: 0.85rem;
    }
    
    .card-features li span {
        font-size: 0.8em;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 1 !important;
    visibility: visible !important;
}

.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* CRITICAL: Force visibility for sensor kits section */
section[style*="background: #f8fafc"] {
    display: block !important;
    visibility: visible !important;
}

section[style*="background: #f8fafc"] .content-grid {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
}

section[style*="background: #f8fafc"] .content-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    animation: none !important;
}

section[style*="background: #f8fafc"] .fade-in-up {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    animation: none !important;
}

/* Force all children to be visible */
section[style*="background: #f8fafc"] * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force visibility for all cards */
.page-content .product-card,
.page-section .content-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

