
// Home

// 1. Componenets

.tip {
  font-size: 8px;
  padding: 2px;
  border-radius: 0;
}

.menu-dropdown-content.show {
    display: block;
}
.menu-dropdown-content{
    display: none;
}

.product-widget {
  .product-title {
    font-size: 1.4rem;
  }

  .ratings-container {
    margin-bottom: 1rem;
  }

  .product-price {
    color: #444;
  }
}

// 2. Home Page

// 2.1) Info Boxes
.info-boxes-container {
  border: 1px solid #e7e7e7;

  .info-box {
    margin: 1.3rem 0 1.1rem;
    padding: 1.2rem;
  }

  p {
    font-weight: 300;
  }

  .info-box:not(:last-child) {
    border-right: 1px solid #e7e7e7;
  }

  i {
    margin-right: .8rem;
    padding: 0 .1em;
    line-height: 0;
  }

  .icon-shipping {
    font-size: 3.5rem;
  }
}

// 2.2) Home Slider

// 2.4) Section
.section-title {
  padding-bottom: 1rem;
  border-bottom: 1px solid #ebebeb;
  font-size: 1.6rem;
    font-family: $shop-font-family;
  text-transform: uppercase;
}

.section-sub-title {
  font-size: 1.6rem;
  text-transform: uppercase;
}

// 2.6) Feature Boxes Container
.feature-boxes-container {
  h5 {
    color: #555;
    font-weight: 400;
  }

  p {
    font-size: 1.3rem;
  }

  i {
    width: 84px;
    height: 84px;
    margin-bottom: 1.5rem;
    border: 2px solid #0188cc;
    border-radius: 50%;
    font-size: 35px;
    line-height: 80px;
  }
}

// 2.7) Home Page / Side bar / Side Menu, Widget Banner
.side-menu-title {
  padding: 1.2rem 2.8rem 1.1rem;
  border-bottom: 1px solid #dae2e6;
  font-size: 1.9rem;
  background-color: #006699;
  color: white;

}

.sidebar-home {
  font-size: $sidebar-font-size;

  .widget {
    margin-bottom: 2.4rem;
  }

  .owl-dots .owl-dot span {
    border-color: #e7e7e7;
  }

  p {
    line-height: 24px;
  }
}

.widget-banners {
  border: 1px solid #dae2e6;

  .sale-text {
    font-size: 7rem;
    position: relative;

    sup {
      font-size: 60%;
      font-weight: 600;
    }

    sub {
      font-size: 20px;
      font-weight: 400;
      position: absolute;
      right: 4px;
      bottom: 3px;
      line-height: 1.4em;
    }
  }

  p {
    font-size: .875em;
    max-width: 100%; // for only ie
  }

  .owl-carousel .disabled + .owl-dots {
    margin: 1.8rem 0 2.4rem;
  }
}

.badge-sale {
  width: 11.3rem;
  height: 11.3rem;
  margin-top: 2.5rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  border-radius: 50%;
  letter-spacing: .05em;

  &:before {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 2.5rem;
    background: #dae2e6;
  }

  &:after {
    content: '';
    position: absolute;
    top: 3.2rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
  }

  em {
    display: block;
    color: #fff;
    font-size: 2.9rem;
    font-style: normal;
    font-weight: 800;
  }
}

// 2.8) Home Page / Newsletter
.widget-newsletters {
  padding: 3rem 2.4rem 3.6rem;

  .widget-title {
    font-size: 1.5rem;
  }

  .form-group:before {
    position: absolute;
    left: 1.6rem;
    top: 1.3rem;
    color: $primary-color-dark;
    font-size: 1.5rem;
  }

  .form-control {
    border-radius: 5rem;
    height: auto;
    padding: 1.2rem;
    padding-left: 4rem;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    border: 0;

    &:focus + label {
      opacity: 0;
    }

    &:not(:focus) {
      border-color: #e4e4e4;
    }

    &::placeholder {
      color: #a8a8a8;
    }
  }
}

