/**
 * Category Archive Styles — ANH & EM (ane.vn)
 * Subcategory tiles, category hero, breadcrumb.
 * Loaded only on is_product_category() pages.
 *
 * Design: Luxury Medical / Catalog Efficiency hybrid
 * Pearl tokens: #000, #212121, #575757, #F3F3F3, #E6E6E6
 * Brand: #415097 (deep blue), #f27131 (CTA orange)
 * Typography: Be Vietnam Pro (body), Lora (headings)
 */

/* ─────────────────────────────────────────────
   CATEGORY HERO
   ───────────────────────────────────────────── */
.denti-cat-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 2rem;
    background: #F3F3F3;
    border-radius: 4px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .denti-cat-hero {
        grid-template-columns: 320px 1fr;
        min-height: 200px;
    }
}

.denti-cat-hero__image {
    overflow: hidden;
}

.denti-cat-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.denti-cat-hero:hover .denti-cat-hero__img {
    transform: scale(1.03);
}

.denti-cat-hero__content {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 767px) {
    .denti-cat-hero__content {
        padding: 1.5rem;
    }
}

.denti-cat-hero__title {
    font-family: 'Lora', 'Be Vietnam Pro', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #000;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.denti-cat-hero__desc {
    color: #575757;
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 540px;
}

.denti-cat-hero__desc p {
    margin: 0;
}


/* ─────────────────────────────────────────────
   SUBCATEGORY TILES GRID
   ───────────────────────────────────────────── */
.denti-subcat-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
    .denti-subcat-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .denti-subcat-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.denti-subcat-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E6E6E6;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.denti-subcat-tile:hover {
    border-color: #415097;
    box-shadow: 0 4px 16px rgba(65, 80, 151, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.denti-subcat-tile__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F3F3F3;
}

.denti-subcat-tile__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.denti-subcat-tile:hover .denti-subcat-tile__img {
    transform: scale(1.06);
}

.denti-subcat-tile__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCCCCC;
}

.denti-subcat-tile__info {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.denti-subcat-tile__name {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #212121;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.denti-subcat-tile:hover .denti-subcat-tile__name {
    color: #415097;
}

.denti-subcat-tile__count {
    font-size: 0.75rem;
    color: #575757;
}


/* ─────────────────────────────────────────────
   BREADCRUMB
   ───────────────────────────────────────────── */
.denti-breadcrumb {
    margin-bottom: 1.25rem;
}

.denti-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #575757;
}

.denti-breadcrumb li a {
    color: #575757;
    text-decoration: none;
    transition: color 0.15s ease;
}

.denti-breadcrumb li a:hover {
    color: #415097;
}

.denti-breadcrumb__sep {
    color: #CCCCCC;
    user-select: none;
}

.woocommerce-breadcrumb {
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: #575757;
}

.woocommerce-breadcrumb a {
    color: #575757;
    text-decoration: none;
    transition: color 0.15s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #415097;
}
