/* Techhike-inspired chrome — yellow nav, centered search, mega menu */

.a31-topbar {
  background: #F5F5F5;
  border-bottom: 1px solid var(--a31-border);
  font-size: 0.82rem;
  color: var(--a31-ink);
}
.a31-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.5rem 0; flex-wrap: wrap;
}
.a31-topbar-promo { margin: 0; }
.a31-topbar-meta { display: flex; gap: 1.25rem; color: var(--a31-muted); }
.a31-topbar-meta span { cursor: default; }

.a31-header {
  background: #fff;
  border-bottom: 1px solid var(--a31-border);
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.a31-header-main {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 2rem; padding: 1rem 0;
}
.a31-brand {
  display: flex; align-items: center; gap: 0.65rem; text-decoration: none !important; color: inherit;
}
.a31-brand-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--a31-yellow);
  color: #000; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
  border: 2px solid #000;
}
.a31-brand-text strong { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; color: #000; }
.a31-brand-text small { color: var(--a31-muted); font-size: 0.7rem; display: none; }

.a31-search {
  display: flex; align-items: stretch; max-width: 560px; width: 100%; margin: 0 auto;
  border: 1px solid #ccc; border-radius: 4px; overflow: hidden; background: #f5f5f5;
}
.a31-search input {
  flex: 1; border: 0; background: transparent; padding: 0.7rem 1rem; font: inherit; min-width: 0;
  outline: none;
}
.a31-search button {
  border: 0; background: var(--a31-yellow); color: #000; font-weight: 700;
  padding: 0 1.5rem; cursor: pointer; font-size: 0.9rem;
}
.a31-search button:hover { background: var(--a31-yellow-dark); }

.a31-header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.a31-action {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  color: var(--a31-ink); text-decoration: none !important; font-size: 0.72rem;
  position: relative; min-width: 48px;
}
.a31-action-icon { font-size: 1.25rem; line-height: 1; }
.a31-action-label { font-size: 0.72rem; color: var(--a31-muted); }
.a31-action-copy { display: grid; line-height: 1.2; text-align: center; }
.a31-action-copy strong { font-size: 0.72rem; color: var(--a31-muted); font-weight: 500; }
.a31-action-copy em { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--a31-ink); }
.a31-action-badge {
  position: absolute; top: -4px; right: 2px; min-width: 18px; height: 18px;
  background: var(--a31-yellow); color: #000; border-radius: 999px; font-size: 0.62rem;
  display: grid; place-items: center; font-weight: 700; border: 1px solid #000;
}

.a31-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem 0.45rem 0.6rem;
  background: var(--a31-yellow);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  color: var(--a31-ink);
  text-decoration: none !important;
  transition: background 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.a31-cart-btn:hover {
  background: var(--a31-yellow-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.a31-cart-btn-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.a31-cart-btn-icon svg {
  display: block;
}

.a31-cart-btn-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #000;
  color: #fff;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid var(--a31-yellow);
}

.a31-cart-btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}

.a31-cart-btn-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.62);
  white-space: nowrap;
}

.a31-cart-btn-total {
  font-size: 0.88rem;
  font-weight: 800;
  color: #000;
  white-space: nowrap;
}

.a31-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: #f5f5f5;
  border: 1px solid var(--a31-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}
.a31-menu-toggle:hover { background: var(--a31-yellow); border-color: rgba(0, 0, 0, 0.12); }
.a31-menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--a31-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
}
.a31-menu-toggle.is-open .a31-menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.a31-menu-toggle.is-open .a31-menu-bar:nth-child(2) { opacity: 0; width: 0; }
.a31-menu-toggle.is-open .a31-menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Yellow navigation bar — Techhike signature */
.a31-navbar {
  background: var(--a31-yellow);
  color: #000;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.a31-navbar-inner {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  padding: 0;
  gap: 0;
}
.a31-dept-wrap {
  flex-shrink: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.14);
}
.a31-dept-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 100%;
  min-height: 48px;
  background: rgba(0, 0, 0, 0.1);
  border: 0;
  color: #000;
  font-weight: 700;
  padding: 0 1.35rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.a31-dept-btn:hover,
.a31-dept-btn[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.16);
}
.a31-dept-icon {
  font-size: 1rem;
  line-height: 1;
}

