/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f8fa;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100vw;
}

a {
    text-decoration: none;
}

a:link {
    text-decoration: none;
    color: #333;
}

a:visited {
    color: #555; /* Customize the visited link color */
}

a:hover {
    text-decoration: none; /* Optional: Add underline on hover */
    color: #000; /* Customize hover color */
}

a:active {
    color: #002f9c; /* Customize active link color */
}

/* Header Styles */
.header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box;
    padding: 10px 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-and-title a {
    display: flex;
    color: #000;
    align-items: center;
}

.site-logo {
    width: 48px;
    height: 48px;
    margin-right: 6px; /* Reduced margin to bring text closer */
    border-radius: 5px;
}

.header h1 {
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 700;
    margin: 0;
    font-size: 1.8em;
}

.button {
    padding: 10px 20px;
    background-color: #002f9c;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


/* Button Styles */
.button {
    padding: 10px 20px;
    background-color: #002f9c;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.button:hover {
    background-color: #0d42be;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.button-primary {
    padding: 10px 20px;
    background-color: #002f9c;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-right: 10px;
}

.button-primary:hover {
    background-color: #0d42be;
}

.button-primary-product {
    padding: 10px 20px;
    background-color: #002f9c;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
    float: right;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-right: 10px;
}

.button-primary-product:hover {
    background-color: #0d42be;
}

.button-primary-price {
    padding: 10px 20px;
    background-color: #002f9c;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
    float: right;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-right: 10px;
}

.button-primary-price:hover {
    background-color: #0d42be;
}

/* Product Overview Styles */
.product-overview {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.product-logo {
    width: 256px;
    height: 256px;
    margin-right: 20px;
    object-fit: contain;
    border-radius: 10px;
}

.product-header-details {
    flex: 1;
}

.product-header-details h1 {
    font-size: 2em;
    margin: 0 0 10px 0;
}

.product-subtitle {
    font-size: 1.1em;
    color: #777;
    margin-bottom: 10px;
}

/* Product Logos Styles */
.review-logos {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.review-logos img {
    width: 24px;
    height: 24px;
}

.review-logos a[href=""] img {
    /* filter: none; /* No grayscale if there's a link */
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    object-fit: contain;
}

/* Product Details Styles */
.product-details {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    gap: 20px;
    box-sizing: border-box;
}

.product-summary {
    flex: 2;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-summary h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.product-summary p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-info {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-info h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.info-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-column {
    display: flex;
    flex-direction: column;
}

.info-column h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.info-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-column ul li {
    margin-bottom: 5px;
}

/* Product Pricing Styles */
.product-pricing {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-pricing h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.product-pricing .price {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.pricing-options {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
}

.pricing-options li {
    margin-bottom: 5px;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 2.5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    box-sizing: border-box;
    border-radius: 10px;
    overflow-y: auto; /* Allows scrolling within the modal if needed */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

/* Footer Styles */
.footer {
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
    box-sizing: border-box;
    margin: 0 auto;
}

.footer-text {
    font-size: 0.8em;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.footer-links li {
    margin: 5px 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ddd;
}

.social-media {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-media a {
    display: block;
    width: 24px;
    height: 24px;
}

.social-media img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .product-header, .product-details {
        flex-direction: column;
    }

    .product-header h1{
        text-align: center;
        margin-top: 15px;
    }

    .product-subtitle {
        text-align: center;
        font-size: 1.1em;
        color: #777;
        margin-bottom: 10px;
    }

    .product-logo {
        width: 128px;
        height: 128px;
        margin-bottom: 10px;
        margin: 0 auto;
    }

    .product-actions {
        flex-direction: row;
        display: flex;
        justify-content: center;
        margin-top: 20px;
        gap: 10px;
    }

    /* Product Logos Styles */
    .review-logos {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .review-logos img {
        width: 24px;
        height: 24px;
    }

    .review-logos a[href=""] img {
        /* filter: none; /* No grayscale if there's a link */
        filter: grayscale(100%);
        transition: filter 0.3s ease;
        object-fit: contain;
    }

    .button-primary-product {
        padding: 10px 30px;
        background-color: #002f9c;
        color: #fff;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 500;
        border: none;
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }
    
    .button-primary-price {
        padding: 10px 30px;
        background-color: #002f9c;
        color: #fff;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 500;
        border: none;
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }

    .info-columns {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        text-align: center;
        margin-top: 10px;
    }

    .footer-text {
        margin-top: 15px;
    }
}
