/* ==========================================
   HEADER
========================================== */

:root {
  --header-yellow: #ffd500;
  --header-black: #000;
  --header-height: 190px;
  --header-padding: 20px;
  --header-font: "Roboto Mono", monospace;
}

/* GOOGLE FONT */

@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap");

/* RESET */

.site-header *,
.mobile-menu *,
.search-lightbox * {
  box-sizing: border-box;
}

/* ==========================================
   HEADER
===================================================== */

.site-header {
  width: 100%;
  height: var(--header-height);
  background: var(--header-yellow);
  color: var(--header-black);
  position: relative;
  z-index: 1000;
  padding-top: 0 !important;
}

.header-inner {
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.617924em;

  display: flex;
  align-items: center;
}

/* ==========================================
   LOGO
========================================== */

.header-logo {
  flex: 0 0 auto;
}

.header-logo a {
  display: block;
  line-height: 0;
}

.site-header .header-logo img,
.site-header .header-logo .custom-logo-link img {
  display: block;
  width: 100%;
  max-width: clamp(100px, 12vw, 200px);
  height: auto;
}

.header-logo-text {
  font-family: var(--header-font);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
}

/* ==========================================
   NAVIGATION
========================================== */

.header-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 58px;

  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu li {
  margin: 0;
  padding: 0;
}

.header-menu a {
  font-family: var(--header-font);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 400;
  line-height: 1;

  color: #000;
  text-decoration: none;

  transition: opacity 0.2s ease;
}

.header-menu a:hover {
  opacity: 0.55;
}

/* ==========================================
   ACTIONS
========================================== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-action {
  width: 36px;
  height: 36px;

  padding: 0;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: transparent;
  color: #000;

  cursor: pointer;

  text-decoration: none;
  position: relative;
}

.header-action svg {
  width: 36px;
  height: 36px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-action:hover {
  opacity: 0.65;
}

.header-cart-count {
  position: absolute;
  top: -7px;
  right: -14px;
  background-color: var(--color-cart-count, #cf2340);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  /* box-shadow: 0 2px 4px rgba(0,0,0,0.15); */
  pointer-events: none;
}

.header-cart-count.is-empty {
  display: none;
}

/* ==========================================
   MOBILE MENU BUTTON
========================================== */

.header-menu-trigger {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.header-menu-trigger span {
  width: 30px;
  height: 2px;
  background: #000;
  display: block;
}

/* ==========================================
   MOBILE OFF CANVAS
========================================== */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.35);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  z-index: 1998;
}

.mobile-menu {
  position: fixed;

  top: 0;
  right: 0;

  width: min(400px, 88vw);
  height: 100vh;

  background: var(--header-yellow);

  transform: translateX(100%);

  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);

  z-index: 1999;

  padding: 30px;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .mobile-menu {
  transform: translateX(0);
}

body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-family: var(--header-font);
  font-size: clamp(16px, 2vw, 18px);
}

.mobile-menu-close {
  border: 0;
  background: none;

  font-size: clamp(32px, 5vw, 42px);
  line-height: 1;

  cursor: pointer;
}

.mobile-menu-list {
  list-style: none;

  margin: 70px 0 0;
  padding: 0;
}

.mobile-menu-list li {
  margin-bottom: 30px;
}

.mobile-menu-list a {
  font-family: var(--header-font);
  font-size: clamp(20px, 4vw, 28px);

  color: #000;
  text-decoration: none;
}

/* ==========================================
   SEARCH LIGHTBOX
========================================== */

.search-lightbox {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding: 100px 30px;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;

  z-index: 3000;
}

body.search-open {
  overflow: hidden;
}

body.search-open .search-lightbox {
  opacity: 1;
  visibility: visible;
}

.search-lightbox-inner {
  position: relative;

  width: min(900px, 100%);

  background: var(--header-yellow);

  padding: 60px;
}

.search-lightbox-close {
  position: absolute;

  top: 20px;
  right: 25px;

  border: 0;
  background: none;

  font-size: clamp(32px, 5vw, 42px);
  line-height: 1;

  cursor: pointer;
}

.search-label {
  display: block;

  margin-bottom: 20px;

  font-family: var(--header-font);
  font-size: clamp(16px, 2vw, 18px);
}

.search-input-wrapper {
  position: relative;
}

.predictive-search-input {
  width: 100%;

  border: 0;
  border-bottom: 2px solid #000;

  border-radius: 0;

  background: transparent;

  padding: 15px 45px 15px 0;

  font-family: var(--header-font);
  font-size: clamp(22px, 4vw, 32px);

  outline: none;
}

.predictive-search-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

/* ==========================================
   PREDICTIVE SEARCH RESULTS
========================================== */

.predictive-search-results {
  margin-top: 30px;
}

.predictive-search-list {
  list-style: none;

  padding: 0;
  margin: 0;
}

.predictive-search-item {
  display: flex;
  align-items: center;
  gap: 20px;

  padding: 15px 0;

  border-bottom: 1px solid rgba(0, 0, 0, 0.2);

  text-decoration: none;
  color: #000;
}

.predictive-search-item-image {
  width: 70px;
  height: 70px;

  object-fit: cover;
}

.predictive-search-item-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.predictive-search-item-title {
  font-family: var(--header-font);
  font-size: clamp(14px, 1.5vw, 16px);
}

.predictive-search-item-price {
  font-family: var(--header-font);
  font-size: clamp(12px, 1vw, 14px);
}

.predictive-search-empty {
  font-family: var(--header-font);
  font-size: clamp(14px, 1.5vw, 16px);
  padding: 20px 0;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1100px) {
  .header-menu {
    gap: 20px;
  }

  .header-actions {
    gap: 15px;
  }

  .header-action,
  .header-action svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 800px) {
  :root {
    --header-height: 90px;
    --header-padding: 20px;
  }

  .header-inner {
    justify-content: space-between;
  }

  .header-navigation {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .header-action,
  .header-action svg {
    width: 28px;
    height: 28px;
  }

  .header-account {
    display: none;
  }

  .header-menu-trigger {
    display: flex;
  }

  .header-menu-trigger span {
    width: 24px;
    height: 2px;
  }

  .search-lightbox {
    padding: 20px;
  }

  .search-lightbox-inner {
    padding: 50px 25px 30px;
  }
}

@media (max-width: 480px) {
  .header-cart,
  .header-search-trigger,
  .header-menu-trigger {
    width: 24px;
    height: 24px;
  }

  .header-action svg {
    width: 24px;
    height: 24px;
  }
}