.a31-nav-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.a31-nav-scroll .a31-nav-links {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.a31-nav-scroll .a31-nav-links::-webkit-scrollbar { display: none; }

.a31-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: 100%;
  gap: 4px;
  padding: 0 6px;
}
.a31-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #000;
  text-decoration: none !important;
  padding: 0 0.95rem;
  min-height: 36px;
  margin: 6px 0;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  border-right: 0;
  border-radius: 8px;
  background: transparent;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.a31-nav-link:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #000;
  text-decoration: none !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.a31-nav-link.is-active {
  background: rgba(0, 0, 0, 0.88);
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.a31-nav-link.is-active .a31-nav-caret { opacity: 0.85; }
.a31-nav-caret {
  font-size: 0.65rem;
  opacity: 0.75;
  margin-top: 1px;
}
.a31-nav-offer {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0 1.1rem;
  min-height: 36px;
  margin: 6px 8px 6px 4px;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.a31-nav-offer:hover {
  background: #fff;
  color: #000;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.a31-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--a31-border);
  border-top: 3px solid #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.a31-mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.a31-mega-panel {
  display: none;
  animation: a31MegaPanelIn 0.32s ease both;
}
.a31-mega-panel.is-active {
  display: block;
}
@keyframes a31MegaPanelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.a31-mega-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr) minmax(200px, 240px);
  gap: 1.25rem;
  padding: 1.5rem 0;
}
.a31-mega-grid {
  grid-template-columns: repeat(4, 1fr) minmax(200px, 240px);
}
.a31-mega-dept {
  grid-template-columns: repeat(5, 1fr) minmax(200px, 240px);
}
.a31-mega-col h4 { margin: 0 0 0.5rem; font-size: 0.88rem; font-weight: 700; }
.a31-mega-col h4 a { color: var(--a31-ink); text-decoration: none; }
.a31-mega-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--a31-muted);
  padding: 0.12rem 0;
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
}
.a31-mega-col a.is-featured { font-weight: 700; color: var(--a31-ink); }
.a31-mega-col a:hover { color: var(--a31-link); transform: translateX(3px); }
.a31-nav-link.has-mega.is-mega-open,
.a31-nav-link.has-mega:hover {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.a31-nav-link.is-mega-open .a31-nav-caret,
.a31-nav-link.has-mega:hover .a31-nav-caret {
  transform: rotate(180deg);
}
.a31-nav-caret {
  display: inline-block;
  transition: transform 0.25s ease;
}

/* Mobile slide-in navigation drawer */
.a31-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  visibility: hidden;
}
.a31-mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.a31-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.a31-mobile-drawer.is-open .a31-mobile-backdrop { opacity: 1; }
.a31-mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100%;
  max-height: 100dvh;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(104%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.a31-mobile-drawer.is-open .a31-mobile-panel { transform: translateX(0); }
.a31-mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--a31-border);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}
.a31-mobile-panel-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.a31-mobile-panel-brand .a31-brand-icon { width: 40px; height: 40px; font-size: 0.78rem; flex-shrink: 0; }
.a31-mobile-panel-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  color: #000;
}
.a31-mobile-panel-brand small {
  display: block;
  font-size: 0.68rem;
  color: var(--a31-muted);
}
.a31-mobile-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--a31-border);
  border-radius: 10px;
  background: #fff;
  color: var(--a31-ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.a31-mobile-close:hover { background: var(--a31-yellow); border-color: rgba(0, 0, 0, 0.12); }
.a31-mobile-search {
  display: flex;
  align-items: stretch;
  margin: 0.85rem 1rem 0;
  border: 1px solid var(--a31-border);
  border-radius: 10px;
  overflow: hidden;
  background: #f8f8f8;
  flex-shrink: 0;
}
.a31-mobile-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.75rem 0.85rem;
  font: inherit;
  min-width: 0;
  outline: none;
}
.a31-mobile-search button {
  border: 0;
  background: var(--a31-yellow);
  color: #000;
  font-weight: 700;
  padding: 0 1rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.a31-mobile-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.85rem 1rem 0;
  flex-shrink: 0;
}
.a31-mobile-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--a31-border);
  background: #fafafa;
  color: var(--a31-ink);
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 44px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.a31-mobile-quick-btn:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.a31-mobile-quick-btn.is-cart {
  background: var(--a31-yellow);
  border-color: rgba(0, 0, 0, 0.12);
}
.a31-mobile-quick-btn.is-cart em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  color: #000;
}
.a31-mobile-quick-icon {
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}
.a31-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  flex-shrink: 0;
}
.a31-mobile-nav-link {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--a31-border);
  background: #fff;
  color: var(--a31-ink);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 52px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.a31-mobile-nav-link:hover {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.14);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.a31-mobile-nav-link.is-active {
  background: var(--a31-yellow);
  border-color: rgba(0, 0, 0, 0.14);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.a31-mobile-nav-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 1rem;
  font-weight: 700;
}
.a31-mobile-nav-link.is-active .a31-mobile-nav-icon { background: rgba(0, 0, 0, 0.12); }
.a31-mobile-nav-label { min-width: 0; }
.a31-mobile-nav-arrow {
  color: var(--a31-muted);
  font-size: 1.15rem;
  line-height: 1;
}
.a31-mobile-section {
  padding: 0 1rem 0.85rem;
  flex-shrink: 0;
}
.a31-mobile-section-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #222;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s;
}
.a31-mobile-section-toggle:hover { background: #333; }
.a31-mobile-section-toggle[aria-expanded="true"] { border-radius: 12px 12px 0 0; }
.a31-mobile-section-toggle[aria-expanded="true"] .a31-mobile-section-caret { transform: rotate(180deg); }
.a31-mobile-section-icon { font-size: 1rem; line-height: 1; }
.a31-mobile-section-caret {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}
.a31-mobile-dept-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: #fafafa;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.a31-mobile-dept-list:not([hidden]) { display: flex; }
.a31-mobile-dept-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  color: var(--a31-ink);
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 500;
  border-bottom: 1px solid var(--a31-border);
  min-height: 44px;
  transition: background 0.15s;
}
.a31-mobile-dept-link:last-child { border-bottom: 0; }
.a31-mobile-dept-link:hover { background: #fff; text-decoration: none !important; }
.a31-mobile-dept-emoji { font-size: 1.1rem; line-height: 1; width: 1.5rem; text-align: center; }
.a31-mobile-offer-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin: 0 1rem 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFEA00 0%, #F5C518 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #000;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}
.a31-mobile-offer-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-decoration: none !important;
}
.a31-mobile-offer-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.a31-mobile-offer-copy strong { display: block; font-size: 0.92rem; font-weight: 800; }
.a31-mobile-offer-copy small { display: block; font-size: 0.72rem; color: rgba(0, 0, 0, 0.65); }

