/* #region Global */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "neue-haas-grotesk-text", "neue-haas-grotesk-text fallback", sans-serif;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: #fff;
  color: #000;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 0.9375rem;
  text-transform: uppercase;
}

@media (min-width: 48rem) {
  body {
    font-size: 0.625rem;
    line-height: 0.8125rem;
  }
}

img,
svg,
video,
canvas {
  display: block;
  height: auto;
  max-width: 100%;
}

button,
input,
textarea,
select {
  appearance: none;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  outline: none;
  text-transform: inherit;
}

button,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

fieldset {
  border: none;
}

::selection {
  background-color: #000;
  color: #fff;
}

@media (hover: hover) {
  a:hover,
  button:hover {
    font-weight: 700;
  }
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
  background: transparent;
  border-bottom: 1px solid #000;
  color: inherit;
  font: inherit;
  padding-bottom: 0.3125rem;
  width: 100%;
}

input[type="email"],
input[type="password"],
textarea {
  text-transform: none;
}

input::placeholder,
textarea::placeholder {
  color: #999;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

* {
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
button,
select {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-radius: 0;
  outline: none;
}

input:focus,
textarea:focus,
button:focus,
select:focus {
  outline: none;
  box-shadow: none;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
  -webkit-box-shadow: none;
}

input:-webkit-autofill {
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
}

h1, h2, h3, h4, h5, h6 {
  all: unset;
  font-weight: 700;
  display: block;
}

img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* #endregion */

/* #region Header */
.header__logo {
  -webkit-font-smoothing: antialiased;
  font-family: "neue-haas-grotesk-display", "neue-haas-grotesk-display fallback", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  left: 0;
  line-height: 0.8;
  padding: 1.25rem;
  position: fixed;
  top: 0;
  z-index: 101;
}

@media (min-width: 80rem) {
  .header__logo {
    font-size: 1.67rem;
    left: 1.6875rem;
    padding: 0;
    top: 1.6875rem;
  }
}

.header__nav {
  display: none;
}

@media (min-width: 80rem) {
  .header__nav {
    display: block;
  }
}

.header__list {
  position: fixed;
  top: 8.75rem;
}

.header__nav > .header__list:nth-child(1) {
  left: 1.6875rem;
}

.header__nav > .header__list:nth-child(2) {
  right: 1.6875rem;
  text-align: right;
}

.header__item--space,
.header__item--break {
  margin-top: 0.8125rem;
}

.header__item--search {
  position: fixed;
  right: 1.6875rem;
  top: 1.6875rem;
}

.header__link--selected {
  font-weight: 700;
}

.header__mobile {
  backdrop-filter: blur(10px);
  background-color: #fff;
  display: flex;
  height: 3.5rem;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

@media (min-width: 80rem) {
  .header__mobile {
    display: none;
  }
}

.header__mobile-button {
  align-items: center;
  display: flex;
  height: 3.5rem;
  justify-content: center;
  width: 2.25rem;
}

.header__mobile-button:last-child {
  margin-right: 0.625rem;
}
/* #endregion */

/* #region Footer */
.footer {
  padding: 1.25rem 1.25rem 2.5rem;
}

@media (min-width: 80rem) {
  .footer {
    border-top: 1px solid #eee;
    padding: 1.6875rem 0;
  }
}

.footer__grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(10, 1fr);
  width: 100%;
}

.footer__list {
  grid-column: 1 / -1;
}

@media (min-width: 80rem) {
  .footer__list {
    grid-column: span 2;
  }
}

/* 1st list — Region switcher */
.footer__list:nth-child(1) {
  font-weight: 700;
}

@media (min-width: 80rem) {
  .footer__list:nth-child(1) {
    margin-left: 1.6875rem;
  }
}

/* 2nd list — Main links */
.footer__list:nth-child(2) {
  margin-top: 2.5rem;
}

@media (min-width: 80rem) {
  .footer__list:nth-child(2) {
    margin-top: 0;
  }
}

/* 5th list — Newsletter */
@media (min-width: 80rem) {
  .footer__list:nth-child(5) {
    margin-right: 1.6875rem;
  }
}

/* 4th list — Social */
.footer__list:nth-child(4) {
  display: none;
}

@media (min-width: 80rem) {
  .footer__list:nth-child(4) {
    display: block;
  }
}

.footer__button {
  align-items: center;
  display: inline-flex;
  gap: 0.625rem;
  line-height: 1.5625rem;
}

.footer__link {
  line-height: 1.5625rem;
}

@media (min-width: 80rem) {
  .footer__button,
  .footer__link {
    line-height: inherit;
  }
}

/* #endregion */

/* #region Panel */
.panel {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0s linear 450ms;
  z-index: 100;
}

.panel[data-state="open"] {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.panel__grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(12, 1fr);
  height: 100%;
  width: 100%;
}

.panel__close {
  align-items: center;
  display: flex;
  height: 3.5rem;
  justify-content: center;
  margin-right: 0.625rem;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
  width: 2.25rem;
  z-index: 100;
}

@media (min-width: 80rem) {
  .panel__close {
    height: auto;
    right: 1.6875rem;
    top: 1.6875rem;
    width: auto;
  }
}

.panel[data-state="open"] .panel__close {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 350ms cubic-bezier(0.215, 0.61, 0.355, 1) 150ms;
}

.panel__text {
  display: none;
}

@media (min-width: 80rem) {
  .panel__text {
    display: block;
  }
}

@media (min-width: 80rem) {
  .panel__icon {
    display: none;
  }
}

.panel__inner {
  background-color: #fff;
  display: block;
  grid-column: 1 / -1;
  overflow-y: auto;
  padding: 3.5rem 1.25rem 1.25rem 1.25rem;
}

@media (min-width: 80rem) {
  .panel__inner {
    display: grid;
    grid-column: 9 / 13;
    grid-template-columns: repeat(4, 1fr);
    padding: 8.75rem 1.6875rem 1.6875rem .625rem;
  }
}

.panel[data-state="closed"] .panel__inner {
  transform: translateX(100%);
  transition: transform 450ms cubic-bezier(0.19, 1, 0.22, 1) 50ms;
}

.panel[data-state="open"] .panel__inner {
  transform: translateX(0);
  transition: transform 650ms cubic-bezier(0.19, 1, 0.22, 1);
}

.panel__content {
  grid-column: span 3;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.panel[data-state="open"] .panel__content {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 350ms cubic-bezier(0.215, 0.61, 0.355, 1) 150ms;
}
/* #endregion */

/* #region Nav */
@media (min-width: 80rem) {
  #panelNav {
    display: none;
  }
}

.nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4.375rem;
  height: 100%;
}

.nav__item--space {
  margin-top: 1.25rem;
}

.nav__item--break {
  margin-top: 1.875rem;
}

.nav__item--region {
  margin-top: 1.875rem;
  font-weight: 700;
}

.nav__link,
.nav__button {
  line-height: 1.5625rem;
  width: 100%;
  display: block;
  text-align: left;
}

@media (min-width: 80rem) {
  .nav__button,
  .nav__link {
    line-height: inherit;
  }
}
/* #endregion */

/* #region Newsletter */
.newsletter__form,
.newsletter__done {
  margin-top: 1.875rem;
}

.newsletter__checkbox {
  display: block;
  margin-top: 1.25rem;
}

.newsletter__note {
  margin-top: 1.25rem;
}

.newsletter__submit {
  height: 2.75rem;
  width: 100%;
  border: 1px solid #000;
  background-color: #000;
  color: #fff;
  text-align: center;
  margin-top: 1.25rem;
}

.newsletter__submit:hover {
  background-color: #222;
  font-weight: 400;
}

.newsletter__privacy {
  margin-top: 0.625rem;
}

.newsletter__link {
  text-decoration: underline;
}




.newsletter__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  position: relative;
}

