/* ── Fly-to-Cart Animation ───────────────────────────────────────────────── */
@keyframes cart-icon-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.cart-icon-pulse {
    animation: cart-icon-pulse 0.4s ease;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
#toast-container .toast {
    width: 100%;
}

@media (max-width: 575.98px) {
    #toast-container {
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0.5rem !important;
    }
}

/* ── Qty Input ───────────────────────────────────────────────────────────── */
#input-product-qty {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
    text-align: center;
}

#input-product-qty:focus {
    background-color: #252525 !important;
    border-color: #ea2129 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.15rem rgba(234, 33, 41, 0.15);
}

#input-product-qty::-webkit-outer-spin-button,
#input-product-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#input-product-qty[type='number'] {
    -moz-appearance: textfield;
}

#btn-qty-min,
#btn-qty-plus {
    color: #aaa;
    background: transparent;
    border-color: #333;
    transition: all 0.2s;
}

#btn-qty-min:hover,
#btn-qty-plus:hover {
    color: #fff;
    border-color: #ea2129;
    background-color: rgba(234, 33, 41, 0.15);
}

.product-detail-title {
    font-size: 20px;
}

.product-detail-desc {
    font-size: 16px;
}

.product-detail-price {
    font-size: 28px;
}

.product-detail-discount {
    font-size: 16px;
    text-decoration: line-through;
}

.header-product-detail {
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
}

@media (min-width: 576px) {
    .main-image {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .main-image {
        max-width: 100%;
        margin: 0 auto;
    }

    .header-product-detail {
        padding-top: 150px;
    }

    .thumb-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }

    .product-detail-title {
        font-size: 24px;
    }
    .product-detail-desc {
        font-size: 20px;
    }

    .product-detail-price {
        font-size: 28px;
    }

    .product-detail-discount {
        font-size: 14px;
    }
}

@media (min-width: 992px) {
    .main-image {
        max-width: 420px;
    }

    .thumb-wrapper {
        width: 128px;
        height: 480px;
    }

    .product-detail-info {
        padding: 0px 20px;
    }

    .product-detail-title {
        font-size: 36px;
    }
    .product-detail-desc {
        font-size: 16px;
    }

    .product-detail-price {
        font-size: 36px;
    }

    .product-detail-discount {
        font-size: 18px;
    }
}
/* End Hero Product Detail */

.product-tabs .nav-link {
    cursor: pointer;
    color: #555;
    border-bottom: 0px;
}

.product-tabs .nav-link.active,
.product-tabs .show > .nav-link {
    font-weight: 700;
    /* border-bottom-color: currentcolor; */
}

.product-tabs .nav-link.active {
    color: #ffffff;
    font-weight: 700;
    border-bottom: 0px;
}

.mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--brand-dark);
    z-index: 999;

    /* biar ada efek "floating" dikit */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
    color: var(--bs-btn-active-color);
    background-color: #ea2129;
    border-color: #ea2129;
}

.reveal {
    margin-bottom: -100px;
    opacity: 0;
    transition:
        margin-bottom 0.7s ease,
        opacity 0.7s ease;
}
.reveal-rise-up {
    margin-bottom: 0px;
    opacity: 1;
}

.side-left {
    width: 70%;
    height: 100%;
    position: absolute;
    right: 0;
    z-index: 0;
    background-color: #000;
    opacity: 0.2;
}

.img-your-ride {
    position: absolute;
    bottom: 5%;
    left: 2%;
    transition: all 0.7s;
}
.img-your-ride:hover {
    scale: calc(1.1);
    transition: all 0.7s;
}
#page-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-darker);
    z-index: 1000;
}
.video-docker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-docker video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.video-cover-gradient {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(17, 17, 20, 1) 0%,
        rgba(17, 17, 20, 0.5) 30%,
        rgba(17, 17, 20, 0.5) 95%
    );
}

