/* --- General & Typography --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #333;
    background-color: #f9f9f9;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3 { font-weight: 600; }
a { color: #007bff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Header --- */
.site-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}
.logo:hover { text-decoration: none; }
.site-header nav a {
    margin-left: 20px;
    font-weight: 600;
    color: #555;
}

/* --- Hero Section --- */
.hero {
    background-color: #f4f7f6;
    text-align: center;
    padding: 80px 0;
}
.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; color: #666; margin-bottom: 30px; }
.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}
.btn:hover { background: #0056b3; text-decoration: none; }

/* --- Featured/All Products Section --- */
.featured-products, .latest-posts, .all-products, .all-posts, .page-title {
    padding: 60px 0;
}
.featured-products h2, .latest-posts h2 { text-align: center; margin-bottom: 40px; font-size: 2rem; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-decoration: none;
}
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.product-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-card-content h3 { margin: 0 0 10px; font-size: 1.1rem; color: #333; }
.product-card-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 15px;
}
.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.product-card .price { font-weight: 700; font-size: 1.2rem; color: #333; }
.product-card .buy-btn {
    background: #28a745;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Category Navigation --- */
.category-navigation { padding: 40px 0; background-color: #fff; border-bottom: 1px solid #eee; }
.category-navigation h3 { text-align: center; margin-bottom: 20px; }
.category-links-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.category-link {
    background: #f1f1f1;
    padding: 8px 18px;
    border-radius: 20px;
    color: #333;
    font-weight: 500;
}
.category-link:hover { background: #ddd; text-decoration: none; }

/* --- Blog List --- */
.blog-list { display: grid; gap: 30px; }
.blog-card {
    display: block;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    color: #333;
}
.blog-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.blog-card h3 { margin: 0 0 8px; }
.blog-card .date { font-size: 0.85rem; color: #888; margin-bottom: 10px; }

/* --- Footer --- */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* --- Product Detail Page --- */
.product-detail-page .product-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
}
.main-product-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}
.product-review h2, .product-review h3 { margin-top: 30px; }
.purchase-box {
    position: sticky;
    top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}
.purchase-box .price { font-size: 2rem; font-weight: 700; margin: 10px 0; }
.purchase-box .rating { color: #666; margin-bottom: 15px; }
.btn-buy-amazon {
    display: block;
    width: 100%;
    background-color: #ff9900;
    color: #111;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    margin: 15px 0;
}
.btn-buy-amazon:hover { background-color: #f3a847; text-decoration: none; }
.purchase-box small { font-size: 0.8rem; color: #888; }
.product-gallery .additional-image { width: 100px; height: 100px; object-fit: cover; border-radius: 5px; margin-right: 10px; cursor: pointer; border: 2px solid transparent; }
.product-gallery .additional-image:hover { border-color: #007bff; }

@media (max-width: 900px) {
    .product-detail-page .product-layout { grid-template-columns: 1fr; }
}
