/* ============================================================
   CATEGORY ARCHIVE CARDS
   OCEANWP COLOR SYSTEM
   ============================================================ */


/* ============================================================
   CATEGORY GRID
   ============================================================ */

.custom-category-grid {

    list-style: none;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px;

    margin: 0;

    padding: 0;

}


.custom-category-grid .product-category {

    margin: 0 !important;

    padding: 0 !important;

    width: auto !important;

    float: none !important;

}


/* ============================================================
   CATEGORY CARD
   ============================================================ */

.custom-category-card {

    display: flex;

    flex-direction: column;

    width: 100%;

    height: 100%;

    background:
        var(--color-background);

    border-radius: 14px;

    overflow: hidden;

    text-decoration: none !important;

    box-shadow:
        var(--shadow-card);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}


.custom-category-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow-card-hover);

}


/* ============================================================
   IMAGE / HERO AREA
   ============================================================ */

.custom-category-image {

    position: relative;

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background:
        var(--color-black);

}


.custom-category-img {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: contain;

    margin: 0;

    transition:
        transform .45s ease;

}


.custom-category-card:hover .custom-category-img {

    transform:
        scale(1.035);

}


/* ============================================================
   IMAGE GRADIENT
   ============================================================ */

.custom-category-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 45%,
            rgba(0, 0, 0, .20) 78%,
            rgba(0, 0, 0, .30) 100%
        );

    pointer-events: none;

}


/* ============================================================
   CATEGORY BADGES
   ============================================================ */

.custom-category-badges {

    position: absolute;

    top: 20px;

    right: 20px;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 8px;

}


.cc-badge {

    display: inline-block;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;

    padding: 7px 14px;

    border-radius: 4px;

    white-space: nowrap;

    line-height: 1;

}


/* Dark badge */

.cc-badge--dark {

    background:
        rgba(26, 24, 22, .82);

    color: #fff;

}


/* Primary / accent badge */

.cc-badge--accent {

    background:
        var(--color-primary);

    color:
        var(--color-white);

}


/* ============================================================
   OVERLAY TEXT
   ============================================================ */

.custom-category-overlay-text {

    position: absolute;

    left: 0;

    right: 0;

    bottom: 22px;

    z-index: 2;

    padding: 0 10px;

}


