/** This absolutely does not work JUST in shopware 💘 ... */
//@import "~@fortawesome/fontawesome-free";
//@import "~@fontsource/comfortaa";

@import "fonts";

body {
  position: relative;
  font-family: 'Brandon Text', sans-serif;

  &.shopware-bg {
    background: url('/bundles/etailconferencetheme/assets/bg-curvy-outbg.png') no-repeat top right;
  }
}

.shopware-overlay {
  background: #189eff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  visibility: visible;
  opacity: 1;
  transition: opacity 750ms linear;

  z-index: 100;

  img {
    position: relative;
    width: 7em;
    height: 7em;
    border: 5px solid #f0efeb;

    z-index: 101;

    animation-name: gently-scale;
    animation-timing-function: ease-in-out;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    box-shadow: inset 0 0 5px #f0efeb;
    border-radius: 3.5em;
  }

  &.fade-out {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 750ms, opacity 750ms linear;
  }

  &.fade-in {
    visibility: visible;
    opacity: 1;
    transition: opacity 750ms linear;
  }
}

.custom-select {
  border: 3px solid #179eff;
  line-height: 1;

  border-radius: 0 10px 10px 10px;
}

.checkout-aside-summary,
input.form-control {
  border: 3px solid #179eff;

  border-radius: 0 10px 10px 10px;
}

header {
  //.icon {
  //  @media screen and (max-width: 500px) {
  //    color: #fff;
  //  }
  //}

  .header-logo-main-img {
    border-radius: 10px;
  }

  .search-toggle-btn {
    display: none;
  }

  //.header-cart-total {
  //  color: #fff;
  //}
}

.cms-block-image-text {
  display: none;
}

.header-logo-col {
  margin-top: 3em;
}

.header-logo-picture {
  min-width: 150px;
}

.header-shopware {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;

  @media screen and (max-width: 500px) {
    min-height: 20em;
  }

  h1 {
    font: bold 4em 'Brandon Text', sans-serif;
    line-height: 1em;
    color: #000;

    @media screen and (max-width: 500px) {
      text-align: center;
      color: #fff !important;
    }
  }

  h2 {
    font: bold 2em 'Brandon Text', sans-serif;
    line-height: 1em;
    color: #7d7d7d;

    @media screen and (max-width: 500px) {
      text-align: center;
      color: #fff !important;
    }
  }

  > div {
    width: 100%;

    > div:last-child {
      @media screen and (max-width: 500px) {
        display: none;
      }
    }
  }

  img {
    max-height: 25vw;

    animation-name: gently-scale;
    animation-timing-function: ease-in-out;
    animation-duration: 7s;
    animation-iteration-count: infinite;
    transform-origin: center;
    border-radius: 2.1em;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);

    @media screen and (min-width: 1800px) {
      max-height: 480px;

      border-radius: 2.4em;
    }

    @media screen and (max-width: 900px) {
      max-height: 35vw;

      border-radius: 1.3em;
    }

    @media screen and (max-width: 500px) {
      display: none;
    }
  }
}

/** basket offcanvas */

.offcanvas-cart {
  .cart-item-img {
    border: 3px solid #179eff;

    border-radius: 0 10px 10px 10px;
  }
}

.cms-block-sidebar-filter {
  display: none;
}

.breadcrumb.cms-breadcrumb {
  display: none;
}

.gallery-slider-row {
  flex-direction: column-reverse;

  .gallery-slider-col {
    width: 100%;
  }

  .base-slider-dots {
    display: none;
  }
}

.gallery-slider-thumbnails-col {
  padding-right: 20px !important;
}

.gallery-slider-thumbnails-container {
  .gallery-slider-thumbnails-controls {
    display: none;
  }

  .tns-outer {
    display: flex;
    align-items: center;
    width: 85%;
    margin: 0 auto;

    .tns-ovh {
      height: auto !important;
      margin: 0 auto;
    }
  }

  .gallery-slider-thumbnails {
    display: flex;
    flex-direction: row;

    .gallery-slider-thumbnails-item {
      margin-right: 1em;

      &:last-child {
        margin-right: 0;
      }
    }
  }
}

.cms-element-product-listing .cms-listing-col {
  margin-bottom: 8rem;
}