#category-best-product {
    box-shadow: 0px 0px 100px 50px rgba(34, 34, 34, 1);
}

.product-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 0;
    overflow: hidden;
}

.product-slider-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 50px 0px;
    width: calc(100% - (100vw / 4));
}

/* .product-slider-viewport::before,
.product-slider-viewport::after{
    content: "";
    position: absolute;
    top: 0;
    width: 20vw;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.product-slider-viewport::before{
    left: 0;
    background: linear-gradient(to right, rgba(34, 34, 34, 1) 50%, rgba(34, 34, 34, 0) 100%);
}

.product-slider-viewport::after{
    right: 0;
    background: linear-gradient(to left, rgba(34, 34, 34, 1) 50%, rgba(34, 34, 34, 0) 100%);
} */

.product-slider {
    display: flex;
    gap: 40px;
    transition: transform 2s ease;
    will-change: transform;
}

.product-item {
    background-color: var(--brand-gray);
    border-radius: 24px;
    padding: 20px;
    min-width: calc(100vw / 4 - 40px);
    height: calc(16vw - 40px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-item img {
    height: 130%;
    margin-top: -50%;
}

.product-item .product-name {
    margin-top: 10px;
    font-size: 1.2rem;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0px 20px;
    background: rgba(0, 0, 0, 0);
    color: var(--brand-gray);
    border: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 3rem;
}

.slider-arrow:hover {
    color: #fff;
}

.slider-arrow-left {
    left: 7vw;
}

.slider-arrow-right {
    right: 7vw;
}

@media (max-width: 768px) {
    .product-slider-viewport {
        width: calc(100% - 20px);
    }

    .product-slider {
        gap: 20px;
    }
    .product-item {
        min-width: calc(100vw / 2 - 30px);
        width: calc(100vw / 2 - 30px);
        height: calc(100vw / 3 - 20px);
    }

    .slider-arrow {
        color: #9b9b9b;
    }

    .slider-arrow-left {
        left: 1vw;
    }

    .slider-arrow-right {
        right: 1vw;
    }
}

/* Animations */
.reveal-component {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-component.active-component {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Class */
.img-responsive-size {
    width: auto;
    height: 4rem;
}

.img-responsive-size {
    width: auto;
    height: 4rem;
}

.hero-main-title {
    position: absolute;
    z-index: 1;
    top: 24%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.hero-main-text {
    font-size: 46px;
    text-wrap: nowrap;
    text-shadow: 20px 12px #000000;
}

.hero-main-info {
    position: absolute;
    z-index: 1;
    bottom: 10%;
    right: 2%;
    width: 100%;
}

.hero-info-text {
    font-size: 20px;
    text-wrap: nowrap;
    text-shadow: 4px 4px #000000;
}

.img-hero-product {
    position: absolute;
    bottom: 25%;
    left: 50%;

    width: auto;
    height: 9rem;
    z-index: 2;

    transform: translateX(-50%);
    transition: all 0.7s;
}
.img-hero-product:hover {
    scale: calc(1.1);
    transition: all 0.7s;
}

@media (min-width: 576px) {
    /* sm */
    .img-responsive-size {
        width: auto;
        height: 8rem;
    }

    .hero-main-title {
        position: absolute;
        z-index: 1;
        top: 25%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }

    .hero-main-text {
        font-size: 7rem;
    }

    .img-hero-product {
        position: absolute;
        bottom: 30%;
        left: 50%;

        width: auto;
        height: 9rem;
        z-index: 2;

        transform: translateX(-50%);
        transition: all 0.7s;
    }
}

@media (min-width: 768px) {
    /* md */
    .img-responsive-size {
        width: auto;
        height: 8rem;
    }

    .hero-main-title {
        position: absolute;
        z-index: 1;
        top: 25%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }

    .hero-main-text {
        font-size: 5rem;
    }

    .img-hero-product {
        position: absolute;
        bottom: 10%;
        left: 50%;

        width: auto;
        height: 12rem;
        z-index: 2;

        transform: translateX(-50%);
        transition: all 0.7s;
    }
}

@media (min-width: 992px) {
    /* lg */
    .img-responsive-size {
        width: auto;
        height: 8rem;
    }

    .hero-main-title {
        position: absolute;
        z-index: 1;
        top: 16%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }

    .hero-main-text {
        font-size: 7rem;
    }

    .img-hero-product {
        position: absolute;
        bottom: 12%;
        left: 50%;

        width: auto;
        height: 15rem;
        z-index: 2;

        transform: translateX(-50%);
        transition: all 0.7s;
    }
}
/* End Responsive Class */

.product-card {
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-4px) scale(1.03);
}
.product-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.product-discount {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
}
.product-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card-title {
    font-size: 14px;
    background-color: #232323;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-height: 1.5;
    min-height: 28px;

    margin-bottom: auto;
}
.product-rp {
    font-size: 10px;
    color: #ff5252;
}
.product-price {
    font-size: 14px;
    color: white;
    font-weight: 500;
    text-shadow: 1px 0px #000000;
}
.product-discount-percent {
    font-size: 10px;
    color: #ff5252;
}

.bg-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #191919;
}
.bg-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: #252525;
}

.col-product-image {
    position: relative;
    display: flex;
    align-items: stretch;
}
.vertical-thumb {
    min-width: 100px;
    width: 100px;
}

.wrapper-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.col-product-title-variant {
    position: relative;
    padding-left: 30px;
}
.main-product-image {
    padding-left: 55px;
}

@media (max-width: 768px) {
    .col-product-title-variant {
        position: relative;
        padding-left: 0px;
    }

    .main-product-image {
        padding-left: 0px;
        margin-bottom: 20px;
    }
}

/* ── Image Lightbox ─────────────────────────────────────────────────────── */
.main-media {
    cursor: zoom-in;
}

#img-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.35);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 5vh 5vw;
    cursor: zoom-out;
    opacity: 1;
    transition: opacity 0.25s ease;
}

#img-lightbox.active {
    display: flex;
}

