/* Archive page: only elements unique to category/tag archives.
   Layout reuses .header-container; the product grid reuses product.css card styles. */

.archive-main {
    display: block;
}

.archive-header {
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
    text-align: center;
}

.archive-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #6b6b6b;
}

.archive-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.archive-breadcrumb__item + .archive-breadcrumb__item::before {
    content: "/";
    margin-right: 0.5rem;
    color: #b8b8b8;
}

.archive-breadcrumb a {
    color: #5e4e12;
    text-decoration: none;
}

.archive-breadcrumb a:hover,
.archive-breadcrumb a:focus-visible {
    text-decoration: underline;
}

.archive-breadcrumb [aria-current="page"] {
    color: #1a1a1a;
}

.archive-title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    text-transform: capitalize;
}

.archive-top-description,
.archive-bottom-description {
 
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.7;
    color: #3b3c3f;
	text-align:justify;
}

.archive-top-description {
    margin-bottom: 1.5rem;
}

.archive-bottom-description {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ece6d6;
}

.archive-top-description p,
.archive-bottom-description p {
    margin: 0 0 1em;
}

.archive-bottom-description h2,
.archive-bottom-description h3 {
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
}

.archive-top-description a,
.archive-bottom-description a {
    color: #5e4e12;
}

.archive-empty {
    padding: 3rem 0;
    text-align: center;
    color: #6b6b6b;
}

/* Two-column layout: sidebar + products. Width comes from .main-content, same as the home page. */
.archive-layout-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.archive-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.archive-result-count {
    margin: 0;
    font-size: 0.9rem;
    color: #5a5a5a;
}

.archive-sort-form select,
.archive-filter-price input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d9d2bd;
    border-radius: 4px;
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
}

.archive-filter-toggle {
    display: none;
    padding: 0.5rem 1rem;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.archive-sidebar {
    position: sticky;
    top: 1rem;
    padding: 1.25rem;
    border: 1px solid #ece6d6;
    background: #fff;
}

.archive-sidebar__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-sidebar__title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.archive-sidebar__close {
    display: none;
    border: 0;
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.archive-filter-group {
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
}

.archive-filter-group legend {
    margin-bottom: 0.5rem;
    padding: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.archive-filter-price {
    display: flex;
    gap: 0.5rem;
}

.archive-filter-price label {
    flex: 1;
    font-size: 0.8rem;
    color: #5a5a5a;
}

.archive-filter-price input {
    width: 100%;
    box-sizing: border-box;
}

.archive-filter-list {
    margin: 0;
    padding: 0;
    max-height: 16rem;
    overflow-y: auto;
    list-style: none;
}

.archive-filter-list label {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.2rem 0;
    font-size: 0.9rem;
    cursor: pointer;
}

.archive-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.archive-btn {
    padding: 0.55rem 1rem;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
}

.archive-btn--ghost {
    background: #fff;
    color: #1a1a1a;
}

.archive-filter-toggle:focus-visible,
.archive-btn:focus-visible,
.archive-sort-form select:focus-visible,
.archive-sidebar input:focus-visible {
    outline: 2px solid #C5A059;
    outline-offset: 2px;
}

.archive-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.45);
}

.archive-sidebar-backdrop[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .archive-layout-grid {
        display: block;
    }

    .archive-filter-toggle {
        display: inline-block;
    }

    .archive-sidebar__close {
        display: block;
    }

    .archive-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 999;
        width: min(320px, 85vw);
        overflow-y: auto;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }

    .archive-sidebar.is-open {
        transform: none;
        visibility: visible;
        transition: transform 0.25s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .archive-sidebar {
        transition: none;
    }
}