@import url(https://fonts.googleapis.com/css2?family=Chicle&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap);

#krj i,
#nav a {
    font-size: 20px
}

li,
ul {
    list-style: none
}

.footer-col ul li a,
.wa_btn,
a {
    text-decoration: none
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --card-clr: #161922;
    --body-clr: #191d28;
    --primary-clr: #ffe81b;
    --heading-clr: #dadada;
    --text-clr: #767a86
}

body {
    width: 100%;
    background-color: #f9f9f9;
    font-family: Poppins, sans-serif
}

.product,
header {
    background-color: #fff
}

a {
    color: #000;
    font-size: 1rem;
    font-weight: 500
}

#nav a {
    transition: .3s
}

#nav a:hover {
    color: #bebebe;
    font-size: 19px;
    font-weight: bolder
}

#krj i span {
    width: 15px;
    font-size: 12px;
    height: 17px;
    background-color: red;
    text-align: center;
    color: #fff;
    padding-top: 2px;
    border-radius: 50%;
    position: absolute;
    margin: 10px 0 2px
}

header {
    display: flex;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 10
}

.logo a img {
    width: 160px;
    height: auto;
    object-fit: cover
}

.navbar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.buttons,
.product-detail {
    display: flex;
    justify-content: space-between
}

#nav {
    display: flex;
    gap: 2rem;
    margin-bottom: 0
}

.product {
    width: 80% auto;
    height: auto;
    margin: 20px 40px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1)
}

.footer-col ul li:not(:last-child),
.price,
.rating-sales {
    margin-bottom: 5px
}

.image-gallery {
    width: 100%;
    max-width: 40%;
    position: relative
}

#mainImage {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px
}

.thumbnail-slider-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%
}

.thumbnail-container {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    padding: 0 30px
}

.thumbnail-container img {
    width: 90px;
    height: 90px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 10px
}

.next,
.prev {
    background-color: rgba(177, 177, 177, .5);
    border: none;
    color: #fff;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1
}

.prev {
    left: 0
}

.next {
    right: 0
}

.product-info {
    width: 55%
}

.product-info h1 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700
}

.rating span {
    font-size: 16px
}

.price {
    color: #e74c3c;
    font-size: 28px
}

.quantity h5,
.va {
    color: #505050
}

.deskripsi {
    background-color: #f5f5f5;
    border-radius: 5px;
    overflow-y: auto;
    width: auto;
    height: 200px;
    padding: 0 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    line-height: 1.6
}

.deskripsi p {
    margin: 0
}

.quantity,
.variant {
    margin-bottom: 10px
}

.variant {
    max-height: 100px;
    overflow-y: auto;
    overflow-x: hidden
}

.variant button {
    display: inline-flex;
    font-size: 10px
}

.variant button:hover {
    background: #bebebe
}

.variant-button {
    display: flex;
    align-items: center;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f0f0f0;
    cursor: pointer
}

.variant-button img {
    width: 20px;
    height: 20px;
    margin-right: 10px
}

.variant-button.active {
    border: 2px solid #ffa600;
    color: #000
}

.quantity {
    display: flex
}

.quantity h5 {
    padding-right: 5px
}

.quantity input {
    width: 50px;
    padding: 5px;
    border: 1px solid #000;
    border-radius: 5px
}

.buttons {
    padding-bottom: 10px
}

.add-to-cart,
.buy-now {
    width: 48%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 16px
}

.add-to-cart {
    background-color: #f39c12
}

.buy-now {
    background-color: #e74c3c
}

.add-to-cart:hover {
    background-color: #e67e22
}

.buy-now:hover {
    background-color: #c0392b
}

#produk {
    text-align: center;
    padding: 0 20px
}

#produk .pro-container {
    display: inline-flex;
    justify-content: space-between;
    padding: 20px;
    flex-wrap: wrap
}

#produk .pro {
    width: 12%;
    min-width: 200px;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, .02);
    margin: 15px 0;
    position: relative;
    background: #fff
}

.pro.hide {
    display: none
}

#produk .pro:hover {
    box-shadow: 10px 10px 10px rgba(0, 0, 0, .09)
}

#produk .pro img,
.cartTab .listCart .item img {
    width: 100%
}

#produk .pro .des {
    text-align: start;
    padding: 10px 12px
}

