/* ═══════════════════════════════════════════════════════════════════
   PREMIUM E-COMMERCE — HEADER + SEARCH + MOBILE UI
   Design: Apple × Nike × Stripe premium minimalism
   2025 Design System
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Global Tokens ── */
:root {
  --ph-bg:        #F8FAFC;
  --ph-primary:   #0F172A;
  --ph-accent:    #06B6D4;
  --ph-accent2:   #8B5CF6;
  --ph-surface:   rgba(15,23,42,.92);
  --ph-glass:     rgba(255,255,255,.08);
  --ph-border:    rgba(255,255,255,.10);
  --ph-white:     #ffffff;
  --ph-gray:      rgba(255,255,255,.55);
  --ph-h:         70px;
  --ph-font:      'Plus Jakarta Sans','Inter',sans-serif;
  --ph-T:         all .32s cubic-bezier(.4,0,.2,1);
  --ph-T-fast:    all .18s ease;
  --ph-blur:      blur(20px) saturate(1.8);
}

/* ── Reset header area ── */
#header_sticky,
.mainheader,
.catmenubar,
.head-menu,
.bottom_head,
.mobile-header { all: unset !important; display: block !important; }

.catmenubar,
.head-menu,
.bottom_head    { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR
═══════════════════════════════════════════════════════════════════ */
.ph-announce {
  background: linear-gradient(90deg, #0F172A 0%, #1e1b4b 40%, #0F172A 100%);
  background-size: 200% 100%;
  animation: ph-announce-slide 8s linear infinite;
  padding: 9px 24px;
  text-align: center;
  font-family: var(--ph-font);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
}
.ph-announce::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(139,92,246,.12) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: ph-shimmer-bar 3s ease-in-out infinite;
}
.ph-announce a {
  color: #06B6D4 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.ph-announce a:hover { text-decoration: underline !important; }
.ph-announce-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #06B6D4;
  margin-right: 8px;
  animation: ph-dot-pulse 2s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes ph-announce-slide {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
@keyframes ph-shimmer-bar {
  0%,100% { background-position: -200% 0; }
  50%     { background-position: 200% 0; }
}
@keyframes ph-dot-pulse {
  0%,100% { transform: scale(1); opacity: .7; }
  50%     { transform: scale(1.4); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════
   MAIN HEADER
═══════════════════════════════════════════════════════════════════ */
.ph-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  width: 100%;
  font-family: var(--ph-font);
}

.ph-header-inner {
  height: var(--ph-h);
  background: var(--ph-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
  position: relative;
}

/* Scrolled state — glassmorphism */
.ph-header.scrolled .ph-header-inner {
  background: rgba(15,23,42,.88) !important;
  backdrop-filter: var(--ph-blur) !important;
  -webkit-backdrop-filter: var(--ph-blur) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 32px rgba(0,0,0,.4) !important;
}

/* Subtle bottom line */
.ph-header-inner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,.4), rgba(139,92,246,.4), transparent);
}

/* ── Logo ── */
.ph-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none !important;
  transition: var(--ph-T-fast);
}
.ph-logo:hover { opacity: .85; transform: scale(.98); }
.ph-logo img {
  height: 46px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ── Center Nav ── */
.ph-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.ph-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,.75) !important;
  text-decoration: none !important;
  border-radius: 10px;
  transition: var(--ph-T);
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: var(--ph-font);
  letter-spacing: -.01em;
}
.ph-nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.07);
}
.ph-nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(90deg, #06B6D4, #8B5CF6);
  border-radius: 1px;
  transition: left .3s ease, right .3s ease;
}
.ph-nav-link:hover::after,
.ph-nav-link.active::after {
  left: 16px; right: 16px;
}
.ph-nav-link.active { color: #fff !important; }
.ph-nav-chevron {
  font-size: 10px;
  opacity: .6;
  transition: transform .2s;
}
.ph-nav-link:hover .ph-nav-chevron { transform: rotate(180deg); }

/* ── Mega dropdown ── */
.ph-mega-wrap {
  position: relative;
}
.ph-mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06);
  padding: 24px;
  min-width: 480px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}
.ph-mega-wrap:hover .ph-mega-menu,
.ph-mega-menu:hover {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.ph-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.ph-mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: background .2s;
}
.ph-mega-item:hover { background: #F8FAFC; }
.ph-mega-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ph-mega-item-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  font-family: var(--ph-font);
}
.ph-mega-item-text span {
  font-size: 11.5px;
  color: #94a3b8;
}
.ph-mega-item:hover .ph-mega-item-text strong { color: #8B5CF6; }

/* ── Right Icons ── */
.ph-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ph-icon-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.8);
  font-size: 18px;
  transition: var(--ph-T);
  text-decoration: none !important;
  justify-content: center;
}
.ph-icon-btn:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: scale(1.08);
}
.ph-icon-btn:active { transform: scale(.95); }

