/* ---- Product Category Archive Styles ---- */

.xhp-product-archive {
    background: #fff;
    padding: 0 0 60px;
}
.xhp-product-archive__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}
.xhp-product-archive__body {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 60px;
}
.xhp-product-archive__content {
    flex: 1;
    min-width: 0;
}
.xhp-product-archive__header {
    margin-bottom: 20px;
}
.xhp-product-archive__title {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.2em;
}
.xhp-product-archive__desc {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}
.xhp-product-archive__divider {
    border: none;
    border-top: 2px solid #eee;
    margin: 20px 0 30px;
}
.xhp-product-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 24px;
}
.xhp-product-archive__item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.xhp-product-archive__item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.xhp-product-archive__item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.xhp-product-archive__item-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f5f5f5;
}
.xhp-product-archive__item-img-link {
    display: block;
    width: 100%;
    height: 100%;
}
.xhp-product-archive__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.xhp-product-archive__item-img-link:hover .xhp-product-archive__item-img {
    transform: scale(1.05);
}
.xhp-product-archive__item-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
}
.xhp-product-archive__item-img-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}
.xhp-product-archive__item-content {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.xhp-product-archive__item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}
.xhp-product-archive__item-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}
.xhp-product-archive__item-title a:hover {
    color: #000;
}
.xhp-product-archive__item-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
}
.xhp-product-archive__empty {
    font-size: 16px;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .xhp-product-archive__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}
@media (max-width: 1024px) {
    .xhp-product-archive__body {
        flex-direction: column;
        gap: 30px;
    }
    .xhp-product-archive__sidebar {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
    .xhp-product-archive__sidebar-image {
        aspect-ratio: 16 / 9;
        max-width: 400px;
        margin: 0 auto;
    }
    .xhp-product-archive__content {
        order: -1;
    }
}
@media (max-width: 768px) {
    .xhp-product-archive__inner {
        padding: 0 16px;
    }
    .xhp-product-archive__title {
        font-size: 26px;
    }
    .xhp-product-archive__grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .xhp-product-archive__item-title {
        font-size: 16px;
    }
    .xhp-product-archive__item-excerpt {
        font-size: 13px;
    }
    .xhp-product-archive__item-content {
        padding: 12px 14px 14px;
    }
}
@media (max-width: 480px) {
    .xhp-product-archive__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}