.t888-featured-categories-wrapper {
    text-align: center;
}

.t888-featured-header {
    margin-bottom: 40px;
}

.t888-featured-header .view-all-link {
    font-size: 1rem;
    line-height: 2rem;
    color: var(--primary-color);
    font-family: var(--font-philosopher);
    padding-bottom: 10px;
    position: relative;
}

.t888-featured-header .view-all-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--third-color);
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.t888-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.t888-featured-box {
    transition: all 0.3s ease;
    position: relative;
}



.t888-featured-thumb {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.t888-featured-thumb img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    aspect-ratio: 0.95;

}

.t888-featured-box:hover img {
    transform: scale(1.05);

}

.t888-featured-box:hover .t888-featured-title {
    color: var(--third-color);
}

.t888-featured-info {
    position: absolute;
    top: 50px;
    left: 50px;
    text-align: left;
}

.t888-featured-icon {
    position: absolute;
    top: 55px;
    right: 50px;
    text-align: right;
}

.t888-featured-title {
    font-size: 1.125rem;
    line-height: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-philosopher);
    text-transform: uppercase;
}

.t888-featured-count {
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: var(--ninth-color);
}

.t888-featured-icon i {
    font-size: 1.125rem;
    color: var(--primary-color);
}

.style2 .t888-featured-thumb {
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: var(--secondary-color);
}

.style2 .t888-featured-thumb-inner {
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.style2 .t888-featured-thumb-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: all 0.3s ease;
}

.style2 .t888-featured-info {
    top: 70px;
    left: 70px;
}

.style2 .t888-featured-box:nth-child(even) .t888-featured-info {
    top: auto;
    bottom: 70px;
}

.style2 .t888-featured-info .t888-featured-title {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--secondary-color);
    line-height: 33px;
}

.style2 .t888-featured-info .t888-featured-count {
    font-size: 14px;
    line-height: 24px;
    color: var(--secondary-color);
    margin: 0 0 18px;
}

.style2 .t888-featured-button {
    display: inline-block;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--secondary-color);
    padding: 0 0 8px 0;
    border-bottom: 2px solid currentColor;
    transition: all 0.3s ease;
}

.style2 .t888-featured-button:hover {
    color: var(--third-color);
    border-bottom-color: var(--third-color);
}

.style2 .t888-featured-box:hover .t888-featured-thumb-inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}


.t888-featured-thumb-style3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: scale(1);

}
.t888-featured-thumb-style3{
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}
.t888-featured-grid-style3 .t888-featured-box .t888-featured-thumb-style3{
    transition: all 0.3s ease;
}
.t888-featured-grid-style3 .t888-featured-box .t888-featured-thumb-style3 img{
    transition: all 0.3s ease;
}

.t888-featured-grid-style3 .t888-featured-box:hover .t888-featured-thumb-style3{
    border: 1px solid var(--third-color);
    padding: 5px;
}

.t888-featured-grid-style3 .t888-featured-box:hover .t888-featured-thumb-style3 img {
    transform: scale(1);
}

.t888-featured-grid-style3 {
    display: grid;
    gap: 48px;
}

.t888-featured-grid-style3.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.t888-featured-grid-style3.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.t888-featured-grid-style3.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.t888-featured-grid-style3.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.t888-featured-grid-style3.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.t888-featured-info-style3 .t888-featured-title {
    margin-bottom: 4px;
}

.style3 .t888-featured-header {
    display: inline-flex;
    margin-bottom: 50px;
}

.style3 .t888-featured-header .view-all-link {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary-color);
    padding: 9.5px 19px;
    border: 2px solid var(--primary-color);
}

.style3 .t888-featured-header .view-all-link::after {
    content: none;
}

