/* ==========================================================================
   Phase 4.1: Great Deals & Voucher Redemption Styles (/promo-voucher-discount & /deal-detail/{slug})
   ========================================================================== */

/* 1. Deals Hero & Campaign Carousel */
.hp-deals-hero {
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--hp-border);
}

.hp-deals-hero-header {
  margin: 12px 0 22px;
}

.hp-deals-hero-title {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 800;
  color: var(--hp-purple-dark);
  margin: 0 0 8px;
  line-height: 1.22;
}

.hp-deals-hero-subtitle {
  font-size: 16px;
  color: var(--hp-text-secondary);
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
}

.hp-deals-spotlight-slide {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  box-shadow: var(--hp-shadow-md);
}

.hp-deals-spotlight-img {
  position: relative;
  height: 260px;
  background: #f3f4f6;
}

.hp-deals-spotlight-img > a {
  display: block;
  width: 100%;
  height: 100%;
}

.hp-deals-spotlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-deals-spotlight-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--hp-pink-deep);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--hp-radius-pill);
  pointer-events: none;
}

.hp-deals-spotlight-content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hp-deals-spotlight-content h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.hp-deals-spotlight-content h2 a {
  color: var(--hp-text-primary);
  text-decoration: none;
}

.hp-deals-spotlight-content h2 a:hover {
  color: var(--hp-purple);
}

.hp-deals-spotlight-provider {
  font-size: 13.5px;
  color: var(--hp-text-secondary);
  margin: 0 0 10px;
}

.hp-deals-spotlight-desc {
  font-size: 14px;
  color: var(--hp-text-secondary);
  margin: 0 0 18px;
  line-height: 1.55;
}

.hp-deals-spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--hp-border);
}

.hp-deals-price-pair {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hp-deals-price-old {
  font-size: 13px;
  color: var(--hp-text-muted);
  text-decoration: line-through;
}

.hp-deals-price-new {
  font-size: 20px;
  font-weight: 800;
  color: var(--hp-purple-dark);
}

/* 2. Filter Toolbar */
.hp-deals-toolbar-section {
  padding-top: 24px;
}

.hp-deals-toolbar {
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: 18px 20px;
  box-shadow: var(--hp-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hp-deals-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hp-border);
}

.hp-deals-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--hp-radius-pill);
  border: 1px solid var(--hp-border-strong);
  background: #ffffff;
  color: var(--hp-text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hp-deals-type-pill:hover {
  border-color: var(--hp-purple);
  color: var(--hp-purple);
}

.hp-deals-type-pill.is-active {
  background: var(--hp-purple);
  border-color: var(--hp-purple);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(97, 46, 149, 0.2);
}

.hp-deals-filters-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.hp-deals-filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.hp-deals-filter-field label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hp-text-muted);
}

.hp-deals-filter-field select,
.hp-deals-filter-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-md);
  font-size: 13.5px;
  color: var(--hp-text-primary);
  background-color: #ffffff;
}

.hp-deals-location-wrap input {
  padding-left: 34px;
}

.hp-deals-loc-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hp-purple);
  pointer-events: none;
}

.hp-deals-filter-actions {
  display: flex;
  gap: 8px;
}

.hp-deals-count-row {
  margin-top: 14px;
}

/* 3. Deals Grid */
.hp-deals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ==========================================================================
   4. Deal Detail & Voucher Redemption Page (/deal-detail/{slug})
   ========================================================================== */

.hp-deal-detail-section {
  padding: 24px 0 48px;
}

.hp-deal-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

.hp-deal-main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hp-deal-banner-card {
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  box-shadow: var(--hp-shadow-sm);
}

.hp-deal-banner-image {
  position: relative;
  height: 360px;
  background: #f3f4f6;
}

.hp-deal-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-deal-banner-body {
  padding: 26px;
}

.hp-deal-detail-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--hp-text-primary);
  margin: 0 0 12px;
  line-height: 1.28;
}

.hp-deal-detail-desc {
  font-size: 15px;
  color: var(--hp-text-secondary);
  line-height: 1.65;
  margin: 0 0 24px;
}

.hp-deal-steps-box {
  background: #faf5ff;
  border: 1px solid #e9d8fd;
  border-radius: var(--hp-radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.hp-deal-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hp-deal-step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hp-deal-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--hp-purple);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-deal-step-item strong {
  display: block;
  font-size: 13.5px;
  color: var(--hp-text-primary);
  margin-bottom: 2px;
}

.hp-deal-step-item p {
  font-size: 12.5px;
  color: var(--hp-text-secondary);
  margin: 0;
  line-height: 1.45;
}

.hp-deal-terms-box {
  border-top: 1px solid var(--hp-border);
  padding-top: 18px;
}

.hp-deal-terms-list {
  margin: 0;
  padding-left: 18px;
  color: var(--hp-text-secondary);
  font-size: 13.5px;
  line-height: 1.65;
}

.hp-deal-provider-card {
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--hp-shadow-sm);
}

/* Right Sticky Redemption Card */
.hp-deal-sidebar {
  position: sticky;
  top: 92px;
  min-width: 0;
}

.hp-deal-redeem-card {
  background: #ffffff;
  border: 2px solid #e9d8fd;
  border-radius: var(--hp-radius-lg);
  padding: 22px;
  box-shadow: var(--hp-shadow-md);
}

.hp-deal-price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--hp-border);
}

.hp-deal-form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.hp-deal-code-box {
  background: #faf5ff;
  border: 2px dashed var(--hp-purple);
  border-radius: var(--hp-radius-md);
  padding: 14px;
}

@media (max-width: 991px) {
  .hp-deals-spotlight-slide {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-deals-filters-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-deal-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-deal-sidebar {
    position: static;
  }

  .hp-deal-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hp-deals-grid,
  .hp-deal-form-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-deal-banner-image {
    height: 230px;
  }
}
