/**
 * Products hub - catalog layout (featured hero + thumbnail grids).
 */

body.jams-gacor-header.page-products .container-wrap {
  font-family: var(--gacor-font, "DM Sans", sans-serif);
}

body.jams-gacor-header.page-products .container-wrap > .row > .col.section-title,
body.jams-gacor-header.page-products #breadcrumbs,
body.jams-gacor-header.page-products .nectar-slider-wrap,
body.jams-gacor-header.page-products .parallax_slider_outer {
  display: none !important;
}

body.jams-gacor-header.page-products .separator-upwards {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* ========== Shell ========== */

.jams-phub {
  font-family: var(--gacor-font, "DM Sans", sans-serif);
  color: var(--gacor-heading, #0b1220);
  background-color: #fff;
}

.jams-phub-hero,
.jams-phub-band,
.jams-phub-cta {
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  box-sizing: border-box;
}

.jams-phub-hero {
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gacor-dark, #0b1220);
}

.jams-phub-hero__bg {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
}

body.jams-gacor-header .jams-phub-hero__bg img,
.jams-phub-hero__bg img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
}

.jams-phub-hero__shade {
  position: absolute !important;
  inset: 0;
  z-index: 1 !important;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(7, 12, 22, 0.96) 0%,
      rgba(11, 18, 32, 0.88) 34%,
      rgba(11, 18, 32, 0.42) 62%,
      rgba(11, 18, 32, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 12, 22, 0.35) 0%,
      transparent 28%,
      transparent 72%,
      rgba(7, 12, 22, 0.45) 100%
    );
}

.jams-phub-hero__inner {
  position: relative;
  z-index: 3;
  width: min(1320px, calc(100% - 48px));
  max-width: 640px;
  margin: 0 auto;
  margin-left: max(24px, calc((100% - 1320px) / 2));
  padding: 112px 0 96px;
}

.jams-phub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0 !important;
}

.jams-phub-hero__bar {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #00aeef, #0078d7, #002e5d);
  z-index: 4;
}

.jams-phub-hero > .jams-motif {
  z-index: 2;
  opacity: 0.42;
  mix-blend-mode: screen;
}