#img-lightbox.closing {
    opacity: 0;
}

#img-lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-height: 100%;
    cursor: default;
}

#img-lightbox-inner img {
    max-width: 100%;
    max-height: calc(90vh - 68px);
    object-fit: contain;
    border: none;
    box-shadow: none;
    border-radius: 0;
    animation: lightbox-in 0.5s ease;
    cursor: zoom-out;
}

#img-lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 8px 36px;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    width: auto;
    flex-shrink: 0;
}

#img-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* //mobile view */
@media (max-width: 768px) {
    #img-lightbox {
        padding: 1vw;
    }
    .carousel-item img {
        cursor: zoom-in;
    }
    #img-lightbox-inner img {
        max-height: calc(100vh - 10vw - 80px);
    }
    #img-lightbox-close {
        position: fixed;
        bottom: 2vw;
        left: 1vw;
        right: 1vw;
        width: calc(100% - 2vw);
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 14px;
        font-size: 12px;
    }
}

@keyframes lightbox-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.description-content {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out; /* Durasi & jenis animasi */
    position: relative;
}

/* Saat tertutup (250px) */
.description-content.is-collapsed {
    max-height: 250px;
}

/* Efek fade agar tidak terpotong kaku */
.description-content.is-collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    border-radius: 10px;
    /* background: linear-gradient(transparent, rgba(0, 0, 0, 0.226)); */
    transition: opacity 0.3s;
    overflow: auto;
}

.description-content.is-expanded {
    max-height: 2000px;
    overflow: auto;
}

.description-content.is-expanded::after {
    opacity: 0;
    pointer-events: none;
}

.description-content p {
    color: #ffffff !important;
    background-color: inherit !important;
}

.description-content span {
    color: #ffffff !important;
    background-color: inherit !important;
}