/* Search button glow */
.ph-search-btn:hover {
  background: rgba(6,182,212,.15) !important;
  color: #06B6D4 !important;
}

/* Badge */
.ph-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 17px; height: 17px;
  background: linear-gradient(135deg, #06B6D4, #0891b2);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--ph-primary);
  line-height: 1;
  animation: ph-badge-entrance .4s cubic-bezier(.34,1.56,.64,1);
}
.ph-badge.wish-badge {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}
.ph-badge.has-items {
  animation: ph-badge-pulse 2.5s ease-in-out infinite;
}

@keyframes ph-badge-entrance {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes ph-badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(6,182,212,.5); }
  50%     { box-shadow: 0 0 0 6px rgba(6,182,212,.0); }
}

/* Language selector */
.ph-lang {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ph-font);
  cursor: pointer;
  outline: none;
  transition: var(--ph-T-fast);
}
.ph-lang:hover { border-color: rgba(255,255,255,.25); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   FULLSCREEN SEARCH OVERLAY
═══════════════════════════════════════════════════════════════════ */
.ph-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.ph-search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Dark blur backdrop */
.ph-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,12,24,.94);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
}

/* Animated gradient orbs */
.ph-search-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  animation: ph-orb-drift 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.ph-search-orb-1 {
  width: 500px; height: 500px;
  background: #06B6D4;
  top: -100px; left: -100px;
}
.ph-search-orb-2 {
  width: 400px; height: 400px;
  background: #8B5CF6;
  bottom: -100px; right: -100px;
  animation-delay: -4s;
}
@keyframes ph-orb-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px,40px) scale(1.1); }
}

/* Search content */
.ph-search-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: min(15vh, 140px);
  transform: translateY(-20px);
  transition: transform .4s cubic-bezier(.4,0,.2,1) .05s;
}
.ph-search-overlay.open .ph-search-content {
  transform: translateY(0);
}

/* Close button */
.ph-search-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--ph-T);
  z-index: 10;
}
.ph-search-close:hover {
  background: rgba(244,63,94,.2);
  border-color: rgba(244,63,94,.4);
  color: #f43f5e;
  transform: rotate(90deg) scale(1.1);
}

/* Search label */
.ph-search-label {
  font-family: var(--ph-font);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s .15s, transform .3s .15s;
}
.ph-search-overlay.open .ph-search-label {
  opacity: 1; transform: translateY(0);
}

/* Search input row */
.ph-search-row {
  display: flex;
  align-items: center;
  width: min(760px, calc(100vw - 48px));
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 4px 8px 4px 24px;
  transition: border-color .25s, box-shadow .25s;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .35s .1s, transform .35s .1s, border-color .25s, box-shadow .25s;
}
.ph-search-overlay.open .ph-search-row {
  opacity: 1; transform: translateY(0) scale(1);
}
.ph-search-row:focus-within {
  border-color: rgba(6,182,212,.5);
  box-shadow: 0 0 0 4px rgba(6,182,212,.12), 0 20px 60px rgba(6,182,212,.08);
}

.ph-search-icon-inner {
  color: rgba(255,255,255,.4);
  font-size: 20px;
  flex-shrink: 0;
  margin-right: 14px;
  transition: color .2s;
}
.ph-search-row:focus-within .ph-search-icon-inner { color: #06B6D4; }

.ph-search-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--ph-font) !important;
  font-size: clamp(18px,3vw,28px) !important;
  font-weight: 500 !important;
  color: #fff !important;
  padding: 16px 0 !important;
  caret-color: #06B6D4 !important;
}
.ph-search-input::placeholder { color: rgba(255,255,255,.22) !important; }

.ph-search-go {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #06B6D4, #0891b2);
  border: none;
  color: #fff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--ph-T);
  flex-shrink: 0;
}
.ph-search-go:hover {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(6,182,212,.4);
}

