

/* HEADER BASE (MOBILE FIRST) */

/* ========================= */
/* GLASS HEADER */
/* ========================= */
.site-header {
  position: sticky;
  top: 10px; /* floating effect */
  z-index: 1000;

  margin: 0 10px;
  border-radius: 16px;

  background: rgba(42,19,24,0.11);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);

  border: 1px solid rgba(255, 255, 255, 0.3);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.4);

  transition: all 0.3s ease;
}

/* Slight shrink on scroll */
.site-header.scrolled {
  top: 5px;
  backdrop-filter: blur(22px);
}

/* CONTAINER */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 10px;
}

/* ========================= */
/* LOGO */
/* ========================= */
.logo a {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;

  background: linear-gradient(90deg, #111, #555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-decoration: none;
}

/* ========================= */
/* SEARCH */
/* ========================= */
.search-bar {
  flex: 1;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 8px 14px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);

  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);

  color: #222;
  font-size: 14px;

  transition: all 0.3s ease;
}

/* glass glow focus */
.search-bar input:focus {
  outline: none;

  background: rgba(255,255,255,0.6);

  box-shadow:
    0 0 0 2px rgba(255,255,255,0.6),
    0 8px 20px rgba(0,0,0,0.08);

  transform: scale(1.03);
}

/* ========================= */
/* CART */
/* ========================= */
.header-cart {
  position: relative;
  display: inline-flex;
}

/* Glass icon hover */
.header-cart svg {
  width: 22px;
  height: 22px;
  color: #222;
  transition: all 0.25s ease;
}

.header-cart:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* BADGE */
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;

  transform: translate(50%, -50%);

  background: rgba(255, 0, 0, 0.85);
  backdrop-filter: blur(6px);

  color: #fff;
  font-size: 10px;
  font-weight: bold;

  padding: 3px 6px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.6);

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ========================= */
/* TABLET */
/* ========================= */
@media (min-width: 768px) {

  .site-header {
    margin: 10px auto;
    max-width: 95%;
  }

  .logo a {
    font-size: 18px;
  }

  .search-bar {
    display: flex;
    justify-content: center;
  }

  .search-bar input {
    width: 70%;
    max-width: 500px;
    padding: 10px 18px;
  }
}

/* ========================= */
/* DESKTOP */
/* ========================= */
@media (min-width: 1024px) {

  .site-header {
    max-width: 1200px;
  }

  .search-bar input {
    width: 60%;
  }
}

/* ========================= */

/* DESKTOP (≥ 1024px) */

/* ========================= */

@media (min-width: 1024px) {

  .header-container {

    max-width: 1200px;

    margin: auto;

  }

  .search-bar input {

    width: 60%;

  