@font-face {
  font-family: 'Avenir Next';
  src: url('/fonts/AvenirNextLTPro-Regular.otf');
  font-weight: normal;
  /* Defers the custom font, shows fallback first */
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Next';
  src: url('/fonts/AvenirNextLTPro-Bold.otf');
  font-weight: bold;
  /* Defers the custom font, shows fallback first */
  font-display: swap;
}

:root {
  --primary-dark: #007654;
  --primary: #00ad7c;
  --secondary: #52d681;
  --primary-light: #b5ff7d;
  --secondary-light: #fff8b5;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Avenir Next';
  color: var(--primary-dark);
}

body,
div {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: center;
  align-self: stretch;
  padding: 2rem;
  background: var(--primary);
  background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
}

.logo {
  width: 16rem;
}

main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 40rem;
}

main p {
  text-align: justify;
}

.name-distribuidora {
  font-size: 0.9rem;
  color: var(--primary);
}

.name-papel-com {
  font-weight: bold;
  color: var(--primary);
}

.center {
  text-align: center;
}

.productos {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.item>img {
  width: 100%;
}

.item>.label {
  text-align: center;
  color: var(--primary);
  font-family: 'Avenir Next';
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.button {
  display: inline-block;
  color: white;
  font-family: 'Avenir Next';
  font-size: 1rem;
  padding: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 0.25rem;
  background: var(--primary);
  background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
}

.button:hover {
  box-shadow: 0.3rem 0.3rem 0.9rem 0.3rem rgba(0, 0, 0, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
}

tr {
  border-width: 1px 0;
  border-style: solid;
  border-color: var(--primary);
}

td {
  padding: 0.5rem 0.25rem 0.25rem 0.25rem;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 40rem) {
  .productos {
    flex-direction: column;
    align-self: center;
    gap: 1rem;
    width: fit-content;
  }

  .item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .item>img {
    width: 4rem;
  }

  .item>.label {
    text-align: left;
  }
}

@media print {
  body {
    font-size: 10pt;
  }

  header {
    justify-content: flex-start;
    padding: 0.5cm 5%;
  }

  .logo {
    height: 2cm;
    width: auto;
  }

  main {
    box-decoration-break: clone;
    max-width: none;
  }


  tr {
    border-width: 0.1pt 0;
  }

  .no-print {
    display: none;
  }

  @page {
    margin: 3cm 0 1cm;

    @top-left {
      content: '';
      background-color: var(--primary);
      background-image: url('/images/papelcom-logo.svg');
      background-repeat: no-repeat;
      background-position: left 1.2cm top 0.5cm;
      background-size: auto 2cm;
      height: 3cm;
      width: 25%;
    }

    @top-right {
      content: "Jose Garibaldi 1850, Hurlingham (B1686LGD), BA\A Tel: 4554-5763 / 7924-6964\A Email: ventas@papelcom.com.ar";
      white-space: pre-wrap;
      text-align: left;
      vertical-align: bottom;
      background-color: var(--primary);
      font-family: 'Avenir Next';
      font-size: 10pt;
      color: white;
      height: 3cm;
      padding-left: 0cm;
      padding-bottom: 0.4cm;
    }

    @bottom-right {
      content: counter(page);
      font-family: 'Avenir Next';
      color: var(--primary);
      font-size: 10pt;
      padding-right: 1.2cm;
      padding-bottom: 1cm;
    }
  }
}