/*
 * Promo pages & home flash sale (Top One Computer).
 * Reuses the Nexmart deals count-col countdown markup, scoped under
 * .promo-countdown so the template's own deals block stays untouched.
 */

/** section header: title row + period/countdown row **/

.promo-section .promo-header{
  position: relative;
  display: block;
  margin-bottom: 30px;
}

.promo-section .promo-header .sec-title{
  margin-bottom: 12px;
}

.promo-section .promo-header .sec-title h2 .promo-name{
  font-weight: 500;
  color: var(--theme-color);
}

.promo-section .promo-meta{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 30px;
}

.promo-section .promo-period{
  position: relative;
  font-size: 15px;
  line-height: 26px;
  color: #7C7C7C;
  margin: 0;
}

.promo-section .promo-period i{
  color: var(--theme-color);
  margin-right: 6px;
}

.promo-section.flash-sale{
  padding-top: 10px;
}


/** countdown **/

.promo-countdown{
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.promo-countdown .countdown-label{
  position: relative;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
}

.promo-countdown .cs-countdown{
  position: relative;
  display: flex;
  align-items: center;
}

.promo-countdown .count-col{
  position: relative;
  display: inline-block;
  width: 56px;
  text-align: center;
  z-index: 1;
  margin-right: 18px;
}

.promo-countdown .count-col:last-child{
  margin-right: 0 !important;
}

.promo-countdown .count-col:after{
  position: absolute;
  content: ':';
  font-size: 26px;
  font-weight: 600;
  line-height: 48px;
  top: 0;
  right: -13px;
  color: var(--theme-color);
}

.promo-countdown .count-col:last-child:after{
  display: none;
}

.promo-countdown .count-col span{
  position: relative;
  display: block;
  width: 56px;
  height: 48px;
  line-height: 48px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: var(--theme-color);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

.promo-countdown .count-col h6{
  display: block;
  font-size: 11px;
  line-height: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #7C7C7C;
  margin-top: 4px;
}

.promo-countdown.is-ended .cs-countdown{
  display: none;
}

.promo-countdown.is-ended .countdown-label{
  color: var(--theme-color-3);
}


/** empty state **/

.promo-empty .inner-box{
  position: relative;
  display: block;
  max-width: 560px;
  margin: 0 auto;
  padding: 50px 30px;
  text-align: center;
  background: #F6F7F9;
  border-radius: 10px;
}

.promo-empty .inner-box .icon-box{
  font-size: 48px;
  line-height: 1;
  color: var(--theme-color);
  margin-bottom: 18px;
}

.promo-empty .inner-box h3{
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 10px;
}

.promo-empty .inner-box p{
  margin-bottom: 24px;
}


/** upcoming promotions **/

.promo-upcoming .text{
  margin-bottom: 24px;
  margin-top: -14px;
}

.promo-upcoming .upcoming-block{
  margin-bottom: 30px;
}

.promo-upcoming .upcoming-block .inner-box{
  position: relative;
  display: block;
  height: 100%;
  padding: 26px 30px;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  background: #fff;
  transition: all 500ms ease;
}

.promo-upcoming .upcoming-block .inner-box:hover{
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.promo-upcoming .upcoming-block .badge-soon{
  position: relative;
  display: inline-block;
  font-size: 12px;
  line-height: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  background: var(--theme-color-5);
  padding: 0 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.promo-upcoming .upcoming-block h4{
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 8px;
}

.promo-upcoming .upcoming-block .starts{
  font-size: 15px;
  color: var(--title-color);
  margin-bottom: 4px;
}

.promo-upcoming .upcoming-block .starts i{
  color: var(--theme-color);
  margin-right: 6px;
}

.promo-upcoming .upcoming-block .count{
  font-size: 14px;
  color: #7C7C7C;
}


/** responsive **/

@media only screen and (max-width: 767px){
  .promo-section .promo-meta{
    display: block;
  }

  .promo-section .promo-period{
    margin-bottom: 12px;
  }

  .promo-countdown .count-col{
    width: 48px;
    margin-right: 14px;
  }

  .promo-countdown .count-col span{
    width: 48px;
    height: 42px;
    line-height: 42px;
    font-size: 17px;
  }

  .promo-countdown .count-col:after{
    line-height: 42px;
    right: -11px;
    font-size: 22px;
  }
}

/* Campaign cards (els.id style) at the top of /promo */
.promo-campaigns .campaign-card {
  border: 1px solid #EDEDED;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  background: #fff;
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
  transition: box-shadow 300ms ease;
}

.promo-campaigns .campaign-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.promo-campaigns .campaign-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #F6F6F6;
  overflow: hidden;
}

.promo-campaigns .campaign-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.promo-campaigns .campaign-card:hover .campaign-image img {
  transform: scale(1.05);
}

.promo-campaigns .campaign-body {
  padding: 20px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 auto;
}

.promo-campaigns .campaign-label {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(230, 74, 10, 0.1);
  color: var(--theme-color);
  font-size: 13px;
  font-weight: 600;
}

.promo-campaigns .campaign-body h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.promo-campaigns .campaign-body .theme-btn {
  margin-top: auto;
  padding: 8px 26px;
  font-size: 14px;
}

/* Regular promotion cards on /promo reuse the campaign card */
.promo-programs .campaign-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(230, 74, 10, 0.12), rgba(251, 166, 14, 0.18));
  color: var(--theme-color);
  font-size: 56px;
}

.promo-programs .campaign-body h3 a {
  color: inherit;
}

.promo-programs .campaign-body h3 a:hover {
  color: var(--theme-color);
}

.promo-programs .campaign-count {
  color: #6b6b6b;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Promotion detail: banner and terms above the product grid */
.promo-section .promo-banner {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.promo-section .promo-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.promo-section .promo-description {
  margin-bottom: 30px;
  padding: 20px 24px;
  border: 1px dashed rgba(230, 74, 10, 0.4);
  border-radius: 8px;
  background: rgba(230, 74, 10, 0.04);
}

.promo-section .promo-description h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.promo-section .promo-description p {
  margin: 0;
}
