* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.comment {
    scroll-margin-top: 4rem;
}

.custom-navbar-horizontal {
    margin-top: 8.2rem;
}

body {
    background-color: #fafafa !important;
}

.img-thumbnail {
    width: 6rem;
    height: 6rem;
}

.produk-promo,
.produk-terbaru,
.other-image {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* .other-image {
    height: 31.6rem;
} */

.product-card {
    flex: 0 0 calc(20.254% - 1rem) !important;
    min-width: 9.914375rem !important;
    max-width: 100% !important;
}

.swiper {
    width: 100%;
    height: auto;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.aspect-ratio-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.aspect-ratio-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed from contain to cover */
    object-position: center;
}

.custom-nav-btn {
    background-color: #fafafa;
    border-radius: 50%;
    color: #ffc107;
    padding: 0.5rem 1.35rem;
}

.custom-nav-btn::after {
    font-size: 0.8rem;
}

.swiper-pagination-bullet {
    background-color: #ffc107 !important;
}

.wishlist-btn {
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 10px;
    font-size: 14px;
}

.discount {
    top: 10px;
    left: 0;
    z-index: 2;
    padding: 5px 10px;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.category-image {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
}

.categories > span:hover {
    background-color: #ffc107;
    color: black;
    border-color: #ffc107;
}

.produk-semua,
.produk-terbaru,
.produk-brand {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 1rem;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
    padding: 10px 0;
}
.marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
}
@keyframes marquee-scroll {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}
.marquee p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding-right: 50px;
}

.whatsapp-btn {
    /* position: fixed; */
    bottom: 140px;
    z-index: 1050;
}

.chat-popup {
    position: fixed;
    bottom: 12rem;
    right: 0;
    width: 300px;
    max-width: 90%;
    z-index: 9999;
}

.modal-content {
    border-radius: 10px;
}

.modal-backdrop {
    display: none !important;
}

@media (max-width: 768px) {
    .category-image {
        width: 4rem;
        height: 4rem;
    }

    .produk-semua,
    .produk-terbaru,
    .produk-brand {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .product-card {
        flex: 0 0 calc(51.5% - 1rem) !important;
    }

    /* .swiper-landing-page {
        width: 100%;
        height: 24rem;
        overflow: hidden;
    }

    .swiper-all-product {
        width: 100%;
        height: 34rem;
        overflow: hidden;
    } */
}

@media (max-width: 1200px) {
    /* md breakpoint */
    .produk-semua,
    .produk-terbaru,
    .produk-brand {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1rem;
    }

    .reverse-at-1200 {
        flex-direction: column-reverse !important;
    }

    .other-image {
        flex-direction: row !important;
    }

    .product-card {
        flex: 0 0 calc(25.4% - 1rem) !important; /* 3 kolom */
    }
}

@media (max-width: 990px) {
    /* md breakpoint */
    .category-image {
        width: 5rem;
        height: 5rem;
    }

    .img-thumbnail {
        width: 5.5rem;
        height: 5.5rem;
    }

    .product-action-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        padding: 1rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    /* .other-image {
        height: fit-content;
    } */

    .produk-semua,
    .produk-terbaru,
    .produk-brand {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
    }

    .product-card {
        flex: 0 0 calc(34.138% - 1rem) !important; /* 2 kolom */
    }

    .table-product-superadmin {
        overflow-x: scroll !important;
    }

    .chat-popup {
        z-index: 9999;
    }
}

@media (max-width: 576px) {
    .category-image {
        width: 3.5rem;
        height: 3.5rem;
    }

    .produk-semua,
    .produk-terbaru,
    .produk-brand {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .custom-navbar-horizontal {
        margin-top: 7.5rem;
    }

    /* .swiper {
        width: 100%;
        height: 16.6rem;
        overflow: hidden;
    } */

    .product-card {
        flex: 0 0 calc(51.5% - 1rem) !important;
    }
}
@media (max-width: 575px) {
    .product-card {
        flex: 0 0 calc(51.5% - 1rem) !important;
    }
}

@media (max-width: 534px) {
    .category-image {
        width: 3.5rem;
        height: 3.5rem;
    }

    .product-card {
        flex: 0 0 calc(51.8% - 1rem) !important;
    }

    .produk-semua,
    .produk-terbaru,
    .produk-brand {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .custom-navbar-horizontal {
        margin-top: 7.5rem;
    }
}

@media (max-width: 490px) {
    :root {
        font-size: 3.4vw;
    }
}

.footer_menu ul {
    list-style-type: none;
    padding-left: 0;
}
.header {
    padding: 1rem 0;
}
.header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}
.header .steps {
    color: #6c757d;
}
.header .steps .step {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}
.header .steps .step i {
    color: #007bff;
    margin-right: 0.5rem;
}
.card {
    border-radius: 0.75rem;
}
.card-header {
    background-color: #fff;
    border-bottom: none;
}
.card-body {
    padding: 2rem;
}
.form-control {
    border-radius: 0.5rem;
}
.btn-primary {
    border-radius: 0.5rem;
}
.cart-item img {
    border-radius: 0.5rem;
}
.cart-item .item-info {
    flex: 1;
}
.cart-item .item-info h5 {
    margin-bottom: 0.25rem;
}
.cart-item .item-info p {
    margin-bottom: 0;
}
.secure-checkout {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}
.secure-checkout i {
    color: #007bff;
    margin-right: 0.5rem;
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.rating input {
    display: none;
}
.rating label {
    cursor: pointer;
    font-size: 24px;
}
.rating label:hover i,
.rating label:hover ~ label i,
.rating input:checked ~ label i {
    color: #ffd700;
}
.glassmorphism-container {
    background: rgba(
        172,
        172,
        172,
        0.116
    ); /* Background color with some transparency */
    border-radius: 15px; /* Rounded corners */
    padding: 30px; /* Padding around the content */
    backdrop-filter: blur(10px); /* Frosted glass effect */
}
