.deals {
  position: relative;
  padding: 80px 40px;
  background: #5f90b5;
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  align-items: center;
}
.deals::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/includes/uploads/add/gridtel-68d44073f31cd.png") no-repeat
    center center/cover;
  opacity: 0.13;
  z-index: 1;
}
.deals > * {
  position: relative;
  z-index: 2;
}
.nameadd,
.priceadd {
  color: white;
    text-transform: uppercase;
}
.btnadd {
  background: white;
  color: #5f90b5;
}

.deals-actions {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: end;
  top: -5px;
  font-weight: 400;
  padding: 0 20px;
}

.deals-actions a {
  text-decoration: none;
  color: white;
  font-weight: 400;
}

.deals-actions a:hover {
  font-weight: 600;
}

.deals-header {
  display: flex;
  justify-content: center;
  align-items: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.deals-header h2 {
  font-size: 4rem;
  font-weight: bold;
  color: white;
  letter-spacing: 2px;
}

/* === CONTAINER === */
.deals-container {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* === GRID (CARRUSEL) === */
.deals-grid {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 20px;
}

.deals-grid::-webkit-scrollbar {
  display: none;
}

/* === PRODUCT CARD ADAPTATION === */
.deals-grid > * {
  flex: 0 0 calc((100% - 3 * 40px) / 4); /* 4 visibles */
  box-sizing: border-box;
}

/* === SCROLL BUTTONS === */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  color: #5f90b5;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: background 0.3s;
}

.scroll-btn:hover {
  background: #e8e8e8;
}

.scroll-btn.prev {
  left: 0;
}

.scroll-btn.next {
  right: 0;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .deals-grid > * {
    flex: 0 0 calc((100% - 2 * 40px) / 3); /* 3 visibles en pantallas medianas */
  }

  .deals-header h2 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .deals-grid > * {
    flex: 0 0 100%; /* solo 1 visible en móviles */
  }

  .scroll-btn {
    font-size: 1.8rem;
  }

  .deals {
    padding: 60px 20px;
  }
  
  .deals-header h2 {
    font-size: 2.5rem;
  }
}
