.pik-category-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-left: 24px;
  padding: 0 20px;
  border: 2px solid #8b5cf6;
  border-radius: 999px;
  background: #ffffff;
  color: #5b36d6;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(113, 47, 223, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.pik-category-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #6a3df0;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.pik-category-trigger__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pik-category-trigger:hover {
  transform: translateY(-1px);
  background: #f7f2ff;
  box-shadow: 0 10px 22px rgba(113, 47, 223, 0.14);
}

.pik-category-trigger:hover .pik-category-trigger__icon,
.pik-category-trigger:hover .pik-category-trigger__chevron {
  color: #6a3df0;
}

.pik-category-trigger.is-open,
body.pik-category-mega-open .pik-category-trigger {
  background: #f7f2ff;
}

.pik-category-trigger.is-open .pik-category-trigger__chevron svg,
body.pik-category-mega-open .pik-category-trigger__chevron svg {
  transform: rotate(180deg);
}

.pik-category-trigger__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #6a3df0;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.pik-category-trigger__chevron svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pik-category-trigger.is-open .pik-category-trigger__chevron svg,
body.pik-category-mega-open .pik-category-trigger__chevron svg {
  transform: rotate(180deg);
}

.pik-category-trigger__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #712fdf;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.pik-category-trigger__chevron svg {
  display: block;
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

.pik-header-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: clamp(420px, 34vw, 560px);
  min-width: 420px;
  max-width: 560px;
  height: 46px;
  margin-left: 18px;
  overflow: hidden;
  border: 1px solid rgba(113, 47, 223, 0.2);
  border-radius: 999px;
  background: #ffffff;
  font-family: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 20px rgba(3, 17, 83, 0.07);
  transition: none;
}

.pik-header-search:focus-within {
  border-color: rgba(113, 47, 223, 0.66);
  box-shadow:
    0 0 0 3px rgba(113, 47, 223, 0.1),
    0 12px 24px rgba(3, 17, 83, 0.1);
}

.pik-header-search__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  color: #5d6685;
}

.pik-header-search__icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.pik-header-search__input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 8px 0 0;
  border: 0 !important;
  outline: 0;
  color: #031153;
  background: transparent !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none !important;
}

.pik-header-search__input::placeholder {
  color: #77809d;
  opacity: 1;
}

.pik-header-search-mode {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  padding: 0 8px 0 6px;
}

.pik-header-search-mode__select {
  width: 128px;
  min-width: 128px;
  height: 30px;
  padding: 0 34px 0 13px;
  border: 1px solid rgba(113, 47, 223, 0.18);
  border-radius: 999px;
  color: #4727dc;
  background: rgba(247, 242, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.pik-header-search-mode__select:focus-visible {
  outline: 2px solid rgba(20, 155, 255, 0.34);
  outline-offset: 2px;
}

.pik-category-mega {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  font-family: inherit;
  pointer-events: none;
}

.pik-category-mega.is-open {
  display: block;
  pointer-events: auto;
}

.pik-category-mega__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 17, 83, 0.14);
}

.pik-category-mega__panel {
  position: absolute;
  top: var(--pik-category-panel-top, 82px);
  left: 50%;
  width: min(90vw, 1240px);
  max-height: calc(100vh - var(--pik-category-panel-top, 82px) - 42px);
  transform: translateX(-50%) translateY(-10px);
  overflow: hidden;
  border: 1px solid rgba(113, 47, 223, 0.13);
  border-top: 3px solid transparent;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #149bff, #712fdf, #ff5d7d) border-box;
  box-shadow: 0 24px 52px rgba(3, 17, 83, 0.16);
  opacity: 0;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.pik-category-mega.is-open .pik-category-mega__panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pik-category-mega__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 312px) minmax(0, 1fr);
  min-height: 360px;
  background:
    radial-gradient(
      circle at -3% 112%,
      rgba(255, 93, 125, 0.18) 0 72px,
      transparent 74px
    ),
    radial-gradient(
      circle at -2% 94%,
      rgba(113, 47, 223, 0.1) 0 52px,
      transparent 54px
    ),
    radial-gradient(
      circle at 96% 86%,
      rgba(113, 47, 223, 0.08) 0 2px,
      transparent 3px
    ),
    #ffffff;
}

