/* Yalnız PC və böyük ekranlar */
@media (min-width: 901px) {
  .rentigue-site .navbar {
    display: flex;
    align-items: center;
  }

  .rentigue-site .nav-actions {
    margin-left: auto;
  }

  .rentigue-site .menu-button {
    display: flex;
  }

  /* Soldan açılan menyu */
  .rentigue-site .nav-links,
  .rentigue-site.is-home .nav-links {
    position: fixed;
    inset: 100px auto 0 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    box-sizing: border-box;
    width: 420px;
    max-width: 85vw;
    height: calc(100dvh - 100px);

    padding: 55px 40px;
    gap: 28px;

    background: var(--rentigue-bg, #f5f1ea);
    color: var(--rentigue-text, #1b1917);
    border: none;
    border-right: 1px solid rgba(27, 25, 23, 0.12);

    overflow-y: auto;
    z-index: 100;

    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      transform 0.45s ease,
      opacity 0.45s ease,
      visibility 0.45s;
  }

  .rentigue-site .nav-links.is-open,
  .rentigue-site.is-home .nav-links.is-open {
    display: flex;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .rentigue-site .nav-links a,
  .rentigue-site.is-home .nav-links a {
    margin: 0;
    color: var(--rentigue-text, #1b1917);
    font-family: var(--rentigue-serif, Georgia, serif);
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-transform: none;
  }

  .rentigue-site .nav-links a:first-child {
    font-size: 44px;
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .rentigue-site .nav-links,
  .rentigue-site.is-home .nav-links {
    transition: none;
  }
}

@media (min-width: 901px) {
  /* Hero üzərində menyu açılanda navbar şəffaf qalsın */
  .rentigue-site.is-home.menu-is-open:not(.intro-passed) .site-header {
    background: transparent;
    color: #fffdf8;
    backdrop-filter: none;
    box-shadow: none;
  }

  .rentigue-site.is-home.menu-is-open:not(.intro-passed) .intro-menu-button {
    background: rgba(255, 253, 248, 0.17);
    border-color: rgba(255, 253, 248, 0.15);
  }

  .rentigue-site.is-home.menu-is-open:not(.intro-passed) .preferences-menu > summary {
    background: rgba(255, 253, 248, 0.17);
  }

  .rentigue-site.is-home.menu-is-open:not(.intro-passed) .bag-count {
    border-color: rgba(255, 253, 248, 0.65);
  }
}

@media (min-width: 901px) {
  .rentigue-site .nav-links,
  .rentigue-site.is-home .nav-links {
    inset: 0 auto 0 0;
    height: 100dvh;
    padding: 135px 40px 45px;
    z-index: 100;
  }

  /* Menyu düyməsi panelin üstündə qalsın */
  .rentigue-site .menu-button {
    position: relative;
    z-index: 101;
  }

  /* Açıq panel üzərində düymə aydın görünsün */
  .rentigue-site.is-home.menu-is-open:not(.intro-passed) .intro-menu-button {
    color: #1b1917;
    background: transparent;
    border-color: rgba(27, 25, 23, 0.2);
  }
}
/* Mobil menyu və navbar vahid fon üzərində görünsün. */
@media (max-width: 900px) {
  .rentigue-site .site-header:has(.nav-links.is-open),
  .rentigue-site.is-home.menu-is-open .site-header {
    background: var(--rentigue-bg, #f5f1ea);
    color: var(--rentigue-text, #1b1917);
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .rentigue-site .nav-links.is-open,
  .rentigue-site.is-home .nav-links.is-open {
    background: var(--rentigue-bg, #f5f1ea);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Say göstəricisi dar ekranda sıxılıb oval olmasın. */
.rentigue-site .bag-count,
.rentigue-site.is-home .bag-count {
  box-sizing: border-box;
  width: 21px;
  min-width: 21px;
  max-width: 21px;
  height: 21px;
  min-height: 21px;
  max-height: 21px;
  flex: 0 0 21px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
  letter-spacing: 0;
}
@media (max-width: 600px) {
  .rentigue-site .bag-count,
  .rentigue-site.is-home .bag-count {
    width: 17px;
    min-width: 17px;
    max-width: 17px;
    height: 17px;
    min-height: 17px;
    max-height: 17px;
    flex-basis: 17px;
  }
}

.rentigue-site .bag-count,
.rentigue-site.is-home .bag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.rentigue-site .bag-count-number {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(1px);
}
