@import "settings.colors";

@import "mixins/tools.mixins";

.c-card--single-sm {
  background-color: $color-stone-150;
  border-width: 0 0 0 rem(3);
  border-color: $color-red-900;
  .c-card__label {
    background-color: transparent;
    color: $color-red-900;
    padding: 0;
  }

  .c-card__media {
    display: none;
  }
}


.c-card--single-md {
  padding: 0;
  border-width: 0;
  .c-card__grid {
    @include grid-template-columns(0, 1fr);
    @include grid-template-rows(0, 1fr auto);
  }

  .c-card__link {
    &:visited {
      .c-card__hed {
        color: $color-stone-200;
      }
    }
    &:hover,
    &:focus {
      .c-card__hed {
        color: $color-white;
      }
    }
    &:active {
      .c-card__hed {
        color: $color-stone-500;
      }
    }
  }

  .c-card__media {
    @include grid-row(1, 2);
    @include grid-column(1, 2);
    width: 100%;
  }

  .c-card__content {
    @include grid-row(2, 3);
    @include grid-column(1, 2);
    padding: rem(10);
    margin-top: rem(-20);
    z-index: 1;

    &:only-child {
      margin-top: 0;
    }
  }

  .c-card__hed {
    color: $color-white;
    @include font-hed(19, 22);
    &:first-child {
      margin-top: rem(20);
    }
  }
}


// homepage palette
.c-card--single-md--stone200 {
  background-color: $color-stone-200;
  .c-card__label {
    color: $color-stone-200;
  }
}
.c-card--single-md--stone999 {
  background-color: $color-stone-999;
  .c-card__label {
    color: $color-stone-999;
  }
}
.c-card--single-md--grey800 {
  background-color: $color-grey-800;
  .c-card__label {
    color: $color-grey-800;
  }
}
.c-card--single-md--red500 {
  background-color: $color-red-500;
  .c-card__label {
    color: $color-red-500;
  }
}
.c-card--single-md--red900 {
  background-color: $color-red-900;
  .c-card__label {
    color: $color-red-900;
  }
}

// product palette - dark
.c-card--single-md--salmon900 {
  background-color: $color-salmon-900;
  .c-card__label {
    color: $color-salmon-900;
  }
}
.c-card--single-md--merlot900 {
  background-color: $color-merlot-900;
  .c-card__label {
    color: $color-merlot-900;
  }
}
.c-card--single-md--gold900 {
  background-color: $color-gold-900;
  .c-card__label {
    color: $color-gold-900;
  }
}
.c-card--single-md--rust900 {
  background-color: $color-rust-900;
  .c-card__label {
    color: $color-rust-900;
  }
}
.c-card--single-md--olive900 {
  background-color: $color-olive-900;
  .c-card__label {
    color: $color-olive-900;
  }
}
.c-card--single-md--teal900 {
  background-color: $color-teal-900;
  .c-card__label {
    color: $color-teal-900;
  }
}

// product palette - light
.c-card--single-md--salmon100 {
  background-color: $color-salmon-100;
  .c-card__label {
    color: $color-salmon-100;
  }
}
.c-card--single-md--merlot100 {
  background-color: $color-merlot-100;
  .c-card__label {
    color: $color-merlot-100;
  }
}
.c-card--single-md--gold100 {
  background-color: $color-gold-100;
  .c-card__label {
    color: $color-gold-100;
  }
}
.c-card--single-md--rust100 {
  background-color: $color-rust-100;
  .c-card__label {

  }
}
.c-card--single-md--olive100 {
  background-color: $color-olive-100;
  .c-card__label {
    color: $color-olive-100;
  }
}
.c-card--single-md--teal100 {
  background-color: $color-teal-100;
  .c-card__label {
    color: $color-teal-100;
  }
}
