/* Swiss Beauty–style header — B6 Luxe palette */
.store-header-wrap {
  width: 100%;
  max-width: 100vw;
}
.store-header {
  position: static;
  z-index: 100;
  background: #1a1218;
  color: #fff;
  width: 100%;
}

/* Premium animated announcement */
.store-announce {
  background: linear-gradient(110deg, #c2185b 0%, #E91E63 35%, #ff6b9d 50%, #E91E63 65%, #c2185b 100%);
  background-size: 220% 100%;
  animation: announceGradient 6s ease infinite;
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 0 40px 0 14px;
  line-height: 1.35;
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@keyframes announceGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.announcement-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,255,255,.22) 48%,
    rgba(255,255,255,.35) 50%,
    rgba(255,255,255,.22) 52%,
    transparent 65%
  );
  background-size: 200% 100%;
  animation: announceShine 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes announceShine {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
.announcement-rotator {
  position: relative;
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.announcement-item {
  position: absolute;
  left: 0;
  right: 0;
  padding: 9px 10px;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.announcement-item.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
}
.announcement-item.exit {
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
}
.announcement-item.active::first-letter {
  display: inline-block;
  animation: sparklePop 2s ease infinite;
}
@keyframes sparklePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.announcement-spark {
  position: absolute;
  left: 12px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  z-index: 2;
  animation: sparkSpin 4s linear infinite;
}
@keyframes sparkSpin {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: .7; }
  50% { transform: rotate(180deg) scale(1.2); opacity: 1; }
}
.announcement-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-radius: 4px;
  background: rgba(255,255,255,.22);
  vertical-align: middle;
  animation: tagPulse 2s ease infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); }
  50% { box-shadow: 0 0 8px 2px rgba(255,255,255,.35); }
}
.announcement-item.active {
  animation: announceSlideIn .55s cubic-bezier(0.34, 1.2, 0.64, 1);
}
@keyframes announceSlideIn {
  from { opacity: 0; transform: translateX(24px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.store-header-main { border-bottom: 1px solid rgba(255,255,255,.06); }
.store-header-main-spacer { display: none; }

.store-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

/* Logo — same colors mobile & desktop */
.store-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.store-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: none;
}

.store-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.store-nav-desktop {
  display: none;
  flex: 0 1 auto;
  justify-content: center;
  gap: 6px 14px;
  flex-wrap: nowrap;
  min-width: 0;
}
.store-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color .2s, background .2s, transform .2s;
}
.store-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.store-nav-link.is-active {
  color: #ff6b9d;
  background: rgba(233,30,99,.15);
}
.store-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: #ff8fb8;
  flex-shrink: 0;
}
.store-nav-link:hover .store-nav-icon {
  background: rgba(233,30,99,.35);
  color: #fff;
}
.store-user-luxe-btn .store-user-luxe-icon { overflow: visible; }
.store-user-luxe-icon .user-bolt {
  filter: drop-shadow(0 0 4px rgba(255,193,7,.65));
  animation: boltPulse 2s ease infinite;
}
@keyframes boltPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.08); }
}

.store-search-form {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
.store-search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  color: #888;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.store-search-input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
  color: #1a1218;
  min-width: 0;
  width: 100%;
}
.store-search-input:focus { outline: none; }

.store-icon-btn,
.store-user-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}
.store-icon-btn:hover,
.store-user-btn:hover { background: rgba(255,255,255,.12); }
.store-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E91E63;
}
.store-icon-btn .cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  font-size: 9px;
  background: #E91E63;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-icon-mobile-hide { display: none; }
@media (min-width: 768px) {
  .store-icon-mobile-hide { display: flex; }
}

/* Mobile header grid */
@media (max-width: 1023px) {
  .store-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "search search";
    gap: 8px 10px;
    padding: 8px 12px 10px;
    flex-wrap: wrap;
  }
  .store-logo { grid-area: logo; }
  .store-logo img { height: 30px; }
  .store-header-actions {
    grid-area: actions;
    margin-left: 0;
  }
  .store-search-form {
    grid-area: search;
    width: 100%;
    max-width: 100%;
  }
  .store-search-pill {
    padding: 10px 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.22);
  }
  .store-icon-btn,
  .store-user-btn { width: 36px; height: 36px; }
  .store-nav-desktop { display: none !important; }
}

/* Desktop: logo left → nav → search → icons */
@media (min-width: 1024px) {
  .store-header-inner {
    padding: 10px 20px 12px;
    gap: 16px;
  }
  .store-logo img { height: 44px; }
  .store-nav-desktop { display: flex; }
  .store-header-actions { margin-left: auto; flex-shrink: 0; }
  .store-search-form {
    flex: 0 1 240px;
    margin-left: 0;
  }
}

/* Category strip */
.store-cat-strip {
  background: #1a1218;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 4px 10px;
  width: 100%;
}
.store-cat-strip-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.store-cat-strip-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px;
}
.store-cat-strip-inner::-webkit-scrollbar { display: none; }