/* Hide the native checkbox */
.newsletter__checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Actual visual checkbox */
.newsletter__checkbox-box {
  background-color: transparent;
  height: .5625rem;
  width: .5625rem;
  box-shadow: 
    0 0 0 0.0625rem inset,
    0 0 0 0.125rem #fff inset;
  display: block;
  flex-shrink: 0;
  position: relative;
  top: 0.1875rem;
}

/* Fill it black when checked */
.newsletter__checkbox-input:checked ~ .newsletter__checkbox-box {
  background-color: #000;
}


@media (min-width: 48rem) {
  .newsletter__checkbox-box {
    height: 0.5rem;
    width: 0.5rem;
    top: 0.125rem;
  }
}

.newsletter__field {
  position: relative;
}
.newsletter__label {
  position: absolute;
  top: 0;
  left: 0;
}

.newsletter__label {
  pointer-events: none;
  color: #999;
  transform: translateY(0);
  transition: transform 450ms cubic-bezier(0.19, 1, 0.22, 1);
}

.newsletter__input:focus + .newsletter__label,
.newsletter__input:not(:placeholder-shown) + .newsletter__label {
  transform: translateY(-15px);
}


/* #endregion */

/* #region Search */
.search {
  position: relative;
}

.search__clear {
  position: absolute;
  top: 0;
  right: 0;
}

.search__input {
  padding-right: 3.75rem;
}
/* #endregion */

/* #region Hero */
.hero__grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
}

.hero__link {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
}

@media (min-width: 80rem) {
  .hero__link {
    grid-column: 5 / 9;
  }
}

.hero__image {
  display: block;
  height: 100svh;
  object-fit: cover;
  padding-top: 3.5rem;
  width: 100%;
}

@media (min-width: 80rem) {
  .hero__image {
    padding-top: 0;
  }
}
/* #endregion */

/* #region Product listing */
.product-listing {
  margin-top: 3.5rem;
  padding-bottom: 6.25rem;
}

@media (min-width: 80rem) {
  .product-listing {
    margin-top: 0;
  }
}

.product-listing__grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
}

.product-listing__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  grid-column: 1 / -1;
}

@media (min-width: 48rem) {
  .product-listing__items {
    flex-direction: row;
    gap: 0.625rem;
  }
}

@media (min-width: 80rem) {
  .product-listing__items {
    grid-column: 4 / 10;
  }
}

.product-listing__image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-listing__image {
  width: 100%;
  display: block;
  height: auto;
  transition: all 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
  position: absolute;
  top: 0;
  left: 0;
}

.product-listing__image--primary {
  position: relative; /* sits above secondary */
  z-index: 2;
  opacity: 1;
}

.product-listing__image--secondary {
  z-index: 1;
  opacity: 0;
}

@media (hover: hover) {
  .product-listing__link:hover .product-listing__image--secondary {
    opacity: 1;
  }

  .product-listing__link:hover .product-listing__image--primary {
    opacity: 0;
  }
}

.product-listing__meta {
  padding-left: 1.25rem;
}

@media (min-width: 80rem) {
  .product-listing__meta {
    padding-left: 0;
  }
}

.product-listing__title {
  margin-top: 0.625rem;
  font-weight: 400;
}

.product-listing__info {
  display: flex;
  flex-direction: column;
  margin-top: 0.4375rem;
}

.product-listing__price {
  font-weight: 700;
}

.product-listing__tag {
  font-weight: 400;
}
/* #endregion */