/* =====================================================================
   CATEGORY PAGES — bracelets / rings / necklaces / earrings.
   Loaded after base.css.
   ===================================================================== */
body{
    background-color: var(--bg-pages);
}
.category-hero {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
}

.category-hero h1 {
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: .8rem;
}

.category-hero p {
    font-size: .9rem;
    opacity: .7;
}

.cat-hero-count {
    display: inline-block;
    margin-top: .6rem;
    font-size: .8rem;
    letter-spacing: 2px;
    color: var(--gold);
    background: rgba(201, 162, 77, .12);
    border: 1px solid rgba(201, 162, 77, .3);
    border-radius: var(--radius-round);
    padding: .25rem .9rem;
}

/* -------- Filter bar -------- */
.filter-bar {
    display: flex;
    gap: .6rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: .5rem 1rem 1.2rem;
}

.filter-btn {
    padding: .5rem 1.2rem;
    border-radius: var(--radius-round);
    border: 1px solid rgba(201, 162, 77, .4);
    background: rgba(255, 255, 255, .6);
    color: #444;
    font-size: .82rem;
    letter-spacing: 1px;
    transition: .25s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--black);
    background: rgba(201, 162, 77, .12);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gold), #e8d9a8);
    color: var(--black);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(201, 162, 77, .35);
}

/* -------- Product grid -------- */
.category-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 1.5rem 1rem;
    min-height: 30vh; /* avoids a layout jump while PRODUCTS renders */
}

@media (min-width: 768px) {
    .category-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .category-products {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-products .product-card {
    border-radius: 18px;
    padding: 10px;
}

.category-products .product-card h4 {
    font-size: 13px;
    letter-spacing: 1px;
    margin: 8px 0 2px;
}

.category-products .img-wrap {
    border-radius: 14px;
    margin-bottom: .8rem;
}
