/* =============================================================
   product_category.css — Makeup Artist Pro
   Product category listing pages (/products/<category>)
   Design language: Cormorant Garamond / Outfit, burgundy palette
   ============================================================= */

/* ---------- Shared product-media tokens ----------
   Kept identical to products_browse.css / brand.css / product_compare.css
   / product_search.css so a product shot is the same size on every
   surface. Source imagery is square (Ulta 1024^2, Sephora 1200^2). */
:root {
    --prod-media-ratio: 1 / 1;
    --prod-media-pad: 8%;
    --prod-media-bg: #ffffff;
}

/* ---------- Design Tokens ---------- */
.pc-page {
    --pc-black:        #550000;
    --pc-white:        #ffffff;
    --pc-cream:        #ffe4e4;
    --pc-warm-gray:    #ffc4c4;
    --pc-text:         #550000;
    --pc-text-light:   #8a4444;
    --pc-accent:       #890808;
    --pc-accent-hover: #700606;
    --pc-radius:       12px;
    --font-display-pc: 'Cormorant Garamond', serif;
    --font-body-pc:    'Outfit', sans-serif;
}

/* ---------- Animations ---------- */
@keyframes pc-fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pc-fade-in {
    opacity: 0;
    animation: pc-fadeInUp 0.8s ease forwards;
}

.pc-fade-in--delay-1 { animation-delay: 0.12s; }
.pc-fade-in--delay-2 { animation-delay: 0.24s; }
.pc-fade-in--delay-3 { animation-delay: 0.36s; }

/* ---------- Breadcrumbs ---------- */
.pc-breadcrumb {
    background: #fff5f5;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body-pc);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--pc-warm-gray);
}

.pc-breadcrumb ol {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 1200px;
}

.pc-breadcrumb li::after {
    content: '/';
    margin-left: 0.5rem;
    color: #cc9999;
}

.pc-breadcrumb li:last-child::after {
    display: none;
}

.pc-breadcrumb a {
    color: var(--pc-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.pc-breadcrumb a:hover {
    color: var(--pc-accent-hover);
}

.pc-breadcrumb li[aria-current="page"] {
    color: var(--pc-text-light);
}

/* ---------- Hero ---------- */
.pc-hero {
    background: var(--pc-cream);
    position: relative;
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
    overflow: hidden;
}

.pc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(137, 8, 8, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.pc-hero__accent {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--pc-accent);
    margin: 0 auto 1.75rem;
    border-radius: 1px;
}

.pc-hero__title {
    font-family: var(--font-display-pc);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    font-style: italic;
    color: var(--pc-text);
    letter-spacing: -0.01em;
    margin: 0 0 0.85rem;
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(85, 0, 0, 0.08);
}

.pc-hero__desc {
    font-family: var(--font-body-pc);
    font-size: 1rem;
    font-weight: 300;
    color: var(--pc-text-light);
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.pc-hero__count {
    font-family: var(--font-body-pc);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pc-accent);
    margin: 0;
    background: rgba(137, 8, 8, 0.08);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* ---------- Container / Layout ---------- */
.pc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.pc-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 2.25rem;
    align-items: start;
}

/* ---------- Sidebar / Filter Panel ---------- */
.pc-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.pc-filter {
    background: var(--pc-white);
    border-radius: var(--pc-radius);
    box-shadow: 0 2px 16px rgba(85, 0, 0, 0.06);
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(255, 196, 196, 0.5);
    border-left: 3px solid #ffc4c4;
    transition: border-left-color 0.3s ease;
}

.pc-filter:hover {
    border-left-color: #890808;
}

.pc-filter__header {
    margin-bottom: 1.5rem;
}

.pc-filter__title {
    font-family: var(--font-display-pc);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--pc-text);
    margin: 0 0 0.6rem;
    letter-spacing: 0.01em;
}

.pc-filter__title-line {
    display: block;
    width: 30px;
    height: 1px;
    background: var(--pc-accent);
    border-radius: 1px;
}

.pc-filter__group {
    margin-bottom: 1.4rem;
}

.pc-filter__group:last-of-type {
    margin-bottom: 0;
}

.pc-filter__label {
    display: block;
    font-family: var(--font-body-pc);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pc-text-light);
    margin-bottom: 0.5rem;
}

.pc-filter__select,
.pc-filter__input {
    width: 100%;
    font-family: var(--font-body-pc);
    font-size: 0.9rem;
    font-weight: 300;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--pc-warm-gray);
    border-radius: 8px;
    background: var(--pc-white);
    color: var(--pc-text);
    appearance: auto;
    -webkit-appearance: auto;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.pc-filter__select:focus,
.pc-filter__input:focus {
    outline: none;
    border-color: var(--pc-accent);
    box-shadow: 0 0 0 3px rgba(137, 8, 8, 0.12);
}

.pc-filter__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.pc-filter__divider {
    border: none;
    border-top: 1px solid rgba(255, 196, 196, 0.6);
    margin: 1.4rem 0;
}

.pc-filter__reset {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-family: var(--font-body-pc);
    font-size: 0.82rem;
    color: var(--pc-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.pc-filter__reset:hover {
    color: var(--pc-accent);
}

/* ---------- Main Content Area ---------- */
.pc-main {
    min-width: 0;
}

.pc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 196, 196, 0.5);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pc-toolbar__count {
    font-family: var(--font-body-pc);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--pc-text-light);
    letter-spacing: 0.01em;
}

