/* ============================================================
   EBS Digital — Bundle Product Design CSS
   Paste into: Salla → Store Design → Advanced → Customize with CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');
header.store-header { display: none; }

/* ====== Bundle Product Container ====== */
.ebs-bundle {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  max-width: 720px;
  margin: 24px auto;
  background: #ffffff;
  border-radius: 24px;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.ebs-bundle:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* ====== Bundle Header ====== */
.ebs-bundle-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  padding: 28px 28px 20px;
  text-align: center;
  position: relative;
}

.ebs-bundle-badge {
  display: inline-block;
  background: #10b981;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.ebs-bundle-header h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.ebs-bundle-header p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ====== Price Section ====== */
.ebs-bundle-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 28px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.ebs-bundle-price-before {
  font-size: 1.1rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.ebs-bundle-price-now {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e293b;
}

.ebs-bundle-price-currency {
  font-size: 0.95rem;
  color: #64748b;
  margin-right: 2px;
}

.ebs-bundle-price-save {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}

/* ====== Bundle Items List ====== */
.ebs-bundle-items {
  padding: 20px 28px;
}

.ebs-bundle-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.ebs-bundle-item:last-child {
  border-bottom: none;
}

.ebs-bundle-item-check {
  width: 28px;
  height: 28px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ebs-bundle-item-check svg {
  width: 14px;
  height: 14px;
  color: #16a34a;
}

.ebs-bundle-item img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.ebs-bundle-item-info {
  flex: 1;
}

.ebs-bundle-item-info h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

.ebs-bundle-item-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.ebs-bundle-item-price {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ====== Bundle Footer / CTA ====== */
.ebs-bundle-footer {
  padding: 20px 28px 28px;
  text-align: center;
}

.ebs-bundle-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 0;
  background: #25d366;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.ebs-bundle-cta:hover {
  background: #1ebe57;
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

/* Popular bundle highlight */
.ebs-bundle.popular {
  border-color: #1e293b;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.ebs-bundle.popular .ebs-bundle-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.ebs-bundle.popular .ebs-bundle-cta {
  background: #1e293b;
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.3);
}

.ebs-bundle.popular .ebs-bundle-cta:hover {
  background: #334155;
}

/* ====== Bundle Grid (multiple bundles side by side) ====== */
.ebs-bundle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .ebs-bundle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ebs-bundle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ====== Timer / Urgency Badge ====== */
.ebs-bundle-urgency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  margin: 0 28px 16px;
}

/* ====== Mobile Responsive ====== */
@media (max-width: 640px) {
  .ebs-bundle {
    margin: 16px 12px;
    border-radius: 16px;
  }
  
  .ebs-bundle-header {
    padding: 20px 20px 16px;
  }
  
  .ebs-bundle-header h3 {
    font-size: 1.2rem;
  }
  
  .ebs-bundle-price {
    padding: 16px 20px;
  }
  
  .ebs-bundle-price-now {
    font-size: 1.8rem;
  }
  
  .ebs-bundle-items {
    padding: 16px 20px;
  }
  
  .ebs-bundle-footer {
    padding: 16px 20px 20px;
  }
  
  .ebs-bundle-cta {
    font-size: 1rem;
    padding: 14px 0;
  }
  
  .ebs-bundle-item img {
    width: 44px;
    height: 44px;
  }
}