.tbr_section--title {
    font-size: 20px;
    font-weight: 600;
    color: var(--bs-gray-800);
}

/* ===================================
 * Swiper
=================================== */
#swiper-banner.swiper {
    --swiper-pagination-bullet-inactive-color: var(--bs-gray-500);
    --swiper-pagination-color: var(--tbr-bg-primary);
    width: 100%;
    border-radius: 12px;
}

#swiper-categories-pagination,
#swiper-flashsale-pagination {
    --swiper-pagination-bullet-inactive-color: var(--bs-gray-500);
    --swiper-pagination-color: var(--tbr-primary);
}

#swiper-banner.swiper .swiper-slide a {
    display: block;
    position: relative;
    width: 100%;
    padding-top: calc((376/1300)*100%);
    overflow: hidden;
}

#swiper-banner.swiper .swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination {
    text-align: end;
    padding-right: 20px;
    padding-bottom: 2px;
}

.tbr_swiper--button-prev,
.tbr_swiper--button-next {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    background-color: var(--tbr-bg-primary);
    border: 1px solid var(--tbr-border-primary);
}

html[data-bs-theme="dark"] .tbr_swiper--button-prev,
html[data-bs-theme="dark"] .tbr_swiper--button-next {
    background-color: #1f212a;
    border: 1px solid #363843;
}

.tbr_swiper--button-prev {
    left: 0;
    transform: translate(-50%, -50%);
}

.tbr_swiper--button-next {
    right: 0;
    transform: translate(50%, -50%);
}

.swiper ~ .tbr_swiper--button-prev.tbr_btn--hover-effect,
.swiper ~ .tbr_swiper--button-next.tbr_btn--hover-effect {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tbr_swiper--button-prev:hover,
.tbr_swiper--button-next:hover,
.tbr_swiper--button-prev:hover + .tbr_swiper--button-next,
.tbr_parent--swiper:has(.tbr_swiper--button-next:hover)
    .tbr_swiper--button-prev,
.swiper:hover ~ .tbr_swiper--button-prev,
.swiper:hover ~ .tbr_swiper--button-next {
    opacity: 1 !important;
}

.tbr_swiper--button-prev.swiper-button-disabled,
.tbr_swiper--button-next.swiper-button-disabled {
    display: none !important;
}

/* ===================================
 * Section : features
=================================== */
.tbr_features--wrapper {
    border-radius: 8px;
    padding: 16px;
    background-color: var(--tbr-bg-secondary);
    border: 1px solid var(--tbr-border-primary);
}

.tbr_features--item {
    position: relative;
    padding: 16px 12px;
    display: flex;
    column-gap: 16px;
    height: 100%;
}

div.col-lg-3:not(:last-child) .tbr_features--item::after {
    content: "";
    position: absolute;
    width: 1px;
    background-color: var(--tbr-border-primary);
    right: 0;
    top: 0;
    bottom: 0;
}

.tbr_features--text {
    display: flex;
    flex-direction: column;
}

.tbr_features--text .title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
    color: var(--bs-gray-800);
}

.tbr_features--text .subtitle {
    font-weight: 400;
    color: var(--bs-gray-600);
}

.tbr_features--item .tbr_features--icon img {
    width: 100%;
}

@media only screen and (max-width: 992px) {
    .tbr_features--wrapper {
        padding: 0 0 16px 0;
    }

    .tbr_features--item {
        padding-bottom: 0;
    }

    .tbr_features--item .tbr_features--icon {
        width: 32px;
        min-width: 32px;
    }

    div.col-lg-3:not(:last-child) .tbr_features--item::after {
        display: none;
    }
}

@media only screen and (max-width: 576px) {
    .tbr_features--text .title {
        font-size: 14px;
    }
}

/* ===================================
 * Section : categories
=================================== */
a .tbr_categories--item {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    transition: all .5s;
    background-color: var(--tbr-bg-secondary);
    border: 1px solid var(--tbr-border-primary);
    color: var(--bs-gray-800);
}

