/* =============================================================================
   DPL Collection — hero, pills, product cards
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Hero banner
   --------------------------------------------------------------------------- */

.dpl-hero-banner {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: #0D0D0D;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 12px;
}

.dpl-hero-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dpl-hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.35) 100%);
}

.dpl-hero-banner__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
}

.dpl-hero-banner__heading {

  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 500;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  line-height: 1.1;
}

.dpl-hero-banner__heading span {
  color: #FF9A01;
}

.dpl-hero-banner__sub {

  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 480px;
}

@media screen and (max-width: 767px) {
  .dpl-hero-banner {
    height: 140px;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .dpl-hero-banner__content {
    padding: 0 20px;
  }

  .dpl-hero-banner__heading {
    font-size: 20px;
  }
}

/* ---------------------------------------------------------------------------
   Collection header (title + description)
   --------------------------------------------------------------------------- */

.dpl-collection-header {
  padding: 0;
  margin: 0;
}

.dpl-collection-header__title {

  font-size: 26px;
  font-weight: 500;
  color: #0D0D0D;
  margin: 0 0 4px;
}

.dpl-collection-header__desc,
.dpl-collection-header__desc p {

  font-size: 14px;
  color: #6B6B6B;
  margin: 0;
  line-height: 1.5;
}

@media screen and (max-width: 767px) {
  .dpl-collection-header__title {
    font-size: 20px;
  }
}

/* ---------------------------------------------------------------------------
   Category pills
   --------------------------------------------------------------------------- */

.dpl-cat-squares-nav {
  padding: 24px 0 8px;
}

.dpl-cat-squares {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.dpl-cat-square {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  background: #FFF6E8;
  border: 1.5px solid #FFE4B5;
  border-radius: 20px;
  text-decoration: none;
  color: #6B6B6B;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-align: center;
}

.dpl-cat-square:hover {
  border-color: #FF9A01;
  color: #0D0D0D;
  background: #FFE4B5;
}

.dpl-cat-square:hover .dpl-cat-square__icon {
  color: #FF9A01;
}

.dpl-cat-square--active {
  border-color: #FF9A01;
  background: #FFE4B5;
  color: #0D0D0D;
}

.dpl-cat-square--active .dpl-cat-square__icon {
  color: #FF9A01;
}

.dpl-cat-square__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B6B6B;
  transition: color 0.15s;
}

.dpl-cat-square__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

@media screen and (max-width: 1024px) {
  .dpl-cat-squares {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media screen and (max-width: 767px) {
  .dpl-cat-squares {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .dpl-cat-square {
    padding: 16px 8px;
    gap: 8px;
  }

  .dpl-cat-square__label {
    font-size: 10px;
  }
}

/* ---------------------------------------------------------------------------
   Product grid
   - margin: 0 kills Dawn's margin-bottom: 2rem + browser-default ul margin-top
   - gap values match bulk.com reference (16px col / 24px row desktop)
   --------------------------------------------------------------------------- */

.product-grid.grid {
  margin: 0;
  margin-top: 32px;
  column-gap: 12px;
  row-gap: 20px;
}

/* Dawn sizes mobile cards for its own 4px gap (calc(50% - 2px)); with our 12px column-gap two of
   those overflow the row and the second card wraps, leaving one product per row. Resize to match. */
@media screen and (max-width: 749px) {
  .product-grid.grid--2-col-tablet-down .grid__item {
    width: calc(50% - 12px / 2);
    max-width: calc(50% - 12px / 2);
  }
}

@media screen and (min-width: 750px) {
  .product-grid.grid {
    column-gap: 16px;
    row-gap: 24px;
  }

  /* Recalculate item widths to match our 16px column-gap (Dawn assumes 8px) */
  .product-grid.grid--4-col-desktop .grid__item {
    width: calc(25% - 16px * 3 / 4);
    max-width: calc(25% - 16px * 3 / 4);
  }
}

/* ---------------------------------------------------------------------------
   Dawn card-product — enforce 20px radius on image container
   --------------------------------------------------------------------------- */

.card__inner {
  border-radius: 20px !important;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Product card
   --------------------------------------------------------------------------- */

.dpl-card {
  position: relative;
}

.dpl-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.dpl-card__link:hover {
  text-decoration: none;
}

/* Image */

.dpl-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #F7F7F7;
  border-radius: 20px;
  overflow: hidden;
}

.dpl-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.dpl-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dpl-card__placeholder-svg {
  width: 60%;
  height: 60%;
  opacity: 0.15;
}


/* Card body */

/* Out-of-stock ("Pre-order") badge.
   card-product-dpl.liquid emits `badge badge--bottom-left`, but no rule for that modifier exists
   anywhere in the theme — so the badge rendered as a static inline element, was pushed below the
   square image and clipped away by the wrapper's overflow:hidden. Position it over the image. */
.dpl-card__image-wrap .badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.dpl-card__image-wrap .dpl-badge--preorder {
  background: rgba(255, 154, 1, 0.12);
  color: #B36C00;
}

.dpl-card__body {
  padding: 8px 0 0;
}

/* Title row: name + sold-out inline */

.dpl-card__title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.dpl-card__name {

  font-size: 14px;
  font-weight: 500;
  color: #0D0D0D;
  margin: 0;
  line-height: 1.35;
}

.dpl-card__sold-out {

  font-size: 11px;
  font-weight: 500;
  color: #6B6B6B;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Dosage chips — orange */

.dpl-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.dpl-card__size-chip {
  display: inline-block;
  background-color: rgba(255, 154, 1, 0.12);
  border: 1px solid rgba(255, 154, 1, 0.35);
  color: #D97F00;

  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

.dpl-card__size-chip--unavailable {
  opacity: 0.4;
  text-decoration: line-through;
}

.dpl-card__size-more {

  font-size: 11px;
  color: #6B6B6B;
  align-self: center;
}

/* Price */

.dpl-card__price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.dpl-card__compare-price {
  font-size: 13px;
  font-weight: 400;
  color: #ADADAD;
  text-decoration: line-through;
}

.dpl-card__price {
  font-size: 17px;
  font-weight: 400;
  color: #0D0D0D;
}

/* Placeholder */

.dpl-card--placeholder {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Mobile
   --------------------------------------------------------------------------- */

@media screen and (max-width: 767px) {
  .dpl-card__name {
    font-size: 13px;
  }

  .dpl-card__price {
    font-size: 15px;
  }

}