#produk .pro span {
    color: #606063;
    font-size: 12px
}

#produk .pro .des h5 {
    padding-top: 7px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700
}

#produk .pro .des i {
    font-size: 12px;
    color: #e4aa18
}

#produk .pro .des h4 {
    padding-top: 7px;
    font-size: 15px;
    font-weight: 700;
    color: #2cb16e
}

#produk .pro button {
    padding: 2px 10px;
    border: 1px solid #30f016;
    border-radius: 5px;
    background: #30f016;
    color: #fff;
    font-weight: 700;
    position: absolute;
    bottom: 5px;
    right: 10px
}

#produk .pro button:hover {
    border: 1px solid #000;
    color: #000
}

.cartTab {
    width: 400px;
    background-color: #353432;
    color: #eee;
    position: fixed;
    z-index: 1000;
    inset: 0 -400px 0 auto;
    display: grid;
    grid-template-rows: 60px 1fr 60px;
    transition: .5s
}

body.showCart .cartTab {
    inset: 0 0 0 auto;
    overflow: hidden
}

.cartTab h1 {
    padding: 0 20px;
    margin: 0;
    font-weight: 300
}

.cartTab p {
    margin: 0;
    padding-left: 1rem;
    padding-top: 1rem;
    border: 2px solid #fff;
    border-radius: 40px
}

.cartTab .btn {
    display: grid;
    height: 70px;
    grid-template-columns: repeat(2, 1fr)
}

.cartTab .btn button {
    background-color: #007f5f;
    border: none;
    font-weight: 500;
    cursor: pointer
}

.cartTab .btn .close {
    background-color: #000;
    color: #fff
}

.cartTab .btn .checkOut {
    color: #fff
}

.cartTab .listCart .item p {
    padding: 0;
    font-size: 10px;
    border: none;
    overflow: hidden;
    align-items: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: .3s
}

.cartTab .listCart .item p:hover {
    overflow: visible;
    white-space: normal;
    max-height: none;
    padding-bottom: 2px
}

.cartTab .listCart .item {
    display: grid;
    grid-template-columns: 70px 150px 50px 1fr;
    gap: 10px;
    text-align: center;
    align-items: center;
    white-space: nowrap
}

.listCart .quantity span {
    display: inline-block;
    width: 20px;
    background-color: #eee;
    color: #555;
    border-radius: 50%;
    cursor: pointer
}

.listCart .quantity span:nth-child(2) {
    background-color: transparent;
    color: #eee
}

.listCart .item:nth-child(2n) {
    background-color: #eee1
}

.listCart {
    overflow: auto
}

.listCart::-webkit-scrollbar {
    width: 0
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px
}

#overlay,
.custom-alert {
    display: none;
    position: fixed
}

.quantity-controls button {
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer
}

.custom-alert {
    top: 50%;
    left: 50%;
    padding: 2px;
    transform: translate(-50%, -50%);
    z-index: 1000;
    font-weight: 500;
    text-align: center;
    background: #fff;
    border: 1px solid #000;
    border-radius: 3px;
    color: #000
}

.custom-alert p {
    margin: 5px
}

#overlay {
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    background: rgba(0, 0, 0, .5);
    z-index: 999
}

.wa_btn {
    position: fixed;
    right: 20px;
    bottom: 50px;
    color: #075e54;
    background-color: #fff;
    padding: 5px 18px;
    border-radius: 13px;
    display: flex;
    z-index: 5;
    justify-content: center;
    align-items: center
}

.wa_btn i {
    font-size: 60px;
    padding: 0 10px;
    background-color: #075e54;
    border-radius: 50px;
    height: 75px;
    width: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 147px;
    color: #fff
}

.footer {
    background-color: #24262b
}

.footer .container {
    max-width: 1170px;
    margin: auto
}

.footer .container .row {
    display: flex;
    flex-wrap: wrap
}

ul {
    padding-left: 0
}

.footer-col {
    width: 25%;
    padding: 0 15px
}

.footer-col h4 {
    font-size: 18px;
    color: #fff;
    text-transform: capitalize;
    margin-bottom: 30px;
    margin-top: 10px;
    font-weight: 500;
    position: relative
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #e91e63;
    height: 2px;
    box-sizing: border-box;
    width: 50px
}

