// ===================================================
// VARIABLES
// ===================================================

// LAYOUT
$spacing-unit: 30px;
$min-width: 320px;
$max-width: 100%;

// COLORS
$black: #1a1a1a;
$white: #fff;
$blue: #9ab4ff;
$red: #ff7575;
$green: #acd085;
$yellow: #fff113;
$light-gray: #f0f0f0;
$dark-gray: #4c4c4c;

// TYPOGRAPHY
$base-font-family: "proxima-nova-soft", sans-serif;

$base-font-size: 12px;
$small-font-size: 10px;

$base-font-weight: 500;
$bold-font-weight: 600;

// Z-INDEX MASTER LIST
$z-doverlay: 5000;
$z-header: 4000;
$z-nav-desktop: 3000;
$z-dropdown: 2000;
$z-filter-option: 1500;
$z-featured: 1000;

// BREAKPOINTS
$sm: 480px;
$md: 769px;
$lg: 997px;


// ===================================================
// MIXINS
// ===================================================

// == @media
@mixin media-breakpoint-up($bp) {
  @media (min-width: $bp) {
    @content;
  }
}

@mixin media-breakpoint-down($bp) {
  @media (max-width: $bp) {
    @content;
  }
}

@mixin media-breakpoint-between($min, $max) {
  @media (min-width: $min) and (max-width: $max) {
    @content;
  }
}

//== Clearfix
@mixin clearfix() {
  &::before,
  &::after {
    content: " ";
    display: table;
  }

  &::after {
    clear: both;
  }
}

// == Grid
@mixin make-flex-row-container() {
  display: flex;
  flex-flow: row wrap;
}

@mixin make-wrapper() {
  margin-left: auto;
  margin-right: auto;
  max-width: $max-width;
  position: relative;
}

@mixin make-col-span($span, $total: 12) {
  width: percentage($span / $total);
}

@mixin make-col-offset($span, $total: 12) {
  margin-left: percentage($span / $total);
}

// == Alignment
@mixin vertical-flex() {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
}

@mixin vertical-absolute() {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

@mixin vertical-height($h) {
  height: $h;
  line-height: $h;
}

// == Typography
@mixin make-strong() {
  text-transform: uppercase;
  font-weight: $bold-font-weight;
}

@mixin set-all-state() {
  &:hover,
  &:focus,
  &:active {
    @content;
  }
}

@mixin visuallyHidden {
  clip: rect(0 0 0 0);
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  position: absolute;
  height: 1px;
  width: 1px;
}

// ===================================================
// FUNCTIONS
// ===================================================

// == Px to Em
@function em($px, $ctx: 16px) {
  @if (unitless($px)) {
    $px: $px * 1px;
  }

  @if (unitless($ctx)) {
    $ctx: $ctx * 1px;
  }

  @return $px / $ctx * 1em;
}

// == Px to Rem
@function rem($px, $ctx: 16px) {
  @if (unitless($px)) {
    $px: $px * 1px;
  }

  @if (unitless($ctx)) {
    $ctx: $ctx * 1px;
  }

  @return $px / $ctx * 1rem;
}


// ===================================================
// GLOBALS
// ===================================================


.h1,h2,h3,h4,h5,h6,.mega-title,.mega-subtitle--hero {
  font-family: $base-font-family !important;
}

.h1,.mega-title,.mega-subtitle--hero  {
  font-size: 32px !important;
  color: $white !important;
  @media-breakpoint-down{
    font-size: 16px;
  }
}

p{
  font-family: "futura-pt" !important;
  font-weight: 500 !important;
}
.site-header__logo-link {
  font-family: $base-font-family;
  font-size: 24px !important;
}

.site-header__search, .site-header__search-toggle {
  display: none !important;
}

strong, b {
  font-weight: 600;
}

// ===================================================
// RESETS
// ===================================================

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

input,
select,
button {
  border-radius: 2px;
  font-size: 14px;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

ul, li {
  margin: 0;
  padding: 0;
}


// ===================================================
// UTIL CLASSES
// ===================================================

.strong {
  @include make-strong;
}

// ===================================================
// HEADER / CART DRAWER
// ===================================================

.sticky {
  position: fixed;
  z-index: $z-header;
  top: 0;

  @include media-breakpoint-down($md) {
    top: 0px;
    width: 100%;
  }
}

.site-nav{
  margin: 10px !important;
  text-align: right;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "futura-pt" !important;
  letter-spacing: 2px !important;
  font-size: 12px;
  border: none !important;
}

.mobile-nav__item {
  text-transform: uppercase;
  font-weight: 700;
  font-family: "futura-pt" !important;
  letter-spacing: 2px !important;
}

.site-nav--centered {
  padding: 0px !important;
}

.site-nav__dropdown {
  padding: 0 !important;
  left: -57px !important;
  text-align: center !important;
  border: 1px solid black;
  top: 43px !important;
  background: rgba(256,256,256,.6) !important;
}

.site-nav--has-dropdown {
  text-transform: uppercase;
}

.sitenav-child-linky{
  border-bottom: 1px solid black;
}

.site-nav__child-link{
  padding: 10px 40px !important;
}

.site-header {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  background-color: rgba(256,256,256,.8);
  border: none !important;
}

.btn--link {
  font-family: "futura-pt" !important;
  text-transform: uppercase !important;
  letter-spacing: 2px;
}

#shopify-section-hero {
  margin-bottom: 0;
  padding: 0;
}

#shopify-section-1492319422219 {
  padding-top: 0;
}