a .tbr_categories--item:hover,
a .tbr_categories--item:focus,
a .tbr_categories--item:active {
    border: 1px solid rgba(var(--tbr-rgb-primary), .1);
    background-color: rgba(var(--tbr-rgb-primary), .1);
    color: var(--tbr-primary);
}

html[data-bs-theme="dark"] a .tbr_categories--item {
    --category-color: #FFFFFF;
}

@media only screen and (max-width: 576px) {
    a .tbr_categories--item {
        font-size: 14px;
    }
}

/* ===================================
 * Section : flash sale
=================================== */
.tbr_flashsale--icon {
    margin-left: -3px;
    margin-right: -3px;
}

.tbr_flashsale--progress {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 8px;
    margin-top: 8px;
    background-color: var(--bs-gray-200);
}

.tbr_flashsale--progress .bar {
    content: "";
    position: absolute;
    display: block;
    height: 100%;
    border-radius: 8px;
}

.tbr_product--item .tbr_flashsale--status {
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
}

.tbr_product--item.available .tbr_flashsale--status {
    color: var(--tbr-success);
}

.tbr_product--item.low .tbr_flashsale--status {
    color: var(--tbr-danger);
}

.tbr_product--item.selling_well .tbr_flashsale--status {
    color: var(--tbr-warning);
}

.tbr_product--item.available .tbr_flashsale--progress .bar {
    background-color: var(--tbr-success);
}

.tbr_product--item.low .tbr_flashsale--progress .bar {
    background-color: var(--tbr-danger);
}

.tbr_product--item.selling_well .tbr_flashsale--progress .bar {
    background-color: var(--tbr-warning);
}

.tbr_section--title.tbr_fs--title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tbr_section--title.tbr_fs--title span:nth-child(2) {
    width: 18px;
    height: 18px;
    background-image: url('../../svg/icons/flash-sale.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: initial;
}

.tbr_flashsale span:not(.tbr_flashsale--countdown) {
    font-size: 16px;
    font-weight: 700;
}

.tbr_marquee--container {
    position: relative;
    max-width: 250px;
    overflow: hidden;
    text-wrap: nowrap;
}

.tbr_marquee--container.running > *{
    animation: scroll-left linear 2.5;
}

.tbr_marquee--container.running::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 63px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--tbr-white))
}

.tbr_mode--dark .tbr_marquee--container.running::after {
    background: linear-gradient(to right, transparent, var(--tbr-bg-primary))
}

/* Keyframes untuk animasi */
@keyframes scroll-left {
    from {
      transform: translateX(100%); /* Mulai dari luar kanan */
    }
    to {
      transform: translateX(-100%); /* Bergerak ke luar kiri */
    }
}

/* ===================================
 * Section : products
=================================== */
.tbr_nav--horizontal .nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 400;
    color: var(--bs-gray-600);
}

.tbr_nav--horizontal .nav-link.active {
    font-weight: 600;
    color: var(--bs-gray-800);
}

.tbr_nav--horizontal .nav-link::after {
    position: absolute;
    content: '';
    width: 0;
    height: 3px;
    left: 0;
    bottom: 0;
    background-color: var(--tbr-primary);
    transition: width 0.3s ease;
}

.tbr_nav--horizontal .nav-item .nav-link.active::after,
.tbr_nav--horizontal .nav-item:not(:has(.active)):hover .nav-link::after {
    width: 100%;
}

.tbr_nav--horizontal:has(.nav-item:hover) .nav-item:not(:hover) .nav-link.active::after {
    width: 0;
}

#tbr-product-parent {
    row-gap: 20px;
}

/* ===================================
 * Responsive
=================================== */
@media (width <= 576px) {
    #swiper-categories.swiper,
    #swiper-flashsale.swiper {
        padding-bottom: 24px;
    }

    .tbr_swiper--button-prev,
    .tbr_swiper--button-next {
        width: 32px;
        height: 32px;
    }

    .tbr_swiper--button-prev img,
    .tbr_swiper--button-next img {
        width: 18px;
        height: 18px;
    }

    div:not(:last-child) .tbr_features--item::after {
        display: none;
    }

    .tbr_marquee--container {
        max-width: 150px;
    }
}
