/* ============================================
   SHOP HEADER STYLES
   Extracted from shop.css and mobile.css
   ============================================ */

.shop-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: transparent;
  border-bottom: none;
  flex-shrink: 0;
}

.shop-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-header-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-header-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #18181b;
}

.shop-header-btn svg {
  width: 22px;
  height: 22px;
}

.shop-header-category-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #18181b;
  padding: 4px 8px;
}

.shop-header-category-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========== Shop active — white background ========== */
body.shop-active {
  background: #ffffff;
  min-height: 100vh;
}

html:has(body.shop-active) {
  background: #ffffff;
}

/* ========== Shop header button colors ========== */
body.shop-active .shop-header-btn {
  color: #18181b;
}

body.shop-active .shop-header-category-btn {
  color: #18181b;
}

body.shop-active #shop-basket-count {
  background: #6D28D9;
  color: white;
}

body.shop-active #mobile-hamburger {
  color: #18181b;
}

/* ========== Mobile: shop takes over global header ========== */
@media (max-width: 768px) {
  /* Hide the in-shell shop header bar — controls live in #mobile-header instead */
  body:has(#shop-shell) #shop-header-bar {
    display: none;
  }

  /* Style #mobile-header when in shop-mode */
  #mobile-header.shop-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: #ffffff;
    min-height: 48px;
    color: #18181b;
  }

  /* White header when shop is active */
  body.shop-active #mobile-header {
    background: #ffffff;
  }
}

/* ========== Desktop: larger shop header ========== */
@media (min-width: 769px) {
  .shop-header-category-btn {
    font-size: 20px;
    padding: 8px 16px;
    gap: 10px;
  }
  .shop-header-btn svg {
    width: 36px;
    height: 36px;
  }
  .shop-header-bar {
    padding: 16px 24px;
  }
}
