/* ============================================================
   PARSHWA FASHION — V4 Slide Panel styles
   CSP-compliant: classes only, no inline styles needed.
   Mobile-first. Breakpoint: 768px (desktop).
   ============================================================ */

/* Trigger (hamburger) */
.pfsp-trigger {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10010;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: #1d1b22;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Overlay scrim */
.pfsp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 20, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
  z-index: 10020;
}
.pfsp-overlay.pfsp-open {
  opacity: 1;
  visibility: visible;
}

/* Panel */
.pfsp-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: #ffffff;
  z-index: 10030;
  transform: translateX(-105%);
  transition: transform .28s cubic-bezier(.32,.72,.35,1);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 30px rgba(0,0,0,.18);
  border-radius: 0 20px 20px 0;
  overflow: hidden;
}
.pfsp-panel.pfsp-open {
  transform: translateX(0);
}

/* Header */
.pfsp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px 14px 18px;
  background: linear-gradient(135deg, #FF3F72 0%, #FF7433 100%);
  color: #fff;
  flex-shrink: 0;
}
.pfsp-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .4px;
}
.pfsp-sub {
  font-size: 12px;
  opacity: .92;
  margin-top: 2px;
}
.pfsp-headbtns {
  display: flex;
  gap: 6px;
}
.pfsp-iconbtn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pfsp-iconbtn:active {
  background: rgba(255,255,255,.32);
}

/* Search (collapsed by default) */
.pfsp-searchwrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
  flex-shrink: 0;
  background: #faf8f4;
}
.pfsp-searchwrap.pfsp-open {
  max-height: 64px;
}
.pfsp-search {
  width: calc(100% - 28px);
  margin: 10px 14px;
  padding: 10px 14px;
  border: 1px solid #e5dfd2;
  border-radius: 999px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}
/* font-size 16px prevents iOS Safari auto-zoom on focus */
.pfsp-search:focus {
  border-color: #FF3F72;
}

/* List */
.pfsp-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 10px 20px;
}

.pfsp-group {
  border-bottom: 1px solid #f0ece2;
}
.pfsp-group:last-child {
  border-bottom: none;
}
.pfsp-ghead {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 8px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 700;
  color: #1d1b22;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.pfsp-gicon {
  font-size: 19px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.pfsp-glabel {
  flex: 1;
}
.pfsp-caret {
  color: #8e8b98;
  font-size: 13px;
}

.pfsp-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.pfsp-items.pfsp-open {
  max-height: 480px;
}
.pfsp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 12px 38px;
  font-size: 14px;
  color: #3a3742;
  text-decoration: none;
  border-radius: 10px;
  min-height: 44px;
  box-sizing: border-box;
}
/* 12px vertical padding + 14px text ≈ 44px touch target (iOS HIG) */
.pfsp-item:active {
  background: #f6f1e8;
}
.pfsp-iicon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.pfsp-ilabel {
  flex: 1;
}
.pfsp-lock {
  font-size: 13px;
  opacity: .7;
}

.pfsp-noresults {
  padding: 24px 16px;
  text-align: center;
  color: #8e8b98;
  font-size: 14px;
}
.pfsp-hidden {
  display: none !important;
}

/* Body lock while open */
.pfsp-locked {
  overflow: hidden;
}

/* Desktop */
@media (min-width: 768px) {
  .pfsp-panel {
    width: 360px;
    border-radius: 0 24px 24px 0;
  }
  .pfsp-ghead {
    font-size: 15.5px;
  }
  .pfsp-item:hover {
    background: #f6f1e8;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pfsp-panel, .pfsp-overlay, .pfsp-items, .pfsp-searchwrap {
    transition: none;
  }
}

/* ============================================================
   Migrated from build_site_v2.py inline <style> (2026-10-18 CSP hardening).
   ID-specific trigger positioning — was blocked by style-src 'self'.
   ============================================================ */
#pfsp-trigger {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  font-size: 22px;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
}