/* Search results */
#searchData,
.ph-search-results {
  width: min(760px, calc(100vw - 48px));
  margin-top: 12px;
  max-height: 380px;
  overflow-y: auto;
  background: rgba(255,255,255,.05) !important;
  border: 1.5px solid rgba(255,255,255,.08) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(12px) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(6,182,212,.3) transparent;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s .2s, transform .3s .2s;
}
.ph-search-overlay.open #searchData:not(:empty),
.ph-search-overlay.open .ph-search-results:not(:empty) {
  opacity: 1; transform: translateY(0);
}
#searchData .instant-results,
.instant-results { padding: 8px; }
#searchData .result-entry,
.result-entry {
  border-radius: 12px !important;
  padding: 10px !important;
  cursor: pointer;
  transition: background .2s;
}
#searchData .result-entry:hover,
.result-entry:hover { background: rgba(255,255,255,.07) !important; }
#searchData .result-link { padding: 4px !important; }
#searchData .prod-title,
.result-entry .prod-title,
.media-heading a {
  color: #fff !important;
  font-family: var(--ph-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
#searchData .media-object,
.result-entry img {
  width: 52px !important;
  height: 52px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
}
#searchData p { color: #06B6D4 !important; font-weight: 700 !important; font-size: 13px !important; margin: 4px 0 0 !important; }

/* Trending tags */
.ph-search-trending {
  width: min(760px, calc(100vw - 48px));
  margin-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s .25s, transform .35s .25s;
}
.ph-search-overlay.open .ph-search-trending { opacity: 1; transform: translateY(0); }
.ph-trending-title {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ph-trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ph-trending-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--ph-font);
  cursor: pointer;
  text-decoration: none !important;
  transition: var(--ph-T);
}
.ph-trending-tag:hover {
  background: rgba(6,182,212,.15);
  border-color: rgba(6,182,212,.4);
  color: #06B6D4;
  transform: translateY(-2px);
}
.ph-trending-tag i { font-size: 11px; opacity: .6; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION DRAWER
═══════════════════════════════════════════════════════════════════ */
.ph-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.ph-drawer-overlay.open { opacity: 1; pointer-events: all; }

.ph-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(320px, 90vw);
  background: var(--ph-primary);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.06);
}
.ph-drawer.open { transform: translateX(0); }

.ph-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.ph-drawer-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
}
.ph-drawer-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--ph-T-fast);
}
.ph-drawer-close:hover { background: rgba(244,63,94,.15); color: #f43f5e; }

.ph-drawer-search {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ph-drawer-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 10px 14px;
}
.ph-drawer-search-inner i { color: rgba(255,255,255,.4); font-size: 14px; }
.ph-drawer-search-inner input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #fff !important;
  font-size: 14px !important;
  font-family: var(--ph-font) !important;
  flex: 1;
  padding: 0 !important;
}
.ph-drawer-search-inner input::placeholder { color: rgba(255,255,255,.3) !important; }

.ph-drawer-nav {
  padding: 12px 12px;
  flex: 1;
}
.ph-drawer-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  padding: 8px 10px 4px;
  font-family: var(--ph-font);
}
.ph-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-decoration: none !important;
  transition: var(--ph-T-fast);
  font-family: var(--ph-font);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.ph-drawer-link:hover,
.ph-drawer-link.active {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.ph-drawer-link i {
  width: 20px;
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: 14px;
  transition: color .2s;
}
.ph-drawer-link:hover i { color: #06B6D4; }
.ph-drawer-link-arrow {
  margin-left: auto;
  font-size: 11px;
  opacity: .35;
}

.ph-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.ph-drawer-auth-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--ph-font);
  text-decoration: none !important;
  transition: var(--ph-T);
}
.ph-drawer-auth-btn.signin {
  background: linear-gradient(135deg, #06B6D4, #0891b2);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6,182,212,.3);
}
.ph-drawer-auth-btn.register {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
}
.ph-drawer-auth-btn:hover { transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE HEADER (top bar)
═══════════════════════════════════════════════════════════════════ */
.ph-mobile-header {
  display: none;
  height: var(--ph-h);
  background: var(--ph-primary);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 9990;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ph-mobile-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}
.ph-mobile-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   BOTTOM MOBILE NAV
═══════════════════════════════════════════════════════════════════ */
.ph-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 9985;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.ph-bottom-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.ph-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  color: rgba(255,255,255,.45);
  text-decoration: none !important;
  font-family: var(--ph-font);
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--ph-T-fast);
  position: relative;
  border-radius: 12px;
}
.ph-bnav-item.active,
.ph-bnav-item:hover { color: #06B6D4; }
.ph-bnav-item.active { background: rgba(6,182,212,.1); }
.ph-bnav-icon { font-size: 20px; line-height: 1; }
.ph-bnav-label { font-size: 10px; font-weight: 600; }
.ph-bnav-badge {
  position: absolute;
  top: 2px; right: 6px;
  width: 16px; height: 16px;
  background: #06B6D4;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(15,23,42,.97);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE HEADER SHOW/HIDE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .ph-desktop-header { display: none !important; }
  .ph-mobile-header { display: flex !important; }
  .ph-bottom-nav { display: block !important; }
  body { padding-bottom: 64px; }
}
@media (min-width: 992px) {
  .ph-desktop-header { display: flex !important; }
  .ph-mobile-header,
  .ph-bottom-nav { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION ENHANCEMENTS
═══════════════════════════════════════════════════════════════════ */
.ph-hero {
  position: relative;
  overflow: hidden;
  background: var(--ph-primary);
}

/* Floating orbs behind banner */
.ph-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.ph-hero-orb-1 {
  width: 600px; height: 600px;
  background: rgba(6,182,212,.15);
  top: -200px; right: -100px;
  animation: ph-hero-orb-pulse 6s ease-in-out infinite alternate;
}
.ph-hero-orb-2 {
  width: 500px; height: 500px;
  background: rgba(139,92,246,.12);
  bottom: -100px; left: -100px;
  animation: ph-hero-orb-pulse 8s ease-in-out infinite alternate-reverse;
}
@keyframes ph-hero-orb-pulse {
  from { transform: scale(1) translate(0,0); opacity: .8; }
  to   { transform: scale(1.2) translate(20px,-20px); opacity: 1; }
}

/* Banner slides get premium treatment */
.ph-hero .banner-slide,
.ph-hero .banner_js .slick-slide { position: relative; z-index: 1; }
.ph-hero .banner-slide img { border-radius: 0 !important; }

/* Floating label above hero */
.ph-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(6,182,212,.15);
  border: 1px solid rgba(6,182,212,.3);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #06B6D4;
  font-family: var(--ph-font);
  margin-bottom: 16px;
  animation: ph-float 3s ease-in-out infinite;
}
@keyframes ph-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-5px); }
}