@media (max-width: 1024px) {
    .style3 .t888-featured-header {
        margin-bottom: 25px;
    }
    .style2 .t888-featured-info{
        top: 50px;
        left: 50px;
    }
    .style2 .t888-featured-box:nth-child(even) .t888-featured-info {
        top: auto;
        bottom: 50px;
    }
    .style2 .t888-featured-grid{
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .t888-featured-info {
        top: 30px;
        left: 30px;
    }

    .t888-featured-icon {
        top: 35px;
        right: 30px;
    }
    .style2 .t888-featured-info .t888-featured-title{
        font-size: 21px;
    }
    .style2 .t888-featured-info{
        top: 30px;
        left: 30px;
    }
    .style2 .t888-featured-box:nth-child(even) .t888-featured-info {
        top: auto;
        bottom: 30px;
    }
    .style2 .t888-featured-thumb{
        padding: 16px;
    }
}

@media (max-width: 767px) {
    .t888-featured-grid-style3 {
        gap: 25px;
    }

    .t888-featured-title {
        font-size: 1.125rem;
        line-height: 1.5rem;
    }
}

@media (max-width: 575px) {
    .t888-featured-grid {
        grid-template-columns: 1fr;
    }

    .t888-featured-grid-style3.columns-5,
    .t888-featured-grid-style3.columns-4,
    .t888-featured-grid-style3.columns-3,
    .t888-featured-grid-style3.columns-2,
    .t888-featured-grid-style3.columns-1 {
        grid-template-columns: 1fr;
    }

    .t888-featured-thumb-style3 {
        max-width: 200px;
        margin: 0px auto;
        margin-bottom: 20px;
    }

    .t888-featured-info {
        top: 50px;
        left: 50px;
    }

    .t888-featured-icon {
        top: 55px;
        right: 50px;
    }

    .e-con.e-flex:has(.t888-featured-grid) {
        --flex-wrap: nowrap !important;
    }
    .style2 .t888-featured-grid{
        gap: 30px;
    }
    .style2 .t888-featured-thumb{
        padding: 20px;
    }
    .style2 .t888-featured-info .t888-featured-title{
        font-size: 24px;
    }
    .style2 .t888-featured-info{
        top: 50px;
        left: 50px;
    }
    .style2 .t888-featured-box:nth-child(even) .t888-featured-info {
        top: auto;
        bottom: 50px;
    }
}

/* Style 4: product category showcase slider */
.t888-category-showcase,
.t888-category-showcase__slider {
    width: 100%;
}

.t888-category-showcase__slider {
    position: relative;
    overflow: hidden;
}

.t888-category-showcase__slider .swiper-wrapper {
    align-items: stretch;
}

.category-showcase-slide {
    height: auto;
    min-width: 0;
}

.category-showcase-card {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #121a1d;
    color: #fff;
    text-align: left;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%);
}

.t888-category-showcase .category-showcase-media,
.t888-category-showcase .category-showcase-media img,
.t888-category-showcase .category-showcase-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.t888-category-showcase .category-showcase-media {
    z-index: 0;
    display: block;
    overflow: hidden;
}

.t888-category-showcase .category-showcase-media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center center;
    transform: scale(1.001);
    transition: transform 700ms cubic-bezier(.2, .72, .25, 1);
}

.category-showcase-overlay {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 11, 18, .02) 22%, rgba(4, 11, 18, .34) 58%, rgba(3, 10, 27, .94) 100%);
}

.category-showcase-content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 40px 38px;
    color: #fff;
    transform: translateY(72px);
    transition: transform 420ms cubic-bezier(.2, .72, .25, 1);
}

.category-showcase-count {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 16px;
    padding: 7px 15px;
    border-radius: 999px;
    background: #1d90fd;
    color: #fff;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.category-showcase-title {
    display: block;
    color: #fff;
    font-family: var(--font-family);
    font-size: clamp(23px, 2.15vw, 30px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.025em;
    text-transform: none;
}

.category-showcase-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-top: 22px;
    border-radius: 50%;
    background: #1d90fd;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 260ms ease, transform 420ms cubic-bezier(.2, .72, .25, 1);
}

.category-showcase-card:hover .category-showcase-media img,
.category-showcase-card:focus-visible .category-showcase-media img {
    transform: scale(1.055);
}

.category-showcase-card:hover .category-showcase-content,
.category-showcase-card:focus-visible .category-showcase-content {
    transform: translateY(0);
}

.category-showcase-card:hover .category-showcase-action,
.category-showcase-card:focus-visible .category-showcase-action {
    opacity: 1;
    transform: translateY(0);
}

.category-showcase-card:focus-visible,
.category-showcase-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
}

.category-showcase-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(4, 11, 18, .44);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 220ms ease, background-color 220ms ease, border-color 220ms ease;
    backdrop-filter: blur(5px);
}

.category-showcase-nav--prev {
    left: 16px;
}

.category-showcase-nav--next {
    right: 16px;
}

.t888-category-showcase__slider:hover .category-showcase-nav,
.t888-category-showcase__slider:focus-within .category-showcase-nav {
    opacity: 1;
}

.category-showcase-nav:hover,
.category-showcase-nav:focus-visible {
    border-color: #1d90fd;
    background: #1d90fd;
    color: #fff;
}

.category-showcase-nav.swiper-button-disabled {
    opacity: .25;
    pointer-events: none;
}

@media (hover: none) {
    .category-showcase-content {
        transform: translateY(0);
    }

    .category-showcase-action,
    .category-showcase-nav {
        opacity: 1;
    }

    .category-showcase-action {
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .category-showcase-card {
        height: 430px;
        clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 0 100%);
    }

    .category-showcase-content {
        padding: 28px 25px 30px;
    }

    .category-showcase-title {
        font-size: 25px;
    }

    .category-showcase-nav {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-showcase-media img,
    .category-showcase-content,
    .category-showcase-action,
    .category-showcase-nav {
        transition: none;
    }
}
