@import url('https://fonts.googleapis.com/css2?family=Anta:wght@400;700&display=swap');

:root {
  --c-main-text: #fff;
  --c-text: #e0e0e0;
  --c-subtext: #bbbbbb;

  --c-bg: #0e0e11;
  --c-panel: #151518;
  --c-surface: #1b1b20;
  --c-surface2: #232328;
  --c-header: #2c2c33;

  --c-accent: #03a9f4;
  --c-accent-hover: #0295d4;
}

body, button, select, textarea, input {
    font-family: 'Anta', sans-serif;
}

body {
    overflow-y: scroll;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    margin: 0;
}

/* Styl suwaka (dla WebKit, np. Chrome, Edge) */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--c-accent);
    border-radius: 10px;
    border: 2px solid #1a1a1a;
}

.site-header {
    background-color: var(--c-bg);
    border-bottom: 1px solid var(--c-accent);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    z-index: 10000;
    width: 100vw;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0px 24px;
  height: auto;
  box-sizing: border-box;
  gap: 30px;
  flex: 1;
}

.header-contact-info {
    text-align: center;
    background-color: var(--c-accent);
    font-weight: bold;
    color: var(--c-main-text);
    padding: 2px;
    font-size: clamp(8px, 1em, 2.7vw);
    display: flex;
    justify-content: center;
}

.header-contact-info a {
    text-decoration: none;
    color: inherit;
}

.header-contact-info-sub {
    max-width: 900px;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Logo */
.logo {
    max-width: 50%;
}

.logo img{
    max-width: 100%;
    max-height: 45px;
}

/* Navigation */
.main-nav {
    flex-grow: 1;
    margin-left: 40px;
    justify-content: flex-end;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
}

.main-nav ul li a {
  text-decoration: none;
  color: var(--c-main-text);
  font-weight: 500;
  font-size: 16px;
  transition: scale 0.3s ease;
  user-select: none;
}
.main-nav ul li {
    transition: scale 0.2s ease;
}

.main-nav ul li:hover {
  scale: 1.1;
}

.menu-active a {
    color: var(--c-accent) !important;
    font-weight: bold !important;
    cursor: pointer;
}

.menu-active {
    scale: 1 !important;
}

/* Cart Icon */
.cart {
    text-align: center;
}

.cart img {
  height: 28px;
  width: 28px;
  transition: transform 0.2s ease;
}

.cart img:hover {
  transform: scale(1.1);
}

.cart-info {
    font-size: 0.7em;
    color: var(--c-main-text);
}

#cart-count {
    background-color: var(--c-accent);
    font-weight: bold;
    padding: 2px;
    border-radius: 2em;
    width: 1em;
    height: 1em;
    display: inline-block;
    position: absolute;
    margin-top: -1.5em;
}

#cart-loading {
    width: 28px;
    height: 28px;
    background: transparent;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -100%;
}

#cart-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 3px solid var(--c-accent);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin-cart 0.8s linear infinite;
}
  
@keyframes spin-cart {
    to {
        transform: rotate(360deg);
    }
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--c-main-text);
    height: 28px;
    align-items: center;
}

/* Responsive Styles */
@media (max-width: 950px) {
    .nav-buttons {
        gap: 10px;
    }

  .main-nav {
    display: none;
    width: 100%;
    background-color: var(--c-bg);
    padding: 20px 0;
  }

  .main-nav.active {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    margin: 0;
    border-top: 1px solid var(--c-accent);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .container {
    flex-wrap: nowrap;
  }
}