#shopify-section-1492220644616 {
  .section-header {
    margin-bottom: 0;
  }
}

.feature-row{
  padding-bottom: 16px;
  padding-top: 8px;
}

h1 {
    text-transform: uppercase !important;
}

.notification-bar {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-form__item {
  font-size: 10px;
  text-transform: uppercase;
}

.site-header__icons {
  //display: none !important;
}

.text-align--center {
  text-align: center !important;
}

.product-single__price{
  margin-bottom: 12px !important;
}

.colorSwatch{
  transition: .15s ease-in-out;
  padding-right: 6px;
  &:hover{
    opacity: .8;
  }
}

.colorSwatch__grid{
  padding: 2px;
  display: inline;
  margin-top: 2px;
}

.single-option-radio {
  border: 0;
  padding-top: 0;
  position: relative;
  background-color: $colorBody;

  input {
    @include visuallyHidden;

    .lt-ie9 & {
      position: relative;
      height: auto;
      width: auto;
      clip: initial;
    }
  }

  label {
    @include accentFontStack;
    position: relative;
    display: inline-block;
    line-height: 1;
    padding: 9px 11px;
    margin: 3px 4px 1px 3px;
    font-size: em(13px);
    font-style: normal;
    background-color: $colorBody;
    border: 1px solid $colorBody;

    &.disabled:before {
      position: absolute;
      content: "";
      left: 50%;
      top: 0;
      bottom: 0;
      border-left: 1px solid;
      border-color: $colorTextBody;
      @include transform(rotate(45deg));

      .lt-ie9 & {
        display: none;
      }
    }

    &:active,
    &:focus {
      background-color: adaptive-color($colorBody, 5%);
      border-color: adaptive-color($colorBody, 5%);
    }
  }

  //style selected radio button's label
  input[type='radio']:checked + label {
    border-color: $colorTextBody;
  }

  //style label on input focus
  input[type='radio']:focus + label {
    background-color: adaptive-color($colorBody, 5%);
  }
}

.radio-wrapper .single-option-radio__label {
  display: block;
  margin-bottom: 10px;
  cursor: default;
  font-style: normal;
}

.product-form__item label{
  display: none;
}


//button modifiers

.btn__hero {
  border-radius: 100px !important;
  background-color: #000 !important;
}

.btn--full {
  min-width: 100% !important;
  margin: auto;
}

.collection-grid-item {
  padding-bottom: 0px !important;
}

.collection-grid-item:hover{
  opacity: .8;
}

.image-bar__content{
  height: auto !important;
}

.blue {
  color: #121e2b;
}

.small-sans {
  font-size: 12px;
  line-height: 1.5;
  font-family: "proxima-nova-soft" !important;
}