.cat-strip-nav {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.95);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.cat-strip-nav:hover {
  background: rgba(233,30,99,.5);
  border-color: rgba(255,255,255,.5);
}

.store-cat-chip {
  flex: 0 0 calc((100% - 56px) / 4);
  min-width: calc((100% - 56px) / 4);
  max-width: calc((100% - 56px) / 4);
  text-align: center;
  color: #fff;
  scroll-snap-align: start;
  text-decoration: none;
}
.store-cat-chip-ring {
  display: block;
  width: fit-content;
  margin: 0 auto 6px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E91E63, #ff6b9d, #9c27b0, #ffd54f, #E91E63);
  background-size: 300% 300%;
  animation: catRingFlow 3s ease infinite;
  transition: transform .3s ease, padding .3s ease, box-shadow .3s ease;
}
@keyframes catRingFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.store-cat-chip:hover .store-cat-chip-ring {
  animation-duration: 0.75s;
  transform: scale(1.1);
  padding: 4px;
  box-shadow: 0 0 20px rgba(233,30,99,.45);
}
.store-cat-chip-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .25s ease;
}
.store-cat-chip:hover .store-cat-chip-circle { transform: scale(1.02); }
.store-cat-chip-circle img { width: 100%; height: 100%; object-fit: cover; }
.store-cat-chip-circle.deal {
  background: linear-gradient(135deg, #E91E63, #ff6b9d);
  border: none;
}
.store-cat-chip-circle .deal-text {
  font-size: 7px;
  font-weight: 800;
  line-height: 1.15;
  padding: 3px;
  text-align: center;
  color: #fff;
}

/* Animated All Categories */
.store-cat-chip-circle.all-cats {
  background: linear-gradient(135deg, #E91E63 0%, #9c27b0 50%, #E91E63 100%);
  background-size: 200% 200%;
  animation: allCatsGlow 3s ease infinite;
  border: 2px solid rgba(255,255,255,.45);
}
@keyframes allCatsGlow {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 0 0 0 rgba(233,30,99,.4); }
  50% { background-position: 100% 50%; box-shadow: 0 0 16px 2px rgba(233,30,99,.55); }
}
.all-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 4px;
}
.all-cats-grid i {
  display: block;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 1px;
  animation: allCatsDot 1.2s ease infinite;
}
.all-cats-grid i:nth-child(2) { animation-delay: .15s; }
.all-cats-grid i:nth-child(3) { animation-delay: .3s; }
.all-cats-grid i:nth-child(4) { animation-delay: .45s; }
@keyframes allCatsDot {
  0%, 100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.store-cat-chip-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1023px) {
  .store-cat-chip-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }
}

/* Desktop: 8 per row, full width, centered if fewer */
@media (min-width: 1024px) {
  .cat-strip-nav { display: none; }
  .store-cat-strip {
    padding: 2px 16px 8px;
    justify-content: center;
    width: 100%;
  }
  .store-cat-strip-viewport {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }
  .store-cat-strip-inner {
    gap: 10px;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: nowrap;
  }
  .store-cat-chip {
    flex: 0 1 calc((100% - 70px) / 8);
    min-width: 80px;
    max-width: calc((100% - 70px) / 8);
  }
  .store-cat-chip:nth-child(n+9) { display: none; }
  .store-cat-chip-ring { padding: 3px; }
  .store-cat-chip-circle {
    width: 84px;
    height: 84px;
    font-size: 28px;
  }
  .store-cat-chip-label { font-size: 10px; }
  .all-cats-grid {
    grid-template-columns: repeat(2, 10px);
    gap: 5px;
  }
  .all-cats-grid i { width: 10px; height: 10px; }
}

.page-home .home-top-legacy { display: none; }

/* Mobile: sticky via header-sticky.js (stack) */
@media (max-width: 1023px) {
  .store-header-wrap {
    position: static;
    background: transparent;
  }
}