.jams-phub-wrap {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.jams-phub-kicker {
  margin: 0 0 12px !important;
  color: var(--gacor-orange, #00aeef) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jams-phub-title,
body.jams-gacor-header .container-wrap .jams-phub .jams-phub-title {
  margin: 0 0 18px !important;
  color: var(--gacor-heading, #0b1220) !important;
  font-family: var(--gacor-font, "DM Sans", sans-serif) !important;
  font-size: clamp(32px, 4.6vw, 52px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-transform: none;
}

.jams-phub-heading,
body.jams-gacor-header .container-wrap .jams-phub .jams-phub-heading {
  margin: 0 0 14px !important;
  color: var(--gacor-heading, #0b1220) !important;
  font-family: var(--gacor-font, "DM Sans", sans-serif) !important;
  font-size: clamp(22px, 2.6vw, 32px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.04em;
  max-width: 24ch;
  text-transform: uppercase;
}

.jams-phub-lead,
.jams-phub-section-text,
body.jams-gacor-header .container-wrap .jams-phub .jams-phub-lead,
body.jams-gacor-header .container-wrap .jams-phub .jams-phub-section-text {
  margin: 0 !important;
  max-width: 68ch;
  color: var(--gacor-muted, #757575) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

/* Hero light text must follow base title/lead so it wins the cascade */
.jams-phub-kicker--light {
  color: var(--gacor-orange, #00aeef) !important;
}

.jams-phub-title--light,
body.jams-gacor-header .container-wrap .jams-phub .jams-phub-title--light,
body.jams-gacor-header .container-wrap .jams-phub-hero .jams-phub-title--light {
  color: #fff !important;
  text-transform: uppercase;
}

.jams-phub-lead--light,
body.jams-gacor-header .container-wrap .jams-phub .jams-phub-lead--light,
body.jams-gacor-header .container-wrap .jams-phub-hero .jams-phub-lead--light {
  color: rgba(255, 255, 255, 0.9) !important;
}

.jams-phub-lead--secondary {
  margin-top: 12px !important;
}

.jams-phub-section-head {
  margin-bottom: 28px;
}

/* ========== Intro ========== */

.jams-phub-intro {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
  background: #fff;
}

.jams-phub-intro::after {
  display: none;
}

.jams-phub-intro .jams-phub-wrap {
  position: relative;
  z-index: 1;
}

/* ========== Catalog bands ========== */

.jams-phub-band {
  padding: 88px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.06);
  background: #fff;
}

.jams-phub-band:nth-child(even) {
  background: var(--gacor-surface, #f4f8fb);
  background-image: var(--gacor-grid);
  background-size: var(--gacor-grid-size);
}

.jams-phub-band__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px 40px;
  align-items: start;
}

.jams-phub-band--feature-grid .jams-phub-band__inner {
  grid-template-columns: 0.9fr 1.1fr;
}

.jams-phub-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}

/* Thumb */

.jams-phub-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: inherit;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

a.jams-phub-thumb:hover {
  transform: translateY(-3px);
}

.jams-phub-thumb__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  padding: 8px;
}

.jams-phub-thumb__media img {
  width: 100%;
  max-width: 180px;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

a.jams-phub-thumb:hover .jams-phub-thumb__media img {
  transform: scale(1.04);
}

.jams-phub-thumb__label {
  display: block;
  color: var(--gacor-heading, #0b1220);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  max-width: 18ch;
}

a.jams-phub-thumb:hover .jams-phub-thumb__label {
  color: var(--gacor-orange, #00aeef);
}

/* Featured */

.jams-phub-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  color: inherit;
  text-align: center;
}

.jams-phub-feature__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 360px;
}

.jams-phub-feature__img {
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

a.jams-phub-feature:hover .jams-phub-feature__img {
  transform: scale(1.03);
}

.jams-phub-feature__insets {
  position: absolute;
  right: 0;
  top: 18%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 28%;
  max-width: 140px;
}

.jams-phub-feature__insets img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.jams-phub-feature__label {
  display: block;
  color: var(--gacor-heading, #0b1220);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  max-width: 28ch;
}

.jams-phub-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gacor-orange, #00aeef);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jams-phub-feature__cta::after {
  content: "→";
  transition: transform 0.2s ease;
}

a.jams-phub-feature:hover .jams-phub-feature__cta::after {
  transform: translateX(4px);
}

a.jams-phub-feature:hover .jams-phub-feature__label {
  color: var(--gacor-orange, #00aeef);
}

/* ========== CTA ========== */

.jams-phub-cta {
  padding: 88px 0;
  background: var(--gacor-dark, #0b1220);
  border-top: none;
}

.jams-phub-heading--light,
body.jams-gacor-header .container-wrap .jams-phub .jams-phub-heading--light {
  color: #fff !important;
}

.jams-phub-section-text--light,
body.jams-gacor-header .container-wrap .jams-phub .jams-phub-section-text--light {
  color: rgba(255, 255, 255, 0.72) !important;
}

.jams-phub-cta__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.jams-phub-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 !important;
  flex-shrink: 0;
}

body.jams-gacor-header.page-products .jams-phub-cta .jams-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 14px 28px !important;
  font-family: var(--gacor-font, "DM Sans", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 0 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

body.jams-gacor-header.page-products .jams-phub-cta .jams-btn--primary {
  background: var(--gacor-orange, #00aeef) !important;
  color: #fff !important;
  border: 1px solid var(--gacor-orange, #00aeef) !important;
}

body.jams-gacor-header.page-products .jams-phub-cta .jams-btn--primary:hover {
  background: var(--gacor-orange-hover, #0095d0) !important;
  border-color: var(--gacor-orange-hover, #0095d0) !important;
  color: #fff !important;
}

body.jams-gacor-header.page-products .jams-phub-cta .jams-btn--ghost-dark,
body.jams-gacor-header.page-products .jams-phub .jams-btn--ghost-light {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

body.jams-gacor-header.page-products .jams-phub-cta .jams-btn--ghost-dark:hover,
body.jams-gacor-header.page-products .jams-phub .jams-btn--ghost-light:hover {
  color: var(--gacor-heading, #0b1220) !important;
  border-color: #fff !important;
  background: #fff !important;
}

body.jams-gacor-header.page-products .jams-phub .jams-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 14px 28px !important;
  font-family: var(--gacor-font, "DM Sans", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 0 !important;
}

/* ========== Responsive ========== */

@media (max-width: 960px) {
  .jams-phub-band__inner,
  .jams-phub-band--feature-grid .jams-phub-band__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .jams-phub-feature__stage {
    min-height: 260px;
  }

  .jams-phub-feature__img {
    max-height: 360px;
  }

  .jams-phub-feature__insets {
    width: 20%;
    max-width: 100px;
  }
}

@media (max-width: 760px) {
  .jams-phub-wrap {
    width: calc(100% - 32px);
  }

  .jams-phub-intro {
    padding: 48px 0 28px;
  }

  .jams-phub-band {
    padding: 40px 0 52px;
  }

  .jams-phub-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .jams-phub-feature__insets {
    display: none;
  }

  .jams-phub-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .jams-phub-heading,
  body.jams-gacor-header .container-wrap .jams-phub .jams-phub-heading {
    font-size: clamp(20px, 6vw, 28px) !important;
    max-width: none;
  }

  .jams-phub-section-text,
  body.jams-gacor-header .container-wrap .jams-phub .jams-phub-section-text {
    font-size: 15px !important;
  }

  .jams-phub-feature__stage {
    min-height: 220px;
  }

  .jams-phub-feature__img {
    max-height: 300px;
  }

  .jams-phub-cta__actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .jams-phub-cta__actions .jams-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .jams-phub-wrap {
    width: calc(100% - 24px);
  }

  .jams-phub-thumbs {
    gap: 18px 10px;
  }

  .jams-phub-thumb__label {
    font-size: 12px;
    max-width: none;
    line-height: 1.3;
  }

  .jams-phub-thumb__media {
    min-height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jams-phub-thumb,
  .jams-phub-thumb__media img,
  .jams-phub-feature__img,
  .jams-phub-feature__cta::after {
    transition: none !important;
  }
}
