:root {
  --header-height: 100px;
  --header-height-shrink: 64px;
  --header-padding-x: 20px;
  --transition-fast: 220ms;
  --glass-blur: 10px;
  --glass-color: rgba(255,255,255,0.45);
  --text-color: #111;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  color: var(--text-color);
}

/* HEADER */
/* Base header (expanded) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--header-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1200;
  background-color: rgba(255,255,255,0.8); /* more solid than before */
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: height var(--transition-fast) ease,
              background-color var(--transition-fast) ease,
              box-shadow var(--transition-fast) ease,
              padding var(--transition-fast) ease,
              transform var(--transition-fast) ease;
}

/* Shrink header when scrolling down past threshold */
.site-header.shrink {
  height: var(--header-height-shrink);
  background-color: rgba(255,255,255,0.5); /* slightly less opaque when shrunk */
  box-shadow: 0 6px 18px rgba(10,10,10,0.06);
}

/* Hide effect (optional small upward shift) */
.site-header.hide {
  transform: translateY(-40px); /* partially retracts */
}
/* INNER HEADER */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

/* LOGO */
.logo {
  height: 50px;
  width: auto;
}

/* NAV MENU */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1.15rem;
font-family: 'Quicksand', sans-serif;
  transition: background var(--transition-fast);
}

.main-nav a:hover,
.main-nav a:focus {
  background: rgba(0,0,0,0.06);
  outline: none;
}

/* PAGE PADDING */
.page-content {
  padding-top: calc(var(--header-height)+16px);
  max-width: 1200px;
  margin: 0 auto;
}

/* CART ICON */
.cart-icon {
  position: absolute;
  top: 26px;             /* normal header height */
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: top var(--transition-fast) ease;
}

.site-header.shrink .cart-icon {
  top: 10px;             /* when header shrinks */
}


/* RESPONSIVE */
@media (max-width:720px) {
  :root {
    --header-height: 84px;
    --header-height-shrink: 56px;
    --glass-color: rgba(255,255,255,0.9);
  }
@media (max-width: 720px) {
  .cart-icon {
    position: absolute;
    right: 10px; /* push it all the way to the edge */
    top: 55%;
    transform: translateY(-50%);
  }

  .hamburger {
    position: absolute;
    right: 40px; /* move hamburger slightly left so both fit side-by-side */
    top: 50%;
    transform: translateY(-50%);
  }
}
  .hamburger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Mobile nav slide-down */
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    overflow: hidden;
    max-height: 0;                 
    transition: max-height 0.2s ease-in-out;
    background: var(--glass-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .main-nav.show {
    max-height: 500px;            
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 10px 0;
  }

  .main-nav ul li {
    margin: 0;
    padding: 0;
  }

  .main-nav ul li a {
    padding: 12px 16px;
    border-radius: 0;
  }
}

.hamburger { display: none; } 
@media (max-width:720px) {
  .hamburger { display: flex; }
}