body.a31-nav-open { overflow: hidden; }

@media (min-width: 769px) {
  .a31-mobile-drawer { display: none !important; }
}
.a31-mega-promo {
  display: block; background: #f5f5f5; border-radius: 4px; overflow: hidden;
  text-decoration: none !important; color: inherit;
}
.a31-mega-promo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.a31-mega-promo div { padding: 0.65rem 0.75rem; }
.a31-mega-promo small { color: var(--a31-muted); font-size: 0.75rem; }
.a31-mega-promo strong { display: block; font-size: 0.9rem; color: var(--a31-ink); }
.a31-mega-promo span { color: #c00; font-weight: 700; font-size: 0.85rem; }

/* Footer — Techhike 4-column */
.a31-footer { background: #F5F5F5; margin-top: 0; position: relative; }
.a31-footer-accent { height: 4px; background: var(--a31-yellow); }
.a31-footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding: 2.5rem 0 2rem;
}
.a31-footer-col h4 {
  margin: 0 0 0.85rem; font-size: 0.95rem; font-weight: 700;
  position: relative; padding-bottom: 0.45rem; color: var(--a31-ink);
}
.a31-footer-col h4::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px;
  background: var(--a31-yellow);
}
.a31-footer-col p, .a31-footer-col a {
  display: block; margin: 0 0 0.35rem; color: var(--a31-muted); font-size: 0.85rem;
  text-decoration: none; line-height: 1.5;
}
.a31-footer-col a:hover { color: var(--a31-link); }
.a31-footer-base {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0 1.25rem; border-top: 1px solid var(--a31-border);
  font-size: 0.8rem; color: var(--a31-muted); flex-wrap: wrap;
}
.a31-back-top {
  width: 36px; height: 36px; background: var(--a31-yellow); color: #000;
  display: grid; place-items: center; border-radius: 4px; text-decoration: none !important;
  font-weight: 700; border: 1px solid #ccc;
}
