/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Root Variables for Colors and Fonts */
:root {
    --font-family: 'Helvetica Neue', Arial, sans-serif;
    --background-color: #ffffff;
    --text-color: #333333;
    --heading-color: #111111;
    --link-color: #0066cc;
    --link-hover-color: #004999;
    --max-width: 800px;
    --base-font-size: 16px;
    --line-height: 1.6;
}

/* Body Styling */
body {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    line-height: var(--line-height);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
}

/* Header and Footer Styling */
header, footer {
    background-color: #f8f8f8;
    padding: 1rem 0;
    text-align: center;
}

/* Main Content Styling */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Article Styling */
.article-content {
    display: flex;
    flex-direction: column;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* Image Styling */
.article-image {
    margin-bottom: 2rem;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.article-image figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    color: #777777;
}

/* Article Body Styling */
.article-body h2 {
    font-size: 1.75rem;
    color: var(--heading-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Links Styling */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

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

    .article-body h2 {
        font-size: 1.5rem;
    }
}

/* Product Grid Styling */
.product-grid {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

.product-item {
    width: 32%;
    text-align: center;
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-item button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--link-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: background-color 0.2s ease-in-out;
}

.product-item button:hover {
    background-color: var(--link-hover-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-grid {
        flex-direction: column;
        align-items: center;
    }
    .product-item {
        width: 80%;
        margin-bottom: 1rem;
    }
}