/* ============================================
   AG Category Pages — Hero + Description
   ============================================ */

/* Hero Banner */
.ws-cat-hero {
    position: relative;
    background: #0d1a0b;
    background-size: cover;
    background-position: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.ws-cat-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 26, 11, 0.55);
}

.ws-cat-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 48px 24px;
}

.ws-cat-hero__title {
    font-family: inherit;
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.ws-cat-hero__subtitle {
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 24px;
    line-height: 1.6;
}

.ws-cat-hero__cta {
    display: inline-block;
    padding: 12px 28px;
    background: #74bb52;
    color: #0d1a0b;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 200ms ease;
}

.ws-cat-hero__cta:hover {
    background: #fff;
    color: #2f6120;
}

/* Description Section */
.ws-cat-description {
    background: #fff;
    padding: 20px 0;
}

.ws-cat-description__inner {
    max-width: none;
    margin: 0;
}

.ws-cat-description__title {
    font-size: 24px;
    font-weight: 700;
    color: #0d1a0b;
    margin: 0 0 16px;
}

.ws-cat-description__text {
    font-size: 15px;
    line-height: 1.75;
    color: #4a4a4a;
}

.ws-cat-description__text p {
    margin: 0 0 12px;
}

.ws-cat-description__text p:last-child {
    margin-bottom: 0;
}

/* Subcategory Tiles */
.ws-cat-subcats {
    margin-top: 24px;
}

.ws-cat-subcats__grid {
    display: grid;
    gap: 16px;
}

.ws-cat-subcats__grid--1 { grid-template-columns: 1fr; }
.ws-cat-subcats__grid--2 { grid-template-columns: repeat(2, 1fr); }
.ws-cat-subcats__grid--3 { grid-template-columns: repeat(3, 1fr); }
.ws-cat-subcats__grid--4 { grid-template-columns: repeat(4, 1fr); }

.ws-cat-subcats__tile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ws-cat-subcats__tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ws-cat-subcats__tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.ws-cat-subcats__tile:hover img {
    transform: scale(1.05);
}

.ws-cat-subcats__tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 1;
    transition: background 0.3s;
}

.ws-cat-subcats__tile:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

.ws-cat-subcats__label {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .ws-cat-hero {
        min-height: 200px;
    }

    .ws-cat-hero__title {
        font-size: 32px;
    }

    .ws-cat-hero__subtitle {
        font-size: 15px;
    }

    .ws-cat-hero__inner {
        padding: 32px 20px;
    }

    .ws-cat-description {
        padding: 16px 0;
    }

    .ws-cat-description__title {
        font-size: 20px;
    }

    .ws-cat-subcats__grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .ws-cat-subcats__tile {
        aspect-ratio: 16 / 6;
    }

    .ws-cat-subcats__label {
        font-size: 17px;
    }
}
