/* Shared chrome: hamburger, cart, mark, drawer */

.chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--chrome-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 40;
}
.chrome--fixed {
  position: fixed;
  background: transparent;
}
.chrome--reveal {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chrome--reveal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hamburger {
  width: 28px; height: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: none; border: none; cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; height: 1.5px; width: 100%;
  background: #111; border-radius: 1px;
}

.chrome-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.chrome-right--home {
  /* mountain scroll: hamburger only per comps (no mark on overlays) */
}

.cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: #111;
  text-decoration: none;
  position: relative;
}
.cart-link svg {
  width: 22px; height: 22px;
  stroke: #111;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 50%;
  background: #111;
  color: #f4f1eb;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.cart-count[hidden],
.cart-count:empty { display: none !important; }

.mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.drawer[hidden] { display: none !important; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.35);
}
.drawer-panel {
  position: absolute;
  top: 0; left: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: var(--cream);
  padding: 28px 28px 40px;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 32px rgba(17,17,17,0.12);
  animation: drawerIn 0.22s ease;
}
@keyframes drawerIn {
  from { transform: translateX(-12px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}
.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.48);
  margin-bottom: 36px;
  padding: 8px 0;
}
.drawer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-links a {
  display: block;
  padding: 14px 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  color: #111;
}
@media (hover: hover) {
  .drawer-links a:hover { opacity: 0.7; }
}
.drawer-foot {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #f4f1eb;
  background: #111;
  padding: 12px 22px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.2s ease;
}
.toast.is-visible { opacity: 0.92; }

/* Breadcrumb */
/* Desktop breadcrumb: 12px with AA contrast on the cream page (links
   6.2:1, current 11.6:1). Line height pinned to the old 12px box so the
   page below does not move. */
.breadcrumb {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.68);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: rgba(17,17,17,0.68);
  text-decoration: none;
}
@media (hover: hover) {
  .breadcrumb a:hover { color: #111; }
}
.breadcrumb .sep {
  margin: 0 10px;
  color: rgba(17,17,17,0.22);
}
.breadcrumb .current { color: rgba(17,17,17,0.86); }

@media (max-width: 720px) {
  :root { --chrome-h: 56px; --pad-x: 16px; }
  .chrome { padding: 0 18px; height: 56px; }
  .hamburger { width: 24px; height: 16px; }
  .mark { width: 34px; height: 34px; }
  .cart-link { width: 30px; height: 30px; }
  .cart-link svg { width: 20px; height: 20px; }
  .chrome-right { gap: 12px; }
}
