/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.page-header__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.7;
}

.page-header__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.page-header__count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.page-header__count strong {
    color: var(--navy);
    font-weight: 600;
}

/* =============================================
   TOOLBAR
   ============================================= */
.toolbar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--grid-gap);
}

.toolbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar__search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 360px;
}

.toolbar__search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    background: var(--off-white);
    border: 1.5px solid var(--border-light);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.toolbar__search-input::placeholder { color: var(--text-muted); }
.toolbar__search-input:focus { border-color: var(--red); }

.toolbar__search-btn {
    padding: 0.6rem 0.9rem;
    background: var(--navy);
    border: 1.5px solid var(--navy);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.toolbar__search-btn:hover { background: var(--navy-light); }
.toolbar__search-btn svg { width: 16px; height: 16px; }

.toolbar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar__sort {
    padding: 0.55rem 2rem 0.55rem 0.85rem;
    background: var(--off-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    color: var(--gray-600);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6760' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    cursor: pointer;
    outline: none;
}

.toolbar__sort:focus { border-color: var(--red); }

.toolbar__view {
    display: flex;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.toolbar__view-btn {
    padding: 0.5rem 0.65rem;
    background: var(--off-white);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.toolbar__view-btn.active {
    background: var(--navy);
    color: var(--white);
}

.toolbar__view-btn svg { width: 16px; height: 16px; }
/* =============================================
   LAYOUT
   ============================================= */
.products-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
    padding: var(--grid-gap) 0 var(--section-pad);
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    position: sticky;
    top: 88px;
}

.sidebar__section {
    margin-bottom: 1.75rem;
}

.sidebar__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-light);
}

.sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--gray-600);
    transition: all 0.15s;
}

.sidebar__link:hover {
    background: var(--off-white);
    color: var(--navy);
}

.sidebar__link.active {
    background: var(--red-light);
    color: var(--red);
    font-weight: 600;
}

.sidebar__link-count {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    background: var(--off-white);
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
}

.sidebar__link.active .sidebar__link-count {
    background: rgba(200,54,45,0.15);
    color: var(--red);
}

.sidebar__cta {
    background: var(--navy);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.sidebar__cta-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.sidebar__cta-desc {
    font-size: 0.82rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.sidebar__cta-btn {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.7rem 1.25rem;
    background: var(--red);
    color: var(--white);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    text-align: center;
}

.sidebar__cta-btn:hover { background: var(--red-hover); }

/* =============================================
   PRODUCT GRID
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.product-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: var(--off-white);
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__img img {
    transform: scale(1.05);
}

.product-card__tags {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.product-card__tag {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 2px;
}

.product-card__tag--best { background: var(--red);   color: var(--white); }
.product-card__tag--new  { background: var(--navy);  color: var(--white); }
.product-card__tag--nsf  { background: var(--green); color: var(--white); }
.product-card__tag--ul   { background: var(--navy);  color: var(--white); }
.product-card__tag--sale { background: var(--amber); color: var(--white); }

.product-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__cat {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.product-card__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.product-card:hover .product-card__name { color: var(--red); }

.product-card__desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.85rem;
    flex: 1;
}

.product-card__specs {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
}

.product-card__spec {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.product-card__spec strong {
    color: var(--gray-600);
    font-weight: 500;
}

.product-card__actions {
    display: flex;
    gap: 0.5rem;
}

.product-card__btn {
    flex: 1;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: block;
}

.product-card__btn:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.product-card__btn--primary {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.product-card__btn--primary:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
}

.products-empty {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 3rem 0;
    grid-column: 1 / -1;
}

/* List view */
.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.products-grid.list-view .product-card {
    flex-direction: row;
}

.products-grid.list-view .product-card__img {
    width: 260px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.products-grid.list-view .product-card__body {
    justify-content: center;
}
/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    flex-wrap: wrap;
}

.pagination .page-numbers li a,
.pagination .page-numbers li span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--gray-600);
    transition: all 0.2s;
}

.pagination .page-numbers li a:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.pagination .page-numbers li span.current {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.pagination .page-numbers li a.prev,
.pagination .page-numbers li a.next {
    width: auto;
    padding: 0 1rem;
    gap: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.pagination .page-numbers li a.prev svg,
.pagination .page-numbers li a.next svg {
    width: 14px;
    height: 14px;
}

.pagination .page-numbers li span.dots {
    border: none;
    color: var(--text-muted);
    width: auto;
}

/* =============================================
   SEO CONTENT
   ============================================= */
.seo-content {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--border-light);
}

.seo-content__inner {
    max-width: 800px;
}

.seo-content__inner h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.seo-content__inner h2:first-child {
    margin-top: 0;
}

.seo-content__inner p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 200px 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .sidebar__cta {
        grid-column: 1 / -1;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid.list-view .product-card {
        flex-direction: column;
    }

    .products-grid.list-view .product-card__img {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .toolbar__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar__search {
        max-width: 100%;
    }

    .toolbar__right {
        justify-content: space-between;
    }

    .pagination .page-numbers li a,
    .pagination .page-numbers li span {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }
}
