/* ==========================================
   OFFERS PAGE STYLES
   Página de ofertas especiales
   ========================================== */

.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}

.offer-stat {
  text-align: center;
}

.offer-timer-card {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.countdown-timer .time-unit {
  text-align: center;
  min-width: 50px;
}

/* ==========================================
   OFFERS GRID
   ========================================== */

.offers-grid .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.offer-card {
  position: relative;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.offer-card:hover {
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-5px);
}

/* ==========================================
   DISCOUNT BADGES
   ========================================== */

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: var(--danger-color);
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  animation: pulse-discount 2s infinite;
}

.discount-percent {
  font-size: 1.1rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.discount-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes pulse-discount {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ==========================================
   STOCK BADGES
   ========================================== */

.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.stock-badge.out-of-stock span {
  background: var(--danger-color);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.stock-badge.low-stock span {
  background: var(--warning-color);
  color: var(--dark-color);
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(241, 196, 15, 0.3);
  animation: blink-warning 1.5s infinite;
}

@keyframes blink-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ==========================================
   OFFER IMAGE
   ========================================== */

.offer-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--light-color);
}

.offer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.offer-card:hover .offer-img {
  transform: scale(1.08);
}

.offer-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: var(--transition);
}

.offer-card:hover .offer-actions {
  opacity: 1;
}

.offer-actions .btn-action {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.offer-actions .btn-action:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* ==========================================
   OFFER BODY
   ========================================== */

.offer-body {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.offer-title {
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-weight: 600;
}

.offer-title a {
  color: var(--dark-color);
  transition: var(--transition);
}

.offer-title a:hover {
  color: var(--primary-color);
}

.category-name {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: block;
}

/* ==========================================
   PRICE SECTION
   ========================================== */

.price-section {
  margin: 1rem 0;
  padding: 0.8rem;
  background: var(--light-color);
  border-radius: 8px;
}

.price-old {
  color: var(--secondary-color);
  text-decoration: line-through;
  font-size: 0.9rem;
  opacity: 0.7;
}

.price-current {
  color: var(--danger-color);
  font-size: 1.3rem;
  font-weight: 800;
}

.savings {
  text-align: right;
}

/* ==========================================
   ADD TO CART BUTTON
   ========================================== */

.btn-add-cart-offer {
  background: var(--gradient-primary);
  border: none;
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  margin-top: auto;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-add-cart-offer:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  color: white;
}

.btn-add-cart-offer:active {
  transform: translateY(0);
}

/* ==========================================
   OFFERS NEWSLETTER
   ========================================== */

.offers-newsletter {
  background: var(--gradient-secondary) !important;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  .offer-timer-card {
    margin-top: 2rem;
  }
  
  .countdown-timer {
    justify-content: center !important;
    gap: 1rem;
  }
  
  .offers-newsletter .col-md-4 {
    text-align: center !important;
    margin-top: 1rem;
  }
  
  .offer-stat {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .offer-card {
    margin-bottom: 1rem;
  }
  
  .discount-badge {
    top: 5px;
    left: 5px;
    padding: 0.4rem 0.6rem;
  }
  
  .stock-badge {
    top: 5px;
    right: 5px;
  }
  
  .offer-image-container {
    height: 180px;
  }
}
