/* Specials Page Layout */
.source-sec {
  padding: 40px 0;
  background: transparent;
}

.deals-banner {
  height: 200px;
  background: linear-gradient(135deg, #4caf50, #81c784);
  margin-bottom: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.deals-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 10px 0;
}

/* Special Offer Cards */
.deals-thumb {
  background: #ffffff;
  border-radius: 16px;
  padding: 0 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: left;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  position: relative;
}

.deals-thumb:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: #e0e0e0;
}

/* Category Badge */
.deals-thumb .category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff6b35;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.deals-thumb .category-badge.bundle {
  background: #e91e63;
}

.deals-thumb .category-badge.product {
  background: #9c27b0;
}

/* Special Offer Image */
.deals-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 0;
  transition: transform 0.3s ease;
}

.deals-thumb:hover img {
  transform: scale(1.05);
}

/* Content Area */
.deals-thumb .content-area {
  padding: 20px;
  text-align: left;
}

.deals-thumb h3 {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.4;
  min-height: 2.8rem;
  text-align: left;
}

.deals-thumb .special-type {
  color: #7f8c8d;
  font-size: 0.85rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-align: left;
}

/* Special placeholder for items without images */
.special-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.special-placeholder.green-theme {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.special-placeholder.purple-theme {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.special-placeholder.orange-theme {
  background: linear-gradient(135deg, #ff9068 0%, #fd746c 100%);
}

/* Specific promotional banner styles */
.special-placeholder.harvest-green {
  background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
  position: relative;
}

.special-placeholder.harvest-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="leaves" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M5,5 Q10,0 15,5 Q10,10 5,5 Z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23leaves)"/></svg>') repeat;
  opacity: 0.3;
}

.special-placeholder.purple-discount {
  background: linear-gradient(135deg, #7b1fa2 0%, #ab47bc 100%);
}

.special-placeholder.blue-bundle {
  background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
}

.placeholder-content {
  text-align: center;
  color: white;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.placeholder-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 0.9;
}

.placeholder-content h2 sup {
  font-size: 1.2rem;
  vertical-align: super;
  margin-left: 2px;
}

.placeholder-content .offer-text {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

.placeholder-content .brand-text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 5px;
}
/* Action Buttons */
.shop-deal-btn {
  display: inline-block;
  /* background: #4caf50; */
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  /* box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2); */
  text-align: center;
  width: auto;
  min-width: 120px;
}

.shop-deal-btn:hover {
  /* background: #45a049; */
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  /* box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3); */
}

/* Special Info */
.special-description {
  color: #555;
  margin: 15px 0;
  line-height: 1.5;
  font-size: 0.9rem;
  text-align: left;
}

.discount-info {
  margin: 15px 0;
}

.discount-badge {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  box-shadow: 0 3px 15px rgba(255, 107, 53, 0.3);
}

.special-terms {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 0.8rem;
  color: #666;
  border-left: 3px solid #4caf50;
  line-height: 1.4;
}

.promo-code {
  background: #e8f5e8;
  padding: 12px;
  border-radius: 8px;
  margin: 15px 0;
  font-family: 'Courier New', monospace;
  border: 2px dashed #4caf50;
  text-align: center;
  font-weight: 600;
  color: #2e7d32;
}

/* No specials state */
.no-specials {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #7f8c8d;
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.no-specials h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #34495e;
}

.no-specials p {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Loading state */
.loading-specials {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #7f8c8d;
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4caf50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .deals-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }
  
  .deals-thumb {
    margin: 0 10px;
  }
  
  .deals-thumb h3 {
    font-size: 1rem;
    min-height: 2.4rem;
  }

  .deals-thumb .content-area {
    padding: 15px;
  }

  .placeholder-content h2 {
    font-size: 2rem;
  }

  .placeholder-content .offer-text {
    font-size: 1rem;
  }

  .source-sec {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .deals-section {
    padding: 10px;
  }

  .deals-thumb {
    margin: 0 5px;
  }

  .placeholder-content h2 {
    font-size: 1.8rem;
  }

  .deals-thumb .content-area {
    padding: 12px;
  }
}
