/**
 * v18 — Top bar (marquee + coupon), bigger header, hero desktop pro
 */

/* ========== TOP BAR ========== */
.store-top-bar {
  background: linear-gradient(90deg, #c2185b 0%, #e91e63 45%, #ff6b9d 100%);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  min-height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0;
  padding: 0;
}
.store-top-bar.is-hidden {
  display: none !important;
}
.store-top-bar-inner {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  min-height: 38px;
  gap: 0;
}
.store-top-marquee-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 10px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.store-top-marquee {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: storeMarquee 28s linear infinite;
  padding: 6px 0;
}
.store-top-marquee:hover {
  animation-play-state: paused;
}
@keyframes storeMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.store-top-marquee-item {
  white-space: nowrap;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.95;
}
.store-top-marquee-item .announcement-tag {
  margin-right: 6px;
  opacity: 0.85;
}
.store-top-coupon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 4px 8px 4px 4px;
  background: rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  min-width: 0;
  max-width: 52%;
}
.store-top-coupon .coupon-ticket.coupon-tick-item {
  min-height: 30px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  border: none !important;
  min-width: 200px;
  max-width: 280px;
}
.store-top-coupon .coupon-ticket-main {
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 8px !important;
}
.store-top-coupon .coupon-tick-label {
  font-size: 9px !important;
  color: #c2185b !important;
}
.store-top-coupon .coupon-tick-code {
  font-size: 12px !important;
  color: #1a1218 !important;
}
.store-top-coupon .coupon-ticket-copy {
  min-height: 30px !important;
  padding: 6px 10px !important;
  font-size: 9px !important;
}
.store-top-coupon .coupon-tick-item {
  position: relative;
  opacity: 0;
  pointer-events: none;
}
.store-top-coupon .coupon-tick-item.active {
  opacity: 1;
  pointer-events: auto;
}
.store-top-bar-close {
  flex: 0 0 32px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  padding: 0 6px;
}
.store-top-bar-close:hover {
  opacity: 1;
}

/* Hide old bars + header coupons */
.store-announce,
.store-coupon-mobile,
.store-header-search-group .store-coupon-ticker {
  display: none !important;
}

/* No gap top bar → header */
.store-header-wrap {
  gap: 0 !important;
}
.store-header-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.page-home .store-header-wrap,
.store-header-wrap {
  border-bottom: 1px solid #f0e8eb;
}

@media (max-width: 1023px) {
  .store-top-bar-inner {
    flex-wrap: nowrap;
  }
  .store-top-marquee-wrap {
    padding: 0 8px;
  }
  .store-top-marquee-item {
    font-size: 11px;
  }
  .store-top-coupon {
    max-width: 58%;
    padding: 3px 4px 3px 2px;
  }
  .store-top-coupon .coupon-ticket.coupon-tick-item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* ========== BIGGER HEADER ========== */
@media (min-width: 1024px) {
  .store-header-inner {
    grid-template-columns: auto auto 1fr auto !important;
    grid-template-areas: "logo nav search actions" !important;
    padding: 14px 24px !important;
    gap: 14px 20px !important;
  }
  .store-logo img {
    height: 52px !important;
  }
  .store-nav-desktop .store-nav-link {
    font-size: 14px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .store-nav-desktop .store-nav-icon svg {
    width: 22px !important;
    height: 22px !important;
  }
  .store-header-search-group {
    max-width: none !important;
  }
  .store-search-pill {
    padding: 12px 18px !important;
    min-height: 50px !important;
    border-radius: 999px !important;
    background: #f5f0f2 !important;
    border: 1px solid #ebe0e4 !important;
  }
  .store-search-pill svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
  }
  .store-search-input {
    font-size: 15px !important;
  }
  .store-header-actions .store-icon-btn,
  .store-header-actions .store-profile-trigger {
    width: 48px !important;
    height: 48px !important;
  }
  .store-header-actions .store-icon-btn svg {
    width: 26px !important;
    height: 26px !important;
  }
  .store-profile-avatar {
    width: 44px !important;
    height: 44px !important;
  }
  .store-header-main-spacer {
    height: 88px !important;
  }
}

@media (max-width: 1023px) {
  .store-header-main {
    padding: 0 !important;
  }
  .store-header-inner {
    padding: 8px 12px 10px !important;
    gap: 8px !important;
  }
  .store-logo img {
    height: 42px !important;
  }
  .store-search-form {
    width: 100%;
    order: 10;
    grid-column: 1 / -1;
  }
  .store-search-pill {
    min-height: 46px !important;
    padding: 10px 16px !important;
    background: #f5f0f2 !important;
    border: 1px solid #ebe0e4 !important;
  }
  .store-search-input {
    font-size: 14px !important;
  }
  .store-header-actions .store-icon-btn {
    width: 42px !important;
    height: 42px !important;
  }
  /* mobile: top bar flush with header — zero gap */
  .store-top-bar + .store-header-main,
  .store-top-bar ~ .store-header-main {
    margin-top: 0 !important;
  }
  .store-cat-strip {
    margin-top: 0 !important;
    padding-top: 6px !important;
  }
}

/* ========== HERO DESKTOP PRO ========== */
@media (min-width: 768px) {
  .hero-slider-pro .hero-curtain {
    display: none !important;
  }
  .hero-slider-pro.hero-app {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    background: #1a1218 !important;
  }
  .hero-slider-pro {
    position: relative;
  }
  .hero-slider-pro .hero-app-track-wrap {
    position: relative;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden;
    aspect-ratio: 21 / 8;
    max-height: 440px;
    min-height: 280px;
  }
  .hero-slider-pro .hero-app-slide {
    flex: 0 0 100% !important;
    max-height: none !important;
    height: 100% !important;
    aspect-ratio: unset !important;
    border-radius: 0 !important;
  }
  .hero-slider-pro .hero-app-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
  }
  .hero-slider-pro .hero-app-track {
    height: 100%;
  }
  .hero-slider-pro .hero-app-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    z-index: 8;
    margin: 0 !important;
  }
  .hero-slider-pro .hero-app-dot {
    background: rgba(255, 255, 255, 0.45) !important;
  }
  .hero-slider-pro .hero-app-dot.active {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }
  .page-home .hero-slider-pro {
    margin-top: 0 !important;
  }
}

@media (max-width: 767px) {
  .hero-slider-pro .hero-curtain {
    display: none !important;
  }
}
