/* =========================================================
   All Products page. Uses the shared banner styles from about.css;
   rules below are scoped under .ap-main.
   ========================================================= */
.ap-main .ap-hero {
  padding-bottom: clamp(40px, 5.5vw, 64px)
}

.ap-main .ap-hero__sub {
  color: #D5E0F5;
  max-width: 56ch;
  margin-top: 12px;
  font-size: clamp(14px, 1.2vw, 16.5px)
}

.ap-main .ap-body {
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px)
}

/* ---------- Sticky toolbar ---------- */
.ap-main .ap-bar {
  position: sticky;
  top: 70px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: var(--rad);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  box-shadow: var(--sh), inset 0 0 0 1px var(--line);
  transition: top .35s var(--ease)
}

.ap-main .ap-bar.hdr-off {
  top: 12px
}

.ap-main .ap-chips {
  flex: 1 1 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0
}

.ap-main .ap-chips::-webkit-scrollbar {
  display: none
}

.ap-main .ap-chips button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: 600 13px/1.2 var(--font);
  color: var(--mut);
  cursor: pointer;
  transition: background .25s, color .25s
}

.ap-main .ap-chips button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--soft);
  font-size: 11px
}

.ap-main .ap-chips button:hover {
  background: var(--soft);
  color: var(--ink)
}

.ap-main .ap-chips button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff
}

.ap-main .ap-chips button[aria-pressed="true"] span {
  background: rgba(255, 255, 255, .18);
  color: #fff
}

.ap-main .ap-search {
  flex: 0 0 230px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line)
}

.ap-main .ap-search:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--blue)
}

.ap-main .ap-search svg {
  width: 16px;
  height: 16px;
  color: var(--faint);
  flex: none
}

.ap-main .ap-search input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font: 500 13.5px var(--font);
  color: var(--ink)
}

.ap-main .ap-subs {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 2px 0;
  border-top: 1px solid var(--line);
  animation: apSub .3s var(--ease) both
}

.ap-main .ap-subs[hidden] {
  display: none
}

.ap-main .ap-subs::-webkit-scrollbar {
  display: none
}

@keyframes apSub {
  from {
    opacity: 0;
    transform: translateY(-4px)
  }
}

.ap-main .ap-subs__lbl {
  flex: none;
  padding: 0 6px 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint)
}

.ap-main .ap-subs button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 99px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 12.5px/1.2 var(--font);
  color: var(--mut);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s
}

.ap-main .ap-subs button span {
  font-size: 11px;
  color: var(--faint)
}

.ap-main .ap-subs button:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line2)
}

.ap-main .ap-subs button[aria-pressed="true"] {
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--blue);
  font-weight: 600
}

.ap-main .ap-subs button[aria-pressed="true"] span {
  color: var(--blue)
}

.ap-main .ap-card {
  scroll-margin-top: 170px
}

.ap-main .ap-card.is-focus {
  animation: apFocus 3.2s var(--ease)
}

@keyframes apFocus {

  0%,
  70% {
    box-shadow: 0 0 0 3px var(--amber), var(--sh-lg);
    transform: translateY(-5px)
  }

  100% {
    box-shadow: 0 0 0 1px var(--line);
    transform: none
  }
}

.ap-main .ap-count {
  margin: 16px 2px 0 !important;
  font-size: 13px;
  color: var(--mut)
}

.ap-main .ap-count b {
  color: var(--ink)
}

/* ---------- Groups ---------- */
.ap-main .ap-group {
  padding: 0;
  margin-top: clamp(28px, 3.6vw, 44px);
  scroll-margin-top: 150px
}

.ap-main .ap-group.is-hidden,
.ap-main .ap-card.is-hidden {
  display: none
}

.ap-main .ap-group__head {
  display: flex;
  align-items: baseline;
  gap: 6px 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line2)
}

.ap-main .ap-group__head h2 {
  font-size: clamp(19px, 1.9vw, 23px) !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px
}

.ap-main .ap-group__head h2 span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--mut)
}

.ap-main .ap-group__head p {
  font-size: 14px;
  color: var(--mut)
}

