
/* Deals List Widget Styling - Final Fixed */

/* General container */
.deals-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* remove spacing between rows */
  margin-top: 10px; /* tighter space from title */
  max-width: 100%;
}

/* Each row */
.deals-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.deals-row:last-child {
  border-bottom: none;
}

/* Best price row */
.deals-row.deals-best {
  background: rgba(120, 80, 200, 0.3); /* less transparent violet highlight */
  border-left: 4px solid #7c4dff;
}

/* Left side (logo + store) */
.deals-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deals-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.deals-store {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Middle (price + badge) */
.deals-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.deals-price {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

/* Badge pill */
.deals-badge {
  background: #ff4081;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Right side (buttons) */
.deals-right {
  display: flex;
  justify-content: flex-end;
}

.deals-buttons {
  display: flex;
  gap: 6px;
}

/* Comprar button */
.deals-buy {
  background: #7c4dff;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.deals-buy:hover {
  background: #5e35b1;
}

/* Copy coupon button */
.deals-copy-coupon {
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.deals-copy-coupon:hover {
  background: #f57c00;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .deals-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "left right"
      "mid mid";
    row-gap: 6px;
  }

  .deals-left {
    grid-area: left;
  }

  .deals-mid {
    grid-area: mid;
    justify-content: flex-start;
  }

  .deals-right {
    grid-area: right;
  }
}





/* Badge Mejor Precio en desktop antes del precio */
.deals-mid {
  display: flex;
  align-items: center;
  gap: 6px;
}
.deals-mid .deals-badge {
  order: -1; /* siempre antes del precio */
  background: #2ecc71;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 12px;
  padding: 2px 8px;
}

/* Compactar filas PC y mobile */
.deals-row {
  padding: 4px 8px;
  margin: 2px 0;
  min-height: 36px;
  font-size: 13px;
}

/* Botón copiar cupón en violeta */
.deals-copy-coupon {
  background: #6a5acd !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
}
.deals-copy-coupon:hover {
  background: #5848c2 !important;
}

/* Ajustes mobile siguen igual */
@media (max-width: 768px) {
  .deals-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 6px;
    font-size: 12px;
  }

  .deals-left {
    margin-bottom: 2px;
  }

  .deals-mid {
    margin-bottom: 2px;
    width: 100%;
  }

  .deals-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }

  .deals-badge {
    order: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .deals-buy {
    order: 1;
  }
}

/* === FIX NUBEGEEK PALETTE & ALIGNMENTS === */

/* Contenedor de precio y cupón */
.deals-price-coupon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* Pastilla Mejor precio primero */
.deals-price-coupon .deals-badge {
  order: -1;
  background: #6c5ce7; /* violeta nubegeek */
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  padding: 2px 8px;
  font-weight: 600;
}

/* Precio centrado */
.deals-price {
  font-size: 15px;
  font-weight: bold;
  color: #2d3436; /* gris oscuro */
  text-align: center;
  order: 0;
}

/* Botón copiar cupón */
.deals-copy-coupon {
  order: 1;
  background: #a29bfe; /* violeta claro */
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.deals-copy-coupon:hover {
  background: #6c5ce7;
}

/* Botón comprar */
.deals-buy {
  background: #6c5ce7;
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.deals-buy:hover {
  background: #5a4bd6;
}

/* Compactar filas */
.deals-row {
  padding: 6px 10px;
  margin: 0;
  align-items: center;
  min-height: 42px; /* similar a pestaña Chrome */
}

/* Espaciado entre filas mínimo */
.deals-list .deals-row + .deals-row {
  margin-top: 2px;
}

/* Ajustes móvil */
@media (max-width: 768px) {
  .deals-row {
    flex-direction: column;
    padding: 8px 6px;
  }

  .deals-price-coupon {
    flex-direction: column;
    gap: 3px;
  }

  .deals-right {
    margin-top: 4px;
  }
}

/* === FIX: quitar Mejor precio y ajustar cabecera === */

/* Ocultar badge Mejor precio */
.deals-badge {
  display: none !important;
}

/* Reducir separación entre cabecera y primera fila */
.deals-list {
  margin-top: 4px !important;
}
