@font-face {
  font-family: 'Voyado-Icons';
  src: url("/assets/fonts/Voyado-Icons.woff2?__frsh_c=2907eee5909a5ea4c4907d05032789682d1a4ca3") format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'VoyadoText';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/VoyadoText-Regular.woff2?__frsh_c=2907eee5909a5ea4c4907d05032789682d1a4ca3") format('woff2');
}

@font-face {
  font-family: 'VoyadoText';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/VoyadoText-Medium.woff2?__frsh_c=2907eee5909a5ea4c4907d05032789682d1a4ca3") format('woff2');
}

:root {
  --mobile-width: 900px;
  --product-cards-per-row: 2;
  --product-card-favorites-enabled: true;
}

html {
  scrollbar-gutter: stable;
}

body {
  display: flex;
  color: var(--color);
  background-color: var(--bg);
  flex-direction: column;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text);
  margin: 0;
  min-height: 100vh;
}

main {
  flex-grow: 1;
  padding-bottom: calc(1.25 * var(--space-l));
}

.row {
  box-sizing: border-box;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-l);
}

input {
  padding: 0.5em;
}

/* Nav */
#header {
  background-color: var(--bg);
  margin-bottom: 12px;
}

#nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 16px 0;
  /* Improve layout stability (before components render) */
  min-height: 44px;
}

#nav-links {
  display: none;
  min-height: 36px;
}

#brand {
  display: flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  font-family: 'VoyadoText';
  font-weight: 500;
  font-size: var(--text-l);
  text-decoration: none;
}

#brand span {
  text-wrap: nowrap;
}

#toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
}

#toolbar > a {
  display: inline-grid;
  padding: 5px;
}

#menu {
  display: inline-grid;
  padding: 6px;
}

.nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin: 0;
}
.nav-list-item {
  display: flex;
  border-radius: 4px;
  margin: 0;
}

.nav-list-item > a {
  font-family: 'VoyadoText';
  font-size: var(--text);
  line-height: 2;
  padding: 0 8px;
  text-decoration: none;
}

.nav-list-item:hover {
  background-color: rgb(0 0 0 / .12);
}

.nav-list-item.selected {
  background-color: rgb(0 0 0 / .06);
}

/* Footer */
#footer {
  display: flex;
  color: var(--color-accent);
  background-color: var(--bg-accent);
  box-sizing: border-box;
  flex-direction: column;
  padding: var(--space-l) 0;
  min-height: calc(14 * var(--text));
}

.footer-bottom {
  background-color: #000;
  font-size: var(--text-sm);
  color: var(--color-accent);
  min-height: 100px;
  display: flex;
  align-items: center;
}

.footer-bottom .row {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
}

.payment {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.payment img {
  height: 30px;
  width: 48px;
  margin-right: 10px;
}

.customize {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.customize-btn {
  background: transparent;
  color: var(--color-accent);
  font-size: var(--text-sm);
  border: none;
}

.footer-info {
  display: flex;
  flex-direction: row;
  flex-flow: wrap;
  font-family: 'VoyadoText';
}

.footer-info h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 0;
  text-transform: uppercase;
}

.info-box {
  width: 50%;
}

.social-links {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill, 35px);
  grid-auto-rows: 35px;
}

.links {
  list-style: none;
  padding: 0;
  font-size: var(--text-sm)
}

.link-item, .link-item a {
  text-decoration: none;
}

.product-list-title {
  margin: 6px;
}

/* Base */
h1 {
  font-size: var(--text-xl);
}

h2, h3, h4, h5 {
  font-size: var(--text-l);
}

label, caption, figcaption {
  font-size: var(--text-sm);
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}
button.icon {
  background: transparent;
  border: none;
}

img {
  width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border-radius: 4px;
  border-width: 0.1em;
  padding: 0 20px;
}

.demo-modal {
  background: rgb(0 0 0 / 0.8);
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 4;
}

h3.product-list-title[data-algorithm]::before {
  display: inline-block;
  content: attr(data-algorithm);
  color: var(--color-accent);
  background-color: var(--bg-accent);
  padding: var(--space-xs) var(--space-sm);
  margin-right: var(--space-sm);
  border-radius: 1px;
}

/* Custom */

/* Minimizes layout shifts by giving empty recommendations a basic size */
ld-recommendation-product-list:not(.is-empty) {
  display: block;
  min-height: 350px;
}

#cart-icon {
  position: relative;
}

#cart-icon[data-count]::after {
  color: rgb(255 255 255);
  display: flex;
  content: attr(data-count);
  background-color: rgb(222 106 51);
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
  width: 1.3em;
  line-height: 1.15em;
  padding-bottom: .15em;
  font-size: .8em;
  font-weight: 600;
  justify-content: center;
  translate: 10% -10%;
  z-index: 5;
  animation: cartGrowIn .4s cubic-bezier(0.0, 0.0, 0.2, 1);
}

@keyframes cartGrowIn {
  from { transform: translate(60%, -25%) scale(0); }
  to { transform: translate(60%, -25%) scale(1); }
}
