/* General Body & Typography */
body {
    font-family: 'Lora', serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
    font-size: 18px;
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2c3e50;
}

p {
    margin-bottom: 1em;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-background.jpg');
    height: 50vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

.hero-content p {
    font-size: 1.3rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Content & Article */
main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

article {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Table of Contents */
.toc {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

@media (min-width: 992px) {
    main {
        grid-template-columns: 250px 1fr;
    }
    .toc {
        position: sticky;
        top: 2rem;
        align-self: start;
    }
}

.toc h2 {
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

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

.toc li a {
    display: block;
    padding: 0.75rem 0;
    color: #34495e;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.2s ease;
}

.toc li:last-child a {
    border-bottom: none;
}

.toc li a:hover {
    background-color: #f7f9fa;
    text-decoration: none;
}

/* Product Sections */
section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ecf0f1;
}

section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-entry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .product-entry {
        grid-template-columns: 300px 1fr;
    }
}

.product-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image a:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-details h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.pros-cons {
    padding: 1rem;
    border-radius: 8px;
}

.pros-cons ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.pros-cons li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.pros-cons li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Font Awesome 6 Free'; /* Placeholder, needs a font library */
    font-weight: 900;
}

/* Pros & Cons Specifics */
.pros-cons:first-of-type li::before {
    content: '3'; /* Checkmark */
    color: #27ae60;
}

.pros-cons:last-of-type li::before {
    content: '7'; /* Cross */
    color: #c0392b;
}

.product-details hr {
    border: 0;
    height: 1px;
    background-color: #ecf0f1;
    margin: 1.5rem 0;
}


/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: white;
    margin-top: 2rem;
}
