@import 'mixins';
@import '../mixins/base';
@import '../mixins/colours';

$screen-s-min: 640px;
$screen-m-min: 960px;

@include loadFonts();

h1, h2, h3,
b, strong,
div, a, p, span, input, button,
ul, ol, li,
td, th, table
label,
.notification, .credit {
  @include fontFamily("Body-WebS");
  font-size: 14px;
  font-weight: normal;
}

h1,
h2,
h3 {
  text-align: center;
}

h1 {
  font-size: 22px;
  line-height: 24px;
  letter-spacing: 0px;
  text-transform: uppercase;
}

h2 {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 1px;
}

h1 + h2 {
  margin-top: -16px;
  text-align: center;
}

h3 {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 1px;
  text-transform: capitalize;
  & + p {
    margin-top: -16px;
    text-align: center;
  }
}

h3.slug {
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: capitalize;
  margin: 25px 0;
  padding: 0 15px;
  text-align: center;
}

b, strong {
  @include fontFamily("Bold-WebS");
  font-weight: normal;
}

a {
  color: #000;
  text-decoration: none;
  &.underline {
    @extend %underline;
    &.informational {
      font-size: 12px;
      line-height: 12px;
      letter-spacing: 0.5px;
    }
  }
}

p {
  font-size: 14px;
  letter-spacing: 0px;
  line-height: 20px;
  &.campaign {
    font-size: 16px;
    line-height: 24px;
  }
  &.informational {
    font-size: 12px;
    line-height: 16px;
    .underline {
      line-height: 12px;
      letter-spacing: 0.5px;
    }
  }
  &.credit {
    max-width: 600px;
    padding-left: 20px;
    padding-right: 20px;
    text-decoration: none;
    text-transform: lowercase;
    span {
      @extend %underline;
    }
  }
  &.slug {
    font-size: 12px;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
  }
  &.discount {
    font-size: 12px;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
  }
  &.badge {
    font-size: 12px;
    padding: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    line-height: 16px;
    @include fontFamily("Bold-WebS");

    &.sold-out-slug {
      @include fontFamily("Body-WebS");
      letter-spacing: 1px;
      color: $greyHeading;
      background-color: rgba(255, 255, 255, 0.5);
    }
    &.notification {
      text-align: left;
      &:before {
        height: 8px;
        width: 8px;
      }
    }
  }
  &.quote {
    font-size: 22px;
    line-height: 35px;
    max-width: 600px;
    padding: 20px;
    text-align: center;
    .credit {
      @extend p.credit;
      display: block;
      margin-top: 30px;
      text-transform: none;
    }
  }
}

#copyright,
.copyright {
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  color: $greyHeading;
}

ul {
  list-style: none;
  li {
    line-height: 32px;
  }
}

.notification {
  font-size: 14px;
  letter-spacing: 0px;
  &:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 3px;
    margin-right: 4px;
    vertical-align: baseline;
    background-color: #b90000;
    border-radius: 6px;
  }
}

.product-item {
  .designer-name {
    display: block;
    @include fontFamily("Bold-WebS");
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .title {
    display: block;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0;
  }

  .current {
    display: block;
    line-height: 24px;
    font-size: 18px;
    color: $red;
    margin-top: 4px;
  }

  .original, .discount {
    display: block;
    line-height: 16px;
    font-size: 14px;
  }

  .discount-pricing {
    margin-top: -6px;

    .original, .discount {
      display: inline;
      line-height: 16px;
    }
    .discount {
      margin-left: 0.5em;
    }
  }

  .badge {
    @include fontFamily("Bold-WebS");
    font-size: 12px;
    line-height: 16px;
    margin-top: 4px;
  }
}

.breadcrumbs {
  font-size: 12px;
  letter-spacing: 0px;
  text-align: center;
  > * {
    display: inline-block;
    position: relative;
    margin-right: 15px;
    color: $greyHeading;
    text-decoration: none;
    &:after {
      content: ' > ';
      position: absolute;
      right: -13px;
      top: 0;
    }
    &:last-child:after {
      display: none;
    }
  }
  a {
    box-shadow: none;
    &:before {
      content: "";
      position: absolute;
      width: 100%;
      height: 2px;
      bottom: 0;
      left: 0;
      background-color: $black;
      visibility: hidden;
      -webkit-transform: scaleX(0);
      transform: scaleX(0);
      -webkit-transition: all 0.4s ease-in-out;
      transition: all 0.5s ease-in-out;
    }
    &:hover:before {
      -webkit-transform: scaleX(1);
      transform: scaleX(1);
      visibility: visible;
    }
  }
}

// tablet and desktop
@media (min-width: $screen-s-min) {

  body {
    line-height: 22px;
    font-size: 13px;
  }

}
