/* =========================================================
   POPANDSMOKES — SMART SEARCH V1.3.1 SETTINGS INTEGRATION
   Fixes desktop result structure, spacing, price formatting
   display, and premium horizontal product result cards
========================================================= */

.pns-smart-search {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  z-index: 999;
  font-family: inherit;
}

.pns-smart-search,
.pns-smart-search * {
  box-sizing: border-box;
}

.pns-smart-search__form {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 58px;
  border: 3px solid #0073bd;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(0, 103, 178, 0.12);
}

.pns-smart-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 18px !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1 !important;
  color: #ffffff;
  background: #ffffff;
  box-shadow: none !important;
}

.pns-smart-search__input::placeholder {
  color: rgba(8, 36, 63, 0.42);
  font-weight: 600;
}

.pns-smart-search__clear {
  flex: 0 0 48px;
  width: 48px;
  height: 100%;
  border: 0 !important;
  background: #ffffff !important;
  color: #2d5f9d !important;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0 !important;
}

.pns-smart-search__clear[hidden] {
  display: none !important;
}

.pns-smart-search__button {
  flex: 0 0 78px;
  width: 78px;
  height: 100%;
  border: 0 !important;
  background: linear-gradient(135deg, #ff00c8 0%, #8a00ff 100%) !important;
  color: #ffffff !important;
  cursor: pointer;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pns-smart-search__icon {
  display: block;
  fill: currentColor;
}

.pns-smart-search__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 612px;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(145deg, #06233f 0%, #031426 55%, #020b15 100%);
  border: 1px solid rgba(22, 140, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 24px 65px rgba(0, 103, 178, 0.28);
  padding: 14px;
}

.pns-smart-search__panel[hidden] {
  display: none !important;
}

.pns-smart-search__status {
  color: rgba(255, 255, 255, 0.76);
  padding: 14px;
  font-weight: 700;
  text-align: center;
}

.pns-smart-search__results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pns-smart-search__item {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  margin: 0;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.pns-smart-search__item:hover,
.pns-smart-search__item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(22, 140, 255, 0.58);
  background: rgba(22, 140, 255, 0.12);
  outline: none;
}

.pns-smart-search__thumb {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.pns-smart-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pns-smart-search__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.pns-smart-search__title {
  display: block;
  width: 100%;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.18;
  margin: 0 0 5px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.pns-smart-search__row {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.pns-smart-search__meta {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 5px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.pns-smart-search__price {
  display: block;
  width: 100%;
  flex: none;
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  color: #ff00c8;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  text-align: left;
}

.pns-smart-search__view-all {
  display: block;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff00c8 0%, #8a00ff 100%);
  color: #ffffff !important;
  text-align: center;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.pns-smart-search__view-all[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .pns-smart-search {
    max-width: calc(100vw - 48px);
  }

  .pns-smart-search__form {
    height: 56px;
  }

  .pns-smart-search__input {
    font-size: 16px;
    padding: 0 14px !important;
  }

  .pns-smart-search__button {
    flex-basis: 58px;
    width: 58px;
  }

  .pns-smart-search__panel {
    position: fixed;
    top: 155px;
    left: 18px;
    right: 18px;
    width: auto;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
  }
}


/* V1.2.0 Desktop Layout Stack Fix */
.pns-smart-search__content{gap:4px;}
.pns-smart-search__title{white-space:normal;overflow:visible;text-overflow:unset;margin:0;}
.pns-smart-search__row{display:none!important;}
.pns-smart-search__meta{display:block!important;width:100%!important;max-width:none!important;color:rgba(255,255,255,.70);}
.pns-smart-search__price{display:block!important;width:100%!important;max-width:none!important;color:#ff00c8;font-size:16px;font-weight:900;}

.pns-smart-search__content{gap:4px}
.pns-smart-search__title{white-space:normal;overflow:visible;text-overflow:unset;margin:0}
.pns-smart-search__meta,.pns-smart-search__brandtag,.pns-smart-search__price{width:100%;text-align:left;max-width:none}
.pns-smart-search__brandtag{color:#00c8ff;font-size:12px;font-weight:700;line-height:1.25}
.pns-smart-search__price{align-self:flex-start}

/* =========================================================
   POPANDSMOKES SMART SEARCH V1.4.1 — MOBILE UX RELEASE
   Mobile-only interaction fixes. Desktop search remains untouched.
========================================================= */

@media (max-width: 768px) {
  body.pns-smart-search-mobile-open,
  html.pns-smart-search-mobile-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .pns-smart-search.pns-smart-search--mobile-active {
    z-index: 999999;
  }

  .pns-smart-search .pns-smart-search__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(68dvh, calc(100dvh - 150px), 560px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 12px calc(44px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(44px + env(safe-area-inset-bottom));
  }

  .pns-smart-search .pns-smart-search__view-all {
    margin-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .pns-smart-search .pns-smart-search__form {
    position: relative;
    z-index: 2;
  }
}


/* =========================================================
   POPANDSMOKES SMART SEARCH V1.4.1 — MOBILE BOTTOM FIX
   Adds bottom safe area so View All Results is fully reachable.
========================================================= */


/* =========================================================
   POPANDSMOKES SMART SEARCH V1.4.2 — MOBILE SCROLL + CLEAR FIX
   Built from v1.4.1. Keeps mobile results below search, preserves
   internal result scrolling, allows page scroll after results bottom,
   and removes the native browser search clear button.
========================================================= */

.pns-smart-search__input::-webkit-search-decoration,
.pns-smart-search__input::-webkit-search-cancel-button,
.pns-smart-search__input::-webkit-search-results-button,
.pns-smart-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.pns-smart-search__input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 768px) {
  body.pns-smart-search-mobile-at-bottom,
  html.pns-smart-search-mobile-at-bottom {
    overflow: auto !important;
    touch-action: auto !important;
  }

  .pns-smart-search .pns-smart-search__panel {
    overscroll-behavior-y: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .pns-smart-search .pns-smart-search__view-all {
    margin-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   POPANDSMOKES SMART SEARCH V1.4.4 - MOBILE NATURAL FLOW FIX
   Removes the fixed-height internal mobile panel that caused
   blank space under the View All button. Mobile results now
   sit below the search bar and scroll with the page naturally.
========================================================= */

@media (max-width: 768px) {
  body.pns-smart-search-mobile-open,
  html.pns-smart-search-mobile-open,
  body.pns-smart-search-mobile-at-bottom,
  html.pns-smart-search-mobile-at-bottom {
    overflow: auto !important;
    touch-action: auto !important;
  }

  .pns-smart-search.pns-smart-search--mobile-active {
    z-index: 50;
  }

  .pns-smart-search .pns-smart-search__panel {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 10px !important;
    padding: 12px !important;
    scroll-padding-bottom: 0 !important;
  }

  .pns-smart-search .pns-smart-search__view-all {
    margin-bottom: 0 !important;
  }
}


/* =========================================================
   POPANDSMOKES SMART SEARCH V1.4.5 - MOBILE OVERLAY FLOW
   Restores the mobile results as an overlay under the search bar,
   keeps the panel internally scrollable, and lets page scrolling
   continue naturally once the results panel reaches the bottom.
========================================================= */

@media (max-width: 768px) {
  body.pns-smart-search-mobile-open,
  html.pns-smart-search-mobile-open,
  body.pns-smart-search-mobile-at-bottom,
  html.pns-smart-search-mobile-at-bottom {
    overflow: auto !important;
    touch-action: auto !important;
  }

  .pns-smart-search.pns-smart-search--mobile-active {
    z-index: 999999 !important;
  }

  .pns-smart-search .pns-smart-search__form {
    position: relative !important;
    z-index: 2 !important;
  }

  .pns-smart-search .pns-smart-search__panel {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: min(70dvh, calc(100dvh - 170px), 560px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: auto !important;
    margin-top: 0 !important;
    padding: 12px !important;
    scroll-padding-bottom: 0 !important;
  }

  .pns-smart-search .pns-smart-search__view-all {
    margin: 12px 0 0 !important;
  }
}


/* =========================================================
   PARADOSE SMART SEARCH v1.0.0 - FINAL THEME OVERRIDES
   ========================================================= */
.pns-smart-search {
  --paradose-pink: #ff00c8;
  --paradose-purple: #8a00ff;
  --paradose-cyan: #00c8ff;
  --paradose-black: #000000;
  --paradose-panel: rgba(7, 7, 10, 0.98);
  font-family: "Obvia Book", "Obvia", Arial, sans-serif !important;
}

.pns-smart-search__form {
  background: rgba(0,0,0,.72) !important;
  border: 1px solid var(--paradose-cyan) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 14px rgba(0,200,255,.05), 0 0 18px rgba(0,200,255,.10) !important;
  overflow: hidden !important;
}

.pns-smart-search__input {
  background: transparent !important;
  color: #fff !important;
  font-family: "Obvia Book", "Obvia", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: .5px !important;
}
.pns-smart-search__input::placeholder { color: rgba(255,255,255,.55) !important; }
.pns-smart-search__form:focus-within {
  border-color: var(--paradose-pink) !important;
  box-shadow: 0 0 10px rgba(255,0,200,.30), 0 0 20px rgba(138,0,255,.14) !important;
}

.pns-smart-search__button {
  background: linear-gradient(90deg,var(--paradose-pink),var(--paradose-purple)) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 11px 11px 0 !important;
  box-shadow: 0 0 12px rgba(255,0,200,.28) !important;
}
.pns-smart-search__button:hover { filter: brightness(1.08); }
.pns-smart-search__button svg { fill: currentColor !important; color: #fff !important; }

.pns-smart-search__clear {
  color: rgba(255,255,255,.72) !important;
  background: transparent !important;
}
.pns-smart-search__clear:hover { color: var(--paradose-pink) !important; }

.pns-smart-search__panel {
  background: var(--paradose-panel) !important;
  border: 1px solid rgba(0,200,255,.65) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.58), 0 0 20px rgba(0,200,255,.10) !important;
  color: #fff !important;
}
.pns-smart-search__status { color: rgba(255,255,255,.68) !important; }

.pns-smart-search__item {
  background: transparent !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 10px !important;
}
.pns-smart-search__item:hover,
.pns-smart-search__item:focus-visible {
  background: linear-gradient(90deg,rgba(255,0,200,.12),rgba(0,200,255,.06)) !important;
  outline: 1px solid rgba(255,0,200,.45) !important;
}
.pns-smart-search__thumb {
  background: #050507 !important;
  border: 1px solid rgba(0,200,255,.40) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
.pns-smart-search__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
.pns-smart-search__title {
  color: #fff !important;
  font-family: "Obvia Book", "Obvia", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: .3px !important;
}
.pns-smart-search__meta,
.pns-smart-search__brandtag { color: rgba(255,255,255,.62) !important; }
.pns-smart-search__price {
  color: var(--paradose-cyan) !important;
  font-weight: 700 !important;
}
.pns-smart-search__view-all {
  background: linear-gradient(90deg,var(--paradose-pink),var(--paradose-purple)) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-family: "Obvia Book", "Obvia", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: .8px !important;
  box-shadow: 0 0 10px rgba(255,0,200,.30), 0 0 20px rgba(138,0,255,.14) !important;
}
.pns-smart-search__view-all:hover { filter: brightness(1.08); }

@media (max-width: 768px) {
  .pns-smart-search__form { min-height: 48px !important; }
  .pns-smart-search__input { font-size: 16px !important; }
  .pns-smart-search__panel {
    border-radius: 12px !important;
    background: rgba(5,5,7,.99) !important;
  }
}


/* =========================================================
   PARADOSE SMART SEARCH v1.0.1 - RESULTS VIEWPORT FIX
   Keeps the results panel fully reachable on shorter screens.
========================================================= */

.pns-smart-search .pns-smart-search__panel {
  max-height: min(60vh, 560px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable;
  padding-bottom: 14px !important;
}

.pns-smart-search .pns-smart-search__view-all {
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .pns-smart-search .pns-smart-search__panel {
    max-height: min(52vh, 460px) !important;
    -webkit-overflow-scrolling: touch !important;
  }
}


/* =========================================================
   PARADOSE SMART SEARCH v1.0.2 - GLOBAL HEADER SEARCH OVERLAY
========================================================= */
html.paradose-global-search-open,
body.paradose-global-search-open {
  overflow: hidden !important;
}

.paradose-global-search[hidden] {
  display: none !important;
}

.paradose-global-search {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 92px 24px 24px;
}

.paradose-global-search__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  cursor: default;
}

.paradose-global-search__dialog {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100vw - 48px));
  padding: 46px 20px 20px;
  border: 1px solid rgba(0, 200, 255, 0.55);
  border-radius: 16px;
  background: rgba(4, 4, 7, 0.98);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(0, 200, 255, 0.10),
    0 0 28px rgba(255, 0, 200, 0.08);
}

.paradose-global-search__close {
  position: absolute;
  top: 10px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.paradose-global-search__close:hover {
  color: #ff00c8;
  transform: scale(1.05);
}

.paradose-global-search__inner .pns-smart-search {
  width: 100%;
  max-width: none;
  margin: 0;
}

.paradose-global-search__inner .pns-smart-search__panel {
  position: static !important;
  width: 100% !important;
  margin-top: 10px !important;
  max-height: min(58vh, 520px) !important;
}

@media (max-width: 768px) {
  .paradose-global-search {
    padding: 78px 12px 18px;
  }

  .paradose-global-search__dialog {
    width: calc(100vw - 24px);
    padding: 42px 12px 12px;
    border-radius: 14px;
  }

  .paradose-global-search__inner .pns-smart-search__panel {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    max-height: min(55vh, 460px) !important;
    margin-top: 10px !important;
  }
}


/* =========================================================
   PARADOSE SMART SEARCH v1.0.4 - PREMIUM LOADING STATE
   ========================================================= */
.pns-smart-search__panel.is-loading,
.pns-smart-search.is-loading .pns-smart-search__panel {
  position: relative !important;
  min-height: 120px !important;
}

.pns-smart-search__panel.is-loading::before,
.pns-smart-search.is-loading .pns-smart-search__panel::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(5, 5, 8, 0.82) !important;
  border-radius: inherit !important;
  z-index: 20 !important;
  pointer-events: none !important;
}

.pns-smart-search__panel.is-loading::after,
.pns-smart-search.is-loading .pns-smart-search__panel::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 34px !important;
  height: 34px !important;
  margin: -17px 0 0 -17px !important;
  border: 3px solid rgba(0, 200, 255, 0.24) !important;
  border-top-color: #ff00c8 !important;
  border-right-color: #8a00ff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 14px rgba(255, 0, 200, 0.18), 0 0 14px rgba(0, 200, 255, 0.10) !important;
  animation: paradoseSmartSearchSpin .7s linear infinite !important;
  z-index: 21 !important;
  pointer-events: none !important;
}

.pns-smart-search.is-loading .pns-smart-search__status {
  visibility: hidden !important;
}

@keyframes paradoseSmartSearchSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pns-smart-search__panel.is-loading::after,
  .pns-smart-search.is-loading .pns-smart-search__panel::after {
    animation-duration: 1.5s !important;
  }
}
