@charset "utf-8";

@import 'reset';
@import 'variables';

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap');

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: #646464;

  &.preload {
    .header * {
      -webkit-transition: none !important;
      -moz-transition: none !important;
      -ms-transition: none !important;
      -o-transition: none !important;
    }
  }
}
$unit: 15px;

.header {
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  transition: $transition;
  color: #000;

  .container {
    max-width: 100%;
    margin: $unit auto;
    padding-left: 30px;
    padding-right: 30px;
  }
  .logo {
    max-height: 40px;
    transition: $transition;
  }

  &.fixed {
    background: #000;
    color: #fff;

    .logo {
      max-height: 30px;
      filter: brightness(0) invert(1);
    }
    .container {
      margin: 10px auto;
    }
    .btn-menu {
      width: $unit*3;
      line-height: $unit*3;
    }
    .nav {
      .nav-item {
        &::after {
          background: #fff;
        }
      }
    }
    .cart-link {
      .cart-count {
        background: #fff;
        color: #000;
      }
    }
  }
}
#login {
  h2 {
    margin-bottom: $unit;

    &+ p {
      margin-bottom: $unit*3;
    }
  }
  .bg-light {
    background: #f9f9f9;
    height: 100%;
  }
  .inner-container {
    padding: $unit*3;
  }
}
.nav {
  text-align: center;
  margin-left: auto;

  ul {
    li {
      position: relative;
      margin-right: $unit*3;

      &:first-child {
        margin-left: $unit*3;
      }
    }
  }
  .nav-item {
    &::after {
      transition: $transition;
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      background: #000;
      height: 2px;
      content: '';
      transform: translateY(.5em);
    }
    &:hover, &.active {
      &::after {
        width: 100%;
      }
    }
  }
}
.cart-link {
  position: relative;
  display: block;
  text-align: center;

  i {
    font-size: 1.5em;
  }
  .cart-count {
    position: absolute;
    background: #000;
    color: #fff;
    font-size: .75em;
    font-weight: normal;
    width: 1.5em;
    line-height: 1.5;
    border-radius: 50%;
    top: -.5em;
    right: -.5em;
  }
}
.btn-menu {
  background: #000;
  color: #fff !important;
  width: $unit*5;
  line-height: $unit*5;
  text-align: center;
  font-size: .75em;
}
#home {
  .slider {
    color: #000;

    .item {
      position: relative;
      height: calc(100vh - #{$unit*5});
    }
    .owl-nav {
      position: absolute;
      bottom: $unit*3;
      right: $unit*3;
      display: flex;

      button {
        margin-left: $unit*2;

        i {
          text-align: center;
          display: block;
          transform: scale(1.2);
          transition: $transition;
        }
        &:hover {
          i {
            &::before {
              font-weight: 600;
            }
          }
        }
      }
    }
    .owl-dots {
      position: absolute;
      bottom: $unit*3;
      left: $unit*3;
      display: flex;
      counter-reset: section;

      .owl-dot {
        margin-right: $unit*2;
        transition: $transition;

        &:hover, &.active {
          font-weight: 500;
          transform: scale(1.2);
        }

        &::before {
          counter-increment: section;
          content: counter(section);
        }
      }
    }
  }
}
section {
  margin: $unit*4.5 0;

  h2 {
    font-weight: 500;
    font-size: 3.25em;
    color: #000;
  }
}
.latest {
  h2 {
    text-align: center;

    &+ p {
      margin-top: 1em;
      font-size: 1.125em;
      text-align: center;
    }
  }
}
.row-container {
  margin-top: $unit*4;
}
.icons {
  background: #f4f4f4;
  margin: auto;
  padding: $unit*2 0;
  font-size: 1.125em;
  color: #4E4E4E;

  i {
    margin-right: $unit/2;
    color: #000;
    width: 1.25em;
  }
  b {
    font-weight: 500;
    color: #000;
  }
}
.tab {
  display: none;
}
.sidebar {
  h3 {
    font-size: 1.66666666em;
    font-weight: 500;
    color: #000;
    margin-bottom: $unit*2;

    &:not(:first-child) {
      margin-top: $unit*4;
    }
  }
  ul {
    li {
      a {
        &:hover, &.active {
          color: #000;
        }
      }
      &+ li {
        margin-top: 1em;
      }
    }
  }
  sup {
    font-size: .75em;
  }
  .products {
    h4 {
      color: #000;
      font-weight: 500;
      font-size: 1.2em;
    }
    h5 {
      font-weight: normal;
      margin-top: 1em;
    }
  }
  .tags {
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.6666666;
    color: #000;

    a {
      border-bottom: 2px solid;

      &:hover {
        border-bottom-color: transparent;
      }
    }
  }
}
.categories {
  text-align: center;
  font-size: 1.2em;
  color: #000;

  h3 {
    font-weight: 500;
    margin-top: $unit;
    line-height: 1.25;
  }
}
.form-group {
  &+ .form-group {
    margin-top: $unit*2;
  }
}
.form-label {
  font-size: 1.125em;
  display: block;
  margin-bottom: $unit;
}
.form-control {
  width: 100%;
  display: block;
  line-height: 1;
  padding-bottom: $unit/2;
  border: none;
  outline: none;
  border-bottom: 1px solid #ccc;
  font-weight: normal;
}
textarea {
  line-height: 1.5;
  resize: none;
}
.alert {
  padding: 1em;
  border: 1px solid;
  color: #aaa;
  line-height: 1.25;

  &+ * {
    margin-top: $unit;
  }
}
.slides {
  .item {
    height: 80vh;
    position: relative;
  }
  .owl-item {
    .item {
      width: 33.33333333vw;
    }

    &:nth-child(odd) {
      .item {
        width: 66.66666666vw;
      }
    }
  }
}
.articles {
  .row {
    margin: -2.5px;

    > * {
      padding: 2.5px;
    }
  }
  .img-holder {
    padding-bottom: 150%;
  }
  h4 {
    font-weight: normal;
    margin-bottom: $unit;
  }
  h3 {
    font-size: 1.66666666em;
    font-weight: 500;
    color: #000;
  }
  .inner-container {
    padding: $unit;
  }
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
.input-number {
  white-space: nowrap;
  text-align: center;
  display: flex;
  color: #000;
  align-items: center;

  a {
    border: 1px solid #ccc;
    width: $unit*2;
    line-height: calc(#{$unit}*2 - 2px);
    font-size: .75em;

    &+ a {
      border-left: none;
    }
  }
  input {
    width: 4em;
    text-align: center;
    font-weight: 500;
    font-size: 1.25em;
  }
}
.product-content {
  h3 {
    font-size: 1.25em;
    line-height: 1.5;
    font-weight: 500;
    color: #000;
  }
  .content-html {
    margin-left: $unit*2;
    padding-left: $unit*4;
    border-left: 2px solid #000;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: .75em;
  color: #000;
  font-weight: 500;
  position: relative;
  font-size: 1.2em;

  &::before {
    content: '';
    height: 2px;
    position: absolute;
    top: 0;
    right: 0;
    background: #000;
    transition: $transition;
    width: 100%;
  }

  i {
    margin-left: $unit/2;
    transform: rotate(-45deg);
    transition: $transition;
  }

  &:hover {
    &::before {
      width: 0;
    }
    i {
      transform: rotate(0);
    }
  }
}
.card {
  background: #f4f4f4;
  height: 100%;
  text-align: center;
  font-size: 1.2em;

  .card-image {
    position: relative;
    padding-bottom: 125%;
    overflow: hidden;

    img {
      transition: 1s ease-in;
      max-width: 80%;
      max-height: 80%;
    }

    &:hover {
      img {
        transform: scale(1.05);
      }
    }
  }
  &.card-sm {
    font-size: 1em;

    .card-image {
      padding-bottom: 100%;
    }
  }
  .card-body {
    padding: $unit*2;
    position: relative;
    overflow: hidden;

    h3 {
      font-weight: 500;
      color: #000;
    }
    h4 {
      font-weight: normal;
      margin-top: 1em;
    }
    .card-content {
      transition: $transition;
    }
    .btn-container {
      color: #000;
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      bottom: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: $unit*2;
      transform: translateY($unit);
      opacity: 0;
      transition: $transition;
    }
    &:hover {
      .card-content {
        transform: translateY(-100%);
        opacity: 0;
      }
      .btn-container {
        transform: translateY(0);
        opacity: 1;
      }
    }
  }
}
.collection {
  margin: $unit*7.5 0;

  h2 {
    max-width: 768px;
    text-align: center;
    margin: 0 auto $unit*6;
  }
  h4 {
    font-weight: 500;
    color: #000;
    font-size: 1.6666666em;
  }
  .content-html {
    line-height: 1.5;
    margin: $unit*2 auto;
    font-size: 1.125em;
  }
}
.breadcrumb {
  background: #f4f4f4;
  font-size: .875em;
  padding: $unit 0;
  color: #000;

  a {
    color: #646464;
  }
  .container {
    > *:not(:first-child) {
      display: flex;
      align-items: center;

      &::before {
        content: '';
        width: 2px;
        background: #000;
        height: .875em;
        margin: 0 $unit;
      }
    }
  }
}
.footer {
  padding: $unit*8 0 $unit*2;
  line-height: 1.5;
  color: #646464;
  background: #f4f4f4;

  h3 {
    font-weight: 600;
    margin-bottom: 1em;
    color: #000;
  }
  ul {
    font-size: .875em;

    li {
      &+ li {
        margin-top: $unit;
      }
    }
  }
  .copyright {
    margin-top: $unit*2;
    font-size: .75em;
    text-align: center;
  }
  a {
    &:hover {
      color: #000;
    }
  }
}
.sticky-image {
  position: sticky;
  top: $unit*6;
}
.home {
  .footer {
    background: transparent;
  }
}
.table-responsive {
  overflow-y: hidden;
}
.busy {
  &::after {
    content: 'Actualizando...';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(#fff, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 500;
  }
}
.table {
  width: 100%;
  position: relative;

  th, td {
    padding: 1em;
    border-bottom: 1px solid #ccc;

    &:first-child {
      width: 1%;
      padding-right: 0;
    }
  }
  .img-wrapper {
    width: 60px;
    margin-left: $unit*2;
  }
  tfoot {
    span {
      color: #000;
      font-weight: 600;
    }
  }
}
#cart {
  .table {
    span {
      font-size: 1.125em;
    }
  }
  .btn-cart-action {
    color: #000;
  }
}
#checkout {
  h2 {
    margin-bottom: 1em;
  }
  .accordion {
    li {
      margin-top: $unit;
      padding-bottom: $unit;
      border-bottom: 1px solid #ccc;
      display: flex;
      justify-content: space-between;

      label {
        flex: 1;
        margin-left: $unit;

        h3 {
          font-weight: normal;
          margin-bottom: .5em;
        }
        p {
          font-size: 1.125em;
          line-height: 1.25;
          display: none;
        }
      }
      :checked {
        &+ label {
          p {
            display: block;
          }
        }
      }
      b {
        color: #000;
      }
    }
  }
}
#product {
  .img-holder {
    border: 1px solid #eee;
  }
  .cart-add-form {
    margin: $unit*4 auto !important;
  }
  .product-info {
    margin-left: $unit*2;
    color: #646464;

    > *:not(:first-child) {
      margin-top: $unit*2;
    }

    h4 {
      font-size: 1.125em;
      font-weight: 500;
      color: #000;
    }
    p {
      line-height: 1.5;
    }
  }
}
.pagination {
  list-style: none;
  margin: $unit*4 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;

  .page-item {
    > * {
      display: block;
      width: 2em;
      line-height: 2;
      text-align: center;
    }
    a {
      color: #000;
    }
  }
}
#faq {
  dl {
    border-bottom: 2px solid #e4e1dd;
  }
  dt {
    line-height: 1.25;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: $unit*1.5 0;
    border-top: 2px solid #e4e1dd;
    color: #000;
    cursor: pointer;

    span {
      flex: 1;
      margin-right: $unit;
      font-size: 1.2em;
    }

    &::after {
      content: '\f063';
      font-family: "Font Awesome 5 Pro";
      margin-left: auto;
    }
    &.active {
      &::after {
        content: '\f062';
      }
    }
  }
  dd {
    display: none;
    padding-bottom: $unit*3;
  }
}
.page-title {
  margin: $unit*6 0;

  h2 {
    font-size: 3em;
    text-align: center;
    font-weight: 500;
    line-height: 1.25;
  }
}
.single-image {
  margin: $unit*6 0;

  .content-html {
    margin-top: $unit*6;
    color: #000;
    font-size: 3em;
    text-align: center;
    font-weight: 500;
    line-height: 1.25;

    a {
      text-decoration: underline;
    }
  }
}
.content-html {
  line-height: 1.5;

  > *:not(:first-child) {
    margin-top: 1em;
  }
}
.page-cover {
  position: relative;
  height: 540px;
  display: flex;
  align-items: flex-end;
  padding: $unit*3 0;

  .container {
    color: #fff;
  }
  h1 {
    font-size: 4.5em;
    font-weight: 500;
  }
  iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
  }
}
.historia {
  background: #EEE5DE;
  padding: $unit*6 0;
  margin: auto;

  h1 {
    font-size: 3em;
    line-height: 1.25;
    color: #000;
    font-weight: 500;
    margin-bottom: 1em;
  }
  .content-html {
    font-size: 1.125em;

    b, strong {
      color: #000;
    }
  }
}
.bienvenida {
  h1 {
    font-size: 3em;
    line-height: 1.25;
    color: #000;
    font-weight: 500;
  }
  .content-html {
    font-size: 1.125em;
    margin-top: $unit*2;

    b, strong {
      color: #000;
    }
  }
  .btn-container {
    margin-top: $unit*2;
  }
}
#contacto {
  h3 {
    font-size: 1.5em;
    font-weight: 500;
    color: #000;
    line-height: 1.25;
  }
  .list-unstyled {
    color: #000;
    font-size: 1.125em;
    line-height: 1.5;

    li {
      margin-top: 1em;
      display: flex;

      i {
        margin-right: 1em;
        line-height: inherit;
      }
      span {
        flex: 1;
      }
    }
  }
}
.newsletter {
  h1 {
    font-size: 3em;
    text-align: center;
    font-weight: 500;
    line-height: 1.25;
    color: #000;
    margin-bottom: 1em;
  }
  .container {
    max-width: 768px;
  }
  form {
    display: flex;
    border-bottom: 1px solid #ccc;
    align-items: flex-end;

    .btn {
      padding-bottom: .5em;
    }

    .form-group {
      flex: 1;

      .form-control {
        border-bottom: none;
      }
    }
  }
}
.side-cart {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  background: #fff;
  width: 100%;
  max-width: 360px;
  z-index: 10000;
  transition: .3s ease-out;
  transform: translateX(100%);

  &.menu-active {
    transform: translateX(0);
    box-shadow: 0 0 $unit rgba(#000, .15);
  }

  .side-cart-header {
    padding: $unit*1.5;
    color: #000;

    .side-cart-close {
      font-size: 1.125em;
    }
    h3 {
      font-size: 1.125em;
      flex: 1;
      margin: 0 $unit*1.5;
      font-weight: normal;
      text-align: center;
    }
  }
  .side-cart-body {
    padding: $unit*1.5;

    ul {
      color: #000;

      li {
        &+ li {
          margin-top: $unit*1.5;
        }
      }
      h3 {
        font-weight: 500;
      }
      .img-wrapper {
        flex-basis: 100px;
        background: #f4f4f4;
      }
      .flex-1 {
        margin: 0 $unit*1.5;
      }
      p {
        color: #646464;
        margin-top: 1em;

        b {
          color: #000;
        }
      }
    }
  }
  .side-cart-footer {
    padding: $unit*1.5;
    font-size: 1.125em;
    font-weight: 500;
    text-align: center;
  }
}
@media screen and (max-width: 992px) {
  .nav {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .header {
    .logo {
      max-height: 30px;
    }
  }
  .row {
    margin: -7.5px;

    > * {
      padding: 7.5px;
    }
  }
  section {
    h2 {
      font-size: 2em;
    }
  }
  .footer {
    padding-top: $unit*4;
  }
  #product {
    .product-info {
      margin-left: auto;
    }
  }
  .page-cover {
    height: 400px;

    h1 {
      font-size: 3em;
    }
  }
  .page-title {
    margin: $unit*4 0;

    h2 {
      font-size: 2em;
    }
  }
  .single-image {
    margin: $unit*4 0;

    .content-html {
      font-size: 2em;
      margin-top: $unit*4;
    }
  }
  .historia {
    padding: $unit*4 0;

    h1 {
      font-size: 2em;
    }
    .content-html {
      font-size: 1em;
    }
  }
  .newsletter {
    h1 {
      font-size: 2em;
    }
  }
}
@media screen and (max-width: 576px) {
  .header {
    .container {
      padding-left: 15px;
      padding-right: 15px;
    }
  }
  .product-content {
    .content-html {
      margin-left: auto;
      padding-left: 0;
      border: none;
    }
  }
}
