.pdp-bundle-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.pdp-bundle-section__header {
  margin-bottom: 1.25rem;
}

.pdp-bundle-section__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #212529;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.pdp-bundle-section__subtitle {
  font-size: 0.9375rem;
  color: #5a6e85;
  margin: 0;
  line-height: 1.5;
}

/* New PDP Bundle styles */
.pdp-bundle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .pdp-bundle-list--store {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pdp-bundle-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  min-height: 220px;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(88, 88, 88, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.pdp-bundle-card:hover,
.pdp-bundle-card:focus-visible {
  border-color: rgba(25, 135, 84, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
  outline: none;
}

.pdp-bundle-image {
  flex: 0 0 38%;
  width: 38%;
  max-width: 260px;
  min-height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  background: #f8f9fa;
  border: none;
  border-right: 1px solid rgba(88, 88, 88, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-bundle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bundle image collage — matches the Home page bundle card representation
   (bundle-bg-blur / bundle-img-group / bundle-img-circle / bundle-img-more),
   card-sized by default (PDP "Available in Bundles"). */
.pdp-bundle-image .bundle-bg-blur {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: blur(12px);
  z-index: 0;
}

.pdp-bundle-image .bundle-img-group {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  position: relative;
  z-index: 1;
}

.pdp-bundle-image .bundle-img-circle,
.pdp-bundle-image .bundle-img-more {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #fff;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.pdp-bundle-image .bundle-img-circle:hover,
.pdp-bundle-image .bundle-img-more:hover {
  transform: translateY(-8px) scale(1.1);
  z-index: 10 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #85b943;
}

.pdp-bundle-image .bundle-img-group > *:nth-child(1) {
  margin-left: 0;
}

.pdp-bundle-image .bundle-img-group > *:nth-child(2) {
  margin-left: -12px;
}

.pdp-bundle-image .bundle-img-group > .bundle-img-more {
  grid-column: span 2;
  justify-self: center;
  margin-top: -29px;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f7;
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Large collage variant for the Store Bundles listing page */
.pdp-bundle-list--store .pdp-bundle-image .bundle-img-circle,
.pdp-bundle-list--store .pdp-bundle-image .bundle-img-more {
  width: 90px;
  height: 90px;
  border-width: 3px;
}

.pdp-bundle-list--store .pdp-bundle-image .bundle-img-group > *:nth-child(2) {
  margin-left: -20px;
}

.pdp-bundle-list--store .pdp-bundle-image .bundle-img-group > .bundle-img-more {
  margin-top: -35px;
  font-size: 1.15rem;
}

.pdp-bundle-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.125rem 1.25rem 1.25rem;
  gap: 0.55rem;
}

.pdp-bundle-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
  line-height: 1.35;
}

.pdp-bundle-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0;
  margin-top: auto;
  padding-top: 0.25rem;
}

.pdp-bundle-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.2;
  width: auto;
}

.pdp-bundle-price .pdp-bundle-price__currency {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6c757d;
  margin-left: 0.15rem;
}

.pdp-bundle-saving {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  background: #eef8ee;
  color: #2f7d32;
  border: 1px solid #9ad19c;
}

.pdp-bundle-item-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: #5a6e85;
  font-weight: 500;
}

.pdp-bundle-desc {
  font-size: 0.875rem;
  color: #5a6e85;
  line-height: 1.5;
  margin: 0;
  flex: 0 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdp-bundle-products {
  margin: 0.1rem 0 0;
  padding: 0.625rem 0 0;
  border-top: 1px solid rgba(88, 88, 88, 0.1);
}

.pdp-bundle-products__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5a6e85;
  margin-bottom: 0.4rem;
}

.pdp-bundle-products__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.75rem;
}

.pdp-bundle-products__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.pdp-bundle-products__thumb {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(88, 88, 88, 0.15);
  background: #f8f9fa;
}

.pdp-bundle-products__info {
  min-width: 0;
  flex: 1;
}

.pdp-bundle-products__name {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #212529;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-bundle-products__sci {
  display: block;
  font-size: 0.6875rem;
  color: #5a6e85;
  font-style: italic;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-bundle-products__qty {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #2f7d32;
  background: #eef8ee;
  border: 1px solid #9ad19c;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}

.pdp-bundle-products__item--more {
  align-items: center;
}

.pdp-bundle-products__more-thumb {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px dashed rgba(88, 88, 88, 0.25);
  background: #f8f9fa;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5a6e85;
  letter-spacing: 0.05em;
  line-height: 1;
}

.pdp-bundle-products__more-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #5a6e85;
  line-height: 1.3;
}

.pdp-bundle-button {
  align-self: flex-start;
  pointer-events: none;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  margin-top: 0.5rem;
  text-align: center;
  justify-content: center;
  min-width: 140px;
}

.pdp-bundle-button--oos {
  background: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
  opacity: 0.9;
}

/* Stock status — aligned with store product "Available: N" + bundle detail pills */
.pdp-bundle-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.pdp-bundle-stock--in {
  color: #198754;
  background: rgba(25, 135, 84, 0.1);
}

.pdp-bundle-stock--out {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

/* Out-of-stock: light grayscale on the whole card (no overlay / no red border).
   Apply filter to image + content nodes (not only the parent) so Chrome/Safari
   bfcache restore after Back doesn't leave colored images on a grayscale card. */
.pdp-bundle-card--oos {
  opacity: 0.72;
}

.pdp-bundle-card--oos:hover,
.pdp-bundle-card--oos:focus-visible {
  border-color: rgba(88, 88, 88, 0.18);
  opacity: 0.8;
}

.pdp-bundle-card--oos .pdp-bundle-image,
.pdp-bundle-card--oos .bundle-bg-blur,
.pdp-bundle-card--oos .bundle-img-circle,
.pdp-bundle-card--oos .bundle-img-more,
.pdp-bundle-card--oos .pdp-bundle-products__thumb,
.pdp-bundle-card--oos .pdp-bundle-products__more-thumb,
.pdp-bundle-card--oos .pdp-bundle-content {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

@media (max-width: 767.98px) {
  .pdp-bundle-section__header {
    margin-bottom: 1rem;
  }

  .pdp-bundle-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: none;
    margin: 0;
  }

  .pdp-bundle-card {
    flex-direction: column;
    min-height: 0;
    width: 100%;
  }

  .pdp-bundle-image {
    flex: none;
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-right: none;
    border-bottom: 1px solid rgba(88, 88, 88, 0.1);
  }

  .pdp-bundle-list--store .pdp-bundle-image .bundle-img-circle,
  .pdp-bundle-list--store .pdp-bundle-image .bundle-img-more {
    width: 70px;
    height: 70px;
  }

  .pdp-bundle-list--store .pdp-bundle-image .bundle-img-group > *:nth-child(2) {
    margin-left: -16px;
  }

  .pdp-bundle-list--store .pdp-bundle-image .bundle-img-group > .bundle-img-more {
    margin-top: -27px;
    font-size: 1rem;
  }

  .pdp-bundle-content {
    padding: 1rem 1rem 1.125rem;
    gap: 0.5rem;
  }

  .pdp-bundle-title {
    font-size: 1rem;
  }

  .pdp-bundle-desc {
    font-size: 0.8125rem;
    -webkit-line-clamp: 3;
  }

  .pdp-bundle-price {
    font-size: 1.125rem;
  }

  .pdp-bundle-meta {
    gap: 0.35rem 0.5rem;
  }

  .pdp-bundle-saving,
  .pdp-bundle-item-count {
    font-size: 0.75rem;
  }

  .pdp-bundle-products {
    padding-top: 0.5rem;
  }

  .pdp-bundle-products__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.5rem;
  }

  .pdp-bundle-products__item {
    gap: 0.4rem;
  }

  .pdp-bundle-products__thumb,
  .pdp-bundle-products__more-thumb {
    width: 32px;
    height: 32px;
  }

  .pdp-bundle-products__more-thumb {
    font-size: 0.8125rem;
  }

  .pdp-bundle-products__name {
    font-size: 0.6875rem;
  }

  .pdp-bundle-products__sci {
    font-size: 0.625rem;
  }

  .pdp-bundle-products__qty {
    font-size: 0.625rem;
    padding: 0.05rem 0.3rem;
  }

  .pdp-bundle-products__more-label {
    font-size: 0.6875rem;
  }

  .pdp-bundle-button {
    align-self: stretch;
    min-width: 0;
    width: 100%;
    margin-top: 0.35rem;
  }

  .pdp-bundle-section__title {
    font-size: 1.25rem;
  }

  .pdp-bundle-section__subtitle {
    font-size: 0.875rem;
  }
}

@media (max-width: 479.98px) {
  .pdp-bundle-list {
    gap: 1rem;
  }

  .pdp-bundle-content {
    padding: 0.875rem 0.875rem 1rem;
  }

  .pdp-bundle-products__list {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .pdp-bundle-products__item {
    gap: 0.5rem;
  }

  .pdp-bundle-products__thumb,
  .pdp-bundle-products__more-thumb {
    width: 28px;
    height: 28px;
  }

  .pdp-bundle-products__more-thumb {
    font-size: 0.75rem;
  }

  .pdp-bundle-products__sci {
    display: none;
  }

  .pdp-bundle-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .pdp-bundle-price {
    font-size: 1.0625rem;
  }
}

/* Expandable "See More/Less" bundle description (Store Bundles list + PDP
   "Available in Bundles"). The 2/3-line -webkit-line-clamp above is a fixed
   height cue for cards whose description never needed a toggle; once a
   description is long enough to be truncated to 125 characters server-side,
   drop the line-clamp so that character-based short text isn't clipped
   again, and let the expanded (full) text render at its natural height. */
.pdp-bundle-desc.pdp-bundle-desc--expandable {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.bundle-desc-wrap .bundle-desc-full {
  display: block;
}

.bundle-desc-toggle {
  display: inline-block;
  margin-left: 4px;
  color: #086a3d;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

.bundle-desc-toggle:hover,
.bundle-desc-toggle:focus {
  text-decoration: none;
}