.pc-toolbar__range {
    color: #550000;
    font-weight: 700;
}

/* ---------- Product Grid ---------- */
.pc-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* ---------- Product Cards ---------- */
.pc-card {
    background: var(--pc-white);
    border-radius: var(--pc-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(85, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: none;
}

.pc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(85, 0, 0, 0.12);
}

.pc-card__img-wrap {
    width: 100%;
    aspect-ratio: var(--prod-media-ratio);
    background: var(--prod-media-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.pc-card__img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--prod-media-pad);
    box-sizing: border-box;
    transition: transform 0.5s ease;
}

.pc-card:hover .pc-card__img-wrap img {
    transform: scale(1.04);
}

/* Hover reveal bottom line */
.pc-card__img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #890808;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease;
}

.pc-card:hover .pc-card__img-wrap::after {
    transform: scaleX(1);
}

.pc-card__placeholder {
    font-size: 2.75rem;
    color: var(--pc-text-light);
    opacity: 0.4;
}

.pc-card__body {
    padding: 1.1rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-card__brand {
    font-family: var(--font-body-pc);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pc-accent);
    margin: 0 0 0.3rem;
}

.pc-card__name {
    font-family: var(--font-display-pc);
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    color: var(--pc-text);
    margin: 0 0 0.6rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 196, 196, 0.4);
}

.pc-card__price {
    font-family: var(--font-body-pc);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pc-text);
}

.pc-card__price-sale {
    color: #c0392b;
}

.pc-card__price-orig {
    text-decoration: line-through;
    color: var(--pc-text-light);
    font-weight: 400;
    font-size: 0.82rem;
    margin-left: 0.35rem;
}

.pc-card__rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-body-pc);
    font-size: 0.8rem;
    color: var(--pc-text-light);
}

.pc-card__star {
    color: var(--pc-accent);
    font-size: 0.88rem;
}

.pc-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.pc-card__tag {
    font-family: var(--font-body-pc);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: capitalize;
    color: var(--pc-accent);
    background: rgba(137, 8, 8, 0.07);
    border: 1px solid rgba(137, 8, 8, 0.15);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    line-height: 1.4;
}

.pc-card__shades {
    font-family: var(--font-body-pc);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--pc-text-light);
    margin: 0.4rem 0 0;
}
.pc-card__variants {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pc-accent, #c9a882);
    background: rgba(201,168,130,.1);
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
    margin: 0.35rem 0 0;
    letter-spacing: 0.02em;
}

/* ---------- Pagination ---------- */
.pc-pagination-wrap {
    display: flex;
    justify-content: center;
    padding: 1.25rem 0 0.5rem;
}

.pc-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.5rem;
    font-family: var(--font-body-pc);
    background: #fff5f5;
    border-radius: 12px;
}

.pc-pagination a,
.pc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 8px;
    text-decoration: none;
    color: var(--pc-text);
    border: 1px solid var(--pc-warm-gray);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pc-pagination a:hover {
    border-color: var(--pc-accent);
    background: rgba(137, 8, 8, 0.06);
    color: var(--pc-accent);
    transform: translateY(-1px);
}

.pc-pagination .pc-pagination--active {
    background: var(--pc-accent);
    color: var(--pc-white);
    border-color: var(--pc-accent);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(137, 8, 8, 0.3);
}

.pc-pagination .pc-pagination--disabled {
    opacity: 0.3;
    pointer-events: none;
}

.pc-pagination .pc-pagination--ellipsis {
    border: none;
    padding: 0;
    min-width: auto;
    background: transparent;
}

/* ---------- Empty State ---------- */
.pc-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff5f5;
    border-radius: 16px;
    border: 2px dashed #ffc4c4;
}

.pc-empty__icon {
    margin-bottom: 1.25rem;
    color: #cc9999;
}

.pc-empty__icon svg {
    width: 48px;
    height: 48px;
    opacity: 0.55;
}

.pc-empty__msg {
    font-family: var(--font-body-pc);
    font-size: 1rem;
    font-weight: 300;
    color: var(--pc-text-light);
    margin: 0 0 1.25rem;
    line-height: 1.6;
}

.pc-empty__suggestion {
    font-family: var(--font-body-pc);
    font-size: 0.88rem;
    font-weight: 300;
    color: #cc9999;
    margin: -0.5rem 0 1.25rem;
    font-style: italic;
}

.pc-empty__link {
    font-family: var(--font-body-pc);
    font-size: 0.9rem;
    color: var(--pc-accent);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(137, 8, 8, 0.3);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.pc-empty__link:hover {
    color: var(--pc-accent-hover);
    border-color: var(--pc-accent-hover);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .pc-layout {
        grid-template-columns: 1fr;
    }

    .pc-sidebar {
        position: static;
    }

    .pc-filter {
        margin-bottom: 1.25rem;
    }

    .pc-filter__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .pc-sidebar {
        border-bottom: 1px solid #ffc4c4;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 600px) {
    .pc-hero {
        padding: 3rem 1.25rem 2.5rem;
    }

    .pc-hero__title {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .pc-container {
        padding: 1.75rem 1rem 2.5rem;
    }

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

    .pc-card__name {
        font-size: 0.95rem;
    }
}

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