/* ---------- Grid + card ---------- */
.ap-main .ap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.ap-main .ap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--rad);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s
}

.ap-main .ap-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--line)
}

.ap-main .ap-card__img {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden
}

.ap-main .ap-card__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease)
}

.ap-main .ap-card:hover .ap-card__img img {
  transform: scale(1.06)
}

.ap-main .ap-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px
}

.ap-main .ap-tag {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em
}

.ap-main .ap-card[data-cat="rental"] .ap-tag {
  background: var(--amber-soft);
  color: #B4730C
}

.ap-main .ap-card[data-cat="novastar"] .ap-tag {
  background: #EDE9FE;
  color: #6D28D9
}

.ap-main .ap-card[data-cat="accessories"] .ap-tag {
  background: var(--soft);
  color: var(--mut)
}

.ap-main .ap-card[data-cat="addons"] .ap-tag,
.ap-main .ap-card[data-cat="creative"] .ap-tag {
  background: rgba(38, 166, 91, .12);
  color: #1E8A4B
}

.ap-main .ap-card h3 {
  margin: 10px 0 6px !important;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.3
}

.ap-main .ap-card h3 a {
  color: var(--ink)
}

.ap-main .ap-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1
}

.ap-main .ap-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mut);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.ap-main .ap-acts {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 2
}

.ap-main .ap-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  transition: gap .25s, color .25s
}

.ap-main .ap-link svg {
  width: 15px;
  height: 15px
}

.ap-main .ap-card:hover .ap-link {
  gap: 10px;
  color: var(--blue)
}

.ap-main .ap-quote {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  transition: background .25s
}

.ap-main .ap-quote:hover {
  background: var(--blue)
}

.ap-main .ap-card h3 mark {
  background: rgba(245, 166, 35, .35);
  color: inherit;
  border-radius: 2px
}

.ap-main .ap-empty {
  margin-top: 32px;
  text-align: center;
  padding: 40px 20px;
  border: 1.5px dashed var(--line2);
  border-radius: var(--rad);
  color: var(--mut)
}

.ap-main .ap-empty .ap-quote {
  margin-top: 14px
}

/* ---------- Help band ---------- */
.ap-main .ap-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--rad);
  background: radial-gradient(120% 140% at 85% 0%, #0A2C7A 0%, var(--navy3) 70%);
  color: #fff
}

.ap-main .ap-help h2 {
  color: #fff;
  font-size: clamp(19px, 2vw, 24px) !important;
  font-weight: 600
}

.ap-main .ap-help p {
  color: var(--on-dark);
  font-size: 14.5px;
  margin-top: 4px !important
}

.ap-main .ap-help__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

/* ---------- Responsive ---------- */
@media (max-width:1100px) {
  .ap-main .ap-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:1000px) {
  .ap-main .ap-bar {
    flex-wrap: wrap
  }

  .ap-main .ap-search {
    flex: 1 1 100%
  }

  .ap-main .ap-chips {
    flex: 1 1 100%
  }
}

@media (max-width:820px) {
  .ap-main .ap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }

  .ap-main .ap-bar {
    top: 62px
  }

  .ap-main .ap-search {
    flex: 1 1 100%
  }

  .ap-main .ap-chips {
    flex: 1 1 100%
  }
}

@media (max-width:560px) {
  .ap-main .ap-card__img {
    padding: 10px
  }

  .ap-main .ap-card__body {
    padding: 12px
  }

  .ap-main .ap-card h3 {
    font-size: 14px !important;
    margin: 12px 4px 10px !important
  }

  .ap-main .ap-card p {
    display: none
  }

  .ap-main .ap-acts {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px
  }

  .ap-main .ap-link {
    justify-content: center;
    font-size: 12.5px
  }

  .ap-main .ap-quote {
    justify-content: center
  }

  .ap-main .ap-help__acts,
  .ap-main .ap-help__acts .btn {
    width: 100%
  }
}

@media (prefers-reduced-motion:reduce) {

  .ap-main .ap-card,
  .ap-main .ap-card__img img {
    transition: none
  }
}
