/* Products Page Styles */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Filters Section */
.filters-section {
    padding: 40px 20px;
    background: var(--light-color);
    text-align: center;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Products Section */
.products-section {
    padding: 80px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-item.hidden {
    display: none;
}

.product-badge-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-image {
    height: 200px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-image {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.placeholder-image span {
    display: block;
    margin-bottom: 10px;
}

.placeholder-image p {
    color: var(--text-color);
    font-size: 1rem;
}

.product-details {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.product-details h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.features-list {
    flex: 1;
    margin-bottom: 1.5rem;
}

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

.features-list li {
    color: var(--text-color);
    padding: 0.4rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.features-list li::before {
    content: '•';
    color: var(--secondary-color);
    margin-right: 0.7rem;
    font-weight: bold;
}

.product-price-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.price-note {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.3rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.product-actions .btn {
    flex: 1;
}

/* Comparison Section */
.comparison-section {
    padding: 80px 20px;
    background: var(--light-color);
}

.comparison-table {
    overflow-x: auto;
    margin-top: 3rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

table thead {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
}

table th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:hover {
    background: var(--light-color);
}

table td:first-child {
    font-weight: 600;
    color: var(--dark-color);
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-item h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.3s;
}

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

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}

.close:hover {
    color: var(--dark-color);
}

.modal-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

#card-element {
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.error-message.show {
    display: block;
}

#stripe-amount {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
    }

    table th,
    table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}
