/*
Custom Style
=========================== */
#nav {
    border-bottom: solid 1px #efefef;
    min-height: 125px;
    background: #fff;
    -webkit-transition: all 0.3s ease-in-out;
    -khtml-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

#nav .wrap-core-nav-list,
#nav .nav-header {
    background: #fff;
}

@media (min-width: 992px) {
    #nav .wrap-core-nav-list,
    #nav .nav-header {
        background: transparent;
    }
}

#nav .brand {
    display: block;
    position: relative;
    width: 225px;
    top: 15px;
    padding: 10px 0;
}

#nav .brand::before {
    content: "";
    background: #dddddd;
    position: absolute;
    top: 0px;
    right: -15px;
    width: 1px;
    height: 100%;
}

#nav .brand img {
    width: 90%;
}

#nav .brand h1 {
    position: absolute;
    left: 270px;
    /* right: -500px; */
    font-size: 35px;
    top: 0px;
    width: max-content;
    color: #333333;
    -webkit-transition: all 0.3s ease-in-out;
    -khtml-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

#nav .menu li a {
    position: relative;
    display: block;
    padding: 20px 20px;
    text-decoration: none;
    color: #3a3a3a;
}

#nav .menu li a::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0px;
    right: 0px;
    height: 5px;
    background: transparent;
    -webkit-transition: all 0.3s ease-in-out;
    -khtml-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

#nav .menu li.active > a,
#nav .menu li a:hover {
    color: #4db848;
}

#nav .menu li a:hover::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 5px;
    background: #4db848;
    -webkit-transition: all 0.3s ease-in-out;
    -khtml-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* #nav button {
    background: transparent;
    border: none;
    outline: none;
} */

.page-item.active .page-link {
    background-color: #4db848;
    border-color: #4db848;
}

.page-link {
    color: #4db848;
}

.page-link:hover {
    color: #4db848;
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgb(77 184 72 / 25%);
}

.radio-custom {
    display: grid;
    place-content: center;
    width: 25px;
    height: 25px;
    background: #29a745;
}

.radio-custom::before {
    content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" version="1.1" fill="white" height="1em" viewBox="0 0 448 512"><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>');
    width: 28px;
    height: 28px;
    padding-top: 7px;
    border-radius: 50%;
    display: flex;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 3em 1em #29a745;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.radio-custom:checked::before {
    transform: scale(1);
}

.sticky-cart {
    position: sticky;
    top: 110px;
    height: max-content;
}

.ribbon {
    --f: 15px; /* control the folded part*/
    --r: 15px; /* control the ribbon shape */
    --t: 10px; /* the top offset */
    
    position: absolute;
    inset: var(--t) calc(-1*var(--f)) auto auto;
    padding: 0 10px var(--f) calc(10px + var(--r));
    clip-path: 
      polygon(0 0,100% 0,100% calc(100% - var(--f)),calc(100% - var(--f)) 100%,
        calc(100% - var(--f)) calc(100% - var(--f)),0 calc(100% - var(--f)),
        var(--r) calc(50% - var(--f)/2));
    background: #4db848;
    color:white;
    box-shadow: 0 calc(-1*var(--f)) 0 inset #0005;
  }

  .coupon-header {
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: 200;
    padding: 10px;
    margin-bottom: 25px;
    background-color: #4db848;
    border-radius: 15px;
  }

  .modal-x-close {
    cursor: pointer;
    padding: 10px;
    top: -55px;
    right: 0;
    color: white;
    font-size: 40px;
    position: absolute;
    width: 50px;
  }

@media (max-width: 1600px) {
    #nav .menu li a {
        display: block;
        padding: 20px 15px;
        text-decoration: none;
        color: #3a3a3a;
    }
}

@media screen and (max-width: 1500px) and (min-width: 1200px) {
    /*@media (max-width: 1500px) {*/
    #nav {
        border-bottom: solid 1px #efefef;
        min-height: 115px;
        background: #fff;
    }
    #nav .brand {
        width: 175px;
        top: 15px;
    }

    #nav .brand h1 {
        position: absolute;
        left: 215px;
        /* right: -500px; */
        font-size: 35px;
        top: 0px;
        width: max-content;
        color: #333333;
    }

    #nav .menu li a {
        display: block;
        padding: 15px 10px;
        text-decoration: none;
        color: #3a3a3a;
    }

    .core-nav .wrap-core-nav-list {
        text-align: left;
        position: absolute;
        z-index: 1;
        width: calc(100% - 230px);
        left: 204px;
        bottom: 0px;
    }
}

@media screen and (max-width: 1360px) and (min-width: 992px) {
    /*@media (max-width: 1500px) {*/
    #nav {
        border-bottom: solid 1px #efefef;
        min-height: 160px;
        background: #fff;
    }
    #nav .brand {
        width: 175px;
        top: 15px;
    }

    #nav .brand h1 {
        position: absolute;
        right: -500px;
        /* font-size: 20px; */
        top: 10px;
        width: max-content;
        color: #333333;
    }

    #nav .menu li a {
        display: block;
        padding: 15px 10px;
        text-decoration: none;
        color: #3a3a3a;
    }
    .core-nav .wrap-core-nav-list {
        text-align: left;
        position: absolute;
        z-index: 1;
        width: calc(100% - 0px);
        left: 0px;
        bottom: 0px;
    }
}

.on-scroll .logo-nav-portal {
    width: 68% !important;
    text-align: center !important;
}

.on-scroll .brand {
    text-align: center !important;
}

.position-unset {
    position: unset;
}

.tooltip-detail {
    display: inline-block;
    border-bottom: 1px dotted black;
    cursor: pointer;
}

.tooltip-detail .tooltiptext {
    visibility: hidden;
    width: 100%;
    background-color: #000000b3;
    color: #fff;
    text-align: center;
    height: 100%;
    border-radius: 6px;
    overflow-y: auto;
    font-size: 14px;
    left: 0;
    padding: 5px;
    top: 0;
    position: absolute;
    z-index: 1;
}

.tooltip-detail:focus .tooltiptext {
    visibility: visible;
}

.tooltiptext:focus {
    visibility: hidden;
}

@media (max-width: 992px) {
    .sticky-cart {
        position: unset;
        top: 0;
        height: auto;
    }

    #nav {
        min-height: 60px;
    }
    #nav .full-container,
    #nav .nav-container {
        padding-left: 0;
        padding-right: 0;
    }

    #nav .nav-header {
        min-height: 60px;
    }

    #nav .nav-header .brand {
        margin: 0 auto 5px;
        float: none;
    }

    #nav .nav-header .toggle-bar {
        font-size: 18px;
        position: absolute;
        top: 17px;
        left: 15px;
    }

    #nav .menu li a {
        padding: 10px 10px;
        border-bottom: solid 1px #efefef;
    }

    #nav .menu li:last-child a {
        border-bottom: none;
    }
}
/* =========================== */
