/* Products Page Styles */

.products-page-section {
    padding: 3rem 0 5rem;
    background-color: #fff;
}

.products-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.products-page-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.products-page-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.products-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-page-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.product-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.25);
}

.product-page-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-page-card:hover .product-page-image img {
    transform: scale(1.05);
}

.product-page-card h3 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin: 1.2rem 1.2rem 1rem;
    text-align: center;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.btn-learn-more {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin: 0 1.2rem 1.2rem;
    width: calc(100% - 2.4rem);
}

.btn-learn-more:hover {
    background-color: var(--dark-blue);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-page-container {
        padding: 0 20px;
    }

    .product-page-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .products-page-title {
        font-size: 2.2rem;
    }

    .products-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-page-card h3 {
        font-size: 0.95rem;
        min-height: 2.2rem;
    }
}

@media (max-width: 480px) {
    .products-page-grid {
        grid-template-columns: 1fr;
    }

    .products-page-title {
        font-size: 1.8rem;
    }
}

/* Product Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

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

.product-modal-content {
    background-color: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-modal-close:hover {
    background-color: #f0f0f0;
    color: var(--dark-blue);
    transform: rotate(90deg);
}

.product-modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-modal-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-header h2 {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    padding-right: 40px;
    flex: 1;
}

.product-modal-body {
    padding: 32px 24px;
}

.product-modal-body p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-modal-pricing {
    background: linear-gradient(135deg, #F0F7FF 0%, #E3F2FD 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 28px;
    border-left: 4px solid var(--primary-blue);
}

.product-modal-pricing h3 {
    color: var(--dark-blue);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.product-modal-pricing p {
    color: var(--dark-blue);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.product-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-modal-primary,
.btn-modal-secondary {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
}

.btn-modal-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.btn-modal-primary:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.btn-modal-secondary {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-modal-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .product-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .product-modal-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .product-modal-image {
        width: 100px;
        height: 100px;
    }

    .product-modal-header h2 {
        font-size: 24px;
        padding-right: 40px;
    }

    .product-modal-body {
        padding: 24px 20px;
    }

    .product-modal-body p {
        font-size: 15px;
    }

    .product-modal-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-modal-header {
        padding: 16px;
    }

    .product-modal-image {
        width: 80px;
        height: 80px;
    }

    .product-modal-header h2 {
        font-size: 20px;
        padding-right: 30px;
    }

    .product-modal-close {
        font-size: 28px;
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }

    .product-modal-pricing h3 {
        font-size: 18px;
    }

    .btn-modal-primary,
    .btn-modal-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
}
