/* ==========================================================================
   ROOH COLLECTIONS — PROMOTIONAL CAMPAIGN, REWARDS ENGINE & MODAL STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PROMOTIONAL POP-UP MODAL (BLACK FRIDAY / HOLIDAY)
   -------------------------------------------------------------------------- */
.rooh-bf-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.rooh-bf-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.rooh-bf-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 15, 43, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rooh-bf-modal__content {
  position: relative;
  z-index: 2;
  width: min(520px, 94vw);
  background: linear-gradient(145deg, #071D46 0%, #030F2B 100%);
  border: 1.5px solid #BA925B;
  border-radius: 12px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(186, 146, 91, 0.15);
  color: #FFFFFF;
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rooh-bf-modal.is-open .rooh-bf-modal__content {
  transform: translateY(0) scale(1);
}

.rooh-bf-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rooh-bf-modal__close:hover,
.rooh-bf-modal__close:focus-visible {
  background: #BA925B;
  color: #071D46;
  border-color: #BA925B;
  transform: rotate(90deg);
}

.rooh-bf-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(186, 146, 91, 0.18);
  border: 1px solid rgba(186, 146, 91, 0.5);
  color: #E2BC7A;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.rooh-bf-modal__title {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.rooh-bf-modal__subtitle {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
  line-height: 1.4;
}

.rooh-bf-modal__tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.rooh-bf-modal__tier {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(186, 146, 91, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rooh-bf-modal__tier--featured {
  background: rgba(186, 146, 91, 0.12);
  border-color: #BA925B;
  box-shadow: 0 4px 14px rgba(186, 146, 91, 0.1);
}

.rooh-bf-modal__tier-badge {
  flex-shrink: 0;
  background: #BA925B;
  color: #071D46;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.rooh-bf-modal__tier-body {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
}

.rooh-bf-modal__tier-body strong {
  color: #FFFFFF;
}

.rooh-bf-modal__footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  margin: 0 0 20px;
}

.rooh-bf-modal__footer-text span {
  color: #E2BC7A;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.rooh-bf-modal__cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, #D4AF37 0%, #BA925B 100%) !important;
  color: #071D46 !important;
  border: 1px solid #D4AF37 !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(186, 146, 91, 0.35);
}

.rooh-bf-modal__cta:hover,
.rooh-bf-modal__cta:focus-visible {
  background: #FFFFFF !important;
  color: #071D46 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.4);
}

@media (max-width: 480px) {
  .rooh-bf-modal__content {
    padding: 24px 16px 20px;
  }
  .rooh-bf-modal__tier {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* --------------------------------------------------------------------------
   2. REWARD SELECTION MODULE (DRAWER, CART PAGE, CHECKOUT)
   -------------------------------------------------------------------------- */
.rooh-campaign-rewards-module {
  background: #FFFFFF;
  border: 1.5px solid #E2D2B8;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0 16px;
  box-shadow: 0 2px 10px rgba(7, 29, 70, 0.04);
}

.rooh-crm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.rooh-crm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #071D46;
  color: #D4AF37;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.rooh-crm-summary {
  font-size: 12px;
  color: #334155;
  font-weight: 500;
}

.rooh-crm-status--gold {
  color: #B45309 !important;
  font-weight: 700;
}

.rooh-crm-status--green {
  color: #047857 !important;
  font-weight: 700;
}

.rooh-crm-progress-track {
  position: relative;
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  margin: 8px 0 24px;
}

.rooh-crm-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #BA925B 0%, #059669 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.rooh-crm-pin {
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rooh-crm-pin__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid #94A3B8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.rooh-crm-pin.is-unlocked .rooh-crm-pin__dot {
  border-color: #059669;
  background: #059669;
}

.rooh-crm-pin__label {
  position: absolute;
  top: 16px;
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  white-space: nowrap;
}

.rooh-crm-pin.is-unlocked .rooh-crm-pin__label {
  color: #065F46;
}

.rooh-crm-reward-box {
  background: #FAF8F5;
  border: 1px solid #EAE3D2;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 10px;
}

.rooh-crm-reward-box.is-claimed {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.rooh-crm-reward-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rooh-crm-reward-icon {
  font-size: 18px;
  line-height: 1;
}

.rooh-crm-reward-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rooh-crm-reward-title-wrap strong {
  font-size: 12px;
  color: #071D46;
}

.rooh-crm-claimed-title {
  font-size: 11px;
  color: #065F46;
  font-weight: 600;
}

.rooh-crm-choose-prompt {
  font-size: 11px;
  color: #B45309;
  font-weight: 600;
}

.rooh-crm-change-btn {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: #071D46;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.rooh-crm-change-btn:hover {
  color: #BA925B;
}

.rooh-crm-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #E2D2B8;
  max-height: 260px;
  overflow-y: auto;
}

.rooh-crm-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.rooh-crm-card:hover {
  border-color: #BA925B;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.rooh-crm-card.is-selected {
  border-color: #059669;
  background: #F0FDF4;
}

.rooh-crm-card__media {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
  background: #F8FAFC;
}

.rooh-crm-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rooh-crm-card__title {
  font-size: 11px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

.rooh-crm-card__price {
  font-size: 11px;
  margin-bottom: 6px;
}

.rooh-crm-card__price del {
  color: #94A3B8;
  margin-right: 4px;
}

.rooh-crm-card__price ins {
  color: #059669;
  font-weight: 800;
  text-decoration: none;
}

.rooh-crm-size-select {
  width: 100%;
  font-size: 10.5px;
  padding: 3px 4px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  margin-bottom: 6px;
  background: #FFFFFF;
}

.rooh-crm-select-btn {
  width: 100% !important;
  min-height: 28px !important;
  padding: 4px 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  border-radius: 4px !important;
}

.rooh-crm-empty-note {
  font-size: 11.5px;
  color: #64748B;
  font-style: italic;
  margin: 6px 0;
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   3. DEDICATED BLACK FRIDAY PAGE (/black-friday/)
   -------------------------------------------------------------------------- */
.rooh-bf-page {
  background: #FAF9F6;
  min-height: 80vh;
}

.rooh-bf-hero {
  background: linear-gradient(135deg, #030F2B 0%, #071D46 60%, #0B2556 100%);
  color: #FFFFFF;
  padding: 24px 0 48px;
  border-bottom: 1.5px solid rgba(186, 146, 91, 0.35);
  position: relative;
  overflow: hidden;
}

.rooh-bf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(186, 146, 91, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.rooh-bf-hero__inner {
  position: relative;
  z-index: 2;
}

.rooh-bf-hero__header {
  text-align: center;
  max-width: 820px;
  margin: 16px auto 36px;
}

.rooh-bf-hero__title {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  margin: 8px 0 14px;
  letter-spacing: 0.02em;
}

.rooh-bf-hero__desc {
  font-size: clamp(14px, 1.3vw, 16px);
  color: #FFFFFF !important;
  opacity: 0.95 !important;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Tiers Grid on Campaign Page */
.rooh-bf-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.rooh-bf-tier-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(186, 146, 91, 0.4);
  border-radius: 12px;
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rooh-bf-tier-card:hover {
  transform: translateY(-3px);
  border-color: #BA925B;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.rooh-bf-tier-card--featured {
  background: rgba(186, 146, 91, 0.09);
  border: 2px solid #BA925B;
  box-shadow: 0 10px 30px rgba(186, 146, 91, 0.15);
}

.rooh-bf-tier-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E2BC7A;
  background: rgba(186, 146, 91, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.rooh-bf-tier-card__badge--featured {
  color: #071D46;
  background: #BA925B;
}

.rooh-bf-tier-card__spend {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 16px;
  line-height: 1.2;
}

.rooh-bf-tier-card__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rooh-bf-tier-card__perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

.rooh-bf-tier-card__perks li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.rooh-bf-perk--highlight {
  background: rgba(186, 146, 91, 0.18);
  border-radius: 6px;
  padding: 8px 10px;
  border-left: 3px solid #BA925B;
}

.rooh-bf-tier-card__note {
  margin-top: auto;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .rooh-bf-tiers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Rewards Preview Section */
.rooh-bf-rewards-preview {
  padding: 44px 0 36px;
  border-bottom: 1px solid #EDE8E0;
  background: #FFFFFF;
}

.rooh-bf-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.rooh-bf-section-title {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #071D46;
  margin: 6px 0 10px;
}

.rooh-bf-section-desc {
  font-size: 14px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

.rooh-bf-rewards-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rooh-bf-showcase-title {
  font-size: 16px;
  font-weight: 700;
  color: #071D46;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #E2D2B8;
}

.rooh-bf-showcase-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.rooh-bf-showcase-item {
  background: #FAF8F5;
  border: 1px solid #EDE8E0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.2s ease;
}

.rooh-bf-showcase-item:hover {
  transform: translateY(-3px);
  border-color: #BA925B;
}

.rooh-bf-showcase-media {
  position: relative;
  aspect-ratio: 1/1.1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #F1EFEA;
}

.rooh-bf-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rooh-bf-showcase-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: rgba(7, 29, 70, 0.88);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 4px;
}

.rooh-bf-showcase-badge--gold {
  background: rgba(186, 146, 91, 0.95);
  color: #071D46;
}

.rooh-bf-showcase-name {
  font-size: 13px;
  color: #071D46;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
}

.rooh-bf-showcase-val del {
  color: #94A3B8;
  font-size: 12px;
  margin-right: 4px;
}

.rooh-bf-showcase-val ins {
  color: #059669;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
}

/* Campaign Catalog Section */
.rooh-bf-catalog {
  padding: 40px 0 64px;
}

.rooh-bf-catalog .products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 20px 0 40px !important;
  padding: 0 !important;
  list-style: none !important;
}

.rooh-bf-catalog .products li.product {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rooh-bf-catalog .products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.rooh-bf-catalog .products li.product .woocommerce-loop-product__title {
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .rooh-bf-catalog .products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 768px) {
  .rooh-bf-catalog .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
