/* M¨Ždulo Banner de Cupons - OpenCart */
.coupons-banner-container {
  margin-top: var(--rowspace);
  margin-bottom: var(--rowspace);
  max-width: 100%;
}

.coupons-banner {
  background: var(--bg-primary);
  padding: 20px 15px;
  position: relative;
  overflow: hidden;
}

.coupons-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  opacity: 0.5;
}

.coupons-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.header-section {
  text-align: center;
  margin-bottom: 15px;
}

.header-section h2 {
  color: #fff;
  font-size: 2.0rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin: 0;
}

.coupons-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
}

.coupon-item {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 33.33%;
  margin: 0 5px 12px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  display: flex;
}

.coupon-item:nth-child(1) { animation-delay: 0.1s; }
.coupon-item:nth-child(2) { animation-delay: 0.2s; }
.coupon-item:nth-child(3) { animation-delay: 0.3s; }

.coupon-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.coupon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.coupon-percentage {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--bg-primary);
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.off-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #666;
  margin-left: 4px;
}

.coupon-description {
  color: #7f8c8d;
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.coupon-code-section {
  background: #f1f3f4;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 0;
  margin-top: auto;
  position: relative;
}

.coupon-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

.coupon-code-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.coupon-code {
  background: #fff;
  color: #2c3e50;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
  border: 2px dashed var(--bg-primary);
  flex-grow: 1;
  text-align: center;
}

.btn-copy-coupon-inline {
  background: var(--bg-primary);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.btn-copy-coupon-inline:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.btn-copy-coupon-inline:active {
  transform: translateY(0px);
}

.btn-copy-coupon-inline i {
  font-size: 0.9rem;
}

#copy-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
  transform: translateX(400px);
  transition: all 0.3s ease;
  font-weight: 500;
}

#copy-toast i {
  margin-right: 8px;
}

/* Responsividade */
@media (max-width: 992px) {
  .coupons-grid {
    gap: 0px;
    margin: 0 -4px;
  }
  
  .coupon-item {
    flex: 1 1 100%;
    margin: 0 4px 8px;
    max-width: 350px;
  }
  
  .header-section h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
  }
  
  .header-section p {
    font-size: 0.95rem;
  }
  
  .coupon-percentage {
    font-size: 2.0rem;
  }
  
  .coupon-description {
    font-size: 0.95rem;
  }
  
  .off-text {
    font-size: 0.9rem;
  }
  
  .coupon-card {
    padding: 10px 8px;
  }
}

@media (max-width: 768px) {
  .coupons-grid {
    flex-wrap: wrap;
  }
  
  .container-coupons {
    padding: 0;
  }

  .coupon-item {
    max-width: 100%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 