:root {
  --dbs-green: #3bb77e;
  --dbs-green-dark: #2ea56f;
  --dbs-text: #1f2937;
  --dbs-muted: #6b7280;
  --dbs-border: #ececec;
  --dbs-soft: #f7f8fa;
  --dbs-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* ================= SECTION ================= */
.dbs-section {
  padding: 44px 0px;
  color: var(--dbs-text);
  background: #fff;
}

/* ================= HEADER ================= */
.dbs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 16px;
}

.dbs-header h2 {
  font-size: 40px;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.6px;
}

.dbs-tabs {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.dbs-tabs li {
  cursor: pointer;
  font-size: 16px;
  color: var(--dbs-muted);
  font-weight: 600;
  position: relative;
  transition: 0.25s ease;
  user-select: none;
}

.dbs-tabs li:hover {
  color: var(--dbs-text);
}

.dbs-tabs li.active {
  color: var(--dbs-green);
  font-weight: 800;
}

.dbs-tabs li.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--dbs-green);
}

/* ================= LAYOUT ================= */
.dbs-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: stretch; /* IMPORTANT for same height */
}

@media (max-width: 1100px) {
  .dbs-wrap {
    grid-template-columns: 1fr;
  }
}

/* ================= PROMO ================= */
.dbs-promo {
  border-radius: 26px;
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #e7f7ef 0%, #d8f1e5 100%);
  min-height: 520px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

/* 🔥 FIX: promo overlay to make text visible always */
.dbs-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.15) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.dbs-promo h3 {
  font-size: 52px;
  line-height: 1.06;
  font-weight: 900;
  margin: 0 0 22px;
  letter-spacing: -0.8px;

  position: relative;
  z-index: 3; /* 🔥 ensures visible */
  color: #1f2937;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.dbs-promo button {
  background: var(--dbs-green);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 24px rgba(59, 183, 126, 0.22);
  transition: 0.25s ease;

  position: relative;
  z-index: 3; /* 🔥 ensures visible */
}

.dbs-promo button:hover {
  background: var(--dbs-green-dark);
  transform: translateY(-2px);
}

.dbs-promo img {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 125%;
  max-width: 560px;
  pointer-events: none;
  z-index: 2; /* behind text, above bg */
  filter: saturate(1.05);
}

/* ================= SLIDER AREA ================= */
.dbs-slider-area {
  position: relative;
  padding: 0 64px; /* space for arrows */
  overflow: hidden;

  height: 100%;
  display: flex;
  align-items: stretch;
}

.dbs-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;

  height: 100%;
  align-items: stretch;
  padding: 0; /* remove extra padding causing mismatch */
}

.dbs-slider::-webkit-scrollbar {
  display: none;
}

/* ================= CARD ================= */
.dbs-card {
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 14px;
  position: relative;
  transition: 0.25s ease;

  height: 100%;
  display: flex;
  flex-direction: column;
}

.dbs-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--dbs-shadow);
  border-color: rgba(59, 183, 126, 0.22);
}

.dbs-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  border-radius: 999px;
  background: #ff7a45;
  z-index: 3;
}

.dbs-img {
  height: 180px;
  border-radius: 14px;
  background: #f6f7f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

.dbs-img img {
  max-width: 78%;
  max-height: 160px;
  object-fit: contain;
  transition: 0.25s ease;
}

.dbs-card:hover .dbs-img img {
  transform: scale(1.06);
}

.dbs-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 4;
}

.dbs-card:hover .dbs-actions {
  opacity: 1;
  pointer-events: auto;
}

.dbs-actions button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  color: var(--dbs-green);
  cursor: pointer;
  transition: 0.2s ease;
}

.dbs-actions button:hover {
  transform: translateY(-2px);
}

.dbs-card small {
  display: block;
  margin-top: 10px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.dbs-title {
  font-size: 16px;
  font-weight: 900;
  margin: 6px 0 10px;
  line-height: 1.25;
  cursor: pointer;
  flex: 0 0 auto;
}

.dbs-title:hover {
  color: var(--dbs-green);
}

.dbs-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  flex: 0 0 auto;
}

.dbs-price strong {
  font-size: 18px;
  font-weight: 900;
  color: var(--dbs-green);
}

.dbs-price del {
  font-size: 14px;
  font-weight: 700;
  color: #b6b6b6;
}

/* Add button always bottom aligned */
.dbs-add {
  margin-top: auto;
  width: 100%;
  border: none;
  background: var(--dbs-green);
  color: #fff;
  padding: 12px 12px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.25s ease;
  box-shadow: 0 14px 22px rgba(59, 183, 126, 0.2);
}

.dbs-add:hover {
  background: var(--dbs-green-dark);
  transform: translateY(-2px);
}

/* ================= ARROWS ================= */
.dbs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: 0.2s ease;
}

.dbs-arrow:hover {
  transform: translateY(-50%) scale(1.05);
}

.dbs-arrow.left {
  left: 10px;
}
.dbs-arrow.right {
  right: 10px;
}

.dbs-arrow i {
  font-size: 24px;
  color: var(--dbs-text);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .dbs-section {
    padding: 20px 0px;
  }

  .dbs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dbs-header h2 {
    font-size: 28px;
  }

  .dbs-tabs {
    gap: 18px;
  }

  .dbs-promo {
    min-height: 420px;
    padding: 30px 22px;
  }

  .dbs-promo h3 {
    font-size: 38px;
  }

  .dbs-slider-area {
    padding: 0;
  }

  /* 🔥 2 cards visible */
  .dbs-card {
    flex: 0 0 calc(50% - 10px);
    padding: 12px;
    border-radius: 16px;
  }

  .dbs-img {
    height: 150px;
    border-radius: 14px;
  }

  .dbs-img img {
    max-height: 135px;
    max-width: 85%;
  }

  .dbs-title {
    font-size: 14px;
    margin: 6px 0 8px;
  }

  .dbs-price strong {
    font-size: 16px;
  }
  .dbs-price del {
    font-size: 12px;
  }

  .dbs-actions {
    display: none;
  }
  .dbs-arrow {
    display: none;
  }
}

@media (max-width: 420px) {
  .dbs-card {
    flex: 0 0 calc(50% - 8px);
  }
}