/* Desktop: main bar pins via header-sticky.js (categories scroll) */
@media (min-width: 1024px) {
  .store-header-wrap {
    position: static;
  }
  .store-announce {
    position: relative;
  }
  .store-header-main {
    position: relative;
    background: #1a1218;
  }
  .store-header-main-spacer {
    display: none;
    height: 0;
    width: 100%;
  }
  .store-cat-strip {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 100%;
    justify-content: center;
  }
  .store-cat-strip-viewport {
    margin: 0 auto;
  }
}
/* === UI PATCH v10 === */
.store-header-wrap { background: #1a1218; }

.store-header-inner {
  font-family: 'Outfit', system-ui, sans-serif;
}

/* Coupon ticker between search & icons */
.store-coupon-ticker {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 280px;
  margin: 0 8px;
  position: relative;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.coupon-tick-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(233,30,99,.25) 0%, rgba(156,39,176,.2) 100%);
  border: 1px solid rgba(255,107,157,.45);
  box-shadow: 0 4px 16px rgba(233,30,99,.2), inset 0 1px 0 rgba(255,255,255,.12);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
  overflow: hidden;
}
.coupon-tick-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: couponShine 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes couponShine {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
.coupon-tick-item.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
}
.coupon-tick-item.exit {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}
.coupon-tick-badge {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  animation: couponBadgePop 2s ease infinite;
}
@keyframes couponBadgePop {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.12) rotate(-8deg); }
}
.coupon-tick-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.coupon-tick-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ff8fb8;
  line-height: 1.1;
}
.coupon-tick-code {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fff;
  line-height: 1.1;
}
.coupon-tick-hint {
  font-size: 8px;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coupon-tick-copy {
  flex-shrink: 0;
  border: none;
  background: linear-gradient(135deg, #E91E63, #ff6b9d);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(233,30,99,.4);
}
.coupon-tick-copy:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(233,30,99,.55);
}
.coupon-tick-copy.copied {
  background: linear-gradient(135deg, #2e7d32, #43a047);
}

/* Animated delivery truck */
.store-orders-btn .store-truck-anim {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  animation: truckBounce 1.2s ease-in-out infinite;
}
@keyframes truckBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}
.store-truck-svg .truck-wheel {
  fill: #1a1218;
  stroke: currentColor;
  transform-origin: center;
  animation: wheelSpin 0.8s linear infinite;
}
.truck-wheel-2 { animation-delay: 0.05s; }
@keyframes wheelSpin {
  to { transform: rotate(360deg); }
}
.truck-dust {
  position: absolute;
  bottom: 2px;
  left: -2px;
  width: 8px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  animation: dustPuff 1.2s ease-out infinite;
}
@keyframes dustPuff {
  0% { opacity: 0; transform: translateX(0) scale(0.5); }
  40% { opacity: 0.6; }
  100% { opacity: 0; transform: translateX(-10px) scale(1.2); }
}

.store-user-luxe-icon .user-bolt {
  filter: drop-shadow(0 0 5px rgba(255,193,7,.8));
  animation: boltPulse 1.8s ease infinite;
}

.store-nav-link { font-size: 12px; letter-spacing: 0.35px; }
.store-nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(233,30,99,.2), rgba(156,39,176,.15));
  border: 1px solid rgba(255,107,157,.25);
}
.store-nav-label { font-weight: 600; }

.store-search-pill {
  border: 1px solid rgba(233,30,99,.12);
  box-shadow: 0 2px 12px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
.store-search-input { font-weight: 500; }

/* Category strip — true full width, minimal top gap */
.store-cat-strip {
  padding: 0 0 8px !important;
  margin-top: 0 !important;
  width: 100%;
  max-width: 100vw;
  background: #1a1218;
}
.store-cat-strip-viewport {
  width: 100% !important;
  max-width: 100% !important;
}
.store-cat-strip-inner {
  width: 100% !important;
  max-width: none !important;
  padding: 0 6px !important;
}

@media (min-width: 1024px) {
  .store-coupon-ticker { display: flex; }
  .store-header-inner {
    padding: 8px 16px 10px;
    gap: 10px;
  }
  .store-search-form { flex: 0 1 200px; max-width: 220px; }
  .store-header-main-spacer { height: 68px; }

  .store-cat-strip {
    padding: 0 0 6px !important;
  }

}

@media (max-width: 1023px) {
  .store-coupon-ticker { display: none !important; }
}


/* v14 — centered search (no desktop nav); square category chips */
@media (min-width: 1024px) {
  .store-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
  }
  .store-header-search-group {
    display: flex;
    justify-content: center;
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .store-search-form {
    flex: 1 1 auto;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 1023px) {
  .store-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo actions" "search search";
  }
  .store-logo { grid-area: logo; }
  .store-header-actions { grid-area: actions; margin-left: 0; }
  .store-header-search-group {
    grid-area: search;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .store-search-form { max-width: 100%; }
}

/* Square category tiles — larger */
.store-cat-chip-ring {
  border-radius: 12px !important;
  padding: 2px !important;
  background: rgba(255,255,255,.12) !important;
  animation: none !important;
}
.store-cat-chip:hover .store-cat-chip-ring {
  background: rgba(233,30,99,.35) !important;
  transform: none;
  box-shadow: 0 4px 14px rgba(233,30,99,.25);
}
.store-cat-chip-circle {
  border-radius: 10px !important;
  width: 56px !important;
  height: 56px !important;
  font-size: 24px !important;
}
.store-cat-chip-label {
  font-size: 10px !important;
  font-weight: 800 !important;
}
@media (max-width: 1023px) {
  .store-cat-chip {
    flex: 0 0 calc((100vw - 28px) / 4.55) !important;
    min-width: calc((100vw - 28px) / 4.55) !important;
    max-width: calc((100vw - 28px) / 4.55) !important;
  }
}
@media (min-width: 1024px) {
  .store-cat-chip {
    flex: 0 1 calc((100% - 70px) / 8) !important;
    min-width: 80px !important;
    max-width: calc((100% - 70px) / 8) !important;
  }
}
@media (min-width: 1024px) {
  .store-cat-chip-circle {
    width: 72px !important;
    height: 72px !important;
    font-size: 28px !important;
  }
  .store-cat-chip-label { font-size: 11px !important; }
}