.cms-element-product-listing-wrapper {
  .cms-element-product-listing-actions {
    margin-bottom: 7em;
  }

  .card {
    background: #fff;
    border: 0;

    box-shadow: 0 0 10px rgba(13, 85, 96, .15);
    border-radius: 0 20px 20px 20px;

    .card-body {
      padding-top: 160px;
    }

    .product-variant-characteristics,
    .product-price-unit,
    .product-price-info,
    .product-cheapest-price {
      display: none;
    }

    .product-image-wrapper {
      position: absolute;
      width: 100%;
      top: -70px;
      left: 0;

      z-index: 0;

      &:after {
        content: "";
        position: absolute;
        width: 75%;
        height: 15%;
        left: 50%;
        bottom: 2em;
        margin-left: -37.5%;

        z-index: -1;

        border-radius: 50%;
        box-shadow: 0 3.125rem 1.5rem rgba(0, 0, 0, 0.24);
        animation-name: bounce-shadow;
        animation-timing-function: cubic-bezier(0.280, 0.840, 0.420, 1);
        animation-duration: 3s;
        animation-iteration-count: infinite;
      }

      .product-image-link {
        animation-name: bounce;
        animation-timing-function: cubic-bezier(0.280, 0.840, 0.420, 1);
        animation-duration: 3s;
        animation-iteration-count: infinite;
        transform-origin: bottom;
      }
    }

    .product-name {
      text-transform: uppercase;
      color: #000;
    }

    .product-description {
      color: #aaa;
    }

    .product-action {
      .btn {
        background: rgba(52, 120, 209, 1);
        background: -moz-linear-gradient(left, rgba(52, 120, 209, 1) 0%, rgba(48, 139, 244, 1) 100%);
        background: -webkit-gradient(left top, right top, color-stop(0%, rgba(52, 120, 209, 1)), color-stop(100%, rgba(48, 139, 244, 1)));
        background: -webkit-linear-gradient(left, rgba(52, 120, 209, 1) 0%, rgba(48, 139, 244, 1) 100%);
        background: -o-linear-gradient(left, rgba(52, 120, 209, 1) 0%, rgba(48, 139, 244, 1) 100%);
        background: -ms-linear-gradient(left, rgba(52, 120, 209, 1) 0%, rgba(48, 139, 244, 1) 100%);
        background: linear-gradient(to right, rgba(52, 120, 209, 1) 0%, rgba(48, 139, 244, 1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#3478d1', endColorstr='#308bf4', GradientType=1);
        display: flex;
        justify-content: space-between;
        border: 0;
        font-weight: 600;
        white-space: nowrap;
        font-size: 1rem;
        line-height: 2.375rem;
        color: #fff;
        padding: 0.5em 1em;

        border-radius: 10px;

        .product-price {
          display: flex;
          align-items: center;
          color: #fff;
          border-left: 1px solid #87afe1;
          padding: 0 0 0 1em;
          margin: 0;
        }
      }
    }
  }
}

@keyframes bounce {
  0% {
    transform: scale(1, 1) translateY(0);
  }
  10% {
    transform: scale(1.1, .9) translateY(0);
  }
  30% {
    transform: scale(.9, 1.1) translateY(-65px);
  }
  50% {
    transform: scale(1.05, .95) translateY(0);
  }
  57% {
    transform: scale(1, 1) translateY(-7px);
  }
  64% {
    transform: scale(1, 1) translateY(0);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}

@keyframes bounce-shadow {
  0% {
    width: 75%;
    height: 15%;
    margin-left: -37.5%;
  }
  10% {
    width: 65%;
    height: 12%;
    margin-left: -32.5%;
  }
  30% {
    width: 30%;
    height: 5%;
    margin-left: -15%;
  }
  64% {
    width: 75%;
    height: 15%;
    margin-left: -37.5%;
  }
  100% {
    width: 75%;
    height: 15%;
    margin-left: -37.5%;
  }
}

@keyframes gently-scale {
  0% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  }
}

.product-detail-headline {
  padding: 0 2em;

  h1,
  h2 {
    font-family: 'Brandon Text', sans-serif;
    font-weight: bold;
  }
}


/** buttons */
.header-minimal-back-to-shop-button {
  color: #179eff;
  border: 3px solid #179eff;
  margin-left: 1em;

  border-radius: 0 10px 10px 10px;
}

.register-submit button,
.begin-checkout-btn,
.buy-widget-container button,
.scroll-up-button button,
#addPromotion,
#addProductButton,
#addPromotionOffcanvasCart {
  background: #179eff;
  color: #fff;
  border: 0;
  margin-left: 1em;

  border-radius: 0 10px 10px 10px;
}

.register-submit button,
.begin-checkout-btn {
  margin-left: unset;
}

/** pagination */

.pagination-nav {
  margin-bottom: 5em;

  .pagination {
    background: #189EFF;
    display: flex;
    align-items: center;
    justify-content: center;
    //border: 3px solid #fff;
    padding: .5em;

    overflow: hidden;

    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);

    @media screen and (max-width: 500px) {
      overflow-x: scroll;
      overflow-y: hidden;
    }
  }

  .page-item {
    border-right: 1px solid #1789dc;

    &:last-child {
      border-right: 0;
    }

    .page-link {
      background: none;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 0;
      min-width: 3em;
      min-height: 1.5em;
      font-family: 'Brandon Text', sans-serif;
      font-weight: bold;
      font-size: 18px;
      text-align: center;
      color: #fff;
    }
  }

  .page-item.active {
    border-right: none;

    .page-link {
      background: #fff;
      border: 3px solid #fff;
      color: #000;

      border-radius: 5px;
    }
  }

  .page-item.disabled {
    .page-link {
      background: none;
      color: #c4c4c4;
    }
  }
}

.footer-main {
  background: #313131;
}

.footer-shopware {
  background: #313131;
  padding: 3em;

  h1 {
    font: bold 1.5em 'Brandon Text', sans-serif;
    color: #fff;
  }

  img {
    width: 50px;
    height: 50px;
    border: 3px solid #ddd;

    border-radius: 25px;
    box-shadow: inset 0 0 2px #fff;
  }
}