.cc-eyebrow {

    display: block;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .18em;

    text-transform: uppercase;

    color:
        var(--color-primary-light, #E6DCC9);

    margin-bottom: 6px;

}


.cc-title {

    margin: 0;

    padding: 0;

    font-weight: 700;

    font-size: 22px;

    line-height: 1.1;

    color: #fff;

    text-align: left;

}


/* ============================================================
   CATEGORY BODY
   ============================================================ */

.custom-category-body {

    padding: 10px;

    text-align: left;

    flex: 1;

}


.cc-description {

    margin: 0;

    font-size: 16px;

    line-height: 1.65;

    color:
        var(--color-text-secondary);

}


/* ============================================================
   CATEGORY FOOTER
   ============================================================ */

.custom-category-footer {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 18px 28px;

    background: #1C2390;
	color: white;
    border-top:
        1px solid var(--color-border);

}


/* ============================================================
   FOOTER COUNT
   ============================================================ */

.cc-footer-count {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;

    font-weight: 700;

    color:
        var(--color-text);

    white-space: nowrap;

}


.cc-icon-check {

    width: 20px;

    height: 20px;

    color:
        var(--color-primary);

    flex-shrink: 0;

}


/* ============================================================
   EXPLORE LINK
   ============================================================ */

.cc-footer-explore {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;

    color:
        var(--color-primary);

    white-space: nowrap;

}


.cc-icon-arrow {

    width: 18px;

    height: 18px;

    color:
        var(--color-text);

    transition:
        transform .2s ease;

}


.custom-category-card:hover .cc-icon-arrow {

    transform:
        translateX(4px);

}


/* ============================================================
   CATEGORY FILTER BAR
   ============================================================ */

.cc-filter-bar {

    background:
        transparent;

    border:
        1px solid var(--color-border);

    border-radius: 10px;

    margin: 0 0 28px;

    overflow-x: auto;

}


.cc-filter-scroll {

    display: flex;

    align-items: stretch;

    overflow-x: auto;

}


/* ============================================================
   FILTER TAB
   ============================================================ */

.cc-filter-tab {

    display: flex;

    align-items: center;

    gap: 20px;

    flex-shrink: 0;

    padding: 10px 16px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .04em;

    text-transform: uppercase;

    color: black;

    text-decoration: none !important;

    border:
        1px solid #c7c7c7;

    background:
        var(--color-background);

    white-space: nowrap;

    transition:
        background .2s ease,
        color .2s ease;

}


.cc-filter-tab:last-child {

    border-right: none;

}


.cc-filter-tab:hover {

    background:
        var(--color-background-soft);

    color:
        var(--color-primary);

}


/* ============================================================
   ACTIVE FILTER
   ============================================================ */

.cc-filter-tab.is-active {

    background: black;

    color:
        white;


    border-right: none;

}


/* ============================================================
   FILTER COUNT
   ============================================================ */

.cc-filter-count {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 22px;

    padding: 2px 7px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: normal;

    text-transform: none;

    color:
        var(--color-text);

    background:
        var(--color-background-soft);

    border-radius: 4px;

}


.cc-filter-tab.is-active .cc-filter-count {

    color:
        var(--color-white);

    background:
        rgba(255, 255, 255, .18);

}


/* ============================================================
   FILTER BADGE
   ============================================================ */

.cc-filter-badge {

    display: inline-flex;

    align-items: center;

    padding: 2px 8px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .04em;

    text-transform: uppercase;

    border-radius: 4px;

}


.cc-filter-badge--new {

    color:
        var(--color-white);

    background:
        var(--color-primary);

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1024px) {

    .custom-category-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;

    }


    .custom-category-overlay-text {

        bottom: 18px;

        padding: 0 18px;

    }


    .cc-title {

        font-size: 18px;

    }


    .custom-category-body {

        padding: 16px 18px;

    }


    .cc-description {

        font-size: 15px;

    }


    .custom-category-footer {

        padding: 16px 18px;

    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .custom-category-grid {

        grid-template-columns: 1fr;

        gap: 18px;

        width: 100%;

    }


    .custom-category-grid .product-category {

        width: 100% !important;

        max-width: 100% !important;

    }


    .custom-category-card {

        width: 100%;

        border-radius: 12px;

    }


    .custom-category-image {

        aspect-ratio: 16 / 11;

    }


    .custom-category-badges {

        top: 12px;

        right: 12px;

        gap: 6px;

        max-width:
            calc(100% - 24px);

    }


    .cc-badge {

        font-size: 9px;

        padding: 6px 10px;

        max-width: 100%;

        overflow: hidden;

        text-overflow: ellipsis;

    }


    .custom-category-overlay-text {

        left: 0;

        right: 0;

        bottom: 16px;

        padding: 0 16px;

    }


    .cc-eyebrow {

        font-size: 10px;

        letter-spacing: .14em;

        margin-bottom: 5px;

    }


    .cc-title {

        font-size:
            clamp(24px, 8vw, 30px);

        line-height: 1.08;

        overflow-wrap: break-word;

        word-break: normal;

    }


    .custom-category-body {

        padding: 14px 16px;

    }


    .cc-description {

        font-size: 14px;

        line-height: 1.55;

    }


    .custom-category-footer {

        padding: 14px 16px;

        gap: 10px;

        flex-wrap: nowrap;

    }


    .cc-footer-count {

        font-size: 12px;

        gap: 6px;

        min-width: 0;

    }


    .cc-icon-check {

        width: 17px;

        height: 17px;

    }


    .cc-footer-explore {

        font-size: 11px;

        gap: 5px;

    }


    .cc-icon-arrow {

        width: 16px;

        height: 16px;

    }


    .cc-filter-tab {

        padding: 13px 18px;

        font-size: 12px;

    }

}


/* ============================================================
   SMALL PHONES
   ============================================================ */

@media (max-width: 400px) {

    .custom-category-grid {

        gap: 16px;

    }


    .custom-category-image {

        aspect-ratio: 3 / 4;

    }


    .custom-category-overlay-text {

        bottom: 14px;

        padding: 0 14px;

    }


    .cc-eyebrow {

        font-size: 9px;

    }


    .cc-title {

        font-size: 18px;

    }


    .custom-category-body {

        padding: 13px 14px;

    }


    .cc-description {

        font-size: 13px;

    }


    .custom-category-footer {

        padding: 13px 14px;

        flex-direction: column;

    }


    .cc-footer-count {

        font-size: 11px;

    }


    .cc-footer-explore {

        font-size: 10px;

    }

}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 340px) {

    .custom-category-footer {

        align-items: flex-start;

        flex-direction: column;

        gap: 8px;

    }


    .cc-footer-explore {

        width: 100%;

        justify-content: space-between;

    }


    .cc-title {

        font-size: 22px;

    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .custom-category-card,
    .custom-category-img,
    .cc-icon-arrow,
    .cc-filter-tab {

        transition: none !important;

    }

}