
/* Shared Purple Monkey Balls catalogue styling */
.pmb-catalogue {
  margin-top: 35px;
  padding: 35px;
  background: #21122f;
  border: 1px solid #7035a1;
  border-radius: 14px;
}

.pmb-catalogue h2 {
  color: #c084fc;
  margin: 0 0 25px;
  font-size: 26px;
}

.pmb-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pmb-empty {
  padding: 30px 15px;
  text-align: center;
  color: #cbb8db;
  border: 1px dashed #7035a1;
  border-radius: 10px;
}

@media (max-width: 800px) {
  .pmb-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .pmb-product-grid {
    grid-template-columns: 1fr;
  }
  .pmb-catalogue {
    padding: 20px;
  }
}


/* Wide category banner */
.category-image-wrap,
.pmb-category-banner {
  width: 100%;
  margin: 22px 0 30px;
  border: 1px solid #7035a1;
  border-radius: 14px;
  overflow: hidden;
  background: #14061f;
}

.category-image-wrap img,
.pmb-category-banner img,
.category-page img.category-image,
.category-page > img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .category-image-wrap img,
  .pmb-category-banner img,
  .category-page img.category-image,
  .category-page > img {
    height: 250px;
  }
}

@media (max-width: 600px) {
  .category-image-wrap img,
  .pmb-category-banner img,
  .category-page img.category-image,
  .category-page > img {
    height: 190px;
  }
}


/* PMB FULL-WIDTH CATEGORY BANNERS */
img.banner {
    display: block;
    width: 100vw;
    max-width: none;
    max-height: none;
    height: 420px;
    object-fit: cover;
    object-position: center 38%;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

@media (max-width: 700px) {
    img.banner {
        height: 260px;
    }
}

/* PMB banner focal point adjustment */
img.banner {
    height: 480px;
    object-position: center 20% !important;
}

@media (max-width: 700px) {
    img.banner {
        height: 280px;
    }
}


/* PMB redesigned category hero */
body.pmb-category-page main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.pmb-category-hero {
  position: relative;
  overflow: hidden;
  background: #180923;
  border-bottom: 1px solid #9333ea;
}

.pmb-category-hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(.38);
}

.pmb-category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17,5,29,.94),
    rgba(29,9,46,.25)
  );
}

.pmb-category-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  min-height: 480px;
  margin: auto;
  padding: 30px 5%;
  display: grid;
  grid-template-columns: 1fr 430px;
  align-items: center;
  gap: 30px;
}

.pmb-category-hero-copy h1 {
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.1;
  margin-top: 35px;
}

.pmb-category-hero-art {
  width: 100%;
  height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,.45));
}

body.pmb-category-page .pmb-catalogue {
  max-width: 1050px;
  width: calc(100% - 36px);
  margin: 35px auto 60px;
}

@media (max-width: 750px) {
  .pmb-category-hero-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 35px 6% 0;
  }

  .pmb-category-hero-art {
    height: 290px;
  }
}


/* PMB seamless full-width category banner */
.pmb-category-hero-inner {
    max-width: none;
    width: 100%;
    grid-template-columns: 1fr;
    min-height: 480px;
    overflow: hidden;
}

.pmb-category-hero-copy {
    position: relative;
    z-index: 3;
    max-width: 750px;
}

.pmb-category-hero-art {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
    max-width: 65%;
    object-fit: contain;
    filter: none;
    -webkit-mask-image: linear-gradient(
        to right, transparent 0%, black 30%
    );
    mask-image: linear-gradient(
        to right, transparent 0%, black 30%
    );
}

@media (max-width: 750px) {
    .pmb-category-hero-inner {
        min-height: 430px;
    }
    .pmb-category-hero-art {
        max-width: 90%;
        opacity: 0.55;
    }
}


/* PMB fuller category banner */
.pmb-category-hero-inner {
    min-height: 400px;
    padding: 35px 5%;
}

.pmb-category-hero-art {
    position: absolute;
    right: 0;
    top: 0;
    width: 72%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    opacity: 1;
    -webkit-mask-image: linear-gradient(
        to right, transparent 0%, black 35%
    );
    mask-image: linear-gradient(
        to right, transparent 0%, black 35%
    );
}

.pmb-category-hero-copy {
    max-width: 600px;
    position: relative;
    z-index: 3;
}

@media (max-width: 750px) {
    .pmb-category-hero-inner {
        min-height: 340px;
    }
    .pmb-category-hero-art {
        width: 100%;
        max-width: none;
        opacity: 0.4;
    }
}