// 2.9) Home Page / Sidebar / Testimonial
.widget-testimonials {
  border: 3px solid $primary-color;

  .testimonial {
    padding: 2.3rem 2.3rem 0;
  }

  .testimonial-owner span {
    text-transform: none;
  }

  img {
    border-radius: 50%;
  }

  figure {
    max-width: 55px;
    margin-right: 1.2rem;
  }

  .testimonial-title {
    margin: 0;
    font-size: 1.6rem;
      font-family: $shop-font-family;
    text-transform: capitalize;
  }

  blockquote:before {
    left: -.3em;
    color: $primary-color-dark;
    font-size: 5.4rem;
  }

  &.widget .owl-carousel .owl-dots {
    margin: 1.2rem 0 3.5rem 5.7rem;
  }
}

// 2.10) Home Page / Sidebar / Posts

.widget-posts {
  .post,
  p {
    margin: 0;
  }

  .read-more {
    float: none;
    color: $primary-color-dark;
    font-size: 12px;
    font-weight: 600;

    i {
      font-size: 9px;
    }
  }
}

// 3. Category Page

// Coupon Sale Text
.coupon-sale-text {
  position: relative;
  display: inline-block;
  padding: 5px 8px;
  transform: rotate(-2deg);

  i {
    position: absolute;
    left: -2.25em;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: .65em;
    font-style: normal;
    opacity: .6;
    letter-spacing: 0;
  }

  b {
    display: inline-block;
    padding: 5px 8px;
    font-size: 1.6em;
    background-color: #fff;
  }

  em {
    font-size: 2em;
    font-style: normal;
  }
}

.category-banner {
  padding: 6.8rem 0;

  .coupon-sale-text {
      font-family: $shop-font-family;
  }

  h3 {
    font-size: 3.125em;
  }

  h4 {
    font-size: 1.125em;
    line-height: 1.7;
  }

  h5 {
    font-size: 1em;
  }

  .btn {
    font-size: .82em;
    padding: 1.03em 2.81em;
  }
}

// 4. Responsive

@media (max-width: 1219px) and (min-width: 992px) {
  .products-widgets figure {
    max-width: 70px;
    margin-right: 15px;
  }
}

@include mq(lg, max) {
  .info-boxes-container .info-box {
    justify-content: flex-start;
    -ms-flex-pack: start;

    &:not(:last-child) {
      border-bottom: 1px solid #e7e7e7;
      padding-bottom: 2.3rem;
      margin-bottom: 0;
      border-right: 0;
    }
  }


  .sidebar-shop .widget {
    padding: 2rem 0;
  }
}

@include mq(xs, max) {
  .banners-container .banner {
    font-size: 3.5vw;
  }
}


