/* Deal Of The Day — modenza-inspired editorial promo block */

.bsp-todays-deals {
  background: var(--bsp-td-section-bg, #f9f7f4);
  padding: clamp(72px, 9vw, 108px) 0 clamp(80px, 10vw, 112px);
  overflow-x: clip;
}

/* Header — matches product slider sections */
.bsp-todays-deals__header-shell {
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: 0 clamp(16px, 3vw, 40px);
  box-sizing: border-box;
}

.bsp-todays-deals__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
}

.bsp-todays-deals__header-intro {
  flex: 1 1 auto;
  min-width: 0;
}

.bsp-todays-deals__title {
  margin: 0;
  color: var(--bsp-td-title, #111111);
  font-family: var(--bsp-font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: left;
}

.bsp-todays-deals__subtitle {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--bsp-td-text, #6b6b6b);
  font-size: clamp(14px, 1.45vw, 16px);
  line-height: 1.7;
  font-weight: 400;
  text-align: left;
}

.bsp-todays-deals__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.bsp-todays-deals__view-all {
  color: var(--bsp-td-title, #111111);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: opacity 0.25s ease;
}

.bsp-todays-deals__view-all:hover {
  opacity: 0.65;
  color: var(--bsp-td-title, #111111);
}

/* Deal card shell — full width with side padding */
.bsp-todays-deals__card-shell {
  width: 100%;
  padding: 0 clamp(16px, 3vw, 40px);
  box-sizing: border-box;
}

.bsp-todays-deals__card {
  background: var(--bsp-td-card-bg, #ffffff);
  border: 1px solid #e5e2dd;
  overflow: hidden;
}

.bsp-todays-deals__card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.bsp-todays-deals__content {
  padding: clamp(32px, 4.5vw, 52px) clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bsp-todays-deals__today-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: clamp(14px, 2vw, 20px);
  color: var(--bsp-td-accent, #111111);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bsp-todays-deals__product-title {
  margin: 0 0 12px;
  font-family: var(--bsp-font-heading);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bsp-todays-deals__product-title a {
  color: var(--bsp-td-title, #111111);
  text-decoration: none;
}

.bsp-todays-deals__product-title a:hover {
  opacity: 0.7;
}

.bsp-todays-deals__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.bsp-todays-deals__rating .bsp-featured-products__star.is-filled {
  color: var(--bsp-td-accent, #111111);
}

.bsp-todays-deals__review-count {
  color: var(--bsp-td-text, #6b6b6b);
  font-size: 13px;
}

.bsp-todays-deals__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: clamp(18px, 2.5vw, 24px);
}

.bsp-todays-deals__price-current {
  color: var(--bsp-td-price, #111111);
  font-family: var(--bsp-font-heading);
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1;
}

.bsp-todays-deals__price-current .woocommerce-Price-amount {
  font-size: inherit;
  color: inherit;
}

.bsp-todays-deals__price-regular {
  color: var(--bsp-td-text, #9a9a9a);
  font-size: 15px;
}

.bsp-todays-deals__discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #e5e2dd;
  background: transparent;
  color: var(--bsp-td-accent, #111111);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bsp-todays-deals__features {
  list-style: none;
  margin: 0 0 clamp(20px, 3vw, 28px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bsp-todays-deals__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3d3d3d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.bsp-todays-deals__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--bsp-td-accent, #111111);
  opacity: 0.75;
}

.bsp-todays-deals__feature-content {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bsp-todays-deals__feature-label {
  font-weight: 500;
}

.bsp-todays-deals__color-swatches {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bsp-todays-deals__color-swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--bsp-td-swatch, #d1d5db);
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
}

.bsp-todays-deals__color-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.bsp-todays-deals__countdown-wrap {
  margin-bottom: clamp(24px, 3vw, 32px);
}

.bsp-todays-deals__countdown-label {
  margin: 0 0 14px;
  color: var(--bsp-td-text, #6b6b6b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bsp-todays-deals__countdown {
  display: flex;
  align-items: center;
  gap: 0;
}

.bsp-todays-deals__countdown-item {
  min-width: 56px;
  padding: 0 14px;
  text-align: center;
}

.bsp-todays-deals__countdown-item:first-child {
  padding-left: 0;
}

.bsp-todays-deals__countdown-item strong {
  display: block;
  color: var(--bsp-td-title, #111111);
  font-family: var(--bsp-font-heading);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.bsp-todays-deals__countdown-item span {
  display: block;
  margin-top: 6px;
  color: var(--bsp-td-text, #6b6b6b);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.bsp-todays-deals__countdown-sep {
  display: block;
  width: 1px;
  height: 32px;
  flex-shrink: 0;
  background: #e5e2dd;
}

.bsp-todays-deals__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bsp-todays-deals__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 32px;
  border-radius: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.bsp-todays-deals__btn--primary {
  border: 1px solid var(--bsp-td-btn-bg, #111111);
  background: transparent;
  color: var(--bsp-td-btn-bg, #111111);
}

.bsp-todays-deals__btn--primary:hover {
  background: var(--bsp-td-btn-bg, #111111);
  color: #ffffff;
}

/* Media column */
.bsp-todays-deals__media {
  position: relative;
  min-height: 100%;
  background: var(--bsp-td-media-bg, #f5f0ea);
}

.bsp-todays-deals__media-link {
  display: block;
  height: 100%;
  min-height: 100%;
}

.bsp-todays-deals__media-link .bsp-product-card-images {
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 42vw, 520px);
  aspect-ratio: 4 / 4.35;
}

.bsp-todays-deals__media-link .bsp-product-card-images img {
  object-fit: cover;
}

.bsp-todays-deals__image-badge {
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  left: clamp(16px, 2vw, 24px);
  padding: 8px 12px;
  background: var(--bsp-td-image-badge-bg, #111111);
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bsp-todays-deals__viewing-pill {
  position: absolute;
  bottom: clamp(16px, 2vw, 24px);
  left: clamp(16px, 2vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bsp-td-title, #111111);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.bsp-todays-deals__viewing-pill svg {
  flex-shrink: 0;
  opacity: 0.65;
}

/* Responsive */
@media (max-width: 1023px) {
  .bsp-todays-deals__card-grid {
    grid-template-columns: 1fr;
  }

  .bsp-todays-deals__media {
    order: -1;
  }

  .bsp-todays-deals__content {
    padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 32px);
  }

  .bsp-todays-deals__media-link .bsp-product-card-images {
    min-height: clamp(280px, 55vw, 400px);
    aspect-ratio: 4 / 3.5;
  }
}

@media (max-width: 767px) {
  .bsp-todays-deals {
    padding: clamp(56px, 12vw, 72px) 0 clamp(64px, 14vw, 80px);
  }

  .bsp-todays-deals__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .bsp-todays-deals__toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .bsp-todays-deals__content {
    padding: 24px 18px 28px;
  }

  .bsp-todays-deals__media-link .bsp-product-card-images {
    min-height: 260px;
    aspect-ratio: 4 / 3.25;
  }

  .bsp-todays-deals__countdown {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .bsp-todays-deals__countdown-sep:nth-of-type(4) {
    display: none;
  }

  .bsp-todays-deals__countdown-item {
    min-width: 48px;
    padding: 0 10px;
  }

  .bsp-todays-deals__countdown-item:nth-child(7) {
    padding-left: 0;
  }

  .bsp-todays-deals__btn {
    width: 100%;
  }

  .bsp-todays-deals__viewing-pill {
    max-width: calc(100% - 32px);
    white-space: normal;
  }
}

@media (max-width: 479px) {
  .bsp-todays-deals__countdown-item strong {
    font-size: 1.5rem;
  }

  .bsp-todays-deals__features li {
    font-size: 13px;
  }
}
