/* ===== EPOKA GLOBAL - CATEGORIES PAGE STYLESHEET ===== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: none;
}

.reveal-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

/* ===== CATEGORY HERO ===== */
.cat-hero-section {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-hero-section .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.7;
    z-index: 0;
}

.cat-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.38) 55%,
        rgba(0, 0, 0, 0.12) 100%
    );
    z-index: 1;
}

.cat-hero-container {
    position: relative;
    z-index: 3;
    padding-top: 70px;
    padding-bottom: 80px;
}

.cat-hero-content {
    color: #fff;
    max-width: 700px;
}

.cat-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.cat-hero-content h1 span {
    color: var(--primary);
}

.cat-hero-content p {
    font-family: var(--font-subheading);
    font-size: 19px;
    opacity: 0.82;
    margin-bottom: 22px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.cat-breadcrumb {
    background: transparent;
    padding: 0;
}

.cat-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
}

.cat-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-body);
    font-size: 14px;
}

.cat-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

/* ===== INTRO ===== */
.cat-intro-section {
    padding: 48px 0 10px;
    background: var(--bg-light);
}

.cat-intro-subtitle {
    font-size: 18px;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ===== CATEGORY CARDS ===== */
.cat-cards-section {
    padding: 48px 0 80px;
    background: var(--bg-light);
}

.cat-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.cat-empty-state {
    grid-column: 1 / -1;
}

.cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    text-decoration: none;
    min-height: 580px;
    transition:
        transform 0.32s ease,
        box-shadow 0.32s ease;
    box-shadow: 0 8px 32px rgba(200, 140, 0, 0.13);
    cursor: pointer;
    background: #2a1d00;
}

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 48px rgba(200, 140, 0, 0.22);
    text-decoration: none;
}

.cat-card-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cat-card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition:
        transform 0.5s ease,
        filter 0.5s ease;
    filter: saturate(1.05) contrast(1.02);
}

.cat-card:hover .cat-card-bg-img {
    transform: scale(1.05);
}

/* SAME overlay for ALL categories */
.cat-card-overlay,
.cat-card-overlay--green {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(83, 59, 0, 0.82) 0%,
        rgba(168, 135, 10, 0.7) 50%,
        rgba(30, 20, 0, 0.88) 100%
    ) !important;
    transition: opacity 0.32s ease;
}

.cat-card:hover .cat-card-overlay {
    opacity: 0.92;
}

.cat-card-hex-badge,
.cat-card-hex-badge--green {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 4;
    width: 60px;
    height: 60px;
    background: var(--primary) !important;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cat-card-hex-badge span {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.cat-card-hex-badge small {
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    line-height: 1;
}

.cat-card-body {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 44px 38px 40px;
}

.cat-card-icon-ring,
.cat-card-icon-ring--green {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2.5px solid rgba(201, 162, 39, 0.62) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    flex-shrink: 0;
    transition:
        border-color 0.3s,
        background 0.3s;
    backdrop-filter: blur(4px);
}

.cat-card:hover .cat-card-icon-ring {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(201, 162, 39, 0.95) !important;
}

.cat-card-product-img {
    height: 72px;
    width: 72px;
    object-fit: contain;
    border-radius: 18px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.35s ease;
}

.cat-card:hover .cat-card-product-img {
    transform: scale(1.1) translateY(-4px);
}

.cat-card-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cat-card-tag,
.cat-card-tag--green {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary) !important;
    margin-bottom: 10px;
}

.cat-card-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.cat-card-title span,
.cat-title-green {
    color: var(--primary) !important;
}

.cat-card-desc {
    font-family: var(--font-subheading);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: 390px;
}

.cat-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.cat-pill,
.cat-pill--green {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(201, 162, 39, 0.22) !important;
    border: 1.2px solid rgba(201, 162, 39, 0.45) !important;
    border-radius: 30px;
    padding: 5px 13px;
    letter-spacing: 0.2px;
}

.cat-pill i,
.cat-pill--green i {
    color: var(--primary) !important;
    font-size: 11px;
}

.cat-card-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cat-card-cta-btn,
.cat-card-cta-btn--green {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary) !important;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 40px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 18px rgba(201, 162, 39, 0.45);
    transition:
        background 0.22s,
        transform 0.22s,
        box-shadow 0.22s;
}