.footer-col ul li a {
    font-size: 16px;
    text-transform: capitalize;
    font-weight: 300;
    color: #bbb;
    display: block;
    transition: .3s
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 8px
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, .2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: .5s
}

.footer-col .social-links a:hover {
    color: #24262b;
    background-color: #fff
}

.footer p {
    color: #494949
}

@media (min-width:600px) and (max-width:900px) {
    #produk .pro {
        width: 45%
    }
}

@media (min-width:900px) and (max-width:1200px) {
    #produk .pro {
        width: 30%
    }
}

@media (max-width:768px) {

    .price,
    .va {
        padding: 5px;
        font-weight: 700
    }

    .product-detail {
        flex-direction: column;
        align-items: center
    }

    .image-gallery,
    .product-info {
        max-width: 100%
    }

    .product-info {
        width: 100%
    }

    .product-info .judul {
        font-size: 20px;
        text-align: left;
        font-weight: 700;
        padding-top: 10px
    }

    .rating {
        display: none
    }

    .price {
        font-size: 24px;
        text-align: left
    }

    .deskripsi {
        height: 350px
    }

    .buttons {
        flex-wrap: wrap
    }
}

@media (max-width:600px) {
    #produk .pro-container {
        padding: 10px
    }

    #produk .pro {
        width: 30%;
        max-width: 120px;
        margin: 10px 0
    }

    .navbar {
        text-align: center;
        justify-content: center;
        gap: 1rem;
        height: 100px
    }

    .footer-col {
        width: 50%;
        margin-bottom: 30px
    }

    .cartTab .listCart .item {
        grid-template-columns: 70px 120px 50px 1fr
    }
}

@media (max-width:576px) {
    .wa_btn {
        background-color: transparent
    }

    .wa_btn span {
        display: none
    }

    .wa_btn i {
        right: 0
    }

    .footer-col {
        width: 100%
    }
}

@media (max-width:479px) {
    #produk .pro button {
        padding: 1px 5px
    }

    #produk .pro .des h4 {
        padding-top: 0;
        font-size: 12px
    }

    #produk .pro .des h5 {
        margin-bottom: 0;
        padding-top: 0;
        font-size: 8px
    }

    #produk .pro-container {
        padding: 0
    }

    #produk .pro {
        width: 25%;
        min-width: 150px;
        margin: 10px 0
    }

    #ListProduct {
        grid-template-columns: repeat(2, 1fr)
    }

    .cartTab {
        width: 300px auto;
        background-color: #353432;
        color: #eee;
        position: fixed;
        display: grid;
        grid-template-rows: 70px 1fr 70px;
        transition: .5s
    }

    .thumbnail-container img {
        width: 60px;
        height: 60px
    }

    .product-info h1 {
        font-size: 18px
    }

    .price {
        font-size: 20px
    }

    .add-to-cart,
    .buy-now {
        font-size: 14px;
        padding: 10px
    }

    .product-info .judul {
        font-size: 12px;
        text-align: left;
        font-weight: 700;
        padding-top: 10px
    }

    .variant {
        border: 1px solid #949494;
        border-radius: 5px
    }
}

@media (max-width:360px) {
    .product {
        margin: 20px 0;
    }
    
    #produk .pro {
        width: 25%;
        min-width: 150px
    }

    .cartTab {
        width: 360px;
        background-color: #353432;
        color: #eee;
        position: fixed;
        display: grid;
        grid-template-rows: 70px 1fr 70px;
        transition: .5s
    }

    .listCart .quantity span {
        display: inline-block;
        width: 15px;
        background-color: #eee;
        color: #555;
        border-radius: 50%;
        cursor: pointer
    }
}

@media (max-width:320px) {
    #produk .pro .des h4 {
        font-size: 11px
    }

    #produk .pro button {
        padding: 1px 5px;
        font-size: 12px
    }

    #produk .pro {
        width: 25%;
        min-width: 130px
    }

    #nav {
        gap: 1rem
    }

    header {
        padding: 0
    }

    .cartTab {
        width: 320px
    }

    .quantity-controls {
        gap: 5px
    }

    .quantity-controls button {
        padding: 5px;
        font-size: 12px
    }

    .cartTab .listCart .item span {
        font-size: 12px;
        font-weight: 700
    }

    .cartTab .listCart .item {
        gap: 8px
    }

    .thumbnail-slider-container {
        display: none
    }
}