html {
    scroll-behavior: smooth;
}

.offset:before {
    height: 50px;
    margin-top: -50px;
    content: "";
    display: block;
}

.m-y {
    margin-top: 80px;
    margin-bottom: 50px;
}

#page-btns {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

#page-btns > * {
    margin-left: 5px;
}

#rfq-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #fff;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#rfq-icon:hover {
    transform: scale(1.2);
}

#rfq-icon span {
    white-space: nowrap;
    text-shadow: 0 0 2px black;
    font-size: 11px;
    line-height: 1;
}

#rfq-icon img {
    width: 105px;
    height: auto;
}


@media (max-width: 1024px) {
    #rfq-icon img {
        width: 70px;
        height: auto;
    }
}


/*===== navbar =====*/
#nav {
    background-color: rgba(255, 255, 255, .85);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: #e5e5e5;
    transition: height 2s;
}

#nav .container-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#nav .nav-btn {
    display: none;
    margin-left: auto;
}

#nav .nav-btn span {
    display: block;
    background-color: #888eac;
    width: 23px;
    height: 3px;
    margin: 5px;
    transition: all .4s;
}

#nav .nav-brand img {
    margin: 5px 12px 5px 0;
    height: auto;
    width: 110px;
}

#nav .nav-link {
    font-size: 16px;
    position: relative;
}

#nav .nav-items {
    list-style: none;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
    transition: .5s ease;
}

#nav .nav-item {
    margin-right: 20px;
    position: relative;
    padding: 8px 0;
}

#nav .right-items {
    margin-left: auto;
}

#nav .nav-link:after {
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    content: "";
    display: block;
    height: 2px;
    transition: width 0.4s ease 0s, left 0.4s ease 0s;
}

#nav .nav-link:hover:after {
    background: var(--color1);
    width: 100%;
    left: 0;
}

#nav .dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 175px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1001;
}

#nav .nav-item:hover .dropdown-menu {
    display: block;
}

#nav .dropdown-menu .dropdown-link {
    display: block;
    padding: 8px;
}

#nav .dropdown-menu .dropdown-link:hover {
    background-color: var(--gray2);
}

#nav.change .nav-items {
    display: block;
    flex-basis: 100%;
    flex-grow: 1;
}

#nav.change .nav-btn .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

#nav.change .nav-btn .line2 {
    opacity: 0;
}

#nav.change .nav-btn .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

#nav.hide {
    height: 0;
    overflow: hidden;
}


@media (max-width: 1130px) {
    #nav .nav-items {
        display: none;
    }

    #nav .nav-btn {
        display: block;
    }

}

/*================home================*/
#home .home-text {
    font-size: 20px;
    color: #fff;
    text-align: center;
    max-width: 1000px;
    margin: 28vh auto 20px;
    font-weight: normal;
}

#home .products {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
}

#home .product {
    position: relative;
    width: calc(25% - 8px);
    margin-bottom: 16px;
    padding: 3px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
}

#home .product span {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(236, 97, 72, 0.5);
    color: #fff;
    overflow: hidden;
    height: 0;
    transition: .5s ease;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

#home .product:hover span {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#home .product img {
    width: 100%;
    height: auto;
}

@media (max-width: 520px) {
    #home .home-text {
        margin-top: 15vh;
        font-size: 19px;
    }

    #home .product {
        width: calc(50% - 8px);
    }
}


/*================about================*/
#about .content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    background-image: url("imgs/about.jpg");
    background-size: cover;
    background-position: center center;
}

#about .section-title,
#about .about-text {
    color: #fff;
    margin-left: 43%;
    text-shadow: var(--shadow);
}

#about .about-text {
    font-size: 17px;
    text-align: justify;
    margin-right: 15px;
}

@media (max-width: 600px) {
    #about .section-title,
    #about .about-text {
        margin-left: 15px;
    }
}

/*================end about================*/

/*================products================*/
#products .content {
    padding-top: 25px;
}

#products .card-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#products .card-row .card {
    width: calc(25% - 5px);
    border-radius: 5px;
    border: var(--gray2-border);
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

#products .card-row .card-body {
    padding: 10px;
}

#products .card-row button {
    margin: auto 10px 10px;
}

#products .card-row .card-img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #products .card-row .card {
        width: calc(50% - 5px);
        font-size: 90%;
    }
}

/*================end products================*/


/*================packaging================*/
#packaging .content {
    padding-top: 25px;
}

#packaging .img-row {
    display: flex;
    flex-wrap: wrap;
}

#packaging .img-row > div {
    width: 16.66%;
    transition: transform .3s;
}

#packaging .img-row > div:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.3);
    transform: scale(1.2);
    z-index: 1;
}

#packaging .img-row img {
    width: 100%;
    height: auto;
    padding: 5px;
}

@media (max-width: 768px) {
    #packaging .img-row div {
        width: 33.33%;
    }
}

/*================end packaging================*/

/*================faq================*/
#faq .content {
    padding-top: 25px;
    margin-bottom: 60px;
    counter-reset: question;
}

#faq .qa {
    margin-bottom: 8px;
    border: var(--gray1-border);
    border-left: 6px solid var(--red);
    border-radius: 5px;
    background-color: #fff;
}

#faq .question {
    padding: 10px 8px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    user-select: none;
}

#faq .question:before {
    counter-increment: question;
    content: counter(question) "-";
}

#faq .answer {
    display: none;
    padding: 8px 8px 8px 20px;
    border-radius: 5px;
    text-align: justify;
}

#faq .qa.shown {
    border-left-color: var(--green);
}

#faq .qa.show .answer {
    display: block;
}

#faq img {
    max-width: 100%;
    height: auto;
}

/*================end faq================*/

/*================contact================*/
#contact .content {
    background-color: var(--gray2);
    padding-top: 25px;
}

#contact .contact-row {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
}

#contact .contact-row > div {
    width: 50%;
    margin-bottom: 15px;
}

#contact .social-links {
    color: var(--color2);
    font-size: 25px;
    display: flex;
    max-width: 250px;
    justify-content: space-between;
}

#contact .copy-write {
    padding: 8px;
    text-align: center;
    border-top: var(--gray1-border);
    margin-top: auto;
}

@media (max-width: 768px) {
    #contact .contact-row > div {
        width: 100%;
    }
}

/*================end contact================*/

/*================account================*/
#account {
    width: 700px;
    max-width: 90%;
    background-color: #fff;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    box-shadow: var(--shadow);
}

/*================end account================*/


#card-list {
    width: 100%;
    border-top: none;
    background-color: #fff;
    border: var(--gray2-border);
    border-radius: 5px;
}

#card-list .card-row {
    display: flex;
    flex-wrap: wrap;
}

#card-list .card {
    border-bottom: var(--gray2-border);
    border-right: var(--gray2-border);
    padding: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
}

#card-list .card-body p {
    margin-bottom: 6px;
}

#card-list .card-body p:not(.show-all) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#card-list .card-footer {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
}

#card-list .card-footer a {
    font-size: 25px;
    position: relative;
}

#card-list .card-footer a:hover:after {
    content: attr(data-title);
    position: absolute;
    background-color: var(--black2);
    color: #fff;
    left: 50%;
    bottom: -8px;
    padding: 0 5px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    transform: translateX(-50%);
}

/*-----------end card-list ----------*/
@media (max-width: 576px) {
    #card-list .card {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 992px) {
    #card-list .card {
        width: 50%;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    #card-list .card {
        width: 33.33%;
    }
}

@media (min-width: 1200px) {
    #card-list .card {
        width: 25%;
    }
}