.pik-category-mega__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  padding: 38px 34px;
  border-right: 1px solid rgba(113, 47, 223, 0.24);
}

.pik-category-mega__intro::before,
.pik-category-mega__intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pik-category-mega__intro::before {
  z-index: 0;
  top: 24px;
  left: 26px;
  width: 68px;
  height: 50px;
  background-image: radial-gradient(
    rgba(113, 47, 223, 0.12) 2px,
    transparent 2px
  );
  background-size: 12px 12px;
}

.pik-category-mega__intro::after {
  z-index: 0;
  left: -112px;
  bottom: -118px;
  width: 212px;
  height: 212px;
  border: 44px solid rgba(255, 93, 125, 0.22);
  border-radius: 50%;
}

.pik-category-mega__eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 11px;
  color: #712fdf;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pik-category-mega__intro h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  color: #031153;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
}

.pik-category-mega__rule {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 3px;
  margin: 18px 0 17px;
  background: linear-gradient(90deg, #ff4eb0, #712fdf, #149bff);
}

.pik-category-mega__intro p {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin: 0 0 24px;
  padding: 0;
  color: #4f5877;
  font-size: 14px;
  line-height: 1.58;
}

.pik-category-mega__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 6px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #4736f4, #712fdf 48%, #ec4fb4);
  box-shadow: 0 12px 26px rgba(113, 47, 223, 0.2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pik-category-mega__content {
  position: relative;
  min-width: 0;
  padding: 24px 32px 28px;
}

.pik-category-mega__close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #031153;
  background: rgba(113, 47, 223, 0.07);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.pik-category-mega__close:hover {
  color: #712fdf;
  background: rgba(113, 47, 223, 0.12);
  transform: translateY(-1px);
}

.pik-category-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  align-items: center;
  padding-right: 42px;
}

.pik-category-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(113, 47, 223, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pik-category-search svg {
  width: 18px;
  height: 18px;
  margin-left: 16px;
  color: #5d6685;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.pik-category-search__input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 0 !important;
  outline: 0;
  color: #031153;
  background: transparent !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
}

.pik-category-search-mode {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  padding: 0 6px 0 8px;
}

.pik-category-search-mode__select {
  min-width: 104px;
  height: 30px;
  padding: 0 26px 0 10px;
  border: 1px solid rgba(113, 47, 223, 0.18);
  border-radius: 999px;
  color: #4727dc;
  background: rgba(247, 242, 255, 0.84);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.pik-category-search-mode__select:focus-visible {
  outline: 2px solid rgba(20, 155, 255, 0.34);
  outline-offset: 2px;
}

.pik-category-search:focus-within {
  border-color: rgba(113, 47, 223, 0.66);
  box-shadow: 0 0 0 3px rgba(113, 47, 223, 0.1);
}

.pik-category-sort {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4f5877;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pik-category-sort__select {
  min-width: 96px;
  height: 36px;
  padding: 0 30px 0 11px;
  border: 1px solid rgba(113, 47, 223, 0.18);
  border-radius: 8px;
  color: #4727dc;
  background: #ffffff;
  font-weight: 800;
}

.pik-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(113, 47, 223, 0.2);
}

.pik-category-filter {
  min-width: 68px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(113, 47, 223, 0.16);
  border-radius: 8px;
  color: #4f5877;
  background: #ffffff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pik-category-filter:hover,
.pik-category-filter.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #4736f4, #712fdf);
  box-shadow: 0 8px 18px rgba(113, 47, 223, 0.16);
}

.pik-piks-filters {
  margin: 14px 42px 14px 0;
  padding: 12px;
  border: 1px solid rgba(113, 47, 223, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 242, 255, 0.92), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pik-piks-filters[hidden] {
  display: none !important;
}

.pik-piks-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pik-piks-filters__title {
  color: #031153;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.pik-piks-filters__reset {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(113, 47, 223, 0.18);
  border-radius: 999px;
  color: #4727dc;
  background: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.pik-piks-filters__reset:hover {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #4736f4, #712fdf);
}

.pik-piks-filters__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr minmax(150px, 0.86fr);
  gap: 8px;
}

.pik-piks-filters__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pik-piks-filters__group > span:first-child {
  color: #4f5877;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

.pik-piks-filters__range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
}

.pik-piks-filters input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(113, 47, 223, 0.16);
  border-radius: 8px;
  color: #031153;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.pik-piks-filters input::placeholder {
  color: #77809d;
  opacity: 1;
}

.pik-piks-filters input:focus {
  border-color: rgba(113, 47, 223, 0.58);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(113, 47, 223, 0.1);
}

.pik-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 10px;
  max-height: 236px;
  overflow: auto;
  padding-right: 8px;
}

.pik-category-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #031153 !important;
  transition: background 0.16s ease;
}

.pik-category-card:hover {
  background: rgba(113, 47, 223, 0.06);
}

.pik-category-card[hidden] {
  display: none !important;
}

.pik-category-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #4d35f5;
  background: linear-gradient(
    145deg,
    rgba(113, 47, 223, 0.13),
    rgba(113, 47, 223, 0.05)
  );
}

