/* PZK e-shop theme. Loaded after Bootstrap and the stock stylesheet. */

/* The design is set in Arial Narrow, which is a system font and not on phones or Linux; Archivo Narrow stands in there. */
@font-face {
  font-family: "PZK Narrow";
  font-weight: 400;
  font-display: swap;
  src: local("Arial Narrow"), local("ArialNarrow"), url("../font/archivo-narrow-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "PZK Narrow";
  font-weight: 400;
  font-display: swap;
  src: local("Arial Narrow"), local("ArialNarrow"), url("../font/archivo-narrow-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PZK Narrow";
  font-weight: 700;
  font-display: swap;
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), url("../font/archivo-narrow-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "PZK Narrow";
  font-weight: 700;
  font-display: swap;
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), url("../font/archivo-narrow-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pzk-navy: #181c8f;
  --pzk-orange: #ef7b05;
  --pzk-green: #1ea322;
  --pzk-grey: #f0f0f0;
  --pzk-footer: #112a84;
  --pzk-font: "PZK Narrow", "Arial Narrow", Arial, sans-serif;
  /* 116px at the 1920px the design is drawn for. */
  --pzk-gutter: clamp(16px, 6.04vw, 116px);
  /* The inner indent of the hero text and of the right-hand text block. */
  --pzk-indent: clamp(0px, 7.45vw, 143px);
  --bs-primary: var(--pzk-navy);
  --bs-primary-rgb: 24, 28, 143;
  --bs-link-color: var(--pzk-navy);
  --bs-link-color-rgb: 24, 28, 143;
  --bs-link-hover-color: var(--pzk-orange);
  --bs-link-hover-color-rgb: 239, 123, 5;
  --bs-body-font-family: var(--pzk-font);
  --bs-body-color: var(--pzk-navy);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--pzk-font);
  color: var(--pzk-navy);
}

/* The stock stylesheet paints headings grey. */
h1, h2, h3, h4, h5, h6 {
  color: inherit;
}

/* It also pins the footer to the bottom of an absolutely positioned page and pads the content to make room for it. */
#container {
  position: static;
  min-height: 0;
  margin-bottom: 0;
}

#content,
#column-left,
#column-right {
  padding-bottom: 0;
}

.pzk-wrap {
  width: min(1688px, 100% - 2 * var(--pzk-gutter));
  margin-inline: auto;
}

/* Same trail as the product page. Stock pages print a Bootstrap list; the theme swaps it for this. */
.pzk-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 24px 0 14px;
  font-size: 12px;
  line-height: 1.6;
}

.pzk-crumbs a,
.pzk-crumbs span {
  padding: 0 9px;
  color: var(--pzk-navy);
  text-decoration: none;
}

.pzk-crumbs a + a,
.pzk-crumbs a + span {
  border-left: 1px solid var(--pzk-navy);
}

.pzk-crumbs .pzk-crumbs-back {
  margin-right: 9px;
  border: 1px solid var(--pzk-grey);
}

.pzk-crumbs .pzk-crumbs-back + a {
  border-left: 0;
}

.pzk-crumbs a:hover {
  color: var(--pzk-orange);
}

/* Button with the cut corner */
.pzk-button {
  --pzk-cut: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 24px 8px 26px;
  border: 1px solid currentColor;
  color: var(--pzk-navy);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.16px;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pzk-cut)), calc(100% - var(--pzk-cut)) 100%, 0 100%);
  transition: background-color 0.15s, color 0.15s;
}

/* The clip removes the corner of the border; this draws the diagonal back. */
.pzk-button::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: var(--pzk-cut);
  height: var(--pzk-cut);
  /* Only the half of the line inside the clip shows, so it is drawn a little wider than the border. */
  background: linear-gradient(to top left, transparent 50%, currentColor 50%, currentColor calc(50% + 1.4px), transparent calc(50% + 1.4px));
}

.pzk-button:hover,
.pzk-button:focus-visible {
  background: var(--pzk-navy);
  color: #fff;
}

.pzk-button.is-light {
  color: #fff;
}

.pzk-button.is-orange {
  border-color: var(--pzk-orange);
  background: var(--pzk-orange);
  color: #fff;
}

.pzk-button.is-orange:hover,
.pzk-button.is-orange:focus-visible {
  border-color: var(--pzk-navy);
  background: var(--pzk-navy);
  color: #fff;
}

button.pzk-button {
  font-family: inherit;
  border-radius: 0;
  cursor: pointer;
}

.pzk-button.is-light:hover,
.pzk-button.is-light:focus-visible {
  background: #fff;
  color: var(--pzk-navy);
}

/* Product card */
.pzk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--pzk-navy);
}

.pzk-card-image {
  display: block;
  aspect-ratio: 1;
  padding: 4.4% 6.73%;
  border: 1px solid var(--pzk-grey);
  background: #fff;
}

.pzk-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pzk-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 20px;
}

.pzk-tag {
  padding: 0 10px;
  background: var(--pzk-green);
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: -0.12px;
  text-transform: lowercase;
  white-space: nowrap;
}

.pzk-tag.is-out {
  background: #8a8a8a;
}

.pzk-card-code {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.14px;
}

.pzk-card-name {
  display: -webkit-box;
  max-width: 240px;
  margin: 10px 0 0;
  overflow: hidden;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pzk-card-name a {
  color: inherit;
  text-decoration: none;
}

/* The whole card is the link, the picture included. */
.pzk-card-name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.pzk-card:hover .pzk-card-name a,
.pzk-card-name a:focus-visible {
  color: var(--pzk-orange);
}

.pzk-card-text {
  display: -webkit-box;
  margin: 15px 0 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
