/* Archive & List Pages Styles */

/* Page Hero Section */
.page-hero {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.page-hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 60px 20px;
    max-width: 800px;
}

.page-hero-content .page-title {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.page-hero-content .archive-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Content Wrapper */
.content-wrapper {
    background-color: transparent;
    padding: 60px 20px;
    margin-top: 0;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 30px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 3rem;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.filter-btn.active {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.page-header {
    margin-bottom: 50px;
    text-align: center;
    padding: 40px 20px;
    background-color: transparent;
    border-radius: 0;
}

.page-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.archive-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.posts-container {
    margin-bottom: 50px;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.post-thumbnail {
    flex-shrink: 0;
    width: 300px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content {
    flex: 1;
}

.entry-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.entry-title a {
    color: #333;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #d4a574;
    opacity: 1;
}

.entry-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.entry-summary {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.entry-footer {
    margin-top: 20px;
}

/* Product Archive */
.product-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.product-item {
    background-color: transparent;
    border: none;
    box-shadow: none;
    height: 100%;
    display: flex;
}

.product-item-content {
    background-color: #fff;
    padding: 0;
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 500px;
}

.product-item-image {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.product-item-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.product-item-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    padding: 20px 20px 0;
    text-align: left;
}

.product-item-price {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
    padding: 0 20px;
    text-align: left;
}

.product-item-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
    padding: 0 20px 20px;
    text-align: left;
    flex-grow: 1;
}

/* Single Product */
.single-product {
    max-width: 1200px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.product-image {
    width: 100%;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

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

.product-categories {
    margin: 20px 0;
}

.product-category-tag {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(212,165,116,0.1);
    color: #d4a574;
    border-radius: 6px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.related-products {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 2px solid #eee;
}

.related-products h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
}

.page-numbers li {
    margin: 0;
}

.page-numbers a,
.page-numbers span {
    display: inline-block;
    padding: 10px 16px;
    min-width: 44px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #fff;
}

.page-numbers a:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
    background-color: #f9f9f9;
}

.page-numbers .current {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    cursor: default;
}

.page-numbers .dots {
    border: none;
    background-color: transparent;
    color: #999;
    cursor: default;
}

.page-numbers .prev,
.page-numbers .next {
    font-weight: 600;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.no-posts h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.no-posts p {
    color: #666;
    font-size: 16px;
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 .page-title {
    font-size: 72px;
    color: #d4a574;
    margin-bottom: 20px;
    font-weight: bold;
}

.error-404 h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404-actions {
    margin: 40px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
    }

    .post-thumbnail {
        width: 100%;
    }

    .product-archive {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-title {
        font-size: 28px;
    }

    .category-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .product-item-content {
        height: auto;
        min-height: 450px;
    }

    .page-numbers {
        gap: 5px;
    }

    .page-numbers a,
    .page-numbers span {
        padding: 8px 12px;
        min-width: 40px;
        font-size: 14px;
    }
}