/* Purple Monkey Balls shared product catalogue */
.pmb-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.pmb-product-card {
  overflow: hidden;
  background: #170c24;
  border: 1px solid #7035a1;
  border-radius: 12px;
}

.pmb-product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #12091b;
}

.pmb-product-details {
  padding: 18px;
}

.pmb-product-details h3 {
  color: white;
  margin: 0 0 10px;
  font-size: 18px;
}

.pmb-product-details p {
  color: #cbb8db;
  line-height: 1.5;
}

.pmb-empty[hidden] {
  display: none;
}

@media (max-width: 950px) {
  .pmb-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .pmb-product-grid {
    grid-template-columns: 1fr;
  }
}

/* PMB category mobile navigation */
.pmb-cat-menu {
  display: none;
}

@media (max-width: 767px) {
  body.pmb-category-page header {
    padding: 10px 15px 0;
    gap: 0;
  }

  body.pmb-category-page header .brand {
    width: 100%;
    padding-bottom: 12px;
  }

  body.pmb-category-page .pmb-cat-menu {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 13px 8px;
    background: #170c24;
    color: white;
    border: 0;
    border-top: 1px solid #7035a1;
    font-weight: bold;
    cursor: pointer;
  }

  body.pmb-category-page .pmb-page-nav {
    display: none !important;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-bottom: 10px;
  }

  body.pmb-category-page .pmb-page-nav.is-open {
    display: flex !important;
  }

  body.pmb-category-page .pmb-page-nav a {
    width: 100%;
    padding: 12px 8px;
    border-bottom: 1px solid #39204e;
  }
}


/* PMB PRODUCT CARD POLISH V1 */

.pmb-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 22px;
    align-items: stretch;
}

.pmb-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.pmb-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(153, 51, 255, .22);
}

.pmb-product-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.pmb-product-details {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
    flex: 1;
}

.pmb-product-details h3 {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.pmb-product-details .pmb-product-price {
    color: #d5a0ff;
    font-size: 22px;
    font-weight: 900;
    margin: 0;
}

.pmb-product-details > p:not(.pmb-product-price) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
    opacity: .85;
}

@media (max-width: 520px) {
    .pmb-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pmb-product-details {
        padding: 12px;
    }

    .pmb-product-details .pmb-product-price {
        font-size: 19px;
    }
}

/* PMB CLICKABLE PRODUCT CARDS */
.pmb-product-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.pmb-product-link:focus-visible {
    outline: 3px solid #c084fc;
    outline-offset: 4px;
}


/* PMB MOBILE FULL WIDTH CARDS V1 */
@media (max-width: 600px) {
  .pmb-catalogue .pmb-product-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    width: 100%;
  }

  .pmb-catalogue .pmb-product-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .pmb-catalogue .pmb-product-card > img {
    display: block;
    width: 100% !important;
    height: 240px !important;
    object-fit: contain !important;
  }
}


/* PMB_CATEGORY_DIRECT_BASKET_V1 */
.pmb-card-content {
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
  color:inherit;
  text-decoration:none;
}
.pmb-product-card > .pmb-card-content > img {
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.pmb-card-actions {
  padding:0 16px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.pmb-card-add {
  width:100%;
  border:0;
  border-radius:9px;
  padding:13px 9px;
  background:#9333ea;
  color:white;
  font-weight:800;
  cursor:pointer;
}
.pmb-card-add:hover:not(:disabled) {
  background:#aa4df0;
}
.pmb-card-add:disabled {
  opacity:.55;
  cursor:not-allowed;
}
.pmb-card-message {
  margin:0;
  color:#e6c6ff;
  font-size:13px;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.pmb-card-message:empty {display:none}
.pmb-card-view {
  text-align:center;
  color:#e6c6ff;
  font-weight:bold;
  padding:6px;
}
.pmb-card-add:focus-visible,
.pmb-card-view:focus-visible {
  outline:3px solid white;
  outline-offset:3px;
}
@media(max-width:600px) {
  .pmb-catalogue .pmb-product-card > .pmb-card-content > img {
    width:100% !important;
    height:240px !important;
    object-fit:contain !important;
  }
}


/* PMB_CATEGORY_STOCK_INDICATORS_V1 */
.pmb-card-stock {
    margin: 8px 15px 12px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.pmb-stock-available {
    color: #86efac;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .30);
}

.pmb-stock-low {
    color: #fbbf24;
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .30);
}

.pmb-stock-none {
    color: #fca5a5;
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .30);
}