.pik-category-card__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pik-category-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pik-category-card__title {
  overflow: hidden;
  color: #031153;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pik-category-card__desc {
  display: -webkit-box;
  overflow: hidden;
  max-width: 22rem;
  margin-top: 3px;
  color: #66708f;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pik-category-card__arrow {
  color: #6d66a1;
  font-size: 24px;
  line-height: 1;
}

.pik-category-card:hover .pik-category-card__arrow,
.pik-category-card:hover .pik-category-card__icon {
  color: #712fdf;
}

.pik-category-empty {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 8px;
  color: #4f5877;
  background: rgba(113, 47, 223, 0.06);
  font-weight: 700;
}

.pik-category-trigger:focus-visible,
.pik-header-search:focus-within,
.pik-category-mega__close:focus-visible,
.pik-category-filter:focus-visible,
.pik-piks-filters__reset:focus-visible,
.pik-category-sort__select:focus-visible,
.pik-category-card:focus-visible,
.pik-category-mega__cta:focus-visible {
  outline: 3px solid rgba(20, 155, 255, 0.34);
  outline-offset: 3px;
}

@media only screen and (max-width: 1220px) {
  .pik-header-search {
    width: 420px;
    min-width: 420px;
    max-width: 420px;
    margin-left: 14px;
  }

  .pik-header-search-mode__select {
    width: 122px;
    min-width: 122px;
  }

  .pik-category-trigger {
    margin-left: 16px;
    padding: 0 18px;
    min-height: 46px;
    font-size: 14px;
  }

  .pik-category-trigger__text {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pik-category-trigger__icon {
    width: 22px;
    height: 22px;
  }

  .pik-category-trigger__icon svg {
    width: 22px;
    height: 22px;
  }

  .pik-category-trigger__chevron {
    width: 16px;
    height: 16px;
  }

  .pik-category-mega__inner {
    grid-template-columns: 268px minmax(0, 1fr);
  }

  .pik-category-mega__intro {
    padding: 34px 28px;
  }

  .pik-category-mega__intro h2 {
    font-size: 27px;
  }

  .pik-category-mega__intro p {
    max-width: 236px;
    font-size: 13px;
  }

  .pik-category-mega__content {
    padding: 22px 26px 26px;
  }

  .pik-category-toolbar {
    padding-right: 40px;
  }

  .pik-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 292px;
  }

  .pik-piks-filters {
    margin-right: 40px;
  }

  .pik-piks-filters__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 1100px) {
  .pik-header-search {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    height: 44px;
    margin-left: 12px;
  }

  .pik-header-search__icon {
    width: 36px;
  }

  .pik-header-search__input {
    height: 42px;
    font-size: 13px;
  }

  .pik-header-search-mode {
    padding-right: 6px;
  }

  .pik-header-search-mode__select {
    width: 116px;
    min-width: 116px;
    padding-left: 11px;
    padding-right: 30px;
    font-size: 11px;
  }
}

@media only screen and (max-width: 980px) {
  .pik-header-search,
  .pik-category-trigger,
  .pik-category-mega {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pik-header-search,
  .pik-category-trigger,
  .pik-category-mega__panel,
  .pik-category-card {
    transition: none !important;
  }
}
