@font-face {
    font-family: sans-serif;
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Высота страницы должна быть 100% */
    font-family: 'Comfortaa', sans-serif;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Контейнер занимает всю высоту экрана */
}

.content {
    flex: 1; /* Растягивается, чтобы занять всё свободное пространство */
}

.logo {
  text-align: center;
  line-height: 1.2;
}
    .logo-link {
      text-decoration: none;
      color: inherit;
    }
    .logo-link:hover {
      text-decoration: none;
      color: inherit;
    }
    .logo {
      text-align: center;
      max-width: 400px;
      width: 100%;
    }

    .logo-main {
      font-family: 'Oswald', sans-serif;
      font-size: 2em;
      font-weight: 400;
      letter-spacing: 0.05em;
      color: #333;
    }

    .logo-sub {
        font-family: 'Roboto', sans-serif;
        font-weight: 400;
        font-size: 0.58em;
        letter-spacing: 0.057em;
        color: #0e0e0e;
        margin-top: 4px;
        margin-left: 100px;
    }

.custom-navbar {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0.75em 1em;
}

.logo {
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1em;
}

.navbar-auth a {
  text-decoration: none;
  color: #333;
  margin-left: 1em;
  font-weight: 500;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  font-size: 1.5em;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-menu {
  display: none;
  background: #fff;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-menu.open {
  display: block;
}

.navbar-menu ul {
  list-style: none;
  padding: 1em;
  margin: 0;
}

.navbar-menu li {
  margin-bottom: 1em;
}

.navbar-menu a {
  text-decoration: none;
  color: #333;
  font-size: 1em;
}

.navbar-auth a {
    font-size: 1em;
    margin-left: 1em;
    margin-right: 1em;
}
.navbar-right {
    margin-right: 2em;
}
.logo {
    margin-left: 1em;
}
.cart-link {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  margin-left: 1em;
}

.cart-count {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.2em 0.6em;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
  background-color: #ccc; /* по умолчанию серый */
  border-radius: 999px;
  min-width: 1.5em;
  text-align: center;
}
.cart-count.active {
  background-color: #ff7f50; /* активный цвет */
}
.desktop-menu { display: flex; gap: 1em; }
.mobile-menu { display: none; }

@media (max-width: 1024px) {

    html{
        font-size:20px
    }
    .menu-toggle {
        display: block;
    }
    .navbar-auth a {
        font-size: 1em;
        margin-left: 1em;
        margin-right: 1em;
    }
    .navbar-right {
        margin-right: 0em;
        font-size: 1.4em;
    }
    .logo {
      text-align: left;
      max-width: 10em;
      width: 100%;
    }

    .logo-main {
      font-family: 'Oswald', sans-serif;
      font-size: 1.6em;
      font-weight: 400;
      letter-spacing: 0.05em;
      color: #333;
    }

    .logo-sub {
        font-family: 'Roboto', sans-serif;
        font-weight: 400;
        font-size: 0.58em;
        letter-spacing: 0.057em;
        color: #0e0e0e;
        margin-top: 4px;
        margin-left: 1em;
    }
      .desktop-menu { display: none; }
  .mobile-menu { display: flex; gap: 1em; align-items: center; }

  .menu-toggle {
    display: block;
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1em;
    margin-right: 1em;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .navbar-menu.open { display: block; }

  .navbar-menu ul {
    list-style: none;
    padding: 0.5em 0;
    margin: 0;
    font-size:1.5em;
  }

  .navbar-menu li { padding: 0.5em 1em; }

  .navbar-menu a { text-decoration: none; color: #333; }

  .mobile-menu a {
        text-decoration: none;
        color: #333;
        margin-left: 1em;
        font-weight: 500;
        white-space: nowrap;
        font-size:1.5em;
    }
}

