/* Override the grey list background specifically for homepage */
body.list {
    background: #ffffff !important;
}

body.list .main {
    background: #ffffff !important;
}

[data-theme="dark"] body.list {
    background: rgb(29, 30, 32) !important;
}

[data-theme="dark"] body.list .main {
    background: rgb(29, 30, 32) !important;
}

/* Ensure the article/content area matches */
.list .post-single {
    background: #ffffff !important;
}

[data-theme="dark"] .list .post-single {
    background: rgb(29, 30, 32) !important;
}

/* Make images responsive and centered */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* Add some spacing between sections */
.post-content hr {
    margin: 40px 0;
}

/* Shop grid layout - responsive */
.shop-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 30px;
    margin: 30px 0;
}

/* 3 columns on tablet and larger screens */
@media (min-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Individual shop item styling */
.shop-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.shop-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .shop-item {
    border-color: #444;
}

[data-theme="dark"] .shop-item:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.shop-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.shop-item h3 {
    font-size: 1.2em;
    margin: 0 0 10px 0;
}

.shop-item-price {
    font-weight: bold;
    color: #2a9d8f;
    font-size: 1.1em;
    margin: 10px 0;
}

[data-theme="dark"] .shop-item-price {
    color: #4db8a8;
}

.shop-item-description {
    margin: 15px 0;
    line-height: 1.6;
}

.shop-item-link {
    display: inline-block;
    background-color: #2a9d8f;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.shop-item-link:hover {
    background-color: #21867a;
    color: white;
}

[data-theme="dark"] .shop-item-link {
    background-color: #4db8a8;
}

[data-theme="dark"] .shop-item-link:hover {
    background-color: #3a9688;
}