.cat-card:hover .cat-card-cta-btn {
    background: var(--primary-dark) !important;
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(201, 162, 39, 0.58);
}

.cat-card-product-count {
    font-family: var(--font-subheading);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

/* ===== WHY CHOOSE ===== */
.cat-why-section {
    padding: 70px 0 80px;
    background: #fff9f4;
    position: relative;
    overflow: hidden;
}

.cat-why-bee-vector {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 200px;
    object-fit: cover;
    z-index: 2;
    pointer-events: none;
}

.cat-why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 26px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(200, 140, 0, 0.1);
    border-top: 3.5px solid var(--border);
    border-left: 3.5px solid var(--border);
    height: 100%;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.cat-why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(200, 140, 0, 0.18);
}

.cat-why-icon-hex {
    width: 64px;
    height: 64px;
    background: #533b00;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cat-why-icon-hex i {
    font-size: 24px;
    color: var(--primary);
}

.cat-why-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cat-why-desc {
    font-family: var(--font-subheading);
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .cat-hero-section {
        min-height: 380px;
    }

    .cat-hero-content h1 {
        font-size: clamp(1.9rem, 5vw, 2.8rem);
    }

    .cat-hero-content p {
        font-size: 16px;
    }

    .cat-card {
        min-height: 500px;
    }

    .cat-card-body {
        padding: 34px 28px 32px;
    }

    .cat-card-icon-ring {
        width: 90px;
        height: 90px;
        margin-bottom: 22px;
    }

    .cat-card-product-img {
        width: 58px;
        height: 58px;
    }

    .cat-card-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 767px) {
    .cat-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cat-card {
        min-height: 460px;
    }

    .cat-card-hex-badge {
        top: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .cat-card-hex-badge span {
        font-size: 12px;
    }

    .cat-card-hex-badge small {
        font-size: 7px;
    }
}

@media (max-width: 575px) {
    .cat-hero-section {
        min-height: 320px;
    }

    .cat-hero-container {
        padding-top: 0;
        padding-bottom: 70px;
    }

    .cat-hero-content h1 {
        font-size: 2rem;
        letter-spacing: 0.5px;
    }

    .cat-hero-content p {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .cat-intro-section {
        padding: 36px 0 8px;
    }

    .cat-intro-subtitle {
        font-size: 15px;
    }

    .cat-cards-section {
        padding: 30px 0 52px;
    }

    .cat-card {
        min-height: 420px;
    }

    .cat-card-body {
        padding: 28px 22px 26px;
    }

    .cat-card-icon-ring {
        width: 78px;
        height: 78px;
        margin-bottom: 18px;
    }

    .cat-card-product-img {
        width: 48px;
        height: 48px;
    }

    .cat-card-title {
        font-size: 1.8rem;
    }

    .cat-card-desc {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .cat-card-pills {
        margin-bottom: 22px;
    }

    .cat-pill {
        font-size: 11px;
        padding: 4px 11px;
    }

    .cat-card-cta-btn {
        font-size: 13px;
        padding: 10px 20px;
    }

    .cat-why-section {
        padding: 52px 0 60px;
    }

    .cat-why-bee-vector {
        display: none;
    }

    .cat-why-card {
        padding: 28px 20px 26px;
    }

    .cat-why-icon-hex {
        width: 54px;
        height: 54px;
    }

    .cat-why-icon-hex i {
        font-size: 20px;
    }

    .cat-why-title {
        font-size: 18px;
    }

    .cat-why-desc {
        font-size: 13px;
    }
}
