.pack {
  padding: 1.5rem 0 7.5rem;
}

.pack__hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 960px) {
  .pack__hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.9fr);
    align-items: start;
  }
}

.pack__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.pack__kicker svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--brand-light);
}

.pack__kicker h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pack__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pack__live::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 99px;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.pack__lead {
  max-width: 36rem;
  margin: 0 0 1rem;
  color: #d4d4d8;
  font-size: 1.05rem;
  line-height: 1.55;
}

.pack__lead strong {
  color: #fff;
}

.pack__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: #a1a1aa;
  font-size: 0.82rem;
}

.pack__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pack__trust svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--brand-light);
}

.pack__steps {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pack__steps li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #e4e4e7;
  font-size: 0.92rem;
}

.pack__steps span {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(var(--brand-rgb), 0.16);
  color: var(--brand-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.pack__tray {
  padding: 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(var(--brand-rgb), 0.28);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--brand-rgb), 0.18), transparent 52%),
    rgba(10, 12, 18, 0.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.pack__tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: #a1a1aa;
  font-size: 0.8rem;
}

.pack__tray-head strong {
  color: #fff;
  font-size: 1rem;
}

.pack__slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.pack-slot {
  aspect-ratio: 3 / 4;
  border-radius: 0.7rem;
  border: 1px dashed rgba(var(--brand-rgb), 0.28);
  background: rgba(var(--brand-rgb), 0.05);
  overflow: hidden;
  position: relative;
}

.pack-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-slot > span {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(8, 10, 16, 0.78);
  color: var(--brand-soft);
  font-size: 0.65rem;
  font-weight: 800;
}

.pack-slot:not(.is-empty) {
  border-style: solid;
  border-color: rgba(var(--brand-rgb), 0.55);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.2);
}

.pack-slot.is-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #64748b;
}

.pack-slot.is-empty span {
  position: static;
  min-width: 1.55rem;
  height: 1.55rem;
  background: rgba(var(--brand-rgb), 0.14);
  color: var(--brand-soft);
  font-size: 0.78rem;
}

.pack-slot.is-empty small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.pack__tray-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.7rem;
  margin-top: 0.85rem;
}

.pack__old {
  color: #71717a;
  text-decoration: line-through;
  font-size: 0.85rem;
}

.pack__off {
  display: inline-flex;
  align-items: center;
  height: 1.35rem;
  padding: 0 0.45rem;
  border-radius: 99px;
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
  font-size: 0.7rem;
  font-weight: 800;
}

.pack__tray-total strong {
  margin-left: auto;
  font-size: 1.15rem;
}

.pack__search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 3rem;
  padding: 0 1rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 14, 0.9);
}

.pack__search:focus-within {
  border-color: rgba(var(--brand-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12);
}

.pack__search svg {
  width: 1.05rem;
  height: 1.05rem;
  color: #8b93a4;
}

.pack__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  color: #fff;
}

.pack__chips {
  display: flex;
  gap: 0.45rem;
  overflow: auto;
  margin-top: 0.9rem;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.pack__chips::-webkit-scrollbar {
  display: none;
}

.pack__chips button {
  flex-shrink: 0;
  height: 2rem;
  padding: 0 0.85rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #d4d4d8;
  font-size: 0.8rem;
}

.pack__chips button.is-on {
  background: rgba(var(--brand-rgb), 0.16);
  border-color: rgba(var(--brand-rgb), 0.4);
  color: #fff;
}

.pack__title {
  margin: 1.4rem 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.pack__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .pack__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .pack__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}

.pack-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b0d;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pack-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.pack-card.is-on {
  border-color: #34d399;
  box-shadow:
    0 0 0 1px #34d399,
    0 14px 32px rgba(52, 211, 153, 0.18);
}

.pack-card.is-out {
  opacity: 0.55;
  cursor: default;
}

.pack-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.pack-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pack-card:hover .pack-card__media img {
  transform: scale(1.04);
}

.pack-card__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(6, 6, 8, 0.97) 0%,
    rgba(6, 6, 8, 0.92) 22%,
    rgba(6, 6, 8, 0.55) 40%,
    rgba(6, 6, 8, 0) 62%
  );
}

.pack-card__mark {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  display: none;
  align-items: center;
  height: 1.35rem;
  padding: 0 0.5rem;
  border-radius: 99px;
  background: #34d399;
  color: #05261a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pack-card.is-on .pack-card__mark {
  display: inline-flex;
}

.pack-card__out {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.pack-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.75rem 3.6rem 0.85rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.pack-card__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pack-card__price {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.pack-card__pix {
  margin: 0;
  color: #8b919b;
  font-size: 0.68rem;
}

.pack-card__add {
  position: absolute;
  right: 0.65rem;
  bottom: 0.75rem;
  z-index: 3;
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.7rem;
  background: var(--brand);
  color: #111;
  box-shadow: 0 6px 18px rgba(var(--brand-rgb), 0.35);
}

.pack-card.is-on .pack-card__add {
  background: #34d399;
  color: #05261a;
}

.pack-card__add svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (max-width: 640px) {
  .pack-card__body {
    padding: 0.6rem 3.1rem 0.7rem 0.65rem;
  }

  .pack-card__name {
    font-size: 0.8rem;
  }

  .pack-card__price {
    font-size: 1rem;
  }

  .pack-card__add {
    right: 0.5rem;
    bottom: 0.6rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.6rem;
  }
}

.pack-card.is-out .pack-card__add {
  display: none;
}

.pack__empty {
  margin: 1.5rem 0 0;
  color: #a1a1aa;
}

.pack-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.75rem 1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78) 30%);
}

.pack-dock__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(var(--brand-rgb), 0.28);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(var(--brand-rgb), 0.14), transparent 46%),
    #0a0a0c;
}

.pack-dock__copy {
  flex: 1;
  min-width: 0;
}

.pack-dock__copy p {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.pack-dock__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pack-dock__bar {
  flex: 1;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 99px;
  background: #27272a;
}

.pack-dock__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, var(--brand-light));
  transition: width 0.28s ease;
}

#pack-dock-meta {
  color: #a1a1aa;
  font-size: 0.75rem;
  white-space: nowrap;
}

.pack-dock__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.6rem;
  padding: 0 1rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pack-dock__btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

.pack-dock__btn:not(:disabled) {
  background: var(--brand);
  border-color: var(--brand);
  color: #111;
}

.pack-toast {
  position: fixed;
  left: 50%;
  bottom: 6.5rem;
  z-index: 40;
  transform: translateX(-50%);
  padding: 0.55rem 0.9rem;
  border-radius: 99px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
}