.home .sidebar-home .side-menu-wrapper {
  position: relative;
  border: 0;
  h2.side-menu-title {
    border-radius: 15px 15px 0 0;
    margin-top: 10px;
    font-size: 16px;
    padding: 19px;
  }
  .side-nav ul.menu li.menu-item {
    transition: all .25s ease;
    position: unset;
      width: 100%;
    padding: 0;
    a {
      border: 1px solid #ececec;
      padding: 0 25px 0 18px;
      align-items: center;
      min-height: 35.6px;
      line-height: 20px;
      border-top: 0;
      display: flex;
      color: #333;
    }
    .menu-dropdown-content {
      display: none;
      box-shadow: 0 0 3px rgb(0 0 0 / 15%);
      transform: translate(100%, 0);
      padding-left: 35px;
      position: absolute;
      padding-top: 30px;
      min-height: 400px;
      background: #fff;
      display: none;
      width: 1050px;
      z-index: 1;
      right: 0;
      top: 0;
      .menu-product-box {
        display: inline-block;
        margin-right: 30px;
        min-height: 185px;
        max-width: 100%;
        width: 223px;
        &:nth-child(5),
        &:nth-child(9),
        &:nth-child(13),
        &:nth-child(17),
        &:nth-child(21) { margin-right: 0; }
        a {
          align-items: flex-start;
          flex-direction: column;
          display: flex;
          padding: 0;
          border: 0;
          &:after, &:before { display: none; }
          img {
            display: block;
            margin: auto;
            width: auto;
          }
          h3 {
              font-family: Mardoto-Regular !important;
            text-transform: capitalize;
            margin-bottom: 5px;
            line-height: 22px;
            margin-top: 10px;
            font-size: 14px;
            color: #2d2a2a;
          }
        }
      }
    }
    .menu-item-label {
      text-transform: uppercase;
      min-width: fit-content;
      letter-spacing: .3px;
      line-height: 12px;
      padding: 2px 4px;
      margin-left: 5px;
      font-weight: 600;
      font-size: 9px;
      color: #fff;
      &.green { background-color: #65B32E; }
      &.red { background-color: #D41212; }
    }
    &.dropdown a {
      position: relative;
      &:after {
        transform: rotate(-45deg);
        top: calc(50% + 5px);
      }
      &:before {
        transform: rotate(45deg);
          top: 50%;
      }
      &:before, &:after {
        background-color: #52525273;
        position: absolute;
        right: 18px;
        content: "";
        height: 1.3px;
        width: 6px;
      }
    }
    &:hover, &.show {
      transition: all .25s ease;
      background-color: #F9F9F9;
      a { color: #494949; }
    }
  }
}

.services-content {
  margin-top: 50px;
  .services-container {
    position: relative;
    z-index: 1;
    .services-title-box {
      border-bottom: 2px solid rgba(119,119,119,.17);
      margin-bottom: 40px;
      text-align: center;
      h2 {
        font-family: Roboto, Arial, Helvetica, sans-serif;
        border-bottom: 2px solid #006699;
        display: inline-block;
        padding-bottom: 10px;
        margin-bottom: -2px;
        line-height: 1.4;
        font-weight: 700;
        font-size: 26px;
        color: #2d2a2a;
      }
    }
    .services-box {
      padding-bottom: 55px;
      padding-top: 100px;
        @media screen and (max-width: 768px) {
            padding-top:10px;
            padding-bottom: 10px;
        }
      h5 {
          display: flex;
          flex-direction: column;
          font-family: Mardoto-Bold;
        margin-bottom: 43px;
          margin-top: 43px;
        line-height: 42.6px;
        font-size: 40px;
        color: #2d2a2a;
          @media screen and  (max-width: 768px) {
              font-size: 30px;
              margin-bottom: 10px;
              margin-top: 0;
          }
          span { color: #006699; }
      }
      p {
        font-family: Mardoto-Regular;
        margin-bottom: 80px;
          color: #777777;
        line-height: 28px;
        font-size: 18px;
        max-width: 78%;
          @media screen and (max-width: 1024px) {
              max-width: 99%;
          }
          @media screen and (max-width: 1000px) {
              margin-bottom: 40px;
          }
      }
      .kind-of-content {
        display: flex;
        gap: 30px;
          @media screen and (max-width: 1000px) {
              flex-direction: column;


          }
        .kind-of-box {
          display: flex;
            align-items: center;
          .span-number{
              width: 80px;
              height: 80px;
              margin-right: 20px;
              @media screen and (max-width: 1000px) {
                  width: 64px;
                  height: 64px;
              }
          }
          p {
            font-family: Mardoto-Medium;
            margin-bottom: 10px;
            max-width: 160px;
            line-height: 1.4;
            font-size: 16px;
            display: block;
            color: #2d2a2a;
              @media screen and (max-width: 1000px) {
                  max-width: 215px;
              }
          }
        }
      }
    }
  }
  .services-background-box {
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    svg {
      position: absolute;
      left: 0;
      top: 0;
    }
  }
}

.partners-section {
    padding-top: 80px;
    padding-bottom: 100px;
    @media screen and (max-width: 768px) {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .partners-slider--outer {
    }
    .partners-slider {
        padding-left: 10%;
        padding-right: 10%;
        @media screen and (max-width: 768px) {
            padding-left: 0;
            padding-right: 0;
            padding-bottom: 50px;
        }
        .owl-stage-outer {
            overflow: hidden;
            margin: 0 auto;
            @media screen and (max-width: 768px) {
                max-width: 100%!important;
            }
        }
        .owl-stage {
            display: flex;
            align-items: flex-end;
            .owl-item {
                max-width: 244px;
                min-width: 150px;
                @media screen and (max-width: 375px) {
                    max-width: 158px;
                    min-width: 72px;
                }
            }
        }
        .owl-nav {
            .owl-prev,
            .owl-next {
                width: 48px;
                height: 48px;
                background-position: center;
                background-size: cover;
                background-repeat: no-repeat;
                transition: background-image .3s ease;
                @media screen and (max-width: 768px) {
                    width: 24px;
                    height: 24px;
                    background-size: 16px;
                    top: auto;
                    bottom: 0;
                    border-radius: 50%;
                    background-color: rgba(0, 0, 0, 0.2);
                    transition: background-color .3s ease;
                    &:hover {
                        background-color: #000;
                    }
                }
                span {
                    display: none;
                }
            }
            .owl-prev {
                left: 10px;
                background-image: url("/images/main/vector-icons/arrow-left--dark.svg");
                @media screen and (min-width: 768px) {
                    &:hover {
                        background-image: url("/images/main/vector-icons/arrow-left--black.svg");
                    }
                }
                @media screen and (max-width: 768px) {
                    left: 44%;
                    transform: translateX(-50%);
                    background-image: url("/images/main/vector-icons/arrow-left--light.svg");
                }
            }
            .owl-next {
                right: 10px;
                background-image: url("/images/main/vector-icons/arrow-right--dark.svg");
                @media screen and (min-width: 768px) {
                    &:hover {
                        background-image: url("/images/main/vector-icons/arrow-right--black.svg");
                    }
                }
                @media screen and (max-width: 768px) {
                    right: 44%;
                    transform: translateX(50%);
                    background-image: url("/images/main/vector-icons/arrow-right--light.svg");
                }
            }
        }
    }
}

.product-content {
  margin-bottom: 80px;
  .product-tab-title-box {
    border-bottom: 2px solid #EAEAEA;
    align-items: center;
    margin-bottom: 20px;
    display: flex;
    h2 {
      font-family: Roboto, Arial, Helvetica, sans-serif;
        font-weight: 700;
      border-bottom: 2px solid #83b735;
      text-transform: uppercase;
      line-height: 30.8px;
      margin-bottom: -2px;
      margin-right: 25px;
      font-size: 22px;
      padding: 5px 0;
      color: #2d2a2a;
    }
    button {
      transition: opacity .25s ease,color .25s ease;
      text-decoration: none;
      padding: 10px 15px;
      line-height: 1.4;
      font-size: 14px;
      opacity: .7;
      color: #333;
      &:hover { opacity: 1; }
      &:not(.collapsed) {
        color: #83b735;
        opacity: 1;
      }
    }
    @media screen and (max-width: 575px) {
      h2 {
        margin-right: 10px;
        font-size: 19px;
      }
      button {
        padding: 10px 4px;
        font-size: 13px;
      }
    }
  }
  .tab-content {
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 20px;
    display: grid;
      @media screen and (max-width: 768px) and (min-width: 427px) {
          .product-card{
              &:nth-child(9), &:nth-child(10){
                  display: none;
              }
          }
      }
      @include mq(lg, max) {
          grid-template-columns:  repeat(4, 1fr);
          grid-gap: 18px;
      }
      @include mq(md, max) {
          grid-template-columns: repeat(4, 1fr);
          grid-gap: 14px;

      }
      @include mq(sm, max) {
          grid-template-columns: repeat(2, 1fr);
          grid-gap: 10px;
      }
  }
}

@media screen and (max-width: 575px) {
  .product-content {
    margin-bottom: 0;
    .tab-content {
      .product-box {
        h4 { font-size: 12px; }
        h5 { font-size: 14px; }
        .inline {
          flex-direction: column;
          gap: 3px;
        }
        .product-label { font-size: 10px; }
      }
    }
  }
  .services-content .services-container > .row {
    flex-direction: column;
    display: flex;
    .services-title-box {
      margin-right: 0 !important;
      margin-left: 0 !important;
      h2 { font-size: 20px; }
    }
    .services-box {
      padding-top: 0;
      padding-bottom: 0;
      h5 {
          flex-direction: row;
        margin-bottom: 20px;
        line-height: 45px;
        font-size: 20px;
      }
      p {
        margin-bottom: 35px;
        max-width: 344px;
        font-size: 18px;
      }
      .kind-of-content {
        flex-direction: column;
        p { display: contents; }
      }
        .build-img{
            margin-top: 30px;

        }
    }
  }
  .sidebar-home { display: none; }
}
