:root {
    --primary: #0EA123;
    --secondary: #0A7219;
    --accent: #0C87F1;
    --black: #0f0f0e;
    --grey: #67705c;
    --white: #ffffff;
    --jne: #1e3278;
}

/* Float action whatsapp */
.fab-wa-container {
    position: fixed;
    right: 24px;
    bottom: 12px;
    z-index: 999999999;
}

.fab-wa-ic {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
/* End Float action whatsapp */

/* Navbar */
.navbar {
    background-color: var(--primary) !important;
    display: block;
    padding: 4px 0 12px;
}

.navbar-logo {
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.navbar-mid-container {
    margin-top: 24px;
}

.navbar-cart {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.navbar-top-links {
    display: flex;
    margin-bottom: 0;
}

.navbar-top-links.left-side li {
    margin-right: 12px;
}

.navbar-top-links.right-side li {
    margin-left: 12px;
}

.navbar-top-links li a {
    font-family: "Source";
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    color: white !important;
    text-decoration: none;
    padding: 4px;
}

.navbar-top-links li a:hover {
    filter: brightness(.9);
}

.navbar-search-btn {
    background-color: var(--accent);
}

.navbar-search-btn {
    font-size: 16px !important;
    color: white !important;
}

.navbar-search-btn:hover {
    filter: brightness(1.1);
}

.navbar-search-container {
    border-radius: 8px;
}
/* End Navbar */

/* Product */
.card-product {
    border-radius: 8px;
}

.card-product .card-img-wrapper {
    width: 250px;
    height: 250px;
}

.card-product .card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    object-fit: cover;
}

.card-product .button-preview {
    position: relative;
    top: -40px;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms linear;
}

.card-product .card-header {
    border-bottom: 1px solid black;
}

.card-product .card-footer {
    border-top: 1px solid black;
}
/* End Product */

.rounded-prepend {
    border-top-left-radius: 50rem;
    border-bottom-left-radius: 50rem;
}

.rounded-append {
    border-top-right-radius: 50rem;
    border-bottom-right-radius: 50rem;
}

.image-no-stock {
    filter: grayscale(100%);
}

.background-footer {
    background: var(--primary);
}

.count-cart {
    border: 2px solid white;
    background: var(--secondary);
    border-radius: 50%;
    color: var(--white) !important;
    font-weight: bold;
    text-align: center;
    width: 16px;
    height: 16px;
    position: absolute;
    top: -4px;
    left: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media only screen and (min-width: 768px) and (max-width: 998px) {
    /* Navbar */
    .navbar-logo-container {
        flex: 0 0 8%;
    }

    .navbar-mobile-search {
        flex: 0 0 80%;
    }

    .navbar-button-container {
        flex: 0 0 fit-content;
    }

    .navbar-mobile-logo {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .navbar {
        padding: 12px 16px;
    }

    .navbar-bottom-icon {
        width: 25px;
        height: 25px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .navbar-bottom a.active p {
        color: var(--primary);
    }

    .count-cart {
        top: -8px;
        right: 90px;
    }
    /* End Navbar */

    /* Float action button */
    .fab-wa-container {
        bottom: 70px;
        z-index: 1000;
    }
    /* End Float action button */
    .navbar-top .row {
        width: 100%!important;
    }

    .form-inline .input-group, .form-inline .custom-select{
        width: 100% !important;
    }

    .card-product .card-img-wrapper {
        width: 190px !important;
        height: 200px !important;
    }
}

@media only screen and (max-width: 767.98px) {
    /* Navbar */
    .navbar-logo-container {
        flex: 0 0 10%;
    }

    .navbar-mobile-search {
        flex: 0 0 70%;
    }

    .navbar-button-container {
        flex: 0 0 fit-content;
    }

    .navbar-mobile-logo {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .navbar {
        padding: 12px 16px;
    }
    /* End Navbar */

    .fab-wa-ic {
        width: 48px;
        height: 48px;
    }

    .fab-wa-container {
        right: 8px;
        bottom: 70px;
        z-index: 1000;
    }

    .count-cart {
        line-height: 15px;
        width: 15px;
        top: -4px;
        right: 5px;
        font-size: 0.75rem;
    }


    #layoutDefault,
    #layoutDefault_footer {
        overflow-x: hidden;
    }

    .navbar-bottom-icon {
        width: 25px;
        height: 25px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .navbar-bottom a.active p {
        color: var(--primary);
    }

    .card-product .button-preview {
        visibility: visible;
        opacity: 1;
        top: -34px;
    }

    .card-product .card-img-wrapper {
        width: 150px;
        height: 155px;
    }

    .card-product .card-img-wrapper img{
        max-width: 100%;
        height: auto
    }

    .card-product-wrapper:nth-child(odd) {
        padding-right: 0.25rem;
    }

    .card-product-wrapper:nth-child(even) {
        padding-left: 0.25rem;
    }

    .card-product-wrapper-font,
    .card-header span {
        font-size: 0.75rem;
    }

    .card-img-wrapper .button-preview {
        width: 75%;
    }

    #whyUs img{
        max-width: 75px;
    }
}

@media (max-width: 997.98px) {

    /* Utils */
    #layoutDefault, #layoutDefault_footer {
        overflow-x: hidden;
    }

    .navbar-bottom {
        border-top: 1px solid black;
    }

    .count-cart {
        left: 12px;
    }

}

@media (hover: hover) and (pointer: fine) {
    .navbot-link a:hover h4 {
        color: var(--accent);
        transition: all 150ms ease-in;
    }
    .navtop-anchor:hover span {
        color: var(--accent);
        transition: all 150ms ease-in;
    }
    .card-product:hover .button-preview {
        visibility: visible;
        opacity: 1;
        transition: all 300ms linear;
    }
}