/* CTA button magnetic hover styles */
.ph-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 14px;
  font-family: var(--ph-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  border: none;
  overflow: hidden;
  transition: box-shadow .3s, transform .15s;
}
.ph-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.1);
  opacity: 0;
  transition: opacity .25s;
}
.ph-cta-btn:hover::before { opacity: 1; }
.ph-cta-primary {
  background: linear-gradient(135deg, #06B6D4, #0891b2);
  color: #fff;
  box-shadow: 0 6px 24px rgba(6,182,212,.35);
}
.ph-cta-primary:hover {
  box-shadow: 0 12px 40px rgba(6,182,212,.55);
  color: #fff;
}
.ph-cta-secondary {
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
}
.ph-cta-secondary:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLL-TRIGGERED FADE-IN
═══════════════════════════════════════════════════════════════════ */
.ph-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.ph-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.ph-reveal-delay-1 { transition-delay: .1s !important; }
.ph-reveal-delay-2 { transition-delay: .2s !important; }
.ph-reveal-delay-3 { transition-delay: .3s !important; }
.ph-reveal-delay-4 { transition-delay: .4s !important; }
.ph-reveal-delay-5 { transition-delay: .5s !important; }

/* ═══════════════════════════════════════════════════════════════════
   PAGE TRANSITION OVERLAY
═══════════════════════════════════════════════════════════════════ */
.ph-page-transition {
  position: fixed;
  inset: 0;
  background: var(--ph-primary);
  z-index: 99998;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}
.ph-page-transition.exiting { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════════════════════════════════
   MICRO-INTERACTION UTILITIES
═══════════════════════════════════════════════════════════════════ */
/* Magnetic hover effect container */
.ph-magnetic { transition: transform .2s cubic-bezier(.4,0,.2,1); will-change: transform; }

/* Glow card on hover */
.ph-glow:hover {
  box-shadow: 0 0 0 1px rgba(6,182,212,.2), 0 24px 60px rgba(6,182,212,.1);
}

/* Ripple button */
.ph-ripple {
  position: relative;
  overflow: hidden;
}
.ph-ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  width: 100px; height: 100px;
  margin: -50px;
  animation: ph-ripple-anim .6s ease-out forwards;
  pointer-events: none;
}
@keyframes ph-ripple-anim {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(4); opacity: 0; }
}

/* ── Skeleton loaders ── */
.ph-skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,.05) 25%,
    rgba(255,255,255,.12) 50%,
    rgba(255,255,255,.05) 75%
  );
  background-size: 400% 100%;
  animation: ph-skeleton-wave 1.6s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes ph-skeleton-wave {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Smooth scroll on html ── */
html { scroll-behavior: smooth; }

/* ── Body padding for sticky header ── */
/* (no extra padding needed — header is sticky/fixed) */

/* ── Override old header elements ── */
.overlay { display: none !important; }
.announce-bar { display: none !important; }
.mainheader > *:not(.ph-header) { display: none !important; }
